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

An error occurred while downloading the remote file. The error message, if any, is reproduced below. Please fix this error and try again. #12492

Closed
Jpanda124 opened this issue Aug 12, 2021 · 3 comments

Comments

@Jpanda124
Copy link

Good evening!

We are using Vagrant and Oracle Virtual machine to build virtual box for our application team .

Getting below error while downloading vagrant box from our Artifactory .

image

image

Manually we can download the box , also through "curl " command we can download box .
Pointing the box url on local file is working fine .
anvm.vm.box_url = "file:///C:/Devops/Vagrant//analytics.box"

Any help is appreciated .Thanks

@chrisroberts
Copy link
Member

Hi there,

Setting the VAGRANT_SERVER_ACCESS_TOKEN_BY_URL will likely resolve the issue you are encountering. This is due to a change in how Vagrant authenticates with Vagrant Cloud that artifactory does not support. Setting that environment variable will revert Vagrant to its old behavior.

https://www.vagrantup.com/docs/other/environmental-variables#vagrant_server_access_token_by_url

Cheers!

@Jpanda124
Copy link
Author

@chrisroberts : Thanks for the response but this didn't resolve my issue .

I added below to vagrant file
ENV['VAGRANT_SERVER_ACCESS_TOKEN_BY_URL']="https://dmz.artifactory.com/artifactory/api/vagrant"

image

still getting the same error .
image

Please help.

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants