Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird problem using PHP-WORKER with queue to create pdf has embeded images #2277

Closed
quangnhattran opened this issue Sep 12, 2019 · 2 comments · Fixed by #2516
Closed

Weird problem using PHP-WORKER with queue to create pdf has embeded images #2277

quangnhattran opened this issue Sep 12, 2019 · 2 comments · Fixed by #2516

Comments

@quangnhattran
Copy link

quangnhattran commented Sep 12, 2019

   Hello

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 :)

@quangnhattran
Copy link
Author

quangnhattran commented Sep 12, 2019

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.

@avallem
Copy link

avallem commented Feb 21, 2020

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.

So. How you can resolve this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants