Syncdaemon silently crashes at startup

Bug #683116 reported by Natalia Bidart
164
This bug affects 12 people
Affects Status Importance Assigned to Milestone
Ubuntu One Client
Won't Fix
High
Ubuntu One Foundations+ team
ubuntuone-client (Ubuntu)
Won't Fix
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.

Revision history for this message
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
Revision history for this message
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

Revision history for this message
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.

Revision history for this message
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)
tags: added: natty
removed: u1-natty
Changed in ubuntuone-client (Ubuntu):
status: Triaged → Won't Fix
Changed in ubuntuone-client:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.