Hello Giks,
Hope all doing good.
I'm facing issue while running a serverless application Lambda function. I used this application to download files from remote node and store it to S3 bucket. it was working fine previously, all of sudden it stop fetching files source location. while debugging issue I observe that it was a lot of time complete a test event. In the CloudWatch logs I'm getting below error logs.
***START RequestId: 052226a9-5344-45f1-88bf-5c00242baee0 Version: $LATEST
END RequestId: 052226a9-5344-45f1-88bf-5c00242baee0
REPORT RequestId: 052226a9-5344-45f1-88bf-5c00242baee0 Duration: 180625.18 ms Billed Duration: 180000 ms Memory Size: 192 MB Max Memory Used: 193 MB Init Duration: 587.37 ms
XRAY TraceId: 1-626104fb-16ae94a33273f6404d180e41 SegmentId: 1010be2c3227cfab Sampled: true
REPORT RequestId: 052226a9-5344-45f1-88bf-5c00242baee0 Duration: 180625.18 ms Billed Duration: 180000 ms Memory Size: 192 MB Max Memory Used: 193 MB Init Duration: 587.37 ms XRAY TraceId: 1-626104fb-16ae94a33273f6404d180e41 SegmentId: 1010be2c3227cfab Sampled: true
2022-04-21T07:20:17.417Z 052226a9-5344-45f1-88bf-5c00242baee0 Task timed out after 180.63 seconds***
I have tried increasing memory and timeout parameter but still getting same error.
In X-Ray Trace Logs getting below response.
serverlessrepo-JumpCloud--DirectoryInsightsFunctio-fgqp218AtLpYAWS::Lambda
serverlessrepo-JumpCloud--DirectoryInsightsFunctio-fgqp218AtLpY
OK
202
17ms
Dwell Time
OK
47ms
Attempt #1
Error (4xx)
200
3.03min
Attempt #2
Error (4xx)
200
3.00min
Attempt #3
Error (4xx)
200
3.00min
serverlessrepo-JumpCloud--DirectoryInsightsFunctio-fgqp218AtLpYAWS::Lambda::Function
serverlessrepo-JumpCloud--DirectoryInsightsFunctio-fgqp218AtLpY
Error (4xx)
3.01min
Initialization
OK
587ms
Invocation
Error (4xx)
3.01min
serverlessrepo-JumpCloud--DirectoryInsightsFunctio-fgqp218AtLpY
Error (4xx)
3.00min
Initialization
OK
611ms
Invocation
Error (4xx)
3.00min
serverlessrepo-JumpCloud--DirectoryInsightsFunctio-fgqp218AtLpY
Error (4xx)
3.00min
Initialization
OK
549ms
Invocation
Error (4xx)
3.00min
Can anyone advise if anything I missed to debug.
Thanks,
Aman