Hi All,
First post so be nice.
I keep receiving this strange error that I can find almost no
information about in other threads. Occasionally, I’ll receive an
Errno:PROTO error when I navigate to a page on my site when running
locally.
I’m running rails on a VirtualBox Ubuntu instance on Vista. I’m also
running it in a Vista folder that’s mounted into Ubuntu. I run the rails
server in Ubuntu, but load the web page through firefox in Vista. Also
have the project loaded into Eclipse in Vista. (I think something about
this setup might be the cause of my problems.)
This error will occur with any page, and seems quite random. It happens
sometimes when I navigate to a page, and repeated refreshes will
sometimes show the page and sometimes not. Most notably, if I tail the
development.log file, it will happen MUCH more often. I’ve struggled
with this for a bit but can’t seem to find a solution.
Any ideas?
I realize this is an old thread, but just to highlight the problem, I’m
seeing this too on my VirtualBox Ubuntu instance on Win7 where I’m
working off of a shared folder.
Problem seems to have disappeared after I copied it off of the shared
folder and onto my VirtualBox image’s virtual hard drive.
Looks like there is some type of a bug in either VirtualBox or Ruby on
Rails.
Maneki Neko wrote:
I realize this is an old thread, but just to highlight the problem, I’m
seeing this too on my VirtualBox Ubuntu instance on Win7 where I’m
working off of a shared folder.
Problem seems to have disappeared after I copied it off of the shared
folder and onto my VirtualBox image’s virtual hard drive.
Looks like there is some type of a bug in either VirtualBox or Ruby on
Rails.
Hi
I get the same problem, and it’s a problem with VirtualBox and sharing!
If you install e.g. mc on that vbox guest and try to edit files in the
shared folder, or browsing around various folders inside the shared
folder, you will see that sometimes it shows folders as files, files as
0 bytes, if you cat fails, they can at random be empty. I recommend
adding a normal windows share and mounting it with Samba. That works
perfectly well.
I’m using XP + Ubuntu 9.10 guest. Tried with 8.04 LTS, and same issue
there.
It seems like more people are having issues with file sharing this way:
http://www.virtualbox.org/ticket/5514
http://www.virtualbox.org/ticket/5251
http://www.virtualbox.org/ticket/4890
http://www.virtualbox.org/ticket/4864
http://www.virtualbox.org/ticket/4862
Since there seems to be so many “random errors”, I can only recommend
using a samba share or NFS instead… a bit more complicated, but it
works 100%…
Cheers,
Leif
Leif Ri wrote:
Maneki Neko wrote:
I realize this is an old thread, but just to highlight the problem, I’m
seeing this too on my VirtualBox Ubuntu instance on Win7 where I’m
working off of a shared folder.
Problem seems to have disappeared after I copied it off of the shared
folder and onto my VirtualBox image’s virtual hard drive.
Looks like there is some type of a bug in either VirtualBox or Ruby on
Rails.
Hi
I get the same problem, and it’s a problem with VirtualBox and sharing!
If you install e.g. mc on that vbox guest and try to edit files in the
shared folder, or browsing around various folders inside the shared
folder, you will see that sometimes it shows folders as files, files as
0 bytes, if you cat fails, they can at random be empty. I recommend
adding a normal windows share and mounting it with Samba. That works
perfectly well.
I’m using XP + Ubuntu 9.10 guest. Tried with 8.04 LTS, and same issue
there.
It seems like more people are having issues with file sharing this way:
#5514 (Shared Folders don't work anymore) – Oracle VM VirtualBox
#5251 (vboxsf has a delay after deleting files until they are deleted => Fixed in SVN) – Oracle VM VirtualBox
#4890 (Linux guest, "mv -f file1 file2" fails on shared folder without write permissions on file2 (Windows hosts)) – Oracle VM VirtualBox
#4864 (WinXP guest loses modification date when copying a file on a shared folder (Linux Jaunty, ext3 filesystem)) – Oracle VM VirtualBox
#4862 (Files in shared folder which open in mode "w+b"(Linux guest) could not be read(Protocol Error)) – Oracle VM VirtualBox
Since there seems to be so many “random errors”, I can only recommend
using a samba share or NFS instead… a bit more complicated, but it
works 100%…
Cheers,
Leif
Hi Leif - thanks for the explanation - I’ve been running in to this same
issue numerous times as well. Could you point me to any articles about
implementing NFS or Samba sharing between my Windows host and Ubuntu
guest? Right now I’m using a vboxsf mounted share within the Ubuntu
guest.
Thanks for the help!