[GH-ISSUE #454] Issue After Deploying on AWS EBS #778

Closed
opened 2026-03-15 15:23:35 +03:00 by kerem · 9 comments
Owner

Originally created by @Devil09 on GitHub (May 28, 2024).
Original GitHub issue: https://github.com/flyimg/flyimg/issues/454

Originally assigned to: @sadok-f on GitHub.

I have deployed the code here http://staging.eba-jj7cmp3m.ap-south-1.elasticbeanstalk.com/ but not been able to generate an image I get this "Error while leading the generated image" while trying on the UI.

And If I try it direct http://staging.eba-jj7cmp3m.ap-south-1.elasticbeanstalk.com/upload/q_10/https://d1qd63nzcebybr.cloudfront.net/assets/houseowls/aardhya-homes/photos/mob-photos/DSC09619.jpg getting Whoops, looks like something went wrong.

Originally created by @Devil09 on GitHub (May 28, 2024). Original GitHub issue: https://github.com/flyimg/flyimg/issues/454 Originally assigned to: @sadok-f on GitHub. I have deployed the code here http://staging.eba-jj7cmp3m.ap-south-1.elasticbeanstalk.com/ but not been able to generate an image I get this "Error while leading the generated image" while trying on the UI. And If I try it direct http://staging.eba-jj7cmp3m.ap-south-1.elasticbeanstalk.com/upload/q_10/https://d1qd63nzcebybr.cloudfront.net/assets/houseowls/aardhya-homes/photos/mob-photos/DSC09619.jpg getting Whoops, looks like something went wrong.
kerem 2026-03-15 15:23:35 +03:00
Author
Owner

@sadok-f commented on GitHub (May 28, 2024):

Hi @Devil09,

thank you for reporting this issue.

I've tried to use the same image on our demo page and it worked:
https://demo.flyimg.io/upload/q_15/https://d1qd63nzcebybr.cloudfront.net/assets/houseowls/aardhya-homes/photos/mob-photos/DSC09619.jpg

Which version of Flyimg are you using? can you enable the debug in config/parameters.yml : debug: true and past here the error?

Thanks

<!-- gh-comment-id:2134930215 --> @sadok-f commented on GitHub (May 28, 2024): Hi @Devil09, thank you for reporting this issue. I've tried to use the same image on our demo page and it worked: https://demo.flyimg.io/upload/q_15/https://d1qd63nzcebybr.cloudfront.net/assets/houseowls/aardhya-homes/photos/mob-photos/DSC09619.jpg Which version of Flyimg are you using? can you enable the debug in config/parameters.yml : `debug: true` and past here the error? Thanks
Author
Owner

@Devil09 commented on GitHub (May 28, 2024):

Now I am using 1.4.2 http://staging.eba-jj7cmp3m.ap-south-1.elasticbeanstalk.com/upload/q_10/https://d1qd63nzcebybr.cloudfront.net/assets/houseowls/amour-floor-4s/photos/DSC00184.jpg but still the output is same it works sometime with some parameters but mostly I am getting error.

Untitled 2
<!-- gh-comment-id:2135299586 --> @Devil09 commented on GitHub (May 28, 2024): Now I am using 1.4.2 http://staging.eba-jj7cmp3m.ap-south-1.elasticbeanstalk.com/upload/q_10/https://d1qd63nzcebybr.cloudfront.net/assets/houseowls/amour-floor-4s/photos/DSC00184.jpg but still the output is same it works sometime with some parameters but mostly I am getting error. <img width="1228" alt="Untitled 2" src="https://github.com/flyimg/flyimg/assets/20475366/1f07e760-ba65-47f4-ba01-7220c845f02f">
Author
Owner
<!-- gh-comment-id:2135313548 --> @Devil09 commented on GitHub (May 28, 2024): This is the log https://elasticbeanstalk-ap-south-1-933255320751.s3.ap-south-1.amazonaws.com/resources/environments/logs/tail/e-wmkwbzqiu6/i-06cea3414cad9dbcd/TailLogs-1716905255391.txt?X-Amz-Security-Token=IQoJb3JpZ2luX2VjEHYaCmFwLXNvdXRoLTEiSDBGAiEAhNPPaepZXlIpLMuRh02CDlck9RWtGzOOgvloEzMGD3oCIQDPPAjyU6ZAEJ%2FlVwq0bBbtpfrcdVFmEBJMPiM%2Bm2OK9Sr0Agjv%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F8BEAUaDDEwMDk5NTk1NDA3OSIMZhvCpE88MtsKC6HZKsgCiJ%2FGs5fqHuOBGcrzySoNjzPVhLhy0rrv46podJz9mdF%2BmYoJ4PqdXkFOI%2FMkP3lkplTwfAveKB37oXkQOFEEMRsOSjrKTv4VWGQSUWBmUGWkf8%2FcDiqpGG3hTrXgocAb33Rx0B6NZdSOF5ckPisFlQx2Zt0ZdFW6YWc1Y2sPQF5DXTi4srp2poV%2BB6gUk6OkIl6g5CRZCFQenzrhHC74YY0%2FdysZbtbL8x1q4DMWTphH%2BnOgj3czY0kV8OwIWlqCaHpOPMSizOSiZ3t2EZYtgKw39Kv%2BnX4W3oEdujjdlJiH4jtIz95Q4deRQyjM6WKfQ0Vk2dRHBckCIxJjoFErRc%2B5ieq8pZaJAq81B3k3DKJcS5n6HesS%2F6XigL93QwmohYgS65WQP7uu4PGM6bN53mtoOaaDLLVR8gvLDSP%2FanyWKTf0CMVhSDCYyNeyBjq%2BAUKe1Mq08ggrBU%2F5bP0TttcIZU2OtymwvjkQ%2F7SsS%2BFTPtKp1KdwnwAQfbYhzuWNwXPipSYXm6SzXBqnAb9%2FHvsfAl7Y274wp4XTKFM%2FsMh7h9dGs65XE8yujsc6yujSBLctwwQQlKqS9J90Ezb7eNETXZNGRa2fmAgb5XtfMrPk5XP6bB6rdqwrUTA94LWdRfaCw2BEwsXknEHgxR5wwFBoNWn7bpS2VHmDtzdv9HYsotHbogkl1n2cUr1hojY%3D&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20240528T140737Z&X-Amz-SignedHeaders=host&X-Amz-Expires=86400&X-Amz-Credential=ASIARPA6T6WPUAOFO6W4%2F20240528%2Fap-south-1%2Fs3%2Faws4_request&X-Amz-Signature=65a13b14966aaa7d6629e6354bc05254ee779778fe8c565893df354bd0b57023 IF this helps
Author
Owner

@Devil09 commented on GitHub (May 28, 2024):

I got the exact logs why it's failing please help if you have any idea how to fix it

/var/log/eb-docker/containers/eb-current-app/eb-1078d4a2b854-stdouterr.log

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
This account is currently not available.
[28-May-2024 17:24:01] NOTICE: fpm is running, pid 177
[28-May-2024 17:24:01] NOTICE: ready to handle connections
Message: Command failed.
The exit code: Killed
The last line of output: /usr/local/bin/magick /var/www/html/var/tmp/original-cf98c05641bf848e689e44e5b8c3651c -colorspace 'sRGB' -filter 'Lanczos' -strip -define heic:speed=8 -quality '22' '/var/www/html/var/tmp/429a6493177d410da5af574147f13e97.avif'
File: /var/www/html/src/Core/Processor/Processor.php
Line: 54
Trace: #0 /var/www/html/src/Core/Processor/ImageProcessor.php(54): Core\Processor\Processor->execute(Object(Core\Entity\Command))
#1 /var/www/html/src/Core/Handler/ImageHandler.php(167): Core\Processor\ImageProcessor->processNewImage(Object(Core\Entity\Image\OutputImage))
#2 /var/www/html/src/Core/Handler/ImageHandler.php(108): Core\Handler\ImageHandler->processNewImage(Object(Core\Entity\Image\OutputImage))
#3 /var/www/html/src/Core/Controller/DefaultController.php(26): Core\Handler\ImageHandler->processImage('q_22', 'https://d1qd63n...')
#4 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(169): Core\Controller\DefaultController->uploadAction('q_22', 'https://d1qd63n...')
#5 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(81): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#6 /var/www/html/vendor/silex/silex/src/Silex/Application.php(496): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#7 /var/www/html/vendor/silex/silex/src/Silex/Application.php(477): Silex\Application->handle(Object(Symfony\Component\HttpFoundation\Request))
#8 /var/www/html/web/index.php(4): Silex\Application->run()
#9 {main}

<!-- gh-comment-id:2135773470 --> @Devil09 commented on GitHub (May 28, 2024): I got the exact logs why it's failing please help if you have any idea how to fix it /var/log/eb-docker/containers/eb-current-app/eb-1078d4a2b854-stdouterr.log ---------------------------------------- [s6-init] making user provided files available at /var/run/s6/etc...exited 0. [s6-init] ensuring user provided files have correct perms...exited 0. [fix-attrs.d] applying ownership & permissions fixes... [fix-attrs.d] done. [cont-init.d] executing container initialization scripts... [cont-init.d] done. [services.d] starting services [services.d] done. This account is currently not available. [28-May-2024 17:24:01] NOTICE: fpm is running, pid 177 [28-May-2024 17:24:01] NOTICE: ready to handle connections Message: Command failed. The exit code: Killed The last line of output: /usr/local/bin/magick /var/www/html/var/tmp/original-cf98c05641bf848e689e44e5b8c3651c -colorspace 'sRGB' -filter 'Lanczos' -strip -define heic:speed=8 -quality '22' '/var/www/html/var/tmp/429a6493177d410da5af574147f13e97.avif' File: /var/www/html/src/Core/Processor/Processor.php Line: 54 Trace: #0 /var/www/html/src/Core/Processor/ImageProcessor.php(54): Core\Processor\Processor->execute(Object(Core\Entity\Command)) #1 /var/www/html/src/Core/Handler/ImageHandler.php(167): Core\Processor\ImageProcessor->processNewImage(Object(Core\Entity\Image\OutputImage)) #2 /var/www/html/src/Core/Handler/ImageHandler.php(108): Core\Handler\ImageHandler->processNewImage(Object(Core\Entity\Image\OutputImage)) #3 /var/www/html/src/Core/Controller/DefaultController.php(26): Core\Handler\ImageHandler->processImage('q_22', 'https://d1qd63n...') #4 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(169): Core\Controller\DefaultController->uploadAction('q_22', 'https://d1qd63n...') #5 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(81): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #6 /var/www/html/vendor/silex/silex/src/Silex/Application.php(496): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #7 /var/www/html/vendor/silex/silex/src/Silex/Application.php(477): Silex\Application->handle(Object(Symfony\Component\HttpFoundation\Request)) #8 /var/www/html/web/index.php(4): Silex\Application->run() #9 {main}
Author
Owner

@sadok-f commented on GitHub (May 28, 2024):

Can you provide more details about the environment you're using ? Such as instance type, EBS volume type....
I need to try out the same setup to be able to reproduce the issue and investigate it.
Thanks

<!-- gh-comment-id:2136106675 --> @sadok-f commented on GitHub (May 28, 2024): Can you provide more details about the environment you're using ? Such as instance type, EBS volume type.... I need to try out the same setup to be able to reproduce the issue and investigate it. Thanks
Author
Owner

@Devil09 commented on GitHub (May 30, 2024):

Screenshot 2024-05-30 at 7 55 33 PM Screenshot 2024-05-30 at 7 55 52 PM Sure @sadok-f here are the configurations let me know if you need something else
<!-- gh-comment-id:2139688735 --> @Devil09 commented on GitHub (May 30, 2024): <img width="1073" alt="Screenshot 2024-05-30 at 7 55 33 PM" src="https://github.com/flyimg/flyimg/assets/20475366/0cb1ed36-d950-40b7-b74f-ac5e3a2a6770"> <img width="1065" alt="Screenshot 2024-05-30 at 7 55 52 PM" src="https://github.com/flyimg/flyimg/assets/20475366/ca02284f-01eb-46fb-953a-4baffe315f66"> Sure @sadok-f here are the configurations let me know if you need something else
Author
Owner

@sadok-f commented on GitHub (May 31, 2024):

Thank you @Devil09 for providing those details.
it seems the issue is related to the instance types used here, t3.micro and t3.small have very low vCPUs and CPU Credits.
I suggest that you move to a bigger instance type.
I'll do more testing to provide the minimum instance type to run Flyimg.

<!-- gh-comment-id:2143064978 --> @sadok-f commented on GitHub (May 31, 2024): Thank you @Devil09 for providing those details. it seems the issue is related to the instance types used here, `t3.micro` and `t3.small` have very low vCPUs and CPU Credits. I suggest that you move to a bigger instance type. I'll do more testing to provide the minimum instance type to run Flyimg.
Author
Owner

@Devil09 commented on GitHub (Jun 1, 2024):

Moved to google cloud and things seems to be working fine running flyimg on

  1. Rocky linux
  2. e2-standard-2 vCPU Memory 8 GB with 20 GB SSD
<!-- gh-comment-id:2143310228 --> @Devil09 commented on GitHub (Jun 1, 2024): Moved to google cloud and things seems to be working fine running flyimg on 1. Rocky linux 2. e2-standard-2 vCPU Memory 8 GB with 20 GB SSD
Author
Owner

@sadok-f commented on GitHub (Jun 6, 2024):

Hi @Devil09
can we close this issue?
thanks!

<!-- gh-comment-id:2153348791 --> @sadok-f commented on GitHub (Jun 6, 2024): Hi @Devil09 can we close this issue? thanks!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/flyimg#778
No description provided.