- Newest
- Most votes
- Most comments
Hi team, finally I found; there was a problem with s3 and the code config; I added this config on my code, when S3 boto3 client is created: config=botocore.config.Config(s3={'addressing_style': 'path'})
.
Thanks to all.
Seems as your function timed out after 5 seconds, have you increased that to lets say 30sec?
Is your lambda in the same VPC as the EFS file system?
I don't know what sort of configuration and exception-handling you have in your code, but is it possible you're getting API request-throttling? Boto3 handles some of this for you, retrying API calls rejected due to throttling and retrying with exponential backoff up to a retry limit. See https://boto3.amazonaws.com/v1/documentation/api/latest/guide/retries.html.
In summary there are 3 modes - Default/Legacy, Standard and Adaptive (experimental). You can configure the mode and number of retries (5 by default). Retrying is exponential backoff base 2.
You can monitor retrying either in Boto3's logging (if enabled) or in the response to API calls. It's not clear from the doco but along with the documented structure returned by each call there's also ResponseMetadata with RetryAttempts in it.
Hi thanks, for you response, I don't have any retrying exception-handling in my code, I can try to add it, but I think that if is a request-throttling problem, I should have gotten some sort of exception (I suppose), instead there aren't log, there are only the logs statement that I wrote in my first post; I have a print statement on first line of code and isn't show at all
Relevant content
- asked 2 years ago
- asked 2 years ago
- asked 5 years ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
Hi Antonio, thanks for your response, yes, I increased it, I also tried with 1 min, the result is the same; yes, the lambda is configured on the same VPC of the EFS, in fact as I said before, it works fine (lambda read and write from EFS) for some execution, but then start to return that error, for some time (or for some execution)