IOError: [Errno 13] Permission denied in syncdaemon/file_shelf.py

Bug #414371 reported by Danilo
220
This bug affects 47 people
Affects Status Importance Assigned to Milestone
Ubuntu One Client
Fix Released
Low
Joshua Hoover

Bug Description

Ubuntu one notification is giving "Fatal error" both on my desktop and laptop. I clicked on the notification icon and it mentioned error report was sent.

By the way, my desktop never actually was able to sync any files.

Log file on my desktop states:
2009-08-14 21:40:10,247 - ubuntuone.SyncDaemon - ERROR - Unexpected error
Traceback (most recent call last):
  File "/usr/lib/ubuntuone-client/ubuntuone-syncdaemon", line 194, in <module>
    main(sys.argv)
  File "/usr/lib/ubuntuone-client/ubuntuone-syncdaemon", line 147, in main
    max_handshake_timeouts=options.max_handshake_timeouts)
  File "/usr/lib/python2.6/dist-packages/ubuntuone/syncdaemon/main.py", line 69, in __init__
    fsync_md)
  File "/usr/lib/python2.6/dist-packages/ubuntuone/syncdaemon/filesystem_manager.py", line 215, in __init__
    load_method(md_version)
  File "/usr/lib/python2.6/dist-packages/ubuntuone/syncdaemon/filesystem_manager.py", line 318, in _load_metadata_2
    self.fs[mdid] = mdobj
  File "/usr/lib/python2.6/dist-packages/ubuntuone/syncdaemon/file_shelf.py", line 188, in __setitem__
    super(CachedFileShelf, self).__setitem__(key, value)
  File "/usr/lib/python2.6/dist-packages/ubuntuone/syncdaemon/file_shelf.py", line 129, in __setitem__
    with open(new_path, "wb") as fh:
IOError: [Errno 13] Permission denied: '/home/danilo/.cache/ubuntuone/syncdaemon/fsm/b/9/4/b9463128-ca04-427c-b20a-bbaa1f1ff38a.new'

ProblemType: Bug
Architecture: i386
CrashDB: ubuntuone
DistroRelease: Ubuntu 9.04
NonfreeKernelModules: nvidia
Package: ubuntuone-client 0.92.0+r146-0ubuntu1~ppa1~jaunty
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: ubuntuone-client
ThirdParty: True
Uname: Linux 2.6.28-14-generic i686
UnreportableReason: This is not a genuine Ubuntu package

Revision history for this message
Danilo (danilodiogo) wrote :
Rick McBride (rmcbride)
tags: added: dbus-exception desktop+ metadata
Revision history for this message
Joshua Blount (jblount) wrote :

Danilo: Thanks very much for the detailed logs! I'm going to mark this as triaged so that the desktop+ team will take a look.

Changed in ubuntuone-client:
status: New → Triaged
Revision history for this message
Joshua Hoover (joshuahoover) wrote :

Hi Danilo, Is this still an issue? We've released quite a few new client updates since this issue was reported. Thank you, Joshua

Changed in ubuntuone-client:
status: Triaged → Incomplete
assignee: nobody → Joshua Hoover (joshuahoover)
Revision history for this message
Eric Casteleijn (thisfred) wrote :

The problem seems to be filesystem permissions:

2009-08-14 21:40:10,247 - ubuntuone.SyncDaemon - ERROR - Unexpected error
Traceback (most recent call last):
  File "/usr/lib/ubuntuone-client/ubuntuone-syncdaemon", line 194, in <module>
    main(sys.argv)
  File "/usr/lib/ubuntuone-client/ubuntuone-syncdaemon", line 147, in main
    max_handshake_timeouts=options.max_handshake_timeouts)
  File "/usr/lib/python2.6/dist-packages/ubuntuone/syncdaemon/main.py", line 69, in __init__
    fsync_md)
  File "/usr/lib/python2.6/dist-packages/ubuntuone/syncdaemon/filesystem_manager.py", line 215, in __init__
    load_method(md_version)
  File "/usr/lib/python2.6/dist-packages/ubuntuone/syncdaemon/filesystem_manager.py", line 318, in _load_metadata_2
    self.fs[mdid] = mdobj
  File "/usr/lib/python2.6/dist-packages/ubuntuone/syncdaemon/file_shelf.py", line 188, in __setitem__
    super(CachedFileShelf, self).__setitem__(key, value)
  File "/usr/lib/python2.6/dist-packages/ubuntuone/syncdaemon/file_shelf.py", line 129, in __setitem__
    with open(new_path, "wb") as fh:
IOError: [Errno 13] Permission denied: '/home/danilo/.cache/ubuntuone/syncdaemon/fsm/b/9/4/b9463128-ca04-427c-b20a-bbaa1f1ff38a.new'

Danilo: did you manually change file permissions on (this part of) your home directory/and or copy stuff from another user's home directory? Or perhaps did you run anything related to Ubuntu One as root? (i.e. with sudo)

Changed in ubuntuone-client:
importance: Undecided → High
summary: - Fatal error in ubuntuone notification
+ IOError: [Errno 13] Permission denied in syncdaemon/file_shelf.py
Roman Yepishev (rye)
tags: added: rye-diag
tags: added: invalid-permissions
dobey (dobey)
Changed in ubuntuone-client:
importance: High → Low
Revision history for this message
Danilo (danilodiogo) wrote :

At one point I was able to sync everything well, probably an update fixed the issue. I never switched manually any permissions, just installed the client like any noob user would.

Since the situation is now solved, you can please close the bug.

Mookers (sdot125-ss)
Changed in ubuntuone-client:
status: Incomplete → New
Revision history for this message
Rick McBride (rmcbride) wrote :

Closing as fix-released per Danilo's last message.

Changed in ubuntuone-client:
status: New → Fix Released
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.