-
Notifications
You must be signed in to change notification settings - Fork 233
Cron line added didn't remain in crontab on final check. #56
Comments
Thanks for reporting this. This is a new one and I'm almost thinking it's bad security on FreePBXs part. This makes sense as the image runs under a non priveleged user and /var/spool/cron is restricted to root. Would you be able to try a few tests for me?
I am hoping that the first option will fix. Once I hear your response I'll build it into the image ASAP. |
Ran both of them, still getting the same error |
Nuts. Thanks for that. I'm not going to be able to dive deep into this until Wednesday. I did however take a peek at the FreePBX codebase in the meantime and it appears should be intelligent enough to operate in this fashion, in fact has been around for quite a few releases. Hopefully someone else who is running under Kubernetes can add some insight until I'm able to dive into this. |
Looks like it's working if I run it in privileged mode or mount a volume at /var/spool/cron |
Coming back to this, I can add to the routines to manage our own /var/spool/cron if you'd like and have them placed under the exposed volume |
That would be great. |
Added in Docker Hub tag tiredofit/freepbx:3.6 |
Hey!
I'm looking into using these containers in prod and while testing them out I keep getting this error whenever I try applying any changes
exit: 1 Unable to continue. Cron line added didn't remain in crontab on final check. Check /tmp/cron.error for reason. in /var/www/html/admin/libraries/BMO/Cron.class.php on line 128 #0 /var/www/html/admin/modules/dashboard/Dashboard.class.php(126): FreePBX\Cron->addLine('* * * * * [ -x ...') #1 /var/www/html/admin/libraries/BMO/DialplanHooks.class.php(107): Dashboard->doDialplanHook(Object(extensions), 'asterisk', 500) #2 /data/var/lib/asterisk/bin/retrieve_conf(860): FreePBX\DialplanHooks->processHooks('asterisk', Array) #3 {main}
/tmp/cron.error content is
/var/spool/cron/: mkstemp: Permission denied /var/spool/cron/: mkstemp: Permission denied /var/spool/cron/: mkstemp: Permission denied /var/spool/cron/: mkstemp: Permission denied /var/spool/cron/: mkstemp: Permission denied /var/spool/cron/: mkstemp: Permission denied /var/spool/cron/: mkstemp: Permission denied /var/spool/cron/: mkstemp: Permission denied /var/spool/cron/: mkstemp: Permission denied /var/spool/cron/: mkstemp: Permission denied /var/spool/cron/: mkstemp: Permission denied /var/spool/cron/: mkstemp: Permission denied
I'm running the container on a Kubernetes cluster, volumes are bindmounted from the host
if I run
fwconsole reload
manually it seems to work fine, looks like it's only when invoked via the web UII'll gladly supply more information as needed.
The text was updated successfully, but these errors were encountered: