Results 1 to 7 of 7

Thread: cron coesn't work on pika (cron.err crond[1888]: USER root pid 5515 cmd ...)

  1. #1
    badro20dz Guest

    Default cron coesn't work on pika (cron.err crond[1888]: USER root pid 5515 cmd ...)

    Hello,

    We have a Pika Warp with FreePBX 2.7.0.10, and we have problem with cron (scheduled jobs don't run) and we have error in the logs:

    This is a part of log :

    /persistent1/var/log # vi messages
    ....
    May 16 16:10:01 pika_enarc_2 cron.err crond[1888]: USER root pid 5515 cmd /var/lib/asterisk/bin/freepbx-cron-scheduler.php
    May 16 17:10:01 pika_enarc_2 cron.err crond[1888]: USER root pid 5518 cmd /var/lib/asterisk/bin/freepbx-cron-scheduler.php
    May 16 18:10:01 pika_enarc_2 cron.err crond[1888]: USER root pid 5694 cmd /var/lib/asterisk/bin/freepbx-cron-scheduler.php
    ....

    Can any one help us to solve this cron error !

    Regards

  2. #2
    Join Date
    Jul 2008
    Posts
    268

    Default

    Try adding the highlighted line below to the file '/persistent/autorun/S65freepbx' and then reboot:

    Code:
     
            ...
            chmod +s /usr/bin/crontab
            touch /persistent/var/spool/cron/crontabs/asterisk
     
            # Set permissions for asterisk user on asterisk folders
            chown -R asterisk:asterisk /dev/pika*
            ...
            chown -R asterisk:asterisk /persistent/etc/asterisk/
            chown -R asterisk:asterisk /persistent1/var/www/html/
            chown -R asterisk:asterisk /persistent/var/spool/cron/crontabs/ 
            ...
    Last edited by mrecoskie; 05-31-11 at 03:48 PM. Reason: added missing lines

  3. #3
    badro20dz Guest

    Default

    Hello,

    I've added this line highlighted but nothing changed (the same problem)

    I've found another error in var/log/messages (just after the pika boots up) :

    ... cron.err crond[1888]:crond (busybox 1.10.3) started, log level 8


    Regards !

  4. #4
    Join Date
    Jul 2008
    Posts
    268

    Default

    Hi,

    Are your cron jobs not running or are you only seeing these messages in the logs?

    What is an interesting note is that all cron messages are logged to cron.err due to the behavior of crond in busybox 1.10. Here is a related report from the OpenWRT project on the topic. https://dev.openwrt.org/ticket/3981

  5. #5
    badro20dz Guest

    Default

    Hi,

    Good, now the error message disappers from my logs but when i schedule a backup from freepbx web interface nothing changed in "crontab/root" ... the new task i've planned is not included .. i have to choose "now" to perform the backup !

    Best Regards !

  6. #6
    Join Date
    Jul 2008
    Posts
    268

    Default

    Hi,

    I apologize I forgot to included two additional lines that were in my file. I have updated the post in this thread with the adds. Let me know if this still doesn't work.

  7. #7
    badro20dz Guest

    Default

    Hello

    Thank you so much my friend ! The problem is solved ...

    Best regards !

    PS. Pikawarp is a magic box !!!!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •