Ubuntu One client fails to sync files due to xdg-open not allowing subscription completion

Bug #504978 reported by James Hunt
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
ubuntuone-client (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: ubuntuone-client

Having signed up for an Ubuntu One account, I fired up the ubuntuone-client via Applications->Internet->Ubuntu One. The applet appears but I get the error, "Authorisation Error: Error showing url: operation not supported". In the background the libnotify message says something like "syncing files" (which clearly it isn't). The problem seems to be atleast two-fold:

- although I can login to my Ubuntu One account via Firefox, no files ever appear there, even though the Ubuntu One directory on my system shows a number of files along with the green tick supposedly showing they have been synced to the remote server.

- I think I was supposed to register my computer with the Ubuntu One service, but never got prompted. This seems to be related to the error above and the fact that none of the URL-opener commands on my system seem to work:

[jhunt@uno]:~> xdg-open 'https://one.ubuntu.com/'
Error showing url: Operation not supported
[jhunt@uno]:~> gnome-open 'https://one.ubuntu.com/'
Error showing url: Operation not supported
[jhunt@uno]:~> gvfs-open 'https://one.ubuntu.com/'
gvfs-open: https://one.ubuntu.com/: error opening location: Operation not supported

I did find a command called exo-open (part of XFce from the exo-utils package), which *does* work and open the URL in firefox correctly, but this open command isn't being used :-)

    exo-open 'https://one.ubuntu.com/'

Before anyone asks, Yes, my default web browser *is* firefox in System->Preferences->Preferred Applications.

Further details:

[jhunt@uno]:~> cat .config/ubuntuone/ubuntuone-client.conf
[ubuntuone]
connected = True
connect = 0
show_applet = 1
bookmarked = True

[jhunt@uno]:~>

File ~/.cache/ubuntuone/log/syncdaemon.log shows the following snippet:

_______________________ <SNIP> _______________________

2010-01-08 21:01:59,007 - ubuntuone.SyncDaemon.sync - INFO - T:LOCAL:F <HASH_REMOVED> 0 [root:<HASH_REMOVED>] ''Ubuntu One/wibble.txt'' | Called put_file (In: T:NONE:F)
2010-01-08 21:02:05,877 - ubuntuone.SyncDaemon.DBus - ERROR - Can't get the auth token
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/ubuntuone/syncdaemon/dbus_interface.py", line 1073, in connect
    access_token = self.main.get_access_token()
  File "/usr/lib/python2.6/dist-packages/ubuntuone/syncdaemon/main.py", line 299, in get_access_token
    return self.oauth_client.get_access_token()
  File "/usr/lib/python2.6/dist-packages/ubuntuone/syncdaemon/main.py", line 339, in get_access_token
    raise NoAccessToken("No access token found.")
NoAccessToken: No access token found.
2010-01-08 21:03:31,947 - ubuntuone.SyncDaemon.Main - NOTE - ---- MARK (state: READY_WITH_NETWORK_WITH_BOTHQ; queues: metadata: 4; content: 3; hash: 0, fsm-cache: hit=427 miss=4) ----
2010-01-08 21:04:49,639 - ubuntuone.SyncDaemon.HQ - INFO - HashQueue: _hasher stopped
2010-01-08 21:04:49,640 - ubuntuone.SyncDaemon.DBus - INFO - Shuttingdown DBusInterface!

_______________________ <SNIP> _______________________

Again, I believe the auth token error is because the registration was never completed due to the bug in xdg-open.

Revision history for this message
James Hunt (jamesodhunt) wrote :

I've found a workaround for this bug...

mkdir /tmp/bin && cd /tmp/bin
cat >xdg-open<<EOF
firefox -remote "openURL($*,new-tab)"
EOF
for c in gnome-open gvfs-open
do
  ln -s xdg-open $c
done
export PATH=/tmp/bin:$PATH
sudo apt-get install ubuntuone-client-tools
which xdg-open # should return /tmp/bin/xdg-open rather than /usr/bin/xdg-open now
u1sync --authorize

The last command should fire up a firefox window and ask you to add the computer name to your Ubuntu One service. You can then sync files in your "Ubuntu One" directory with the remote server.

The question is: who broke gvfs-open, or is it just my machine which has this issue?

Revision history for this message
Joshua Hoover (joshuahoover) wrote :

Hi James,

Thank for taking the time to file this bug report and for following up on the issue. It sounds like this may have been an issue specific to your environment. I'm going to mark this as "Invalid" as this does not appear to be a bug specific to Ubuntu One. If you find that it is a bug with gvfs-open or elsewhere, please feel free to file against the appropriate package.

Thank you,

Joshua

Changed in ubuntuone-client (Ubuntu):
status: New → Invalid
Revision history for this message
ria (dh1020) wrote :

Great, this does f...all
My computer does nothing if i feed your commands into the terminal. NO reaction at all. Can someone tell me what is wrong, please?
Help, i am new to this. I try and i am patient, but its two days now i try to get out of this.

Revision history for this message
Jim (jimmcdevitt60) wrote :

I have the same issue. Now I am stuck at:

jim@FoxTrot:/tmp/bin$ u1sync --authorize
Exception in thread authorization:
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.6/threading.py", line 484, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/python2.6/dist-packages/ubuntuone/oauthdesktop/auth.py", line 272, in open_in_browser
    self._forward_error_callback(IOError(errors))
  File "/usr/lib/python2.6/dist-packages/ubuntuone/oauthdesktop/auth.py", line 160, in _forward_error_callback
    raise error
IOError: Error showing url: Operation not supported

Is this because of a bad certificate?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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