Wercker setup environment step error: Guest command failed with exit code -1: mkdir -p “/pipeline”

138 views Asked by At

I used ubuntu. I see the same question here, but the answer link is wrong. I have the error message :

"Guest command failed with exit code -1: mkdir -p “/pipeline”"

I do not know why. The /pipeline already exits but the -p option should answer that all is ok. Any idea ?

Thanks for your help

2

There are 2 answers

0
Christophe Pruvost On

Actually I deleted the final CDM step in the build of my docker container so the CMD is by default /bin/sh and then the build wercker was successfull.

0
Mark Nelson On

This can happen if the image has its USER parameter set to a non-root user. You can check the user with the command docker inspect ubuntu (or whatever image you are using). What happens is wercker starts up a new container from that image, and because the image has user=bob for example, it is trying to do the mkdir as bob, but bob does not have permission to write to that path.