Lightsail - container "Took too long" to deploy all of a sudden (Nothing in logs)

1

Hello,

yesterday I was able to publish a new container into one of our Lightsails with no issues. Today when I try, the deployment fails, and the only thing visible in the logs says;

[16/Dec/2021:13:49:54] [deployment:13] Creating your deployment

[16/Dec/2021:13:54:28] [deployment:13] Took too long

I have tried multiple of lightsails, and no matter what I try to commit, this happens. I can't debug it further since the log doesnt say anything more than this. Im trying to deploy a container with two images (php + nginx), and both images logs says the same. I have disabled the lightsails and enabled them again and they just revert back to the last working image - which is exactly the same as the one I try to deploy (Except just a minor php echo in the index.php-file which can't have any reason why it's not working..)

What can I do - since the logs are so poor?

  • Region: eu-north-1

    I can't even roll back to a previous working deployment - same issue..

  • I am having the same issue trying to Deploy a spring-boot app docker image. Set the timeout to 120 via CLI, deployment states to be finished after a few seconds, but finally fails after 120 secs with: deployment:12 took too long.

    How did you solve it?

  • Hi, have any progress? I'm facing the same problem and recommendation in answer definitely can't work.

oakleaf
質問済み 2年前2095ビュー
3回答
2

There are two things worth trying:

  1. Adjust the logging on the containers you're trying to deploy. The logs that you see on Lightsail are the same as the logs from the containers themselves (Lightsail just adds a couple logs about deployment status), so if you're not getting enough information, you need to log more from your containers.
  2. Adjust your healthcheck settings. Some containers take longer than the default settings to become healthy. You can adjust your healthcheck settings when you create a deployment. https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_ContainerServiceHealthCheckConfig.html
AWS
Alex
回答済み 2年前
  • I'm facing the same problem. Even redeploying of already worked container service causes the "Took too long". It has nothing to do with logging or health check settings because a service/container simply does not run.

  • Adjust healthcheck settings does the trick, In my case, I am using 1 GB RAM, 0.5 vCPUs with BlitzJS application , timeoutSeconds:60 , intervalSeconds: 120,

0

I went through this problem, your application is taking a long time to start, in my case it is a large application in spring boot. To solve it you have to increase the processing of your cluster, I was increased and testing, when I reached that 1 GB RAM, 0.5 vCPUs worked.

回答済み 2年前
0

I resolved this issue by adding CMD command inside my lauch script. Since my container was running php-fpm I added this code at the end of launch script

set -- php-fpm "$@"
exec "$@"
回答済み 2年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ