Deploying to elastic beanstalk never completes

nodejs
docker
aws
2.0

#1

Hi,

First of all - Great work on the platform. I have been really impressed with CircleCI and specifically v2.0.

So, today I have built a custom docker container based on the circleci/node:7.10.0 image which adds python, pip and the awsebcli.

After some poking around I have managed to get it to deploy to elastic beanstalk, the issue is it never gets a response from AWS and sits there forever - despite having successfully deployed.

#!/bin/bash -eo pipefail
eb use env-name && eb deploy
WARNING: You have uncommitted changes.
Creating application version archive "app-xxxx-xxxx-xxx".
Uploading env-name/app-xxxx-xxxx-xxx.zip to S3. This may take a while.
Upload Complete.

I’m wondering if there are firewall rules preventing messages coming back in? Any help would be welcome.

Simon


EB deploy not receiving final status update, hence never completes
#2

It’s definitely not a firewall, but this certainly sounds frustrating.

Can you try debugging via SSH and turning on some verbosity? You can append the --verbose flag to your command.


#3

Hi rohara,

Thanks for getting back to me.

So I have issued the command with the verbose flag and this is what I get.

circleci@16093e41497b:~/build$ eb deploy kintra-dev --verbose
INFO: Deploying code to kintra-dev in region us-east-1
INFO: Getting version label from git with git-describe
Creating application version archive "app-db33-170619_070227".
INFO: creating zip using git archive HEAD
INFO: git archive output: .circleci/
.circleci/config.yml
.ebextensions/
.ebextensions/00launch.config
.ebextensions/016_newrelic.config
.ebextensions/01vpc.config
.ebextensions/020nginx_gzip.config
.ebextensions/02node.config
.ebextensions/03ENV.config
.ebextensions/04GitHubDependencies.config
.elasticbeanstalk/
.elasticbeanstalk/config.yml
.gitignore
README.md
config/
config/default.json
gulpfile.js
-- LOTS OF TS Files
tsconfig.json
tslint.json
yarn.lock
INFO: Uploading archive to s3 location: kintra/app-db33-170619_070227.zip
Uploading kintra/app-db33-170619_070227.zip to S3. This may take a while.
Upload Complete.
INFO: Creating AppVersion app-db33-170619_070227

As before the deployment is stuck in CircleCI however it initiates a deployment successfully and completes with absolutely no issues in the AWS Elastic Beanstalk web console.

Let me know if I can debug this any further for you.

Thanks

Simon


#4

Thanks for that info! This is a new issue to me, but it seems like a default value isn’t right for your EB. Could there be default values that don’t match your settings? Is us-east-1 the right region for you?


#5

Hi Rohara,

us-east-1 is the correct region. Here are the defaults I’ve set in .ebextensions in case that helps at all? I’ll keep playing and see.

branch-defaults:
  master:
    environment: kintra-dev
global:
  application_name: kintra
  branch: null
  default_ec2_keyname: xxxx-xxxx-xxxx
  default_platform: 64bit Amazon Linux 2017.03 v4.1.0 running Node.js
  default_region: us-east-1
  instance_profile: null
  platform_name: null
  platform_version: null
  profile: eb-cli
  repository: null
  sc: git
  workspace_type: Application

Thanks

Simon


#6

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.