Wie ich FreePBX 15 proc_open(/tmp/cron.error): failed to open stream: Permission Denied gelöst habe
Problem
Beim Versuch, die FreePBX-Konfiguration über das Web-UI anzuwenden, sehen Sie die folgende Fehlermeldung.
freepbx_proc_open_error.txt
There was an error during reload: Unknown Error. Please Run: fwconsole reload --verbose
Unknown Error. Please Run: fwconsole reload --verboseWenn Sie fwconsole reload --verbose ausführen, sehen Sie die folgende Fehlermeldung:
fwconsole_reload_verbose_error.txt
{"message":"Reload Started"}
In Cron.class.php line 281:
[Whoops\Exception\ErrorException (2)]
proc_open(/tmp/cron.error): failed to open stream: Keine Berechtigung
Exception trace:
() at /var/www/html/admin/libraries/BMO/Cron.class.php:281
Whoops\Run->handleError() at n/a:n/a
proc_open() at /var/www/html/admin/libraries/BMO/Cron.class.php:281
FreePBX\Cron->installCrontab() at /var/www/html/admin/libraries/BMO/Cron.class.php:162
FreePBX\Cron->remove() at /var/www/html/admin/libraries/BMO/Job.class.php:238
FreePBX\Job->init() at /var/www/html/admin/libraries/BMO/Job.class.php:91
FreePBX\Job->add() at /var/www/html/admin/libraries/BMO/Job.class.php:73
FreePBX\Job->addClass() at /var/www/html/admin/modules/dashboard/Dashboard.class.php:147
Dashboard->doDialplanHook() at /var/www/html/admin/libraries/BMO/DialplanHooks.class.php:107
FreePBX\DialplanHooks->processHooks() at /var/www/html/admin/libraries/Console/Reload.class.php:318
FreePBX\Console\Command\Reload->reload() at /var/www/html/admin/libraries/Console/Reload.class.php:91
FreePBX\Console\Command\Reload->execute() at /var/www/html/admin/libraries/Composer/vendor/symfony/console/Command/Command.php:255
Symfony\Component\Console\Command\Command->run() at /var/www/html/admin/libraries/Composer/vendor/symfony/console/Application.php:960
Symfony\Component\Console\Application->doRunCommand() at /var/www/html/admin/libraries/Composer/vendor/symfony/console/Application.php:255
Symfony\Component\Console\Application->doRun() at /var/www/html/admin/libraries/Composer/vendor/symfony/console/Application.php:148
Symfony\Component\Console\Application->run() at /data/var/lib/asterisk/bin/fwconsole:163
reload [--json] [--dry-run] [--skip-registry-checks] [--dont-reload-asterisk]Lösung
Diese Schritte haben bei mir funktioniert (führen Sie sie in derselben Shell aus, in der Sie fwconsole reload ausführen würden, als root*):
fix_freepbx_cron.sh
fwconsole chown
rm /tmp/cron.error
chmod +s /usr/bin/crontab
chmod 777 /tmp
fwconsole chownDanach können Sie fwconsole reload --verbose wieder ausführen:
fwconsole_reload_success.json
{"message":"Reload Started"}
{"message":"Reload Complete"}Check out similar posts by category:
FreePBX
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow