Skip to content

Vagrant fails to download public boxes or get metadata when auth token has expired #13703

@Stromweld

Description

@Stromweld

Debug output

none

Expected behavior

fetching of box and bringing up vm regardless of auth status for public boxes

Actual behavior

fails to fetch metadata or download a box with 401 error

Reproduction information

Vagrant version

2.4.8

Host operating system

MacOS 15.6 M3 MBP

Guest operating system

bento/almalinux-9

Steps to reproduce

  1. Set env variable VAGRANT_CLOUD_TOKEN with expired session auth token
  2. Try to bring up any vagrant box not already found on the workstation

Vagrantfile

Vagrant.configure("2") do |c|
  c.berkshelf.enabled = false if Vagrant.has_plugin?("vagrant-berkshelf")
  c.vm.box = "bento/almalinux-9"
  c.vm.hostname = "default-almalinux-9.vagrantup.com"
  c.vm.synced_folder ".", "/vagrant", disabled: true
  c.vm.synced_folder "/Users/corey.hemminger/.kitchen/cache", "/tmp/omnibus/cache", create: true
  c.vm.provider :virtualbox do |p|
    p.name = "kitchen-test-default-almalinux-9-8f421b51-925f-42ce-a4da-05f5f4dff419"
    p.customize ["modifyvm", :id, "--audio", "none"]
  end
end

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions