On Mon, Jul 14, 2014 at 2:56 PM, Patrick Ohly <[email protected]>
wrote:

> On Sun, 2014-07-13 at 21:18 +0800, Emfox Zhou wrote:
> > Hello, I've try to sync google contacts to my debian box.
> >
> >
> > The syncevolution version is 1.4-1.1, I did according to the manual:
> >
> >
>
first step below:

> > emfox@XXXX:~$ syncevolution --configure --template WebDAV
> > [email protected] password=XXXX
> > database=https://google.com:443/carddav/v1/principals/XXXX%
> > 40gmail.com/lists/default/ target-config@webdav
> > [INFO] addressbook: looking for databases...
> > [INFO] addressbook: okay
>
                                      ~~~ see here

> > [INFO] calendar: looking for databases...
> > [INFO] calendar: no database to synchronize
> > [INFO] memo: looking for databases...
> > [INFO] memo: no database to synchronize
> > [INFO] todo: looking for databases...
> > [INFO] todo: no database to synchronize
>
second step below:

> > emfox@XXXX:~$ syncevolution --configure --template
> > SyncEvolution_Client syncURL=local://@webdav sslverifyserver=0
> > username= password= webdav addressbook
> > [INFO] addressbook: looking for databases...
> > [INFO] addressbook: backend failed: error code from SyncEvolution
> > authorization failed (remote, status 401): PROPFIND: Neon error code 3
> > = NE_AUTH, HTTP status 401: Could not authenticate to server: ignored
> > GoogleLogin challenge
> > [ERROR] addressbook: backend failed: error code from SyncEvolution
> > authorization failed (remote, status 401): PROPFIND: Neon error code 3
> > = NE_AUTH, HTTP status 401: Could not authenticate to server: ignored
> > GoogleLogin challenge
>
> It's still working for me.
>
> Do you perhaps have two-factor login enabled for your Google account? In
> that case the main password that you use to log into the account via the
> Google web pages does not work for CardDAV. You have to create a
> password for the SyncEvolution client - see
> https://support.google.com/mail/answer/1173270?hl=en
>
> Another pitfall might be the username. Google web interface recognizes
> email address added to the account, CardDAV doesn't. If in doubt, try
> the one created by Google (@gmail.com).
>

Yes, I have two-factor enabled and has already using app-specified password.
you can see that my first step was "okay" and found the addressbook database
from google server ( I tested that if I input an random wrong password
instead,
the first step returned the same error that 'ignored GoogleLogin
challenge').

Just tried another gmail account without two-factor verification, and with
only one
email address, the same error.

Does the version of 1.4 matters? should I upgrade to the newest version?

-- 
Emfox Zhou

GnuPG Public Key: 0xF7142EC2
_______________________________________________
SyncEvolution mailing list
[email protected]
https://lists.syncevolution.org/mailman/listinfo/syncevolution

Reply via email to