I’ve never used eb before and would appreciated any help I can get.
my dockerrun aws json:
{
“AWSEBDockerrunVersion”: “1”,
“Image”: { “Name”: “1234567890.dkr.ecr.eu-west-1.amazonaws.com/projectname:latest” },
“Ports”: [ { “ContainerPort”: “8000” } ],
“Volumes”:
}
I get an error saying:
“[Instance: i-0b88a08b2600e4deb] Command failed on instance. Return code: 1 Output: fa7e87a4cccc50ee0e5181fc6833232bbfcf956530d983360499eb81de11e54f Docker container quit unexpectedly after launch: Docker container quit unexpectedly on Wed Jan 9 08:40:42 UTC 2019:. Check snapshot logs for details. Hook /opt/elasticbeanstalk/hooks/appdeploy/enact/00run.sh failed. For more detail, check /var/log/eb-activity.log using console or EB CLI.”
when I check the /var/log/eb-activity.log it says the following(see 1st comment).
sorry it’s hella long, I tried to cut to the relevant part, but since I’ve never used eb before I might have pasted the wrong section of the log.
If anybody could help me understand what’s happening I would be very grateful!
I tried to make it as less messy as possible.
I think these are the most important warnings:
“note: expected ‘const char *’ but argument is of type ‘yaml_char_t *’” (several times)
“note: expected ‘yaml_char_t *’ but argument is of type ‘char *’” (several times)
" Compiling /tmp/pip-build-SdWJNu/docker/docker/api/mixin.py …
File “/tmp/pip-build-SdWJNu/docker/docker/api/mixin.py”, line 8
base_url: str = ‘’
^
SyntaxError: invalid syntax"
" Running setup.py install for functools32
/usr/local/lib/python2.7/dist-packages/setuptools/dist.py:470: UserWarning: Normalizing ‘3.2.3-2’ to ‘3.2.3.post2’
normalized_version,
warning: no files found matching ‘*.txt’
no previously-included directories found matching ‘build’
no previously-included directories found matching ‘dist’
no previously-included directories found matching ‘.git*’
Could not find .egg-info directory in install record for functools32 (from jsonschema>=2.5.1,<3->docker-compose>=1.21.2,<1.22.0->awsebcli==3.14.4)"
"[2019-01-09T08:40:42.934Z] INFO [3627] - [Application deployment afa-source@1/StartupStage1/AppDeployEnactHook/00run.sh] : Activity execution failed, because: fa7e87a4cccc50ee0e5181fc6833232bbfcf956530d983360499eb81de11e54f
Docker container quit unexpectedly after launch: Docker container quit unexpectedly on Wed Jan 9 08:40:42 UTC 2019:. Check snapshot logs for details. (ElasticBeanstalk::ExternalInvocationError)"
Related discussions: