hashicorp/vagrant · error
vagrant.box_version_malformed
Error message
vagrant.box_version_malformed
What it means
Error "vagrant.box_version_malformed" thrown in hashicorp/vagrant.
Source
Thrown at lib/vagrant/box_collection.rb:248
@logger.debug("Finding all boxes in: #{@directory}")
@directory.children(true).each do |child|
# Ignore non-directories, since files are not interesting to
# us in our folder structure.
next if !child.directory?
box_name = undir_name(child.basename.to_s)
# Otherwise, traverse the subdirectories and see what versions
# we have.
child.children(true).each do |versiondir|
next if !versiondir.directory?
next if versiondir.basename.to_s.start_with?(".")
version = versiondir.basename.to_s
# Ensure version of box is correct before continuing
if !Gem::Version.correct?(version)
ui = Vagrant::UI::Prefixed.new(Vagrant::UI::Colored.new, "vagrant")
ui.warn(I18n.t("vagrant.box_version_malformed",
version: version, box_name: box_name))
@logger.debug("Invalid version #{version} for box #{box_name}")
next
end
versiondir.children(true).each do |architecture_or_provider|
# If the entry is not a directory, it is invalid and should be ignored
if !architecture_or_provider.directory?
@logger.debug("Invalid box #{box_name} (v#{version}) - invalid item: #{architecture_or_provider}")
next
end
# Now the directory can be assumed to be the architecture
architecture_name = architecture_or_provider.basename.to_s.to_sym
# Cycle through directories to find providers
architecture_or_provider.children(true).each do |provider|
if !provider.directory?View on GitHub (pinned to 35f3160f4a)
When it happens
Trigger: Thrown at lib/vagrant/box_collection.rb:248 when the library encounters an invalid state.
Common situations: See trigger scenarios.
Understand the failure class
- Parsing and encoding errors: unexpected token, malformed input — why parsers reject input and how to find the real culprit.
AI-assisted analysis of hashicorp/vagrant@35f3160f4a (2026-08-21).
Data as JSON: /api/errors/99152d7353ab52d1.
Report an issue: GitHub.