geier / pycarddav

DEPRECATED - use vdirsyncer & khard -- easy to use CLI CardDAV client
http://lostpackets.de/pycarddav
MIT License
98 stars 35 forks source link

Local database empty after first synchronisation #70

Closed toothbrush closed 11 years ago

toothbrush commented 11 years ago

I have a problem where I cannot get any vcards into the local database. Apple's Address Book connects fine to the server and shows my contacts, but using pycardsyncer leaves me with an empty sqlite database.

My config: [Account posteo] user: myuser passwd: mypass resource: https://posteo.de:8443/principals/myuser/ verify: False [sqlite] path: ~/.pycard/abook.db [default] debug: False

And I invoke this command (I first have to create the folder ~/.pycard, mind you, otherwise it crashes!)

pycardsyncer -c .pycard.conf --debug

Which tells me: DEBUG:root:Using configuration from .pycard.conf DEBUG:root:Ignoring default:debug in configuration file DEBUG:root:Using configuration: DEBUG:root: accounts: DEBUG:root: auth: basic DEBUG:root: name: posteo DEBUG:root: resource: https://posteo.de:8443/principals/myuser/ DEBUG:root: user: myuser DEBUG:root: verify: False DEBUG:root: write_support: DEBUG:root: debug: True DEBUG:root: filename: .pycard.conf DEBUG:root: sqlite: DEBUG:root: path: /Users/paul/.pycard/abook.db DEBUG:root: sync: DEBUG:root: accounts: set(['posteo']) DEBUG:root:start syncing account posteo DEBUG:root:created version table DEBUG:root:created accounts table DEBUG:root:created posteo table DEBUG:root:looking for locally changed vcards...

But leaves me with an empty local database! I hope someone has any idea. The server seems to be using Sabre DAV.

geier commented 11 years ago

are you sure this is the right url? https://posteo.de/hilfe/wie-kann-ich-mein-thunderbird-adressbuch-mit-posteo-abgleichen says it should be:

https://posteo.de:8843/addressbooks/max.muster/default where max.muster is your 'posteo' name.

toothbrush commented 11 years ago

Oh shit, you're right! I'm sorry about that, what a gaffe! Anyway, it happened because I reconstructed the URL from the Apple Address Book application's preferences. Strange.

Anyway, it works now, thank you! I'll RTFM next time…

On Thu, Jul 25, 2013 at 08:08:38 -0700, quoth Christian Geier:

are you sure this is the right url? https://posteo.de/hilfe/wie-kann-ich-mein-thunderbird-adressbuch-mit-posteo-abgleichen says it should be:

https://posteo.de:8843/addressbooks/max.muster/default where max.muster is your 'posteo' name.

— Reply to this email directly or view it on GitHub.

geier commented 11 years ago

no worries, happens all the time to me.

toothbrush commented 11 years ago

There is one thing though: it seemed that pycarddav doesn't create the database directory (in my case ~/.pycard) if it doesn't exist. That would seem like a useful feature?

On Fri, Jul 26, 2013 at 04:02:39 -0700, quoth Christian Geier:

no worries, happens all the time to me.

— Reply to this email directly or view it on GitHub.

geier commented 11 years ago

you're right, this is at least sub-optimal, I'll have a look