On Tue, Jul 15, 2014 at 5:15 PM, Patrick Ohly <[email protected]>
wrote:

> On Tue, 2014-07-15 at 11:01 +0800, Emfox Zhou wrote:
> >
> > On Tue, Jul 15, 2014 at 1:59 AM, Patrick Ohly <[email protected]>
> > wrote:
>
> > Now it complains for the missing DBus server or so, either I should
> > recompile
> > syncevolution without dbus or ensure the dbus is running,
>
> You need D-Bus when running syncevo-http-server.
>
> > syncevo-http-server http://localhost:9000/ --start-dbus-session &
> >
> >
> > syncevolution --configure --sync-property syncURL= \
> >    --sync-property peerIsClient=1 \
> >    --sync-property remoteDeviceId="IMEI:xxxxxxxxxxx" \
> >    --sync-property username=emfox \
> >    --sync-property password=111 \
> >    --sync-property SSLVerifyServer=0 \
> >    --source-property uri= \
> >    --source-property sync=none \
> >    c102
> >
> >
> > syncevolution --configure --source-property backend=carddav \
> >    --source-property
> > database=https://google.com:443/carddav/v1/principals/emfoxzhou%
> > 40gmail.com/lists/default/ \
> >    --source-property [email protected] \
> >    --source-property databasePassword=jlxxxxxxxxxxxxxdlv \
> >     c102 addressbook
>
> You are using different D-Bus sessions here: one for syncevo-http-server
> and the syncevo-dbus-daemon started by it, one for configuring
> SyncEvolution. I can imagine that this causes problems with GNOME
> keyring.
>
> Better run all commands in the same shell, where a D-Bus session already
> exits. Or are you running these commands on a remote server via ssh?
>

Yes, I run the syncevolution on an linode vps server, because my own box is
behind
firewall, and my phone cannot reach it. so all is running on a remote ssh
shell.

Without X, should I use D-Bus or not? if yes, how could I made them using it
consistantly?


> On the other hand, password=111 seems to be found, otherwise the SyncML
> client would not be allowed to connect.
>
> Does "syncevolution --print-config -q c102 addressbook" show the actual
> databasePassword or "-"?
>

It show the actual databasePassword, which is my goolgle password.

Please enhance the debug level and then try again to sync from your
> phone:
>
>         syncevolution --configure loglevel=4 c102
>
> In the resulting syncevolution-log.html, what does it say about password
> lookup?
>
>
checking password property 'password' in config 'c102' with user identity
'emfox'
checking password property 'databasePassword' in source 'addressbook' of
config 'c102' with user identity '[email protected]'


> If that fails, you can work around it by disabling GNOME keyring:
>         syncevolution --configure keyring=no
>

it returns "[ERROR] No configuration name specified.", I guess it should be
 "syncevolution --configure keyring=no c102" instead?

        syncevolution --configure password=111 c102
>         syncevolution --configure databasePassword=jlxxxxxxxxxxxxxdlv c102
> addressbook
>
> However, I'd prefer to understand first why it fails.
>
>
I made these change, and press sync on my phone:

[INFO] syncevo-http: new SyncML session for 211.xxx.xxx.102
[INFO] syncevo-dbus-server: /org/syncevolution/Server: ready to run
[INFO] syncevo-dbus-server: /org/syncevolution/Server: matched deviceID
IMEI:3xxxxxxxxxxx8 against config c102
(/home/emfox/.config/syncevolution/default/peers/c102)
[INFO] sync: /org/syncevolution/Session/11918082911405429787: creating
complete data backup after sync (enabled with dumpData and needed for
printChanges)
[INFO] sync: /org/syncevolution/Session/11918082911405429787:
Synchronization successful.
[INFO] sync: /org/syncevolution/Session/11918082911405429787:
Changes applied during synchronization:
[INFO] sync: /org/syncevolution/Session/11918082911405429787:
+---------------|-----------------------|-----------------------|-CON-+
|               |         LOCAL         |        REMOTE         | FLI |
|        Source | NEW | MOD | DEL | ERR | NEW | MOD | DEL | ERR | CTS |
+---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+
|   addressbook |  0  |  0  |  0  |  0  |  0  |  0  |  0  |  0  |  0  |
+---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+
|          start Tue Jul 15 13:09:47 2014, duration 0:01min           |
|               synchronization completed successfully                |
+---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+

[INFO] sync: /org/syncevolution/Session/11918082911405429787:

[ERROR] sync: /org/syncevolution/Session/11918082911405429787: error code
from SyncEvolution fatal error (local, status 10500):
/home/emfox/.cache/syncevolution/c102-2014-07-15-12-48-a/addressbook.after:
Directory not empty
[ERROR] sync: /org/syncevolution/Session/11918082911405429787: error code
from SyncEvolution fatal error (local, status 10500): sync failed
[INFO] syncevo-http: new SyncML session for 211.140.18.102
[INFO] syncevo-dbus-server: /org/syncevolution/Server: matched deviceID
IMEI:3xxxxxxxxxxx8 against config c102
(/home/emfox/.config/syncevolution/default/peers/c102)
[INFO] sync: /org/syncevolution/Session/15308555321405429788: addressbook:
starting first time sync, two-way (peer is client)
[INFO] sync: /org/syncevolution/Session/15308555321405429788: creating
complete data backup of source addressbook before sync (enabled with
dumpData and needed for printChanges)
[ERROR] sync: /org/syncevolution/Session/15308555321405429788: [hdr]
Content-Type: application/vnd.google.gdata.error+xml; charset=UTF-8
[ERROR] sync: /org/syncevolution/Session/15308555321405429788: Header Name:
[content-type], Value: [application/vnd.google.gdata.error+xml;
charset=UTF-8]
[ERROR] sync: /org/syncevolution/Session/15308555321405429788: 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
[INFO] sync: /org/syncevolution/Session/15308555321405429788: addressbook:
first time sync done unsuccessfully
[ERROR] sync: /org/syncevolution/Session/15308555321405429788:
authorization failed (local, status 10401)
[INFO] sync: /org/syncevolution/Session/15308555321405429788: creating
complete data backup after sync (enabled with dumpData and needed for
printChanges)
[INFO] sync: /org/syncevolution/Session/15308555321405429788:
Synchronization failed, see
/home/emfox/.cache/syncevolution/c102-2014-07-15-13-09-a/syncevolution-log.html
for details.
[INFO] sync: /org/syncevolution/Session/15308555321405429788:
Changes applied during synchronization:
[INFO] sync: /org/syncevolution/Session/15308555321405429788:
+---------------|-----------------------|-----------------------|-CON-+
|               |         LOCAL         |        REMOTE         | FLI |
|        Source | NEW | MOD | DEL | ERR | NEW | MOD | DEL | ERR | CTS |
+---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+
|   addressbook |  0  |  0  |  0  |  0  |  0  |  0  |  0  |  0  |  0  |
|   slow, 0 KB sent by client, 0 KB received                          |
|   authorization failed (local, status 10401)                        |
+---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+
|          start Tue Jul 15 13:09:51 2014, duration 0:17min           |
|             authorization failed (local, status 10401)              |
+---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+
First ERROR encountered: [hdr] Content-Type:
application/vnd.google.gdata.error+xml; charset=UTF-8

[INFO] sync: /org/syncevolution/Session/15308555321405429788:

[ERROR] sync: /org/syncevolution/Session/15308555321405429788: error code
from SyncEvolution authorization failed (local, status 10401): sync failed
[ERROR] sync: /org/syncevolution/Session/15308555321405429788: sess:
Destroying session.

And I tried the second time without changing anything, the server output is:

[INFO] syncevo-http: new SyncML session for 211.xxx.xxx.103
[INFO] syncevo-dbus-server: /org/syncevolution/Server: matched deviceID
IMEI:IMEI:3xxxxxxxxxxx8 against config c102
(/home/emfox/.config/syncevolution/default/peers/c102)
[INFO] sync: /org/syncevolution/Session/15756214181405429789: addressbook:
starting first time sync, two-way (peer is client)
[INFO] sync: /org/syncevolution/Session/15756214181405429789: creating
complete data backup of source addressbook before sync (enabled with
dumpData and needed for printChanges)
[INFO] sync: /org/syncevolution/Session/15756214181405429789: operation
temporarily (?) failed, going to retry in 4.8s before giving up in 299.8s:
GET: Neon error code 3 = NE_AUTH, HTTP status 401: Could not authenticate
to server: ignored GoogleLogin challenge
[INFO] sync: /org/syncevolution/Session/15756214181405429789: operation
temporarily (?) failed, going to retry in 4.8s before giving up in 299.8s:
GET: Neon error code 3 = NE_AUTH, HTTP status 401: Could not authenticate
to server: ignored GoogleLogin challenge
[INFO] sync: /org/syncevolution/Session/15756214181405429789: operation
temporarily (?) failed, going to retry in 4.8s before giving up in 299.8s:
GET: Neon error code 3 = NE_AUTH, HTTP status 401: Could not authenticate
to server: ignored GoogleLogin challenge
[INFO] sync: /org/syncevolution/Session/15756214181405429789: operation
temporarily (?) failed, going to retry in 4.8s before giving up in 299.8s:
GET: Neon error code 3 = NE_AUTH, HTTP status 401: Could not authenticate
to server: ignored GoogleLogin challenge


-- 
Emfox Zhou

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

Reply via email to