-
Notifications
You must be signed in to change notification settings - Fork 111
dpkg corruption errors when using vmware_fusion provider #24
Comments
@phinze!!!! Hello. |
Unfortunately I haven't got access to the vmware plugin, so can't be of any help here =/ |
Hm. I don't have vmware to reproduce the issue, but do you think it's worth running with Also, seems relevant: If you manually clean the apt cache after the VM is up, does that make the error go away? Just wondering if we can narrow this down any more without one of us buying vmware :) cc: @mitchellh just as a random thought, but is this a common dilemma? ie. plugins not being compatible/tested against against the vmware provider? If so, have you considered an initiative to get vmware plugins to the primary maintainer of plugins that meet certain criteria (x number of stars, or whatever) |
I have VMware Fusion and the provider plugin license, but not sure how much spare time I have next couple of weeks. I've been using this plugin with Fusion without problems, but only for gem cache as I already had local apt-cacher-ng running. |
You're a rockstar @tmatilai |
I could not reproduce the corruption at least yet. My guess is that this is not a Fusion issue, but a multi-vm issue. If the VMs were provisioned at the same time, some packages in the cache might have been corrupted, as not all of the Apt's lock files are shared between the guests. The readme already warns about issues of using shared cache between multiple running machines. @phinze, you can just remove the ~/.vagrant.d/cache/precise64/apt/perl_5.14.2-6ubuntu2.3_amd64.deb from the cache and try again. Or nuke the whole cache as the mighty @patcon suggested. :) |
@patcon!!! my how the open source tables turn!! 😀 @tmatilai thanks for helping out - i just nuked the cache again to be sure i can repro locally, so let's see if i can spit out some cleaner steps: Prereqs
Steps
Error I see
Sometimes the crucial line is this instead:
Important Details
|
Wow so this gets even freakier. I compared the hexdumps of a downloaded file from the host and the messed up file in the apt cache. There are just chunks of zeros in the bad file. https://gist.github.com/phinze/f56e26549121c9d208d3 I'm thinking we're probably looking at an upstream bug here. Just a guess, but I don't think |
UGH confirmed VMWare Fusion Bug. From the "Shared Folders" developer himself:
http://communities.vmware.com/thread/438804?start=0&tstart=0 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 |
@phinze wow, amazing work investigating this! I confess that in my limited time window last night I couldn't wait for installing the perl package as my connection to the US mirror was really slow for some reason. Seems that a smaller package didn't trigger the bug. But sure enough, now I can reproduce it with the very same vim-nox/perl package. I'm very sorry for my false testimony. While waiting for VMware to fix it, a workaround can be to use vagrant-cachier >= 0.2.0 and use NFS mounts ( EDIT: To use the NFS mounts with Fusion you also need to add |
tks for all the help guys :) |
Oh man, classic triaging :) What about throwing an actual warning in the logs when vmware is detected and nfs isn't enabled? Perhaps linking to the upstream vmware issue url and suggesting nfs? Might make more sense if this is a long-term issue (it's been open 4 months already)... |
@patcon I like that idea. We can always pull the warning out if it gets fixed, but this prevents future issues from being opened and time from being wasted by Our Valuable Users ™️ If I get a free minute I'll try to throw something together. Anybody else can feel free to grab it too. |
@fgrehm yes it worked for me when I tested. But I'm not using the apt bucket normally... |
Yup with NFS in place everything worked for me. On Aug 3, 2013, at 12:12 PM, Teemu Matilainen notifications@github.com wrote:
|
It looks like the developer for the shared folders feature has tracked down the bug! Unfortunately, it doesn't look like a new release of the VMWare Tools with the fix has been released at this time. |
FYI, VMWare has the fix, but will not release it: https://communities.vmware.com/message/2359275#2359275 IMO, this is not a good way to treat customers. |
Err, I read that message that the fix will be included in the next release. Am I missing something? |
@tmatilai This bug was reported early last year and breaks the shared directories feature in VMWare Fusion+Linux. Something you only find out after you've purchased VMWare (This problem is more sweeping than just a Vagrant issue). To add insult to injury, VMWare has actually written a fix for this bug, but is not releasing it immediately to their customers. |
Well, the bug seems to only affect big files in some cases. I have personally never experienced it (except when reproducing this issue) even though I use Fusion on daily basis. I also find it fair that they want to test the fix properly before releasing. Sure I too would appreciate more frequent releases. |
VMWare Fusion was just updated to 6.0.3 on the 14th. I noticed it went ahead and downloaded tools. I don't have a test case to run that reproduces the original issue to see if it is fixed now but is this still happening? |
Got the update, and am getting much better results. Syncing seems to be working well with the vm ware vagrant boxes. |
Alas, this seems not to be the case. And the behavior is weird.
I was setting up a multi-vm environment so at first I thought these errors were coming from contention on the shared apt cache dir, but then I realized I can reproduce it with a fresh single machine.
Steps to reproduce
Vagrantfile
something like thisvim-nox
)Expected Behavior
Happiness, sunshine, flowers
Actual Behavior
Package corruption errors left and right!
I'm guessing it has something to do with the way shared folders are implemented in VMWare, but I haven't had a chance to look into it further. I'll follow up here if I figure anything else out.
The text was updated successfully, but these errors were encountered: