Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot stat '/packer-files/upload321089613': No such file or directory #2436

Closed
evadnoob opened this issue Jul 13, 2015 · 5 comments · Fixed by #2807
Closed

cannot stat '/packer-files/upload321089613': No such file or directory #2436

evadnoob opened this issue Jul 13, 2015 · 5 comments · Fixed by #2807
Assignees

Comments

@evadnoob
Copy link

I'm having issues getting the docker builder/provisioning working. The symptom appears to be that packer "hangs" waiting for the exit code from a command in the container.

run:

PACKER_LOG=1 packer build minimal_docker_ubuntu.json

I have created a gist with the log and a couple of docker builds that are having the issue.
https://gist.github.com/evadnoob/38c5720937c5286ef61b

docker version
Client version: 1.7.0
Client API version: 1.19
Go version (client): go1.4.2
Git commit (client): 0baf609
OS/Arch (client): darwin/amd64
Server version: 1.7.0
Server API version: 1.19
Go version (server): go1.4.2
Git commit (server): 0baf609
OS/Arch (server): linux/amd64
packer version
Packer v0.8.1
@evadnoob
Copy link
Author

I see this same issue now: #901

@cbednarski
Copy link
Contributor

@evadnoob Thanks, reopening this since the previous issue was closed but not resolved.

@kudos
Copy link

kudos commented Jul 15, 2015

I'm having this exact same issue.

root@9c28a69dc872:/# cat packer-files/cmd987799172
cp: cannot stat '/packer-files/upload512058233': No such file or directory

I've tried with Docker running in latest Virtualbox 4 and VMWare Fusion 7.1.2, but I haven't tried a Docker older than 1.7.0 yet.

@evadnoob
Copy link
Author

Just for the record I was using older docker 1.6.x, same issue.

@rbclark
Copy link

rbclark commented Jul 29, 2015

Exact same here as well on OSX 10.10.4 with packer 0.8.2 and docker 1.7.1

root@514e07ad6cb9:/# cat packer-files/cmd550444073
cp: cannot stat '/packer-files/upload413803378': No such file or directory

@markpeek markpeek self-assigned this Oct 5, 2015
markpeek added a commit to markpeek/packer that referenced this issue Oct 6, 2015
When using docker-machine on a Mac only the /Users folder is shared with
the VM. Uploads fail since the normal tmpdir is not shared. This change
uses the local packer directory (usually when run in the users home
folders) allowing it to work without setting TMPDIR explicitly. A better
fix would be to use the docker API directly but that would force users
to use docker API version 20+.
This fixes hashicorp#901, fixes hashicorp#1752, fixes hashicorp#2436, fixes hashicorp#2675, fixes hashicorp#2697.
markpeek added a commit to markpeek/packer that referenced this issue Oct 7, 2015
When using docker-machine on a Mac only the /Users folder is shared with
the VM. Uploads fail since the normal tmpdir is not shared. This change
uses the local packer directory (usually when run in the users home
folders) allowing it to work without setting TMPDIR explicitly. A better
fix would be to use the docker API directly but that would force users
to use docker API version 20+.
- fixes hashicorp#901, fixes hashicorp#1752, fixes hashicorp#2436, fixes hashicorp#2675, fixes hashicorp#2697.
markpeek added a commit to markpeek/packer that referenced this issue Oct 7, 2015
When using docker-machine on a Mac only the /Users folder is shared with
the VM. Uploads fail since the normal tmpdir is not shared. This change
uses the local packer directory (usually when run in the users home
folders) allowing it to work without setting TMPDIR explicitly. A better
fix would be to use the docker API directly but that would force users
to use docker API version 20+.
- fixes hashicorp#901, fixes hashicorp#1752, fixes hashicorp#2436, fixes hashicorp#2675, fixes hashicorp#2697.
lolindrath pushed a commit to lolindrath/packer that referenced this issue Oct 14, 2015
When using docker-machine on a Mac only the /Users folder is shared with
the VM. Uploads fail since the normal tmpdir is not shared. This change
uses the local packer directory (usually when run in the users home
folders) allowing it to work without setting TMPDIR explicitly. A better
fix would be to use the docker API directly but that would force users
to use docker API version 20+.
- fixes hashicorp#901, fixes hashicorp#1752, fixes hashicorp#2436, fixes hashicorp#2675, fixes hashicorp#2697.
@ghost ghost locked and limited conversation to collaborators Apr 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants