Are you using ownCloud7? Othera have reported issuea getting asynk yo work
with OC 7. I have not been found the time to investigate. I may be able to
investigate later this month during the holidays.
On Dec 1, 2014 3:36 AM, "praetor" <[email protected]> wrote:

> Hi all!
>
> I try to connect ASynk with my ownCloud Server. The Server works perfectly
> with Evolution clients. But with ASynk I get an error 400, though the
> credentials are correct (full output at the bottom).
>
> I work with the newest version from git under debian jessie. I noticed in
> the logfile of the server, that the successful clients connect with GET or
> PROPFIND, but ASynk with OPTIONS.
>
> Is there anything I can do?
> praetor
>
> $ sudo grep carddav /var/log/apache2/access.log
> …
> tronje.org 87.171.158.64 - ragp [30/Nov/2014:18:31:03 +0100] "PROPFIND
> /owncloud/remote.php/carddav/addressbooks/ragp/kontakte/ HTTP/1.1" 207
> 24920 "-" "Evolution/3.12.7.1"
> tronje.org 87.171.158.64 - ragp [30/Nov/2014:18:31:04 +0100] "GET
> /owncloud/remote.php/carddav/addressbooks/ragp/kontakte/3ACA834F-34C7F0A1-7192EEA8.vcf
> HTTP/1.1" 200 2619 "-" "Evolution/3.12.7.1"
> tronje.org 87.171.158.64 - ragp [30/Nov/2014:18:31:04 +0100] "GET
> /owncloud/remote.php/carddav/addressbooks/ragp/kontakte/08CAF96C-0C05B879-39DAD8D2.vcf
> HTTP/1.1" 200 8623 "-" "Evolution/3.12.7.1"
> tronje.org 87.171.158.64 - ragp [30/Nov/2014:18:31:49 +0100] "DELETE
> /owncloud/remote.php/carddav/addressbooks/ragp/kontakte/3ACA834F-34C7F0A1-7192EEA8.vcf
> HTTP/1.1" 204 1174 "-" "Evolution/3.12.7.1"
> tronje.org 87.171.158.64 - - [30/Nov/2014:19:34:29 +0100] "OPTIONS
> /owncloud/remote.php/carddav HTTP/1.1" 400 10840 "-" "-"
> tronje.org 87.171.158.64 - - [30/Nov/2014:20:34:06 +0100] "OPTIONS
> /owncloud/remote.php/carddav/addressbooks/ragp/kontakte HTTP/1.1" 400 10840
> "-" "-"
> tronje.org 87.171.158.64 - - [30/Nov/2014:20:41:20 +0100] "OPTIONS
> /owncloud/remote.php/carddav/ HTTP/1.1" 400 10840 "-" "-"
> tronje.org 87.171.158.64 - - [30/Nov/2014:22:21:54 +0100] "OPTIONS
> /owncloud/remote.php/carddav/addressbooks/ragp/kontakte/ HTTP/1.1" 400
> 10840 "-" "-"
> tronje.org 87.171.158.64 - - [30/Nov/2014:22:24:51 +0100] "OPTIONS
> /owncloud/remote.php/carddav/addressbooks/ragp/ HTTP/1.1" 400 10840 "-" "-"
> tronje.org 87.171.158.64 - - [30/Nov/2014:22:55:42 +0100] "OPTIONS
> /owncloud/remote.php/carddav/addressbooks/ragp/kontakte/ HTTP/1.1" 400
> 10840 "-" "-"
> …
>
> $ ~/git/ASynK/asynk.py --op=sync --user-dir=~/.async.cd --name testbbcd
> --dry-run
> Applying base config from file
> /home/ragp/git/ASynK/config/config_v7.json...
> Applying base config from file
> /home/ragp/git/ASynK/config/config_v7.json...done
> Applying user customizations from file /home/ragp/.async.cd/config.py...
> Applying user customizations from file /home/ragp/.
> async.cd/config.py...done
> [22:55:54.875     INFO] Debug logging to file: /home/ragp/.
> async.cd/logs/asynk_logs.2014-11-30.22-55-54.874514
> [22:55:54.878     INFO] Parsing BBDB file /home/ragp/.emacs.d/bbdb...
> [22:55:54.880     INFO] Parsing BBDB Store with encoding utf-8...
> [22:55:54.964     INFO] Parsing BBDB Store with encoding utf-8...Success
> [22:55:54.964     INFO] Successfully parsed 23 entries.
> [22:55:55.045     INFO] Logging into CardDAV server:
> https://tronje.org/owncloud/remote.php/carddav/addressbooks/ragp/kontakte/
> - user: ragp...
> [22:55:55.652 CRITICAL] Could not open connection to Carddav Server (
> https://tronje.org). Error: Code: 400, Reason: Bad Request
> Traceback (most recent call last):
>   File "/home/ragp/git/ASynK/asynk.py", line 1125, in <module>
>     main()
>   File "/home/ragp/git/ASynK/asynk.py", line 80, in main
>     asynk.dispatch()
>   File "/home/ragp/git/ASynK/asynk.py", line 511, in dispatch
>     res = getattr(self, self.get_op())()
>   File "/home/ragp/git/ASynK/asynk.py", line 775, in op_sync
>     pname = self._load_profile()
>   File "/home/ragp/git/ASynK/asynk.py", line 1119, in _load_profile
>     self._login()
>   File "/home/ragp/git/ASynK/asynk.py", line 312, in _login
>     self.set_db(db2id, getattr(self, login_func)())
>   File "/home/ragp/git/ASynK/asynk.py", line 1061, in login_cd
>     self.get_cduser(), self.get_cdpw())
>   File "/home/ragp/git/ASynK/asynk/pimdb_cd.py", line 55, in __init__
>     self.cd_init()
>   File "/home/ragp/git/ASynK/asynk/pimdb_cd.py", line 280, in cd_init
>     logging=self.get_client_logging())
>   File "/home/ragp/git/ASynK/lib/caldavclientlibrary/client/account.py",
> line 23, in __init__
>     self.session = CalDAVSession(server, port, ssl, user, pswd, principal,
> root, logging)
>   File
> "/home/ragp/git/ASynK/lib/caldavclientlibrary/client/clientsession.py",
> line 77, in __init__
>     self._initCalDAVState()
>   File
> "/home/ragp/git/ASynK/lib/caldavclientlibrary/client/clientsession.py",
> line 84, in _initCalDAVState
>     self._discoverPrincipal()
>   File
> "/home/ragp/git/ASynK/lib/caldavclientlibrary/client/clientsession.py",
> line 89, in _discoverPrincipal
>     current = self.getCurrentPrincipalResource(self.rootPath)
>   File
> "/home/ragp/git/ASynK/lib/caldavclientlibrary/client/clientsession.py",
> line 396, in getCurrentPrincipalResource
>     hrefs = self.getHrefListProperty(rurl, davxml.current_user_principal)
>   File
> "/home/ragp/git/ASynK/lib/caldavclientlibrary/client/clientsession.py",
> line 267, in getHrefListProperty
>     self.runSession(request)
>   File
> "/home/ragp/git/ASynK/lib/caldavclientlibrary/client/clientsession.py",
> line 817, in runSession
>     self.doSession(request)
>   File
> "/home/ragp/git/ASynK/lib/caldavclientlibrary/client/clientsession.py",
> line 851, in doSession
>     if not self.initialise(self.server, self.rootPath.relativeURL()):
>   File
> "/home/ragp/git/ASynK/lib/caldavclientlibrary/protocol/webdav/session.py",
> line 129, in initialise
>     self.handleHTTPError(request)
>   File
> "/home/ragp/git/ASynK/lib/caldavclientlibrary/client/clientsession.py",
> line 959, in handleHTTPError
>     request.getStatusReason()))
> caldavclientlibrary.protocol.http.util.HTTPError: Code: 400, Reason: Bad
> Request
>
>  --
> You received this message because you are subscribed to the Google Groups
> "ASynK Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/asynk/ca179a1c-8998-4d79-aa88-4af5b7390716%40googlegroups.com
> <https://groups.google.com/d/msgid/asynk/ca179a1c-8998-4d79-aa88-4af5b7390716%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"ASynK Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send an email to [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/asynk/CAFkt3UMJ2goMc_3J197foXgvgwcfhKyvpHBQ5-mQubkDmbmHyQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to