New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when syncing (not with 0.4.2, but with 0.6.0 and later) #290

Closed
matthiasbeyer opened this Issue Nov 5, 2015 · 4 comments

Comments

Projects
None yet
2 participants
@matthiasbeyer

matthiasbeyer commented Nov 5, 2015

I upgraded from 0.4.2 to 0.6.0 and now I get this error message:
I tried with the latest release (not shipped with my distro, yet) and get the same result:

error: m_calendar/contact_birthdays: Storage "m_calendar_remote/contact_birthdays" contains multiple items with the same UID or even content. Vdirsyncer will now abort the synchronization of this collection, because the fix for this is not clear; It could be the result of a badly behaving server. You can try running:
error: 
error:     vdirsyncer repair m_calendar_remote/contact_birthdays
error: 
error: But make sure to have a backup of your data in some form. The offending hrefs are:
error: 
error: '/oc/remote.php/caldav/calendars/m/contact_birthdays/local::3::88.ics'
error: '/oc/remote.php/caldav/calendars/m/contact_birthdays/local::3::11.ics'

When running the repair command:

warning: This operation will take a very long time.
warning: It's recommended to turn off other client's synchronization features.
Do you want to continue? [y/N]: y
Discovering collections (skipping cache).
Repairing m_calendar_remote/contact_birthdays
warning: Make sure no other program is talking to the server.
[0/2] Processing /oc/remote.php/caldav/calendars/m/contact_birthdays/local::3::11.ics
warning: No UID, assigning random one.
Unhandled exception occured.
Traceback (most recent call last):
  File "/nix/store/clkdr59lhhf4psz0x4ivin1vmsy998a0-vdirsyncer-0.7.3/lib/python2.7/site-packages/vdirsyncer/cli/__init__.py", line 45, in inner
    f(*a, **kw)
  File "/nix/store/clkdr59lhhf4psz0x4ivin1vmsy998a0-vdirsyncer-0.7.3/lib/python2.7/site-packages/vdirsyncer/cli/__init__.py", line 238, in repair
    repair_collection(ctx.config, collection)
  File "/nix/store/clkdr59lhhf4psz0x4ivin1vmsy998a0-vdirsyncer-0.7.3/lib/python2.7/site-packages/vdirsyncer/cli/tasks.py", line 102, in repair_collection
    repair_storage(storage)
  File "/nix/store/clkdr59lhhf4psz0x4ivin1vmsy998a0-vdirsyncer-0.7.3/lib/python2.7/site-packages/vdirsyncer/repair.py", line 38, in repair_storage
    assert new_item.uid
AssertionError

Can you fix this or at least provide some helpful error message? I'm no python guy, so looking at the source won't help me, ...

@untitaker

This comment has been minimized.

Member

untitaker commented Nov 5, 2015

Isn't this the same as #281 (where you commented on)?

@untitaker

This comment has been minimized.

Member

untitaker commented Nov 5, 2015

But yeah, the error message isn't nice.

untitaker added a commit that referenced this issue Nov 5, 2015

@matthiasbeyer

This comment has been minimized.

matthiasbeyer commented Nov 5, 2015

naaah, I already reported this. Okay... I'll close this.

Yes, it is the same, though the assertion error looks like the repair command didn't finish (for me as a user it looks this way). Would be nice if this error gets printed in a nice format and vdirsyncer exits "cleanly" (but with bad state, of course). Would be much better user experience!

@untitaker

This comment has been minimized.

Member

untitaker commented Nov 5, 2015

Latest master should have a better error message, but it isn't going to help you much more than the old one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment