Vagrant 1.9.4 not using ATLAS_TOKEN on Windows 10

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Vagrant 1.9.4 not using ATLAS_TOKEN on Windows 10

Ian Koenig
Setup;

Vagrant 1.9.4 64bit
Windows 10 64bit
2 versions of the boxes loaded into Artifactory named centos73-virtualbox-0.1.0.box & centos73-virtualbox-0.2.0.box.


I am attempting to add a box from a Artifactory Vagrant Repo that requires authentication.   As such I have the ATLAS_TOKEN set in my environment along with VAGRANT_SERVER_URL.

(NOTE:  These have been changed to protect the innocent)


I attempt to add the box using "vagrant box add 'https://artifactory.url/artifactory/api/vagrant/VAGRANT/centos73'".

I get this generic message:
---
==> box: Box file was not detected as metadata. Adding it directly...
A name is required when adding a box file directly. Please pass
the `--name` parameter to `vagrant box add`. See
`vagrant box add -h` for more help.

When I dig into the output from --debug I see this clear error.  

curl: (22) The requested URL returned error: 401 Unauthorized


What am I doing wrong here?

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/6fed8ec4-34c8-4d4f-b3e7-5a0e77cf205b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

vagrant-debug.log (82K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Vagrant 1.9.4 not using ATLAS_TOKEN on Windows 10

Alvaro Miranda Aguilera

On Mon, May 1, 2017 at 11:46 PM, Ian Koenig <[hidden email]> wrote:


If this didn't require auth, you can do:

vagrant box add --name centos73 --provider virtualbox https://artifactory.url/artifactory/api/vagrant/VAGRANT/centos73

If the url requires auth you can try https://user:pass@url/path


--
Alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0exOnnMBvm6eZ0cgp246yejqATYeR5c6iWbKQzAY141jTA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Vagrant 1.9.4 not using ATLAS_TOKEN on Windows 10

Ian Koenig
Thanks Alvaro.   That helped more testing to get to the root cause here.  


The issue is that the Artifactory Vagrant repo was hung up and wasn't indexing the repo location.   



On Tuesday, 2 May 2017 02:36:04 UTC-5, Alvaro Miranda Aguilera wrote:

On Mon, May 1, 2017 at 11:46 PM, Ian Koenig <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="qfZFiuQZBgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">iguy...@...> wrote:
vagrant box add '<a href="https://artifactory.url/artifactory/api/vagrant/VAGRANT/centos73" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fartifactory.url%2Fartifactory%2Fapi%2Fvagrant%2FVAGRANT%2Fcentos73\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE_MxNxQZfpCl8eP_7RsRQ9xU_kjw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fartifactory.url%2Fartifactory%2Fapi%2Fvagrant%2FVAGRANT%2Fcentos73\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE_MxNxQZfpCl8eP_7RsRQ9xU_kjw&#39;;return true;">https://artifactory.url/artifactory/api/vagrant/VAGRANT/centos73'".


If this didn't require auth, you can do:

vagrant box add --name centos73 --provider virtualbox <a href="https://artifactory.url/artifactory/api/vagrant/VAGRANT/centos73" style="font-size:12.8px" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fartifactory.url%2Fartifactory%2Fapi%2Fvagrant%2FVAGRANT%2Fcentos73\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE_MxNxQZfpCl8eP_7RsRQ9xU_kjw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fartifactory.url%2Fartifactory%2Fapi%2Fvagrant%2FVAGRANT%2Fcentos73\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE_MxNxQZfpCl8eP_7RsRQ9xU_kjw&#39;;return true;">https://artifactory.url/artifactory/api/vagrant/VAGRANT/centos73

If the url requires auth you can try https://user:pass@url/path


--
Alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/957c96cb-ed9d-46cb-ba58-5ff5b1389e9f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.