You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Initializing a SCAR function triggers the creation of the input S3 bucket (defined in the YAML) and the creation of the input folder, which results in triggering the s3:ObjectCreated event and, thus, performing the first invocation to the Lambda function, which results in an execution failure of the supervisor (since it is a folder, not a file):
Steps to reproduce this. YAML definition of a function:
CloudWatch logs of the function (for the first invocation):
2:19
START RequestId: f388accc-5fe3-439c-9115-d0c71129dab0 Version: $LATEST
08:02:19
2019-09-05 08:02:19,210 - supervisor - INFO - Storage event found.
08:02:19
2019-09-05 08:02:19,210 - supervisor - INFO - S3 event created
08:02:19
2019-09-05 08:02:19,211 - supervisor - INFO - Reading storage authentication variables
08:02:19
2019-09-05 08:02:19,211 - supervisor - INFO - SUPERVISOR: Initializing AWS Lambda supervisor
08:02:19
2019-09-05 08:02:19,212 - supervisor - INFO - Found 'S3' input provider
08:02:19
2019-09-05 08:02:19,212 - supervisor - INFO - Downloading input file using 'S3' event
08:02:19
2019-09-05 08:02:19,212 - supervisor - INFO - Downloading item from bucket 'alucloud00-iber' with key 'alucloud00-plants/input/'
08:02:19
[Errno 21] Is a directory: '/tmp/tmp_uolgwjp/': IsADirectoryError Traceback (most recent call last): File "/var/task/alucloud00-plants.py", line 21, in lambda_handler return supervisor.main(event=event, context=context) File "/opt/python/faassupervisor/supervisor.py", line 138, in main return supervisor.run() File "/opt/python/faassupervisor/exceptions.py", line 30, in wrapper re
08:02:19
END RequestId: f388accc-5fe3-439c-9115-d0c71129dab0
08:02:19
REPORT RequestId: f388accc-5fe3-439c-9115-d0c71129dab0 Duration: 3.95 ms Billed Duration: 100 ms Memory Size: 1024 MB Max Memory Used: 68 MB Init Duration: 249.15 ms XRAY TraceId: 1-5d70c10a-7576d5e97aa0bc585b01f307 SegmentId: 50e475aa6ab569e3 Sampled: false
If the creation of the input folder is done before creating the Lambda function (or at least) before defining the bucket as the event source for the Lambda function may solve this.
The text was updated successfully, but these errors were encountered:
Initializing a SCAR function triggers the creation of the input S3 bucket (defined in the YAML) and the creation of the
input
folder, which results in triggering the s3:ObjectCreated event and, thus, performing the first invocation to the Lambda function, which results in an execution failure of the supervisor (since it is a folder, not a file):Steps to reproduce this. YAML definition of a function:
CloudWatch logs of the function (for the first invocation):
If the creation of the input folder is done before creating the Lambda function (or at least) before defining the bucket as the event source for the Lambda function may solve this.
The text was updated successfully, but these errors were encountered: