我Dockerrun.aws.json無法啓動彈性豆莖的多容器實例
{
"AWSEBDockerrunVersion": 2,
"Authintication": {
"Bucket": "abc",
"key": "config.json"
},
"containerDefinitions": [
{
"name": "data",
"image": "id.dkr.ecr.eu-west-2.amazonaws.com/dbdata:latest",
"essential": false,
"memory": 512,
"command" : [
"/bin/bash"
]
},
{
"name": "codebase",
"image": "id.dkr.ecr.eu-west-2.amazonaws.com/codebase:latest",
"essential": false,
"memory": 512,
"command" : [
"/bin/bash"
]
},
{
"name": "postgres",
"image": "id.dkr.ecr.eu-west-2.amazonaws.com/postgres:latest",
"essential": true,
"memory": 1024,
"volumesFrom": [
{
"sourceContainer": "data"
}
],
"portMappings": [
{
"hostPort": 5432,
"containerPort": 5432
}
],
"links": [
"data"
]
},
{
"name": "boxer-api",
"image": "id.dkr.ecr.eu-west-2.amazonaws.com/boxer-api:latest",
"essential": true,
"memory": 1024,
"volumesFrom": [
{
"sourceContainer": "codebase"
}
],
"portMappings": [
{
"hostPort": 8080,
"containerPort": 8080
}
],
"links": [
"codebase",
"postgres",
"data"
]
}
]
}
錯誤EB-activity.log
[2017-04-05T08:29:00.728Z] INFO [3738 ] - [應用程序部署 首先
[email protected]/StartupStage1/AppDeployEnactHook/02update-credentials.sh]:
星婷活動... [2017-04-05T08:29:00.913Z] INFO [3738] -
[應用程序部署首先
[email protected]/StartupStage1/AppDeployEnactHook/02update-credentials.sh]:
已完成的活動。 [2017-04-05T08:29:00.914Z]信息[3738] - [應用程序部署首先 [email protected]/StartupStage1/AppDeployEnactHook/03start-task.sh]:開始 活動... [2017-04-05T08 :30:37.520Z] INFO [3738] - [應用程序部署First [email protected]/StartupStage1/AppDeployEnactHook/03start-task.sh]:活動 執行失敗,因爲:+。 /opt/elasticbeanstalk/hooks/common.sh
+ RETRY = 0 +開始initctl的EB-ECS EB_EVENT_FILE =/TMP/eventsfile20170405-3738-17c2sc0 initctl的:作業未能啓動+ '[' -f /等/elasticbeanstalk/.eb-ecs-start-no-retry']'+ warn'無法啓動ECS任務,正在重試...'+ echo'無法啓動ECS任務,正在重試...'無法啓動ECS任務,重試... + eventHelper.py --msg'無法啓動ECS任務,正在重試...' - 嚴重程度WARN + RETRY = 1 +睡眠3 +'['1 -gt 1']'+ initctl start eb -ecs
EB_EVENT_FILE =/tmp/eventsfile20170405-3738-17c2sc0 initctl:作業啓動失敗+'['-f /etc/elasticbeanstalk/.eb-ecs-start-no-retry']'+ warn'Failed啓動ECS任務,重試.. '+ echo'無法啓動ECS任務,正在重試...'無法啓動ECS任務,正在重試... + eventHelper.py --msg'無法啓動ECS任務,正在重試...' - 嚴重程度WARN + RETRY = 2 + sleep 3 +'['2 -gt 1']'+ error_exit'重試2次後無法啓動ECS任務。' 1 +錯誤「重試2次後無法啓動ECS任務」。 + echo'重試2次後無法啓動ECS任務'。無法啓動
重試2次後的ECS任務。 + eventHelper.py --msg'重試2次後無法啓動ECS任務'。 - 嚴重性錯誤+退出1 (ElasticBeanstalk :: ExternalInvocationError)由+引起。 /opt/elasticbeanstalk/hooks/common.sh + RETRY = 0 + initctl start eb-ecs EB_EVENT_FILE =/tmp/eventsfile20170405-3738-17c2sc0 initctl:作業啓動失敗+'['-f /etc/elasticbeanstalk/.eb- ecs-start-no-retry']'+ warn'無法啓動ECS任務,正在重試...'+ echo'無法啓動ECS任務,正在重試...'無法啓動ECS任務,正在重試... + eventHelper .py --msg'無法啓動ECS任務,正在重試...' - 嚴重程度WARN + RETRY = 1 + sleep 3 +'['1 -gt 1']'+ initctl start eb-ecs
EB_EVENT_FILE =/tmp/eventsfile20170405-3738-17c2sc0 initctl:作業啓動失敗+'['-f /etc/elasticbeanstalk/.eb-ecs-start-no-retry']'+ warn'無法啓動ECS任務,正在重試。 ..'+ echo'無法啓動ECS任務,正在重試...'無法啓動ECS任務,正在重試... + eventHelper.py --msg'未能啓動ECS任務,正在重試...' - 嚴重程度WARN + RETRY = 2 + sleep 3 +'['2 -gt 1']'+ error_ex它'重試2次後無法啓動ECS任務'。 1 +錯誤「重試2次後無法啓動ECS任務」。 + echo'重試2次後無法啓動ECS任務。'無法啓動
重試2次後的ECS任務。 + eventHelper.py --msg'重試2次後無法啓動ECS任務'。 --severity ERROR +出口1(執行人:: NonZeroExitStatus)
ECS代理日誌:
2017-04-05T09:13:11Z [INFO]中保存狀態! module =「statemanager」
2017-04-05T09:13:11Z [INFO]拉出容器postgres(id.dkr.ecr.eu-west-2.amazonaws.com/postgres:latest)(PULLED->運行)。鎖定採集和拉動需要233ns。
2017-04-05T09:13:11Z [CRITICAL]任務處於不良狀態;它不是穩定狀態,但沒有容器需要轉換module =「TaskEngine」task =「awseb-ebsBoxer-env-y9jmnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn郵件地址:狀態:(NONE-> RUNNING)容器:[codebase(STOPPED-> RUNNING),postgres(PULLED-> RUNNING),data(STOPPED-> RUNNING),]「
2017-04-05T09:13 :11Z [CRITICAL]由於狀態不佳,移動任務停止=「TaskEngine」task =「awseb-ebsBoxer -env-y9jmnnnnnnnnnn:3 arn:aws:ecs:eu-west-2:443611395156:task/f510bd3f-5b97- 4fbe-af6c-61e037b08a29,狀態:(NONE-> RUNNING)容器:[codebase(STOPPED-> RUNNING),postgres(PULLEDRUNNING),data(STOPPED-> RUNNING),]「2017-04-05T09:13:11Z [ INFO] Task change event module =「TaskEngine」event =「{TaskArn:arn:aws:ecs:eu-west-2:443611395156:task/f510bd3f-5b97-4fbe-af6c-61e037b08a29 Status:STOPPED Reason:Task:awseb- ebsBoxer-env-y9jmnnjnnm:3 arn:aws:ecs:eu-west-2:4 43611395156:task/f510bd3f-5b97-4fbe-af6c-61e037b08a29,狀態:(STOPPEDSTOPPED)容器:[codebase(STOPPED-> STOPPED),postgres(STOPPED STOPPED),data(STOPPED-> STOPPED)]]「
如果您需要更多信息,請讓我知道。
創建的默認實例是一個micro。容器主機上是否有足夠的內存來運行所有三個docker容器? – neowulf33