mirror of
https://github.com/flyimg/flyimg.git
synced 2026-04-25 01:35:56 +03:00
[GH-ISSUE #454] Issue After Deploying on AWS EBS #778
Labels
No labels
Docs
Docs
Docs
Security
UnitTest
bug
dependencies
duplicate
enhancement
enhancement
enhancement
hacktoberfest
help wanted
invalid
pull-request
question
stale
version 1
version 2
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/flyimg#778
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
@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: trueand past here the error?Thanks
@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.
@Devil09 commented on GitHub (May 28, 2024):
This is the log https://elasticbeanstalk-ap-south-1-933255320751.s3.ap-south-1.amazonaws.com/resources/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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
@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}
@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
@Devil09 commented on GitHub (May 30, 2024):
@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.microandt3.smallhave 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.
@Devil09 commented on GitHub (Jun 1, 2024):
Moved to google cloud and things seems to be working fine running flyimg on
@sadok-f commented on GitHub (Jun 6, 2024):
Hi @Devil09
can we close this issue?
thanks!