Deployment times out with timeout flag set


#1

I am running a node.js app on AWS Elastic Beanstalk. My deployment script is pretty much just eb deploy.
When the deployment takes more than 10mins I get a timeout and the build fails. So I set the timeout in my circle.yml file to 20mins for that operation. But I still get the same timeout after 10mins.

This is my circle.yml:

machine:
  node:
    version: 4.2.4

dependencies:
    pre:
        - sudo apt-get update; sudo apt-get install curl pkg-config
        - curl -s https://raw.githubusercontent.com/lovell/sharp/master/preinstall.sh | sudo bash -
        - sudo pip install awsebcli

general:
    artifacts:
        - "coverage"

deployment:
    test:
        branch: test
        commands:
            - /bin/bash build_scripts/deploy_to_eb.sh:
                timeout: 1200

    development:
        branch: development
        commands:
            - /bin/bash build_scripts/deploy_to_eb.sh:
                timeout: 1200

    staging:
        branch: staging
        commands:
            - /bin/bash build_scripts/deploy_to_eb.sh:
                timeout: 1200

    production:
        branch: master
        commands:
            - /bin/bash build_scripts/deploy_to_eb.sh:
                timeout: 1200

#2

Did you ever get this issue resolved?


#3

Sort of. Turned out that the timeout that occurred during the “eb deploy” command and the timeout was triggered by the AWS tool. It was just very confusing that there was also a hint from CircleCI to adjust the timeout setting for this command, which I did. But it was still failing until I changed the timeout for the eb deploy command (its now “eb deploy --timeout 20”).


#5