dmahler / router-labs

0 stars 1 forks source link

/vagrant directory strange status after `vagrant ssh` #3

Closed lloydroc closed 7 years ago

lloydroc commented 7 years ago

Looking into this issue as I haven't seen this before. Although, I don't use vagrant much. For some reason the /vagrant directory that you get into with a vagrant ssh is non-existent or something similar.

router-labs ➤ vagrant ssh                                                                                                                                   
vagrant@vagrant-ubuntu-trusty-64:/$ ls -l
ls: cannot access vagrant: Protocol error
total 76
drwxr-xr-x  2 root root  4096 Oct  9 20:18 bin
drwxr-xr-x  3 root root  4096 Sep 18 20:44 boot
drwxr-xr-x 13 root root  3880 Oct  9 22:16 dev
drwxr-xr-x 98 root root  4096 Oct  9 20:18 etc
drwxr-xr-x  4 root root  4096 Oct  9 20:15 home
lrwxrwxrwx  1 root root    34 Sep 18 20:43 initrd.img -> boot/initrd.img-3.13.0-132-generic
drwxr-xr-x 22 root root  4096 Sep 18 21:32 lib
drwxr-xr-x  2 root root  4096 Sep 18 20:42 lib64
drwx------  2 root root 16384 Sep 18 20:44 lost+found
drwxr-xr-x  2 root root  4096 Sep 18 20:41 media
drwxr-xr-x  2 root root  4096 Apr 10  2014 mnt
drwxr-xr-x  2 root root  4096 Sep 18 20:41 opt
dr-xr-xr-x 88 root root     0 Oct  9 20:15 proc
drwx------  3 root root  4096 Oct  9 20:15 root
drwxr-xr-x 23 root root   860 Oct 18 17:55 run
drwxr-xr-x  2 root root  4096 Oct  9 20:18 sbin
drwxr-xr-x  2 root root  4096 Sep 18 20:41 srv
dr-xr-xr-x 13 root root     0 Oct  9 20:15 sys
drwxrwxrwt  4 root root  4096 Oct  9 22:17 tmp
drwxr-xr-x 10 root root  4096 Sep 18 20:41 usr
d?????????  ? ?    ?        ?            ? vagrant
drwxr-xr-x 13 root root  4096 Oct  9 20:15 var
lrwxrwxrwx  1 root root    31 Sep 18 20:43 vmlinuz -> boot/vmlinuz-3.13.0-132-generic
vagrant@vagrant-ubuntu-trusty-64:/$
lloydroc commented 7 years ago

Found this on Stack Overflow. Which instructs a vagrant halt default && vagrant up which seems to fix it. I tried a vagrant suspend default && vagrant up previously but that didn't do the trick.