Bug 67270 - sync between a device and akonadi via synce http-server, failure
Summary: sync between a device and akonadi via synce http-server, failure
Status: RESOLVED NOTABUG
Alias: None
Product: SyncEvolution
Classification: Unclassified
Component: SyncML (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: SyncEvolution Community
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-24 19:24 UTC by promeneur
Modified: 2013-08-12 19:15 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
synce log (57.34 KB, text/html)
2013-07-24 19:24 UTC, promeneur
Details

Description promeneur 2013-07-24 19:24:22 UTC
Created attachment 82953 [details]
synce log

mandriva 2010.2 i586
kde 4.8.4
akonadi 1.7.2
syncevolution-kde 1.3.99.4-2

android 4.1.2


i create  async profile beteween akonadi and a smartphone via synce http server
with these commands :

syncevolution --configure \
                keyring=KDE \
                addressbook/backend=kde-contacts \
                addressbook/database=akonadi:?collection=2 \
                calendar/backend=kde-calendar \
                calendar/database=akonadi:?collection=262 \
                todo/backend=kde-tasks \
                todo/database=akonadi:?collection=262 \
                @default addressbook calendar todo


peer=syncevolution_http_server
datapath=$HOME/syncevolution_http_server
deviceID=fac-354654054541640
username=toto
password=12345678

syncevolution --configure \
  --template default \
  --sync-property syncURL=http://localhost:9000/syncevolution \
  --sync-property peerIsClient=1 \
  --sync-property remoteDeviceId=${deviceID} \
  --sync-property username=${username} \
  --sync-property password=${password} \
  --source-property uri= \
  --source-property sync=none \
  ${peer}

syncevolution --configure \
  --source-property type=file:text/vcard:3.0 \
  --source-property evolutionsource=file://${datapath}/addressbook \
  ${peer} addressbook

syncevolution --configure \
  --source-property type=file:text/calendar:2.0 \
  --source-property evolutionsource=file://${datapath}/calendar \
  ${peer} calendar

syncevolution --configure \
  --source-property type=file:text/calendar:2.0 \
  --source-property evolutionsource=file://${datapath}/todo \
  ${peer} todo

then
i launch the synce http server

syncevo-http-server http://localhost:9000/syncevolution &

then

with my smartphone i launch a syncml sync of my contacts and my calendar (event and task)

my smartphone connects to the http server, good
then
the sync fail, it does not start

there are error messages :
- in konsole
 [INFO] syncevo-http: new SyncML session for 37.174.86.139
[INFO] syncevo-dbus-server: /org/syncevolution/Server: matched deviceID fac-354654054541640 against config syncevolution_http_server (/home/roubach/.config/syncevolution/default/peers/syncevolution_http_server)
[INFO] sync: /org/syncevolution/Session/3293530961374691992: memo: inactive
[INFO] syncevo-http: new SyncML session for 37.174.86.139
[INFO] syncevo-dbus-server: /org/syncevolution/Server: matched deviceID fac-354654054541640 against config syncevolution_http_server (/home/roubach/.config/syncevolution/default/peers/syncevolution_http_server)
[INFO] sync: /org/syncevolution/Session/3293530961374691992: creating complete data backup after sync (enabled with dumpData and needed for printChanges)
[INFO] sync: /org/syncevolution/Session/3293530961374691992: 
Synchronization failed, see /home/roubach/.cache/syncevolution/syncevolution__http__server-2013-07-24-20-57/syncevolution-log.html for details.
[INFO] sync: /org/syncevolution/Session/3293530961374691992: 
Changes applied during synchronization:
[INFO] sync: /org/syncevolution/Session/3293530961374691992: +---------------|-----------------------|-----------------------|-CON-+
|               |         LOCAL         |        REMOTE         | FLI |
|        Source | NEW | MOD | DEL | ERR | NEW | MOD | DEL | ERR | CTS |
+---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+
|   addressbook |  0  |  0  |  0  |  0  |  0  |  0  |  0  |  0  |  0  |
+---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+
|      calendar |  0  |  0  |  0  |  0  |  0  |  0  |  0  |  0  |  0  |
+---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+
|          todo |  0  |  0  |  0  |  0  |  0  |  0  |  0  |  0  |  0  |
+---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+
|      start mer. 24 juil. 2013 20:57:06 CEST, duration 0:01min       |
|           aborted on behalf of user (local, status 20017)           |
+---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+

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

-in status.ini

status = 20017
start = 1374692226, 2013-07-24 20:57:06 +0200
end = 1374692227, 2013-07-24 20:57:07 +0200
source-addressbook-mode = disabled
source-addressbook-first = false
source-addressbook-resume = false
source-addressbook-status = 0
source-addressbook-backup-before = -1
source-addressbook-backup-after = -1
source-calendar-mode = disabled
source-calendar-first = false
source-calendar-resume = false
source-calendar-status = 0
source-calendar-backup-before = -1
source-calendar-backup-after = -1
source-todo-mode = disabled
source-todo-first = false
source-todo-resume = false
source-todo-status = 0
source-todo-backup-before = -1
source-todo-backup-after = -1

- in the html log see the joined file
Comment 1 Patrick Ohly 2013-08-12 19:15:17 UTC
From the log file:

Processing Alert Item (code=200), Source='contacts', Target='card'
–
[2013-07-24 20:57:06.608] 'issue' - issuing command, Cmd=Status [--][++] [->end] [->enclosing]

    [2013-07-24 20:57:06.608] WARNING: Non-OK Status 404 returned to remote!


In other words, your phone is configured to sync with a source called "card", which does not exist in your server config. You can add an alias for the "addressbook" source (which probably exists in your server config) by setting "uri = card". But it is better to reconfigure the phone, if you can, or create a dedicated "card" source on the server.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.