← Back to team overview

ubuntu-bugcontrol team mailing list archive

[Bug 452682] Re: ubuntuone-syncdaemon crashed with OSError in __init__() (symlink on shares)

 

** Description changed:

+ When the symlink for ~/Ubuntu One/Shared With Me gets changed to a non-
+ existant file, syncdaemon throws an exception and stops working.
+ Exception from syncdaemon-exceptions.log looks like this:
+ 
+   File "/usr/lib/ubuntuone-client/ubuntuone-syncdaemon", line 184, in <module>
+     main(sys.argv)
+   File "/usr/lib/ubuntuone-client/ubuntuone-syncdaemon", line 134, in main
+     ignore_files=options.ignore)
+   File "/usr/lib/python2.6/dist-packages/ubuntuone/syncdaemon/main.py", line 108, in __init__
+     self.vm = volume_manager.VolumeManager(self)
+   File "/usr/lib/python2.6/dist-packages/ubuntuone/syncdaemon/volume_manager.py", line 312, in __init__
+     os.symlink(self.m.shares_dir, self.m.shares_dir_link)
+ OSError: [Errno 17] File exists
+ 
+ -----------------------------------------------------------------------
+ 
+ TEST CASE:
+ 
+ From a terminal session, run:
+ 
+ u1sdtool -q
+ cd ~/Ubuntu\ One
+ rm Shared\ With\ Me
+ ln -s foo Shared\ With\ Me
+ u1sdtool --start
+ 
+ Expected result: Shared With Me symlink points to
+ ~/.local/share/ubuntuone/shares
+ 
+ -----------------------------------------------------------------------
+ 
  Binary package hint: ubuntuone-client
  
  If I open ubuntu one nothing happens for a while and I get this error.
  
  ProblemType: Crash
  .home.sashin..config.ubuntuone.ubuntuone.client.conf:
-  [ubuntuone]
-  bookmarked = False
-  connected = False
-  connect = 0
-  show_applet = 0
+  [ubuntuone]
+  bookmarked = False
+  connected = False
+  connect = 0
+  show_applet = 0
  Architecture: amd64
  Date: Fri Oct 16 12:00:50 2009
  DistroRelease: Ubuntu 9.10
  ExecutablePath: /usr/lib/ubuntuone-client/ubuntuone-syncdaemon
  InterpreterPath: /usr/bin/python2.6
  Package: ubuntuone-client 1.0.1-0ubuntu1
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python /usr/lib/ubuntuone-client/ubuntuone-syncdaemon
  ProcEnviron:
-  SHELL=/bin/bash
-  LANG=en_AU.UTF-8
+  SHELL=/bin/bash
+  LANG=en_AU.UTF-8
  ProcVersionSignature: Ubuntu 2.6.31-14.47-generic
  PythonArgs: ['/usr/lib/ubuntuone-client/ubuntuone-syncdaemon']
  SourcePackage: ubuntuone-client
  Tags:  ubuntu-unr
  Title: ubuntuone-syncdaemon crashed with OSError in __init__()
  Uname: Linux 2.6.31-14-generic x86_64
  UserGroups: adm admin cdrom dialout lpadmin netdev plugdev sambashare

** Description changed:

  When the symlink for ~/Ubuntu One/Shared With Me gets changed to a non-
  existant file, syncdaemon throws an exception and stops working.
  Exception from syncdaemon-exceptions.log looks like this:
  
-   File "/usr/lib/ubuntuone-client/ubuntuone-syncdaemon", line 184, in <module>
-     main(sys.argv)
-   File "/usr/lib/ubuntuone-client/ubuntuone-syncdaemon", line 134, in main
-     ignore_files=options.ignore)
-   File "/usr/lib/python2.6/dist-packages/ubuntuone/syncdaemon/main.py", line 108, in __init__
-     self.vm = volume_manager.VolumeManager(self)
-   File "/usr/lib/python2.6/dist-packages/ubuntuone/syncdaemon/volume_manager.py", line 312, in __init__
-     os.symlink(self.m.shares_dir, self.m.shares_dir_link)
+   File "/usr/lib/ubuntuone-client/ubuntuone-syncdaemon", line 184, in <module>
+     main(sys.argv)
+   File "/usr/lib/ubuntuone-client/ubuntuone-syncdaemon", line 134, in main
+     ignore_files=options.ignore)
+   File "/usr/lib/python2.6/dist-packages/ubuntuone/syncdaemon/main.py", line 108, in __init__
+     self.vm = volume_manager.VolumeManager(self)
+   File "/usr/lib/python2.6/dist-packages/ubuntuone/syncdaemon/volume_manager.py", line 312, in __init__
+     os.symlink(self.m.shares_dir, self.m.shares_dir_link)
  OSError: [Errno 17] File exists
  
  -----------------------------------------------------------------------
  
  TEST CASE:
  
  From a terminal session, run:
  
  u1sdtool -q
  cd ~/Ubuntu\ One
  rm Shared\ With\ Me
  ln -s foo Shared\ With\ Me
  u1sdtool --start
  
  Expected result: Shared With Me symlink points to
- ~/.local/share/ubuntuone/shares
+ ~/.local/share/ubuntuone/shares and files in Shared With Me folder are
+ accessible.
  
  -----------------------------------------------------------------------
  
  Binary package hint: ubuntuone-client
  
  If I open ubuntu one nothing happens for a while and I get this error.
  
  ProblemType: Crash
  .home.sashin..config.ubuntuone.ubuntuone.client.conf:
   [ubuntuone]
   bookmarked = False
   connected = False
   connect = 0
   show_applet = 0
  Architecture: amd64
  Date: Fri Oct 16 12:00:50 2009
  DistroRelease: Ubuntu 9.10
  ExecutablePath: /usr/lib/ubuntuone-client/ubuntuone-syncdaemon
  InterpreterPath: /usr/bin/python2.6
  Package: ubuntuone-client 1.0.1-0ubuntu1
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python /usr/lib/ubuntuone-client/ubuntuone-syncdaemon
  ProcEnviron:
   SHELL=/bin/bash
   LANG=en_AU.UTF-8
  ProcVersionSignature: Ubuntu 2.6.31-14.47-generic
  PythonArgs: ['/usr/lib/ubuntuone-client/ubuntuone-syncdaemon']
  SourcePackage: ubuntuone-client
  Tags:  ubuntu-unr
  Title: ubuntuone-syncdaemon crashed with OSError in __init__()
  Uname: Linux 2.6.31-14-generic x86_64
  UserGroups: adm admin cdrom dialout lpadmin netdev plugdev sambashare

-- 
ubuntuone-syncdaemon crashed with OSError in __init__() (symlink on shares)
https://bugs.launchpad.net/bugs/452682
You received this bug notification because you are a member of Ubuntu
Bug Control, which is a direct subscriber.