Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Bamboo Docker task(daemon) failed to execute "mkdir" command

Fahd
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 11, 2015

Error:

build	11-Aug-2015 15:40:07	Sending build context to Docker daemon 

error	11-Aug-2015 15:40:07	time="2015-08-11T13:40:07Z" level=fatal 
msg="Error: mkdir /mnt/docker/tmp/docker-build261033587: no such file or
 directory" 

simple	11-Aug-2015 15:40:07	Failing task since return code of [/usr/bin/docker
 build --force-rm=true --tag="bamboo/XXXXX-XXXXX:221" 
/home/bamboo/bamboo-agent-home/xml-data/build-dir/XXXX-BUILD-JOB1/application/build/distributions] was 1 while expected 0

This is executed in EC2 instance using Atlassian Ubuntu stock image. Restarting Docker service manually in SSH session seem to fix the problem in that running EC2 instance.

5 answers

1 accepted

3 votes
Answer accepted
Michael Van Diest
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 23, 2015

 

You can actually just do the following in the Instance Startup Script:

$ sudo /etc/init.d/docker restart

Not sure why the docker service doesn't come up properly on it's own. But adding this fixed my issue.

reiner August 23, 2015

Thank you! I forgot to come back to this issue and add this step to the instance startup script entry to my answer.

1 vote
reiner August 18, 2015

By following these steps (all the way at the bottom of the page) in the Bamboo instance:

sudo -i
#stop the docker daemon
service docker stop
#remove the broken devicemapper files
rm -rf /var/lib/docker 
service docker start
0 votes
Dan DeMaggio
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 21, 2015

Have the same problem. Seems to be in the way they remount /home to be the ephemeral drives. Docker containers see the empty /home that is "underneath" the mounted /home that has bamboo stuff on it. Very annoying.

0 votes
reiner August 18, 2015

My Docker task also failed to executed the "mkdir" command.

0 votes
Michael Van Diest
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 16, 2015

Just started having the same problem. Even after launching a few new ec2s. Is this an ubuntu issue? Did the AMI for ubuntu change recently introducing this issue? Not sure...

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Upcoming Bamboo Events