-
Notifications
You must be signed in to change notification settings - Fork 38
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
AWS Lambda: File not found #218
Comments
Hi @paulalex, did you recently upgrade kaleido? There is a prelease version of kaleido out that might cause this error but you would only get it if you used That said, I really appreciate this error report. The problem is that ubuntu/snap is now segmenting temporary files by process so that |
Furthermore, @paulalex, the old version pulled in chromium on install but the new version asks you to install it yourself. Another reason you might stay with the old version, but the new version will ultimately be significantly faster for generating many images which may save you money on AWS Lambda. We can also add an override for the tempfile path ( |
@ayjayt Tomorrow I will get the production image from ECR and login in locally so I can print all of the dependencies out, I re-ran an existing report on prod and it built fine, so this is currently only happening in dev so I assume its dependency related. I did try pinning to some versions at the top of the stack for Kaleido and plotly to see if it was as simple as the last version but that didn't work so I will need to dig deeper but I will report back with my findings tomorrow. Thanks for the reply. |
@ayjayt, I have looked at the requirements.txt file which is inside the container (generated from a pip file) and it has the following dependencies for
However the dev environment image has the following dependencies (exactly as you assumed):
My pip file does have |
Hi! I think we will have some other options for you by tomorrow, maybe EOD today. |
@paulalex, a new version of kaleido was pushed- it is not a rc so unless you pin, all your systems will use it. This version of kaleido requires chrome to be installed separately. It now tries to detect if the user is using canonical's |
I have been using plotly and kaleido for generating reports in AWS lambda for well over a year now and its suddenly erroring on the report generation:
I do not reference
/home
anywhere and previously was not seeing this error. Is there any way I can override the use of/home
, I fixed tempfiles temp dir to/tmp
but this still does not stop the error. I do not understand why this has started happening out of the blue.The text was updated successfully, but these errors were encountered: