-
Notifications
You must be signed in to change notification settings - Fork 540
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
call_thumbor error: tornado server unavailable, proceeding with tornado server restart #70
Comments
OK, I have now found that a lot of the issues we were having were when using the smart option. If I turn the smart option, we get far fewer problems. Even not using the smart option, I do still however have the odd instance where the image fails to process on the first attempt. Some examples of files that failed: And this animated gif: with the error mentioned in my original post |
did anyone figure this out? I'm also having the same issue |
We've encountered this error with output logs similar to the initial report, but under different circumstances. It occurred for an image met all these conditions:
For that case, no failure happened if either:
Sometimes it happens randomly as originally described, however we haven't looked deeply into that. This probably does not help with the other scenarios in this issue. |
@J-Nagle I am seeing the same thing. However we are getting some pngs through okay and narrowed it down to images that are >9mb |
@matt-bradley I edited my post to clarify that the our failure matched every factor in the first list. We, too, have examples of working PNG's that are smaller than the one that caused issues. Our conditions are only for a single test case, and we haven't looked into exactly what point images start breaking. Thanks for the info. |
Having the same issue, seems to be with png only but small sizes as well. Might be related to concurrent access, unsure. Failing images convert fine on a second try. |
Hi all. We're in the process of updating the solution and have identified several ways to mitigate this issue in the next version. Stay tuned and thanks for your feedback/patience! |
I'm having the same issue with jpegs when adding my base64 encoded signature to the beginning of the url as documented here: https://github.com/thumbor/thumbor/wiki/Security |
@hayesry Any update on this? We are having the same problem. Can you elaborate on the ways to mitigate this? In our case we have quite a high concurrency (200-400 invocations). After doing some testing, things seem to go awry when the task timeouts. Right after that I am seeing the mentioned errors. |
The PNG issue for me was happening when using Smart Crop on PNG files utilizing an alpha channel. The Rekognition support attempts to convert these to jpg to send to Rekognition, and since jpg doesn't support alpha channels, it fails. To get around this limitation, I'm trying to redeploy without rekognition enabled, and using only the built-in feature detectors, but having issues with mismatches of libcurl 7.53 in lambda vs 7.55 or 7.61 available via yum in amazon redhat docker used for building. |
I am also getting
|
@peterkuiper Thanks for checking in on this, we're currently working through the testing stages of the new version and hope to have it out shortly. We've replaced the Thumbor image handler library with SharpJS to provide for a truly serverless implementation and reduce the technical debt associated with starting up and running the tornado server within the Lambda function. We are also providing built-in mappings to promote compatibility with existing Thumbor URLs and minimize/prevent any rework from needing to be done on the front-end when upgrading to the new version. |
@hayesry Thanks for the update! Looking forward to test the new version. |
Great news ! Also looking forward to test your new solution ! |
New version please! |
@passledevelopers we were facing the same issue reported by you and also the following error for some requests We found that the png shared libraries are not included in the Lambda zip file. On further checking the build script https://github.com/awslabs/serverless-image-handler/blob/master/deployment/build-s3-dist.sh we confirmed that it's indeed missed in the build process. Hence we added a step for including the libpng* files as part of the build script to the 'lib' folder inside the zip artifact. We deployed this custom artifact to Lambda and now we are not seeing the same errors again. Not sure whether this is the actual solution to the problem discussed here, however you may try. @hayesry could you confirm? |
When are you going to release the fix ? |
Resolved with v4.0.0 |
We are intermittently getting the error below which we are not able to explain.
This URL was previously failing for us, however it now works:
https://d2vjgjl6okzqz8.cloudfront.net/90x278/smart/526535f5afc81614f05b26d2/52652350afc8161e104d5764/2015-03-20-10-35-02-643-01lastarcticice.jpg
We also sometimes get this when using other parameters (eg omitting fit-in). It seems pretty random.
Looking in the CloudWatch logs I find the following messages:
[ERROR] 2018-11-09T18:14:41.970Z 53ead92f-e44b-11e8-8ccd-eb0ffcfa44ce call_thumbor error: tornado server unavailable, proceeding with tornado
server restart
[ERROR] 2018-11-09T18:14:41.970Z 53ead92f-e44b-11e8-8ccd-eb0ffcfa44ce lambda_handler error: too many values to unpack
[ERROR] 2018-11-09T18:14:41.971Z 53ead92f-e44b-11e8-8ccd-eb0ffcfa44ce lambda_handler trace: Traceback (most recent call last):
File "/var/task/image_handler/lambda_function.py", line 353, in lambda_handler
result = call_thumbor(event)
File "/var/task/image_handler/lambda_function.py", line 328, in call_thumbor
thumbor_down, session = is_thumbor_down()
ValueError: too many values to unpack
The stack was built using the following version: serverless-image-handler/v3.0.0/serverless-image-handler.zip
The text was updated successfully, but these errors were encountered: