Skip to content

Instantly share code, notes, and snippets.

@Lard4
Created April 27, 2021 17:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lard4/8a7842c1f138243eacfc789033bd2e4c to your computer and use it in GitHub Desktop.
Save Lard4/8a7842c1f138243eacfc789033bd2e4c to your computer and use it in GitHub Desktop.
Exception when line 42 of previous gist is left uncommented.
2021-04-27T17:25:26.239Z [WARN] (pool-1-thread-4) com.aws.greengrass.lambdamanager.Lambda: The lambda has not reported status within the specified timeout PT1M and will be restarted immediately.. {componentName=DataIngestionLambda}
2021-04-27T17:25:26.240Z [ERROR] (pool-1-thread-4) com.aws.greengrass.lambdamanager.UserLambdaService: service-errored. {serviceInstance=0, serviceName=DataIngestionLambda, currentState=RUNNING}
com.aws.greengrass.lambdamanager.StatusTimeoutException: Lambda status not received within timeout
at com.aws.greengrass.lambdamanager.Lambda.lambda$createInstanceKeepAliveTask$5(Lambda.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
2021-04-27T17:25:26.240Z [INFO] (pool-1-thread-4) com.aws.greengrass.lambdamanager.UserLambdaService: service-report-state. {serviceInstance=0, serviceName=DataIngestionLambda, currentState=RUNNING, newState=ERRORED}
2021-04-27T17:25:26.241Z [INFO] (DataIngestionLambda-lifecycle) com.aws.greengrass.lambdamanager.UserLambdaService: service-set-state. {serviceInstance=0, serviceName=DataIngestionLambda, currentState=RUNNING, newState=ERRORED}
2021-04-27T17:25:26.241Z [INFO] (DataIngestionLambda-lifecycle) com.aws.greengrass.lambdamanager.UserLambdaService: service-report-state. {serviceInstance=0, serviceName=DataIngestionLambda, currentState=ERRORED, newState=STOPPING}
2021-04-27T17:25:26.242Z [INFO] (DataIngestionLambda-lifecycle) com.aws.greengrass.lambdamanager.UserLambdaService: service-set-state. {serviceInstance=0, serviceName=DataIngestionLambda, currentState=ERRORED, newState=STOPPING}
2021-04-27T17:25:26.256Z [INFO] (pool-2-thread-51) com.aws.greengrass.lambdamanager.UserLambdaService: Shutdown initiated. {serviceInstance=0, serviceName=DataIngestionLambda, currentState=STOPPING}
2021-04-27T17:25:26.703Z [INFO] (pool-2-thread-51) com.aws.greengrass.lambdamanager.UserLambdaService: generic-service-shutdown. {serviceInstance=0, serviceName=DataIngestionLambda, currentState=STOPPING}
2021-04-27T17:25:26.722Z [INFO] (DataIngestionLambda-lifecycle) com.aws.greengrass.lambdamanager.UserLambdaService: service-report-state. {serviceInstance=0, serviceName=DataIngestionLambda, currentState=STOPPING, newState=INSTALLED}
2021-04-27T17:25:26.722Z [INFO] (DataIngestionLambda-lifecycle) com.aws.greengrass.lambdamanager.UserLambdaService: service-set-state. {serviceInstance=0, serviceName=DataIngestionLambda, currentState=STOPPING, newState=INSTALLED}
2021-04-27T17:25:26.723Z [INFO] (pool-2-thread-51) com.aws.greengrass.lambdamanager.UserLambdaService: service-awaiting-start. waiting for dependencies to start. {serviceInstance=0, serviceName=DataIngestionLambda, currentState=INSTALLED}
2021-04-27T17:25:26.723Z [INFO] (pool-2-thread-51) com.aws.greengrass.lambdamanager.UserLambdaService: service-starting. {serviceInstance=0, serviceName=DataIngestionLambda, currentState=INSTALLED}
2021-04-27T17:25:26.724Z [INFO] (pool-2-thread-51) com.aws.greengrass.lambdamanager.UserLambdaService: service-report-state. {serviceInstance=0, serviceName=DataIngestionLambda, currentState=INSTALLED, newState=STARTING}
2021-04-27T17:25:26.724Z [INFO] (DataIngestionLambda-lifecycle) com.aws.greengrass.lambdamanager.UserLambdaService: service-set-state. {serviceInstance=0, serviceName=DataIngestionLambda, currentState=INSTALLED, newState=STARTING}
2021-04-27T17:25:26.933Z [INFO] (Copier) com.aws.greengrass.lambdamanager.UserLambdaService: Startup script exited. {exitCode=0, serviceInstance=0, serviceName=DataIngestionLambda, currentState=STARTING}
2021-04-27T17:25:26.934Z [INFO] (Copier) com.aws.greengrass.lambdamanager.UserLambdaService: service-report-state. {serviceInstance=0, serviceName=DataIngestionLambda, currentState=STARTING, newState=RUNNING}
2021-04-27T17:25:26.934Z [INFO] (DataIngestionLambda-lifecycle) com.aws.greengrass.lambdamanager.UserLambdaService: service-set-state. {serviceInstance=0, serviceName=DataIngestionLambda, currentState=STARTING, newState=RUNNING}
2021-04-27T17:25:27.297Z [INFO] (Thread-8) software.amazon.awssdk.eventstreamrpc.RpcServer: New connection code [AWS_ERROR_SUCCESS] for [Id 127, Class ServerConnection, Refs 1](2021-04-27T17:25:27.297Z) - <null>. {}
2021-04-27T17:25:27.298Z [INFO] (Thread-8) software.amazon.awssdk.eventstreamrpc.ServiceOperationMappingContinuationHandler: aws.greengrass#GreengrassCoreIPC authenticated identity: DataIngestionLambda. {}
2021-04-27T17:25:27.299Z [INFO] (Thread-8) software.amazon.awssdk.eventstreamrpc.ServiceOperationMappingContinuationHandler: Connection accepted for DataIngestionLambda. {}
2021-04-27T17:25:27.299Z [INFO] (Thread-8) software.amazon.awssdk.eventstreamrpc.ServiceOperationMappingContinuationHandler: Sending connect response for DataIngestionLambda. {}
2021-04-27T17:25:27.366Z [INFO] (Thread-8) software.amazon.awssdk.eventstreamrpc.RpcServer: Server connection closed code [socket is closed.]: [Id 127, Class ServerConnection, Refs 1](2021-04-27T17:25:27.297Z) - <null>. {}
2021-04-27T17:26:32.794Z [WARN] (pool-1-thread-4) com.aws.greengrass.lambdamanager.Lambda: The lambda has not reported status within the specified timeout PT1M and will be restarted immediately.. {componentName=DataIngestionLambda}
2021-04-27T17:26:32.794Z [ERROR] (pool-1-thread-4) com.aws.greengrass.lambdamanager.UserLambdaService: service-errored. {serviceInstance=0, serviceName=DataIngestionLambda, currentState=RUNNING}
com.aws.greengrass.lambdamanager.StatusTimeoutException: Lambda status not received within timeout
at com.aws.greengrass.lambdamanager.Lambda.lambda$createInstanceKeepAliveTask$5(Lambda.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
2021-04-27T17:26:32.795Z [INFO] (pool-1-thread-4) com.aws.greengrass.lambdamanager.UserLambdaService: service-report-state. {serviceInstance=0, serviceName=DataIngestionLambda, currentState=RUNNING, newState=ERRORED}
2021-04-27T17:26:32.796Z [INFO] (DataIngestionLambda-lifecycle) com.aws.greengrass.lambdamanager.UserLambdaService: service-set-state. {serviceInstance=0, serviceName=DataIngestionLambda, currentState=RUNNING, newState=BROKEN}
2021-04-27T17:26:32.797Z [INFO] (DataIngestionLambda-lifecycle) com.aws.greengrass.status.FleetStatusService: fss-status-update-published. Status update published to FSS. {serviceName=FleetStatusService, currentState=RUNNING}
2021-04-27T17:26:32.804Z [INFO] (DataIngestionLambda-lifecycle) com.aws.greengrass.status.FleetStatusService: fss-status-update-published. Status update published to FSS. {serviceName=FleetStatusService, currentState=RUNNING}
2021-04-27T17:26:32.826Z [INFO] (pool-2-thread-52) com.aws.greengrass.lambdamanager.UserLambdaService: Shutdown initiated. {serviceInstance=0, serviceName=DataIngestionLambda, currentState=BROKEN}
2021-04-27T17:26:33.297Z [INFO] (pool-2-thread-52) com.aws.greengrass.lambdamanager.UserLambdaService: generic-service-shutdown. {serviceInstance=0, serviceName=DataIngestionLambda, currentState=BROKEN}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment