I've upgraded to v4 then migrated my install to a new server. I can manually run the cron job, but it does not work when I add it with `crontab -e` or adding it directly to `cron.d`. This doesn't seem to be working either....
Quote
Cron does not seem to complete normally and Settings > Company > Automation shows some hung tasks.
Try disabling your cron job, and running the cron manually under Settings > System > Automation. If it runs correctly, you may have a memory issue in your CLI environment with Zend Memory Manager. Some users have reported that appending export USE_ZEND_ALLOC=0; to the beginning of their cron job resolved the issue. When using this method, your cron may look something like this: export USE_ZEND_ALLOC=0; /usr/bin/php /home/user/public_html/blesta/index.php cron
I have applied the v7 hotfix... I'm not running cPanel...
- lowered to 1 for testing... 5 has same result....
- added the root user since in cron.d
Process seems to be running...
root@debian:~# service cron status
● cron.service - Regular background program processing daemon
Loaded: loaded (/lib/systemd/system/cron.service; enabled)
Active: active (running) since Wed 2017-03-22 13:07:02 CDT; 22min ago
Docs: man:cron(8)
Main PID: 4824 (cron)
CGroup: /system.slice/cron.service
└─4824 /usr/sbin/cron -f
Mar 22 13:22:01 argos.zonedock.com CRON[5151]: (root) CMD (/usr/bin/php /super/secret/path/to/blesta/index.php cron)
Mar 22 13:23:01 argos.zonedock.com CRON[5161]: pam_unix(cron:session): session opened for user root by (uid=0)
Mar 22 13:23:01 argos.zonedock.com CRON[5162]: (root) CMD (/usr/bin/php /super/secret/path/to/blesta/index.php cron)
Mar 22 13:24:01 argos.zonedock.com CRON[5183]: pam_unix(cron:session): session opened for user root by (uid=0)
Mar 22 13:24:01 argos.zonedock.com CRON[5184]: (root) CMD (/usr/bin/php /super/secret/path/to/blesta/index.php cron)
Mar 22 13:25:01 argos.zonedock.com cron[4824]: (*system*blesta) RELOAD (/etc/cron.d/blesta)
Mar 22 13:25:01 argos.zonedock.com CRON[5248]: pam_unix(cron:session): session opened for user root by (uid=0)
Mar 22 13:25:01 argos.zonedock.com CRON[5249]: pam_unix(cron:session): session opened for user root by (uid=0)
Mar 22 13:25:01 argos.zonedock.com CRON[5250]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Mar 22 13:25:01 argos.zonedock.com CRON[5251]: (root) CMD (/usr/bin/php /super/secret/path/to/blesta/index.php cron)
but not according to Blesta.... Last run date in attached...
Question
jwogrady
I've upgraded to v4 then migrated my install to a new server. I can manually run the cron job, but it does not work when I add it with `crontab -e` or adding it directly to `cron.d`. This doesn't seem to be working either....
I have applied the v7 hotfix... I'm not running cPanel...
As of now my file in cron.d looks like this...
- lowered to 1 for testing... 5 has same result....
- added the root user since in cron.d
Process seems to be running...
root@debian:~# service cron status ● cron.service - Regular background program processing daemon Loaded: loaded (/lib/systemd/system/cron.service; enabled) Active: active (running) since Wed 2017-03-22 13:07:02 CDT; 22min ago Docs: man:cron(8) Main PID: 4824 (cron) CGroup: /system.slice/cron.service └─4824 /usr/sbin/cron -f Mar 22 13:22:01 argos.zonedock.com CRON[5151]: (root) CMD (/usr/bin/php /super/secret/path/to/blesta/index.php cron) Mar 22 13:23:01 argos.zonedock.com CRON[5161]: pam_unix(cron:session): session opened for user root by (uid=0) Mar 22 13:23:01 argos.zonedock.com CRON[5162]: (root) CMD (/usr/bin/php /super/secret/path/to/blesta/index.php cron) Mar 22 13:24:01 argos.zonedock.com CRON[5183]: pam_unix(cron:session): session opened for user root by (uid=0) Mar 22 13:24:01 argos.zonedock.com CRON[5184]: (root) CMD (/usr/bin/php /super/secret/path/to/blesta/index.php cron) Mar 22 13:25:01 argos.zonedock.com cron[4824]: (*system*blesta) RELOAD (/etc/cron.d/blesta) Mar 22 13:25:01 argos.zonedock.com CRON[5248]: pam_unix(cron:session): session opened for user root by (uid=0) Mar 22 13:25:01 argos.zonedock.com CRON[5249]: pam_unix(cron:session): session opened for user root by (uid=0) Mar 22 13:25:01 argos.zonedock.com CRON[5250]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1) Mar 22 13:25:01 argos.zonedock.com CRON[5251]: (root) CMD (/usr/bin/php /super/secret/path/to/blesta/index.php cron)
but not according to Blesta.... Last run date in attached...
My setup....
Debian 8.7
13 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.