Skip to content
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

vdirsyncer fails to sync #58563

Closed
loewenheim opened this issue Mar 29, 2019 · 6 comments · Fixed by #59010
Closed

vdirsyncer fails to sync #58563

loewenheim opened this issue Mar 29, 2019 · 6 comments · Fixed by #59010

Comments

@loewenheim
Copy link
Contributor

Issue description

vdirsyncer sync fails with the vdirsyncer version from nixos-unstable. it works if I install vdirsyncer with pip.

$ vdirsyncer -vdebug sync 
debug: Using 1 maximal workers.
debug: Fetching value for password.fetch with command strategy.
Syncing contacts/32
error: Unknown error occurred for contacts/32: Server did not return etag.
error: Use `-vdebug` to see the full traceback.
debug:   File "/nix/store/y9qgx26b2w2lzqhqb7sd9cb6cz8dj7pa-vdirsyncer-unstable-2018-08-05/lib/python3.7/site-packages/vdirsyncer/cli/tasks.py", line 69, in sync_collection
debug:     partial_sync=pair.partial_sync
debug:   File "/nix/store/y9qgx26b2w2lzqhqb7sd9cb6cz8dj7pa-vdirsyncer-unstable-2018-08-05/lib/python3.7/site-packages/vdirsyncer/sync/__init__.py", line 143, in sync
debug:     b_nonempty = b_info.prepare_new_status()
debug:   File "/nix/store/y9qgx26b2w2lzqhqb7sd9cb6cz8dj7pa-vdirsyncer-unstable-2018-08-05/lib/python3.7/site-packages/vdirsyncer/sync/__init__.py", line 60, in prepare_new_status
debug:     if prefetch else ()):
debug:   File "/nix/store/y9qgx26b2w2lzqhqb7sd9cb6cz8dj7pa-vdirsyncer-unstable-2018-08-05/lib/python3.7/site-packages/vdirsyncer/storage/base.py", line 149, in get_multi
debug:     item, etag = self.get(href)
debug:   File "/nix/store/y9qgx26b2w2lzqhqb7sd9cb6cz8dj7pa-vdirsyncer-unstable-2018-08-05/lib/python3.7/site-packages/vdirsyncer/storage/_rust.py", line 42, in get
debug:     native.check_error(e)
debug:   File "/nix/store/y9qgx26b2w2lzqhqb7sd9cb6cz8dj7pa-vdirsyncer-unstable-2018-08-05/lib/python3.7/site-packages/vdirsyncer/native.py", line 35, in check_error
debug:     errors.check_exception(e[0])
debug:   File "/nix/store/4xg6a6pqm9v3b1vfmjncqy0w18iqfrhj-python3.7-shippai-0.3.2/lib/python3.7/site-packages/shippai/__init__.py", line 150, in check_exception
debug:     raise exc
error: 1 out of 2 tasks failed.

Technical details

Output of nix-shell -p nix-info --run "nix-info -m":

- system: `"x86_64-linux"`
 - host os: `Linux 4.19.30, NixOS, 19.09pre173349.07b42ccf2de (Loris)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.2`
 - channels(root): `"nixos-19.09pre173349.07b42ccf2de"`
 - channels(****): `"home-manager"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
@gebner
Copy link
Member

gebner commented Apr 4, 2019

Which vdirsyncer do you get via pip? Is it the old 0.16 branch or the new 0.17 one (which was mostly rewritten in rust)? We have the latest git version of 0.17 in nixpkgs. Unfortunately, vdirsyncer is currently looking for a maintainer so it might be some time before this bug is fixed.

@loewenheim
Copy link
Contributor Author

--version outputs this:

$ ~/.local/bin/vdirsyncer --version
vdirsyncer, version 0.16.7

@fritz-k
Copy link

fritz-k commented Apr 4, 2019

Same problem here. Was there any reason to go for an alpha release except for the issue referenced in #33050? If not, a downgrade to 0.16.7 should be fine, since the original bug is still open and probably won't be fixed for a while without anyone maintaining vdirsyncer.

@gebner
Copy link
Member

gebner commented Apr 4, 2019

There are a few bugs that are fixed in master, so I'd rather not downgrade. I'd be happy with a vdirsyncerStable package for the 0.16 branch though.

@fritz-k
Copy link

fritz-k commented Apr 4, 2019

That'd be great! I haven't looked into packaging yet, so it would take some time if I tried. Would you mind helping out?

@loewenheim
Copy link
Contributor Author

I just opened a PR. It’s my first time contributing to nixpkgs, so I hope it’s up to snuff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants