cloudfoundry-attic / bosh-init

bosh-init is a tool used to create and update the Director VM
Apache License 2.0
31 stars 33 forks source link

Failed to download because of "invalid cross-device link" #39

Open bingosummer opened 8 years ago

bingosummer commented 8 years ago

I mounted another disk to /tmp/ and then deployed the bosh. When bosh-init tried to download and rename the tarball, it failed just as the following. Command 'deploy' failed: Failed to download from 'http://cloudfoundry.blob.core.windows.net/bosh/bosh-168+dev.beta.tgz': Saving downloaded file in cache: Failed to save tarball path '/tmp/tarballProvider366191452' in cache: rename /tmp/tarballProvider366191452 /home/azureuser/.bosh_init/downloads/000807c34eda837d17bf2b8701dca8af96a971ca-363a42a0101b9cf822178a959ba36bd4de71c5f3: invalid cross-device link

c.fs.Rename (https://github.com/cloudfoundry/bosh-init/blob/master/installation/tarball/cache.go#L52) can not rename a file across different file system. And maybe c.fs.Move should be implemented.

poblin-orange commented 8 years ago

same issue here, had to workaround by setting TMPDIR in same fs as the user homedir

cppforlife commented 8 years ago

Related story: https://www.pivotaltracker.com/story/show/93295812

bingosummer commented 8 years ago

@cppforlife Has the issue been fixed?