Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
From: Horacio Sanson <hsanson@gmail.com>
To: sup-talk@rubyforge.org
Subject: [sup-talk] Correct way to sync index between two machines?
Date: Tue, 22 Feb 2011 09:54:43 +0900	[thread overview]
Message-ID: <AANLkTik-rm2niKzb6iR0SJt7V4ErMyMM8ku-2NdmKhY7@mail.gmail.com> (raw)

I have a laptop, my home desktop and my work desktop were I sync and
read my email. Previously with mutt I simply rsync my mail folders so
the mail was in sync with all three machines but for some reason rsync
the whole .sup folder results in corrupted index.

I make sure sup is not running and then rsync the .sup folder (via
unison). Then when trying to run sup in the updated machine I get this
error:

Scanning maildir:/home/user/.mail/hsanson/INBOX...
/var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/index.rb:792:in `load':
invalid encoding symbol (EncodingError)
        from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/index.rb:792:in `entry'
        from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/index.rb:567:in
`get_entry'
        from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/index.rb:196:in
`block in build_message'
        from /usr/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
        from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/index.rb:575:in
`synchronize'
        from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/index.rb:196:in
`build_message'
        from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/util.rb:609:in
`method_missing'
        from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/poll.rb:159:in
`block in poll_from'
        from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/maildir.rb:106:in
`block (2 levels) in poll'
        from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/maildir.rb:105:in
`each'
        from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/maildir.rb:105:in
`each_with_index'
        from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/maildir.rb:105:in
`block in poll'
        from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/maildir.rb:90:in `each'
        from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/maildir.rb:90:in `poll'
        from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/poll.rb:155:in
`poll_from'
        from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/util.rb:609:in
`method_missing'
        from /var/lib/gems/1.9.1/gems/sup-0.12.1/bin/sup-sync:123:in
`block in <top (required)>'
        from /var/lib/gems/1.9.1/gems/sup-0.12.1/bin/sup-sync:118:in `each'
        from /var/lib/gems/1.9.1/gems/sup-0.12.1/bin/sup-sync:118:in
`<top (required)>'
        from /var/lib/gems/1.9.1/bin/sup-sync:19:in `load'
        from /var/lib/gems/1.9.1/bin/sup-sync:19:in `<main>'

Removing the index (xapian folder) fixes the problem but of course I
lost my whole night of labeling work.

So how to safely sync my index between several machines?

regards,
Horacio
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk


                 reply	other threads:[~2011-02-22  0:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTik-rm2niKzb6iR0SJt7V4ErMyMM8ku-2NdmKhY7@mail.gmail.com \
    --to=hsanson@gmail.com \
    --cc=sup-talk@rubyforge.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox