So, yes, clearly the tasks are being stopped but I can't understand the reason why. The logs don't give me any information. The only message I see in the task is "Essential container in task exited" and in the logs "Switch to inspect mode".
I tried to deploy a previous version of the app, to make sure it was stable, and still didn't create the image.
I changed the grace period and the image still didn't appear in the EC2 instance.
I think everything points to my app itslef malfuctioning, but locally I can run the image just fine and same with docker-compose.
I don't want to spam so much this thread so if you prefer, we can chat directly. Thank you a lot!
Sorry for the delayed reply. It's been a long week at work. I think what you have to do is SSH to the EC2 instance directly. Then, do docker ps and find the container. If it's not there, do docker ps -a to see containers who recently died. Try to do docker log <chash> first.
Then, try to revive the container via docker start <chash>, and then you'd be able to go inside the container via docker exec -it <chash>. Then, explore your app. Look for log files that may contain clues to why your app failed.
If you prefer, you can also send screenshots of your task to me (via PM). [mycluster > myservice > tasks > click on one of the tasks].
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Raphael! Thank you again for the help.
So, yes, clearly the tasks are being stopped but I can't understand the reason why. The logs don't give me any information. The only message I see in the task is "Essential container in task exited" and in the logs "Switch to inspect mode".
I tried to deploy a previous version of the app, to make sure it was stable, and still didn't create the image.
I changed the grace period and the image still didn't appear in the EC2 instance.
I think everything points to my app itslef malfuctioning, but locally I can run the image just fine and same with docker-compose.
I don't want to spam so much this thread so if you prefer, we can chat directly. Thank you a lot!
Hi Nico,
Sorry for the delayed reply. It's been a long week at work. I think what you have to do is SSH to the EC2 instance directly. Then, do
docker psand find the container. If it's not there, dodocker ps -ato see containers who recently died. Try to dodocker log <chash>first.Then, try to revive the container via
docker start <chash>, and then you'd be able to go inside the container viadocker exec -it <chash>. Then, explore your app. Look for log files that may contain clues to why your app failed.If you prefer, you can also send screenshots of your task to me (via PM). [mycluster > myservice > tasks > click on one of the tasks].