git - AWS EB Deploy ERROR: Script /opt/elasticbeanstalk/hooks/appdeploy/pre/10_bundle_install.sh failed with returncode 18 -
i'm getting error when trying deploy new version using eb deploy. appears if new git version being uploaded. however, it's not being deployed correctly. can show config files environment. i'm not sure look. i've searched many places find out. thanks,
eb deploy creating application version archive "v0_9_2-78-g5ed5". uploading ujoin-www/v0_9_2-78-g5ed5.zip s3. may take while. upload complete. info: environment update starting. info: deploying new version instance(s). error: script /opt/elasticbeanstalk/hooks/appdeploy/pre/10_bundle_install.sh failed returncode 18 error: [instance: i-2ad238d5 module: awsebautoscalinggroup configset: null] command failed on instance. return code: 1 output: error occurred during build: command hooks failed . info: command execution completed on instances. summary: [successful: 0, failed: 1]. info: new application version deployed running ec2 instances. error: update environment operation complete, errors. more information, see troubleshooting documentation. error: update environment operation complete, errors. more information, see troubleshooting documentation. vipul$ eb deploy --debug 2015-05-11 11:06:27,291 (debug) eb : logging initialized 'eb' using loggingloghandler 2015-05-11 11:06:27,291 (debug) cement.ext.ext_plugin : plugin config dir /etc/eb/plugins.d not exist. 2015-05-11 11:06:27,292 (debug) cement.ext.ext_plugin : plugin config dir /users/vipul/.eb/plugins.d not exist. 2015-05-11 11:06:27,294 (debug) eb : collecting arguments/commands <ebcli.core.base.ebbasecontroller object @ 0x10e633950> 2015-05-11 11:06:27,298 (debug) eb : collecting arguments/commands <ebcli.controllers.deploy.deploycontroller object @ 0x10e6387d0> -- ebcli version: 3.4 -- python version: 2.7.6 (default, sep 9 2014, 15:04:36) [gcc 4.2.1 compatible apple llvm 6.0 (clang-600.0.39)] 2015-05-11 11:06:27,304 (debug) ebcli.core.fileoperations : project root found at: /users/vipul/sites/ujoin-www 2015-05-11 11:06:27,514 (debug) ebcli.objects.sourcecontrol : git version: git version 2.2.0 2015-05-11 11:06:27,754 (debug) ebcli.objects.sourcecontrol : git symbolic-ref result: refs/heads/master 2015-05-11 11:06:27,755 (debug) ebcli.core.fileoperations : project root found at: /users/vipul/sites/ujoin-www 2015-05-11 11:06:27,758 (debug) ebcli.core.fileoperations : project root found at: /users/vipul/sites/ujoin-www 2015-05-11 11:06:27,761 (debug) ebcli.core.fileoperations : project root found at: /users/vipul/sites/ujoin-www 2015-05-11 11:06:27,771 (debug) ebcli.objects.sourcecontrol : git version: git version 2.2.0 2015-05-11 11:06:27,777 (debug) ebcli.objects.sourcecontrol : git symbolic-ref result: refs/heads/master 2015-05-11 11:06:27,777 (debug) ebcli.core.fileoperations : project root found at: /users/vipul/sites/ujoin-www 2015-05-11 11:06:27,780 (debug) ebcli.core.fileoperations : project root found at: /users/vipul/sites/ujoin-www 2015-05-11 11:06:27,783 (debug) ebcli.core.fileoperations : project root found at: /users/vipul/sites/ujoin-www 2015-05-11 11:06:27,786 (debug) ebcli.core.fileoperations : project root found at: /users/vipul/sites/ujoin-www 2015-05-11 11:06:27,790 (debug) ebcli.core.fileoperations : project root found at: /users/vipul/sites/ujoin-www 2015-05-11 11:06:27,802 (debug) ebcli.objects.sourcecontrol : git version: git version 2.2.0 2015-05-11 11:06:27,812 (debug) ebcli.objects.sourcecontrol : git symbolic-ref result: refs/heads/master 2015-05-11 11:06:27,813 (debug) ebcli.core.fileoperations : project root found at: /users/vipul/sites/ujoin-www 2015-05-11 11:06:27,818 (debug) ebcli.lib.aws : creating new botocore session 2015-05-11 11:06:27,818 (debug) ebcli.lib.aws : botocore version: 0.93eb 2015-05-11 11:06:27,820 (debug) ebcli.lib.aws : creating new botocore client elasticbeanstalk 2015-05-11 11:06:28,013 (debug) ebcli.lib.aws : created session elasticbeanstalk 2015-05-11 11:06:28,013 (info) eb : deploying code ujoin-stage-green in region us-east-1 2015-05-11 11:06:28,013 (debug) ebcli.core.fileoperations : project root found at: /users/vipul/sites/ujoin-www 2015-05-11 11:06:28,029 (debug) ebcli.core.fileoperations : project root found at: /users/vipul/sites/ujoin-www 2015-05-11 11:06:28,233 (debug) ebcli.objects.sourcecontrol : git diff --numstat result: errors: 2015-05-11 11:06:28,233 (info) eb : getting version label git git-describe 2015-05-11 11:06:28,505 (debug) ebcli.core.fileoperations : project root found at: /users/vipul/sites/ujoin-www 2015-05-11 11:06:28,509 (debug) ebcli.core.fileoperations : project root found at: /users/vipul/sites/ujoin-www 2015-05-11 11:06:28,509 (debug) ebcli.lib.elasticbeanstalk : inside get_application_versions api wrapper 2015-05-11 11:06:28,510 (debug) ebcli.lib.aws : making api call: (elasticbeanstalk, describe_application_versions) region: us-east-1 args:{'applicationname': 'ujoin-www'}
it turned out version of ruby on development environment different 1 on eb server. changed gem file match server ruby version , worked.
Comments
Post a Comment