Action failed: Bootstrap AWS CodeDeploy

codedeploy
aws
known-issue

#1

I submitted a support request for this but I’m curious if anyone else using AWS CodeDeploy is seeing the same thing.

I’m getting this failure in the “Bootstrap AWS CodeDeploy” step of my build. None of it seems especially relevant to my circle.yml setup:

cd "/tmp"
export HOME="/home/ubuntu"
if [ "XfunctionX" == "X$(type -t deactivate)X" ]; then deactivate;fi && /home/ubuntu/.pyenv/bin/pyenv global system && pip install https://s3.amazonaws.com/circle-support-bucket/circle-sds-support-0.8.1.tar.gz && /home/ubuntu/.pyenv/bin/pyenv rehash
bash: line 0: cd: /home/ubuntu/niemeyer//tmp: No such file or directory
bash: line 2: /home/ubuntu/.pyenv/bin/pyenv: No such file or directory

cd "/tmp"
export HOME="/home/ubuntu"
if [ "XfunctionX" == "X$(type -t deactivate)X" ]; then deactivate;fi && /home/ubuntu/.pyenv/bin/pyenv global system && pip install https://s3.amazonaws.com/circle-support-bucket/circle-sds-support-0.8.1.tar.gz && /home/ubuntu/.pyenv/bin/pyenv rehash
returned exit code 127

Action failed: Bootstrap AWS CodeDeploy

#2

Yeah, getting the exact same thing! Were you provided a solution for it, perchance?


#3

I managed to work around the problem by adding this to my circle.yml:

dependencies:
  pre:
    # Workaround for odd bug showing up in CircleCI build 14
    - ln -s /opt/circleci/.pyenv /home/ubuntu/.pyenv
    - sudo apt-get install python-pip

Not sure why this would work, but it does for me so far…


#4

Thanks @timgilbert! Works for me as well… :slight_smile:


#5

Thank you so much for posting this workaround, this bug has been cropping up more and more lately. We will dig into it and figure out why this is happening.


#6

No prob, let me know if there’s anything I can help with to diagnose this problem.


#7