Anand Doshi
unread,Aug 30, 2012, 9:01:01 AM8/30/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to erpnext-dev...@googlegroups.com
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]
1. start terminal
2. crontab -e
3. enter this in the file
*/3 * * * * cd /var/www/erpnext/ && python lib/wnf.py --run_scheduler >> /var/log/erpnext-sch.log 2>&1
4. save the file
5. crontab -l
6. 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.