'AWS ECS- Task exited automatically with an exit code 0
I am trying to run 1 service in AWS ECS where I am getting "essential container in task exited exit code 0" as error .
While checking the logs , i don't see any logs also
Troubleshooting done:
- Checked in cloud watch/logs/insights on logs (missing)
- Tried to deploy another service as container (running successfully)
- Tried to deploy the same container manually in ECS instance (running successfully)
- Tried with changing Task definition and changing cluster (Not working)
Still only for this 1 service, am getting the same error again and again. While checking for logs also , Am not able to get the logs.
Can anyone suggest what to do here?
The below shows an example of the error .
Solution 1:[1]
The problem got solved.
Was having issue with environment variables , as it was not loading in docker container.
Hence container got up and drains out
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Thejus A P |

