Vagrant: Upstream: Having a dir named `c` causes rubygems error

Created on 19 Apr 2019  ยท  6Comments  ยท  Source: hashicorp/vagrant

Vagrant version

2.2.4

Host operating system

Windows 10 Pro version 1809 build 17763.437

Provider

VirtualBox 6.0.6

Guest operating system

Cent OS 7
The box is centos/7

Vagrantfile


# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure("2") do |config|
  config.vm.box = "centos/7"
  config.vm.network "private_network",ip: "192.168.10.1"
  config.vm.synced_folder ".", "/vagrant",type:"virtualbox"
  config.vm.provider "virtualbox" do |vb|
     vb.gui = false
     vb.memory = "2048"
  end
end

Debug output

https://gist.github.com/kou0179/cca71862a3520c3e019ff73480efb0a5

Error message given during initialization: Is a directory @ rb_sysopen - C

Behavior

vagrant up
vagrant halt
vagrant plugin repair ...etc

An error occurred with most vagrant commands.

Cause & Steps to reproduce

Because a directory named "C" exists in the same location as Vagrantfile.

  1. vagrant init
  2. Setup Vagrantfile
  3. mkdir c
  4. vagrant up

P.S.

I am Japanese. So I am not good at English.
Thank you for reading this to the end.

bug confirmed core hoswindows

Most helpful comment

I'm sorry I couldn't find the issue.
Thank you for getting back to me so quickly and carefully considering my request.
You've done a great job. Thanks @briancain !

All 6 comments

Hi @kou0179 - Have you tried running the vagrant command:

vagrant plugin expunge --reinstall

What happens when you do? And what plugins have you installed?

Thanks!

Hello @briancain . Thank you for reply.

I tried it. However, I did not have any plugins from the beginning.

vagrant plugin repair
vagrant plugin update
Also, running them did not solve the problem.

Thank you for taking your time.

Hello @kou0179 - I was able to reproduce the bug. Thanks for the report!

Just a book keeping note: this looks like this issue might be a duplicate of https://github.com/hashicorp/vagrant/issues/9148

I'm sorry I couldn't find the issue.
Thank you for getting back to me so quickly and carefully considering my request.
You've done a great job. Thanks @briancain !

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tomhking picture tomhking  ยท  3Comments

StefanScherer picture StefanScherer  ยท  3Comments

jsirex picture jsirex  ยท  3Comments

cbednarski picture cbednarski  ยท  3Comments

bbaassssiiee picture bbaassssiiee  ยท  3Comments