-
@xevotech You cannot put in a systemd service file because the app is running in a container and the container itself has no systemd inside it.
Not an expert on laravel but there are two ways:
-
In the startup script, start the queue worker in the background - https://docs.cloudron.io/apps/lamp/#custom-startup-script . So,
sudo -u www-data /usr/bin/php /var/www/app/artisan queue:work --queue=high,standard,low --sleep=3 --tries=3 & -
Alternately, you can put this in the crontab - https://docs.cloudron.io/apps/lamp/#cron-support . So,
0 * * * * sudo -u www-data /usr/bin/php /var/www/app/artisan queue:work --queue=high,standard,low --sleep=3 --tries=3 --stop-when-empty(the stop-when-empty is needed so that the queue worker quits when the queue is empty).
Would either of the above work?
-
-
@xevotech You cannot put in a systemd service file because the app is running in a container and the container itself has no systemd inside it.
Not an expert on laravel but there are two ways:
-
In the startup script, start the queue worker in the background - https://docs.cloudron.io/apps/lamp/#custom-startup-script . So,
sudo -u www-data /usr/bin/php /var/www/app/artisan queue:work --queue=high,standard,low --sleep=3 --tries=3 & -
Alternately, you can put this in the crontab - https://docs.cloudron.io/apps/lamp/#cron-support . So,
0 * * * * sudo -u www-data /usr/bin/php /var/www/app/artisan queue:work --queue=high,standard,low --sleep=3 --tries=3 --stop-when-empty(the stop-when-empty is needed so that the queue worker quits when the queue is empty).
Would either of the above work?
-
-
@xevotech You cannot put in a systemd service file because the app is running in a container and the container itself has no systemd inside it.
Not an expert on laravel but there are two ways:
-
In the startup script, start the queue worker in the background - https://docs.cloudron.io/apps/lamp/#custom-startup-script . So,
sudo -u www-data /usr/bin/php /var/www/app/artisan queue:work --queue=high,standard,low --sleep=3 --tries=3 & -
Alternately, you can put this in the crontab - https://docs.cloudron.io/apps/lamp/#cron-support . So,
0 * * * * sudo -u www-data /usr/bin/php /var/www/app/artisan queue:work --queue=high,standard,low --sleep=3 --tries=3 --stop-when-empty(the stop-when-empty is needed so that the queue worker quits when the queue is empty).
Would either of the above work?
@girish I'm getting an error with LAMP's PHP.ini. Chaning the PHP.ini in the data dir doesn't fix it. What do I do?
The error as following:
May 07 22:10:38 PHP: syntax error, unexpected $end in /etc/php/7.4/cli/conf.d/99-cloudron.ini on line 5 May 07 22:10:38 May 07 22:10:38 ErrorException May 07 22:10:38 May 07 22:10:38 pcntl_async_signals() has been disabled for security reasons May 07 22:10:38 May 07 22:10:38 at /app/data/vendor/laravel/framework/src/Illuminate/Queue/Worker.php:639 May 07 22:10:38 635▕ * @return void May 07 22:10:38 636▕ */ May 07 22:10:38 637▕ protected function listenForSignals() May 07 22:10:38 638▕ { May 07 22:10:38 ➜ 639▕ pcntl_async_signals(true); May 07 22:10:38 640▕ May 07 22:10:38 641▕ pcntl_signal(SIGTERM, function () { May 07 22:10:38 642▕ $this->shouldQuit = true; May 07 22:10:38 643▕ }); May 07 22:10:38 May 07 22:10:38 +17 vendor frames May 07 22:10:38 18 /app/data/artisan:37 May 07 22:10:38 Illuminate\Foundation\Console\Kernel::handle() May 07 22:10:38 box:tasks 6710: {"percent":100,"message":"Done"} May 07 22:10:39 box:apptask xevoid.com updating app with values: {"installationState":"installed","error":null,"health":null} May 07 22:10:39 box:taskworker Task took 24.15 seconds May 07 22:10:39 box:tasks setCompleted - 6710: {"result":null,"error":null} May 07 22:10:39 box:tasks 6710: {"percent":100,"result":null,"error":null} May 07 22:10:43 ==> Do not override existing index file May 07 22:10:43 ==> Source custom startup script May 07 22:10:43 PHP: syntax error, unexpected $end in /etc/php/7.4/cli/conf.d/99-cloudron.ini on line 5 May 07 22:10:43 -
-
@girish I'm getting an error with LAMP's PHP.ini. Chaning the PHP.ini in the data dir doesn't fix it. What do I do?
The error as following:
May 07 22:10:38 PHP: syntax error, unexpected $end in /etc/php/7.4/cli/conf.d/99-cloudron.ini on line 5 May 07 22:10:38 May 07 22:10:38 ErrorException May 07 22:10:38 May 07 22:10:38 pcntl_async_signals() has been disabled for security reasons May 07 22:10:38 May 07 22:10:38 at /app/data/vendor/laravel/framework/src/Illuminate/Queue/Worker.php:639 May 07 22:10:38 635▕ * @return void May 07 22:10:38 636▕ */ May 07 22:10:38 637▕ protected function listenForSignals() May 07 22:10:38 638▕ { May 07 22:10:38 ➜ 639▕ pcntl_async_signals(true); May 07 22:10:38 640▕ May 07 22:10:38 641▕ pcntl_signal(SIGTERM, function () { May 07 22:10:38 642▕ $this->shouldQuit = true; May 07 22:10:38 643▕ }); May 07 22:10:38 May 07 22:10:38 +17 vendor frames May 07 22:10:38 18 /app/data/artisan:37 May 07 22:10:38 Illuminate\Foundation\Console\Kernel::handle() May 07 22:10:38 box:tasks 6710: {"percent":100,"message":"Done"} May 07 22:10:39 box:apptask xevoid.com updating app with values: {"installationState":"installed","error":null,"health":null} May 07 22:10:39 box:taskworker Task took 24.15 seconds May 07 22:10:39 box:tasks setCompleted - 6710: {"result":null,"error":null} May 07 22:10:39 box:tasks 6710: {"percent":100,"result":null,"error":null} May 07 22:10:43 ==> Do not override existing index file May 07 22:10:43 ==> Source custom startup script May 07 22:10:43 PHP: syntax error, unexpected $end in /etc/php/7.4/cli/conf.d/99-cloudron.ini on line 5 May 07 22:10:43 -
@xevotech What are the contents of /app/data/php.ini ? It seems there is some syntax error. Note that you have to restart the app for the php.ini changes to take effect.
-
; Add custom PHP configuration in this file ; Settings here are merged with the package's built-in php.ini disable_functions = ; -
@xevotech There is no ";" in the end for php.ini settings, maybe that is the problem. So, just:
disable_functions = -
@xevotech There is no ";" in the end for php.ini settings, maybe that is the problem. So, just:
disable_functions =@girish Hah this actually helps me with the Humhub app. Thanks! My solution was to use sed to delete line 312 in /etc/php/7.4/cli/php.ini lmao. Jank to the extreme.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login
