You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Laravel version 6.0 with dependency simplesoftwareio/simple-qrcode to generate pdf
I am using Laradock to run Nginx, PHP 7.3, MariaDB, php-worker and Redis.
I setup QUEUE_DRIVER=redis and laravel-worker.conf as below: [program:myproject-worker] process_name=%(program_name)s_%(process_num)02d command=php /var/www/myproject/artisan queue:work redis --tries=1 autostart=true autorestart=true numprocs=2 user=root redirect_stderr=true stdout_logfile=/var/www/myproject/worker.log
When I run docker-compose up php-worker, the job was failed with error Call to undefined function BaconQrCode\Renderer\Image\imagecreatetruecolor().
The weird thing is if I stop php-worker but manually run php artisan queue:work redis --tries=1 then job processed successfully.
Do you think it is a bug or something?
Thanks :)
The text was updated successfully, but these errors were encountered:
After checking Dockerfile of php-worker and know it uses PHP Alpine without PHP GD ext enabled by default. After edit Dockerfile to add command to include PHP GD ext. My jobs processed by php-worker without any problem.
After checking Dockerfile of php-worker and know it uses PHP Alpine without PHP GD ext enabled by default. After edit Dockerfile to add command to include PHP GD ext. My jobs processed by php-worker without any problem.
Laravel version 6.0 with dependency
simplesoftwareio/simple-qrcode
to generate pdfI am using Laradock to run Nginx, PHP 7.3, MariaDB, php-worker and Redis.
I setup
QUEUE_DRIVER=redis
and laravel-worker.conf as below:[program:myproject-worker] process_name=%(program_name)s_%(process_num)02d command=php /var/www/myproject/artisan queue:work redis --tries=1 autostart=true autorestart=true numprocs=2 user=root redirect_stderr=true stdout_logfile=/var/www/myproject/worker.log
When I run
docker-compose up php-worker
, the job was failed with errorCall to undefined function BaconQrCode\Renderer\Image\imagecreatetruecolor()
.The weird thing is if I stop php-worker but manually run
php artisan queue:work redis --tries=1
then job processed successfully.Do you think it is a bug or something?
Thanks :)
The text was updated successfully, but these errors were encountered: