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

upload-release fails on Windows machine with home directory starting with a number #305

Closed
theozaurus opened this issue Aug 29, 2017 · 4 comments
Labels

Comments

@theozaurus
Copy link

Hi,

When running on Windows:

bosh2 -e <the env> upload-release <the release>

We get the error

Extracting release:
  Shelling out to tar:
    Running command: 'powershell tar --no-same-owner -xzf <the release> -C C:\Users\439\.bosh\tmp\bosh-release190507123', stdout: '', stderr: '/usr/bin/tar: C\:\\Users#9\\.bosh\tmp\bosh-release190507123: Cannot open: No such file or directory
/usr/bin/tar: Error is not recoverable: exiting now
':
      exit status 1

Exit code 1

It looks like the Users\439 part is getting turned into Users#9. The number 43 in octal corresponds to '#' in ASCII so it looks like this is an escaping issue of some kind.

The expected behavior is to successfully extract the archive and upload the release.

Thanks,

Theo

@Fydon
Copy link
Contributor

Fydon commented Aug 30, 2017

@theozaurus That error is because the folder containing tar.exe isn't in your PATH environment variable. Use BSD tar from bosh-agent, as the tar that comes with Git for Windows (usr\bin folder off the installation) requires building your own release of bosh with this pull request added to it.

@theozaurus
Copy link
Author

Thanks for the hint @Fydon. I've installed BSD Tar and it now works. The error message really doesn't suggest that BSD Tar is required!

@bosh-admin-bot
Copy link

This issue was marked as Stale because it has been open for 21 days without any activity. If no activity takes place in the coming 7 days it will automatically be close. To prevent this from happening remove the Stale label or comment below.

@bosh-admin-bot
Copy link

This issue was closed because it has been labeled Stale for 7 days without subsequent activity. Feel free to re-open this issue at any time by commenting below.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants