Syncdaemon silently crashes at startup

Reported by Natalia Bidart on 2010-11-30
174
This bug affects 12 people
Affects Status Importance Assigned to Milestone
Ubuntu One Client
High
Ubuntu One Foundations+ team
ubuntuone-client (Ubuntu)
High
Unassigned

Bug Description

This is a split from bug #436612.

* Every first time I start syncdaemon (in each boot), the metadata load doesn't finish and SD apparently crashes without leaving any trace. This means that the log file has nothing but:

2010-11-11 08:54:50,330 - ubuntuone.SyncDaemon.VM.MD - DEBUG - metadata version: 6
2010-11-11 08:54:50,385 - ubuntuone.SyncDaemon.fsm - INFO - loading updated metadata

and syncdaemon is not working. So I run u1sdtool -s again, and the log file is rotates and the load metadata process restart, and I get something like this:

2010-11-11 09:04:12,049 - ubuntuone.SyncDaemon.VM.MD - DEBUG - metadata version: 6
2010-11-11 09:04:12,050 - ubuntuone.SyncDaemon.fsm - INFO - loading updated metadata
2010-11-11 09:06:05,100 - ubuntuone.SyncDaemon.fsm - INFO - initialized: idx_path: 19704, idx_node_id: 15127, shares: 12

So the second metadata load process finish because the first attempt cached most of the files in the disk cache. So the second attempt takes 2 minutes when most of the files are already in the disk cache! So this amount of time is extremely large.

Natalia Bidart (nataliabidart) wrote :

Starting syncdaemon with:

/usr/lib/ubuntuone-client/ubuntuone-syncdaemon --logging-level=DEBUG

will complete the metadata load in the first attempt. In this case, it took:

2010-11-11 13:07:56,933 - ubuntuone.SyncDaemon.VM.MD - DEBUG - metadata version: 6
2010-11-11 13:07:57,021 - ubuntuone.SyncDaemon.fsm - INFO - loading updated metadata
2010-11-11 13:12:45,864 - ubuntuone.SyncDaemon.fsm - INFO - initialized: idx_path: 19704, idx_node_id: 16948, shares: 12

Almost 5 minutes of intensive disk usage (which makes the rest of the desktop pretty unusable due to IO starvation).

Changed in ubuntuone-client:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Ubuntu One Foundations+ team (ubuntuone-foundations+)
tags: added: chicharra chicharra-natty foundations+ u1-natty
Changed in ubuntuone-client (Ubuntu):
status: New → Triaged
importance: Undecided → High
Natalia Bidart (nataliabidart) wrote :

Killing happen after exactly 2 minutes:

nessita@miro:~$ date; u1sdtool --start
Tue Nov 30 11:55:29 ART 2010

nessita@miro:~$ while [ $(ps aux | grep syncdaemon | grep -v grep | wc -l) -gt 0 ]; do date; sleep 1;
done
...
Tue Nov 30 11:57:30 ART 2010

Guillermo Gonzalez (verterok) wrote :

Hi!

Naty, Thanks for all the testing.

This problem is because syncdaemon is registering dbus with a different name than the specified in the .service file, and dbus-daemon is killing the child process (launched by dbus-activation) because of this.

Roman Yepishev (rye) wrote :

This happens because I introduced a .UniqueInstance bus name in LP:639017

tags: added: chicharra-oneiric
removed: chicharra-natty
Leo Arias (elopio) on 2012-04-17
tags: added: natty
removed: u1-natty
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers