Hi HF,
Please do the following for enabling scheduler:
Foremost, check if cron is running. From terminal, run
service crond status
if it is not running,
service crond start
Then,
pull the latest updates from erpnext repository.
[assuming you have installed erpnext in the folder /var/www/erpnext - you will need to change it as per your installation, however, it must be an absolute path]
- start terminal
- crontab -e
- enter this in the file
*/3 * * * * cd /var/www/erpnext/ && python lib/wnf.py --run_scheduler >> /var/log/erpnext-sch.log 2>&1
- save the file
- crontab -l
- you should be able to see the above entry in the cron list. Now, your scheduler is set up.
To enable automatic backups, perform the above steps, with the following change in the 3rd step:
0 */6 * * * cd /var/www/erpnext/ && python lib/wnf.py --backup >> /var/log/erpnext-backup.log 2>&1
For testing, just copy and paste the part starting from “cd /var…”. Then check both the log files for output. If any error comes, please paste it as a reply to this email, so that we can further analyse the problem.
thanks,
Anand.
–
You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.
To post to this group, send email to er...@googlegroups.com.
To unsubscribe from this group, send email to erpnext-developer-forum+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.