mrdavidlaing / vagrant-unison

Vagrant plugin to sync local files to VM using Unison over SSH
MIT License
37 stars 29 forks source link

Fatal error: Warning: inconsistent state. -> The archive file is missing on some hosts. #4

Closed mrdavidlaing closed 11 years ago

mrdavidlaing commented 11 years ago
$ vagrant sync
Unisoning changes from {host}::/Users/mrdavidlaing/Projects/cityindex/wordpress-development-flow/src/ --> {guest VM}::src
There was an error when attemping to sync folders using unison.
Please inspect the error message below for more info.

Host path: /Users/mrdavidlaing/Projects/cityindex/wordpress-development-flow/src/
Guest path: src
Error: Contacting server...
Connected [//maccy001.local//Users/mrdavidlaing/Projects/cityindex/wordpress-development-flow/src -> //precise64//home/vagrant/src]
Looking for changes
Fatal error: Warning: inconsistent state.  
The archive file is missing on some hosts.
For safety, the remaining copies should be deleted.
  Archive ar089496113a5b9ad1ce5512bc7668d990 on host maccy001.local should be DELETED
  Archive arbd9bef70bbd13c493e469b3510da716b on host precise64 is MISSING
Please delete archive files as appropriate and try again
or invoke Unison with -ignorearchives flag.

Full command causing error: 
["unison", "-batch", "-ignore=Name {.git*,.vagrant/,*.DS_Store}", "-sshargs", "-p 2222 -o StrictHostKeyChecking=no -i /Users/mrdavidlaing/.vagrant.d/insecure_private_key", "/Users/mrdavidlaing/Projects/cityindex/wordpress-development-flow/src/", "ssh://vagrant@127.0.0.1/src"]
mrdavidlaing commented 11 years ago

On Mac OS X, the local files are stored in ~/Library/Application\ Support/Unison.

On Ubuntu they are stored in ~/.unison

To fix this issue, just delete the archive files as directed