0

I have automated build with AWS CodePipeline, it worked fine, but suddenly today it started to fail with this weird error message, which I can't fine anywhere to understand what's going on.

Container] 2017/12/26 16:42:52 Waiting for agent ping
[Container] 2017/12/26 16:42:52 Waiting for DOWNLOAD_SOURCE
[Container] 2017/12/26 16:42:53 Phase is DOWNLOAD_SOURCE
[Container] 2017/12/26 16:42:53 Runtime error (*exec.ExitError: exit status 1)

This is during DOWNLOAD_SOURCE Phase, which is blocked me to understand the issue, because this seems to be on AWS's side, not from my deployment configuration.

enter image description here

Is there anybody who is faced same issue, or know how to figure out the problem itself?

Thanks!

1 Answers1

0

I've gone mad with this exact same issue. If you google DOWNLOAD_SOURCE "Runtime error (*exec.ExitError: exit status 1)" it is the ONLY result.

In my case the issue was wrong zip file format.

The correct way of zip-ing up the source is:

cd somedir ; zip -r ../zipped.zip . * ; cd ..

I was using:

zip -r bless_builder.zip somedir/*

In aws codebuild user guide they do mention it:

Important

Do not include the (root directory name) directory, only the directories and files contained in the (root directory name) directory.

But I swear they could be at least more creative with the error code!

Hovercraft Full Of Eels
  • 283,665
  • 25
  • 256
  • 373