cannot authorise machine behind proxy

Bug #376760 reported by Robert Collins
This bug report is a duplicate of:  Bug #387308: HTTPS Proxy Support for file sync. Edit Remove
158
This bug affects 27 people
Affects Status Importance Assigned to Milestone
Ubuntu One Client
Incomplete
High
dobey
Nominated for Stable-1-0 by Aurélien Pelletier

Bug Description

To reproduce:
System->preferences->network proxy
Click 'manual', 'same for all', fill out a http proxy available to you
start ubuntu one for the first time
look at the lovely error page that turns up

Related branches

Revision history for this message
Robert Collins (lifeless) wrote :

Related to this:
 - when this fails, the applet is left hanging with no UI - no tray icon or anything
 - some people will find this very hard to work around

Revision history for this message
Stanislav Mihaylov (smihaylov) wrote :

When I use proxy and start python /usr/bin/ubuntuone-client-applet --signup:

/usr/lib/python2.6/dist-packages/canonical/ubuntuone/oauthdesktop/auth.py:191: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  raise UnknownLoginError(e.message)
Traceback (most recent call last):
  File "/var/lib/python-support/python2.6/dbus/connection.py", line 578, in msg_reply_handler
    reply_handler(*message.get_args_list(**get_args_opts))
  File "/usr/lib/python2.6/dist-packages/canonical/ubuntuone/oauthdesktop/auth.py", line 225, in got_state
    self.acquire_access_token(description, store)
  File "/usr/lib/python2.6/dist-packages/canonical/ubuntuone/oauthdesktop/auth.py", line 277, in acquire_access_token
    self.request_token = self.make_token_request(oauth_request)
  File "/usr/lib/python2.6/dist-packages/canonical/ubuntuone/oauthdesktop/auth.py", line 191, in make_token_request
    raise UnknownLoginError(e.message)
canonical.ubuntuone.oauthdesktop.auth.UnknownLoginError

Revision history for this message
Rick McBride (rmcbride) wrote :

Thanks for the data. We definitely need to handle network configurations like this better.

tags: added: desktop+
Changed in ubuntuone-client:
importance: Undecided → High
status: New → Triaged
Revision history for this message
Dovix (dovix) wrote :

I have a similar problem - though I am not sure it is exactly the same problem.

I connect to the Internet through a proxy. When I click "Add this computer" I get the following from the proxy:

-----------------------------------
ERROR
The requested URL could not be retrieved

While trying to retrieve the URL: http://127.0.0.1:59137/?

The following error was encountered:

    * Zero Sized Reply Initially I had the proxy defined in System->Preferences->Network Proxy with the box to apply throughout the system checked.

Initially I had the proxy defined in System->Preferences->Network Proxy with the box to apply throughout the system checked.

Squid did not receive any data for this request.
-------------------------------------

Initially I had the proxy defined in System->Preferences->Network Proxy with the box to apply throughout the system checked.

I then changed Firefox' configuration so that address 127.0.0.1 won't go through the proxy. When I do that, I do not get the above error but I am asked to enter a password (my user password doesn't work).

I'll continue to investigate this further, but it brings up an issue, that registration may not work if 127.0.0.1 routes through the proxy in the browser's settings, so perhaps it would be good to check if this is the system setup and fix it/alert the user.

John O'Brien (jdobrien)
Changed in ubuntuone-client:
assignee: nobody → Rodney Dawes (dobey)
Revision history for this message
Peter Funk (pf-artcom-gmbh) wrote :

urllib2.Request objects contain a method called set_proxy()
Unfortunately the documentation is sparse especially concerning
authentification and handling of os.environ["http_proxy"] and
os.environ["https_proxy"].

There might be some relationship to
https://bugs.launchpad.net/python/+bug/94130

Sorry: that's all I found out for the time being.

Revision history for this message
Giovanni Mellini (merlos) wrote :

I can confirm this bug.

I got UbuntuOne working without proxy on my home network.
Back to my office, after proxy setup, I tried to connect to the service but the deamon remains on "Ubuntu One: Working" state until i disconnect the deamon.

Tks,
Giovanni

Revision history for this message
Istvan Botka (boti) wrote :

I did a wireshark session at my workplace (behind the proxy).

there was a successfull DNS query for SRV record, and after the client wants to connect directly the ubuntuone server not via proxy. I can reproduce it and attach the wireshark dump.

By(t)e

Revision history for this message
Kev (ukev) wrote :

Hi, I've just got the exact same bug as Dovix describes [1].
But with another port number:
"While trying to retrieve the URL: http://127.0.0.1:36146/?"....

I've discovered a workaround:
Just rename 127.0.0.1 to "localhost" in the browser address-bar and it will work. (Rename only 127.0.0.1, leave the rest as is!).

[1] https://bugs.launchpad.net/ubuntuone-client/+bug/376760/comments/4

Revision history for this message
stenlee (stanislav-minar) wrote :

i can confirm malfunction behind SOCKS proxy defined in Gnome "Network Proxy"

Revision history for this message
uccio_mi (stefano-manni) wrote : Re: [Bug 376760] Re: cannot authorise machine behind proxy

even after updating the bug persists

tags: added: story-0151
Revision history for this message
HolgiT (holgit) wrote :

> "While trying to retrieve the URL: http://127.0.0.1:36146/?"....
> I've discovered a workaround:
The actual problem with my configuration was that Firefox obviously can't handle an entry like '127.0.0.0/8' in the proxy exception list when importing system proxy settings from gnome.
After manually adding 127.0.0.1 explicitly in the gnome proxy settings and restarting firefox, it worked. That's basically similar to Kev's workaround, because localhost of course is in the exception list.

Revision history for this message
HolgiT (holgit) wrote :

After successfully adding my workstation, synchronization still hangs. It is exactly the same as with Istvan and Giovanni. Gnome proxy settings and environment variable "https_proxy" are basically ignored.

ubuntuone-syncdaemon tries to connect directly to the server, as seen with netstat:
tcp 0 1 10.0.2.15:59617 174.129.193.12:443 SYN_SENT

and writes out (with --debug):
2009-07-15 11:37:58,147 - ubuntuone.SyncDaemon.ActionQueue - DEBUG - Using record: <RR name=_https._tcp.fs.ubuntuone.com type=SRV class=IN ttl=600s auth=False>
2009-07-15 11:39:52,358 - ubuntuone.SyncDaemon.Main - INFO - ---- MARK (state: START_CONNECTING; queues: metadata: 0; content: 0; hash: 0) ----
2009-07-15 11:41:52,359 - ubuntuone.SyncDaemon.Main - INFO - ---- MARK (state: START_CONNECTING; queues: metadata: 0; content: 0; hash: 0) ----
2009-07-15 11:43:52,358 - ubuntuone.SyncDaemon.Main - INFO - ---- MARK (state: START_CONNECTING; queues: metadata: 0; content: 0; hash: 0) ----
[...]
and stays like that forever.

dobey (dobey)
Changed in ubuntuone-client:
milestone: none → w13-karmic-alpha3
status: Triaged → In Progress
dobey (dobey)
Changed in ubuntuone-client:
status: In Progress → Fix Committed
dobey (dobey)
Changed in ubuntuone-client:
status: Fix Committed → Fix Released
Revision history for this message
stenlee (stanislav-minar) wrote :

still won't work behind SOCKS proxy :(

Revision history for this message
HolgiT (holgit) wrote :

Does not work for me either. ubuntuone-syncdaemon still tries to connect directly to the server and ignores the Gnome proxy settings as well as the environment variables http_proxy, https_proxy:

Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 1 ubuntu.local:34795 ec2-174-129-241-1:https SYN_SENT

Revision history for this message
Giovanni Mellini (merlos) wrote :

Hi all
still not working for me

giovanni@alligatore:~$ dpkg-query -l ubuntuone-client
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Nome Versione Descrizione
+++-===================================-===================================-======================================================================================
ii ubuntuone-client 0.90.4+r88-0ubuntu1~ppa1~jaunty Ubuntu One client
giovanni@alligatore:~$

Giovanni

Revision history for this message
Ali Ross (gnu2tux) wrote :

Updated: ii ubuntuone-client 0.90.4+r88-0ubuntu1~ppa1~jaunty Ubuntu One client

Still not working for me, however I now see the UbuntuOne icon in the menu where I did not before. Trying to connect does not work, and the following error arrives on the stdout when i do ubuntuone-client -s :

/usr/lib/python2.6/dist-packages/ubuntuone/oauthdesktop/auth.py:195: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  raise UnknownLoginError(e.message)
Traceback (most recent call last):
  File "/var/lib/python-support/python2.6/dbus/connection.py", line 578, in msg_reply_handler
    reply_handler(*message.get_args_list(**get_args_opts))
  File "/usr/lib/python2.6/dist-packages/ubuntuone/oauthdesktop/auth.py", line 239, in got_state
    self.acquire_access_token(description, store)
  File "/usr/lib/python2.6/dist-packages/ubuntuone/oauthdesktop/auth.py", line 292, in acquire_access_token
    self.request_token = self.make_token_request(oauth_request)
  File "/usr/lib/python2.6/dist-packages/ubuntuone/oauthdesktop/auth.py", line 195, in make_token_request
    raise UnknownLoginError(e.message)
ubuntuone.oauthdesktop.auth.UnknownLoginError

HTH. Ali.

Revision history for this message
dobey (dobey) wrote :

Can you paste the corresponding line for the UnknownLoginError, from
your ~/.cache/ubuntuone/log/oauth-login.log file? Thanks.

On Tue, 2009-07-21 at 12:54 +0000, Ali Ross wrote:
> Updated: ii ubuntuone-client
> 0.90.4+r88-0ubuntu1~ppa1~jaunty Ubuntu One client
>
> Still not working for me, however I now see the UbuntuOne icon in the
> menu where I did not before. Trying to connect does not work, and the
> following error arrives on the stdout when i do ubuntuone-client -s :
>
> /usr/lib/python2.6/dist-packages/ubuntuone/oauthdesktop/auth.py:195: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
> raise UnknownLoginError(e.message)
> Traceback (most recent call last):
> File "/var/lib/python-support/python2.6/dbus/connection.py", line 578, in msg_reply_handler
> reply_handler(*message.get_args_list(**get_args_opts))
> File "/usr/lib/python2.6/dist-packages/ubuntuone/oauthdesktop/auth.py", line 239, in got_state
> self.acquire_access_token(description, store)
> File "/usr/lib/python2.6/dist-packages/ubuntuone/oauthdesktop/auth.py", line 292, in acquire_access_token
> self.request_token = self.make_token_request(oauth_request)
> File "/usr/lib/python2.6/dist-packages/ubuntuone/oauthdesktop/auth.py", line 195, in make_token_request
> raise UnknownLoginError(e.message)
> ubuntuone.oauthdesktop.auth.UnknownLoginError
>
> HTH. Ali.
>

Revision history for this message
Ali Ross (gnu2tux) wrote :

Don't know which is the 'relevant' line, so here's a good chunk of it:

2009-07-21 16:23:53,227:227.550983429 UbuntuOne.OAuthDesktop.main OAuth URLs are: request='https://ubuntuone.com/oauth/request/', userauth='https://ubuntuone.com/oauth/authorize/', access='https://ubuntuone.com/oauth/access/', secret='hammertime'
2009-07-21 16:23:53,324:324.34296608 UbuntuOne.OAuthDesktop.auth auth.AuthorisationClient created with parameters realm='https://ubuntuone.com', request_token_url='https://ubuntuone.com/oauth/request/', user_authorisation_url='https://ubuntuone.com/oauth/authorize/',access_token_url='https://ubuntuone.com/oauth/access/', consumer_key='ubuntuone', callback_parent='<bound method LoginProcessor.got_token of <ubuntuone.oauthdesktop.main.LoginProcessor instance at 0xa55a4ac>>'
2009-07-21 16:23:53,324:324.731111526 UbuntuOne.OAuthDesktop.main Calling auth.client.ensure_access_token in thread
2009-07-21 16:23:53,326:326.693058014 UbuntuOne.OAuthDesktop.auth Trying to fetch the token from the keyring
2009-07-21 16:23:53,330:330.595970154 UbuntuOne.OAuthDesktop.auth Access token was not in the keyring
2009-07-21 16:23:53,330:330.960988998 UbuntuOne.OAuthDesktop.auth Checking whether we are online
2009-07-21 16:23:53,342:342.196941376 UbuntuOne.OAuthDesktop.auth We are online
2009-07-21 16:23:53,342:342.641115189 UbuntuOne.OAuthDesktop.auth Creating a request token to begin access request
2009-07-21 16:23:53,344:344.402074814 UbuntuOne.OAuthDesktop.auth Making token request
2009-07-21 16:23:53,344:344.759941101 UbuntuOne.OAuthDesktop.auth Making a token request
2009-07-21 16:23:53,365:365.140914917 UbuntuOne.OAuthDesktop.auth There was some unknown login error '(7, "couldn't connect to host")'

HTH. Ali.

Revision history for this message
uccio_mi (stefano-manni) wrote :

even after the update does not work behind a proxy

Stefano Manni

2009/7/21 Ali Ross <email address hidden>:
> Don't know which is the 'relevant' line, so here's a good chunk of it:
>
> 2009-07-21 16:23:53,227:227.550983429 UbuntuOne.OAuthDesktop.main OAuth URLs are: request='https://ubuntuone.com/oauth/request/', userauth='https://ubuntuone.com/oauth/authorize/', access='https://ubuntuone.com/oauth/access/', secret='hammertime'
> 2009-07-21 16:23:53,324:324.34296608 UbuntuOne.OAuthDesktop.auth auth.AuthorisationClient created with parameters realm='https://ubuntuone.com', request_token_url='https://ubuntuone.com/oauth/request/', user_authorisation_url='https://ubuntuone.com/oauth/authorize/',access_token_url='https://ubuntuone.com/oauth/access/', consumer_key='ubuntuone', callback_parent='<bound method LoginProcessor.got_token of <ubuntuone.oauthdesktop.main.LoginProcessor instance at 0xa55a4ac>>'
> 2009-07-21 16:23:53,324:324.731111526 UbuntuOne.OAuthDesktop.main Calling auth.client.ensure_access_token in thread
> 2009-07-21 16:23:53,326:326.693058014 UbuntuOne.OAuthDesktop.auth Trying to fetch the token from the keyring
> 2009-07-21 16:23:53,330:330.595970154 UbuntuOne.OAuthDesktop.auth Access token was not in the keyring
> 2009-07-21 16:23:53,330:330.960988998 UbuntuOne.OAuthDesktop.auth Checking whether we are online
> 2009-07-21 16:23:53,342:342.196941376 UbuntuOne.OAuthDesktop.auth We are online
> 2009-07-21 16:23:53,342:342.641115189 UbuntuOne.OAuthDesktop.auth Creating a request token to begin access request
> 2009-07-21 16:23:53,344:344.402074814 UbuntuOne.OAuthDesktop.auth Making token request
> 2009-07-21 16:23:53,344:344.759941101 UbuntuOne.OAuthDesktop.auth Making a token request
> 2009-07-21 16:23:53,365:365.140914917 UbuntuOne.OAuthDesktop.auth There was some unknown login error '(7, "couldn't connect to host")'
>
> HTH. Ali.
>
> --
> cannot authorise machine behind proxy
> https://bugs.launchpad.net/bugs/376760
> You received this bug notification because you are a direct subscriber
> of a duplicate bug.
>

Revision history for this message
Istvan Botka (boti) wrote :
Download full text (5.3 KiB)

I'm updated today. It doesn't work yet. There is the output of "for i in python-ubuntuone-client python-ubuntuone-storageprotocol ubuntuone-client ubuntuone-client-gnome ubuntuone-client-tools ubuntuone-ppa ; do dpkg -s $i ; done" command:

Package: python-ubuntuone-client
Status: install ok installed
Priority: optional
Section: python
Installed-Size: 752
Maintainer: Ubuntu MOTU Developers <email address hidden>
Architecture: all
Source: ubuntuone-client
Version: 0.91.1+r109-0ubuntu1~ppa1~jaunty
Provides: python2.5-ubuntuone-client, python2.6-ubuntuone-client
Depends: python (>= 2.5), python-central (>= 0.6.11), python-ubuntuone-storageprotocol (>= 0.90.3), python-pycurl, python-dbus, python-xdg, python-twisted-web, xdg-utils, python-gnomekeyring | python-gnome2-desktop, python-notify, python-pyinotify, python-twisted-names
Description: Ubuntu One client Python libraries
 Ubuntu One is a suite of on-line services. This package provides the Python
 libraries for the Ubuntu One file storage and sharing synchronization
 daemon, and OAuth desktop integration.
Homepage: https://ubuntuone.com
Original-Maintainer: Rick McBride <email address hidden>
Python-Version: >= 2.5
Package: python-ubuntuone-storageprotocol
Status: install ok installed
Priority: optional
Section: python
Installed-Size: 288
Maintainer: Ubuntu MOTU Developers <email address hidden>
Architecture: all
Source: ubuntuone-storage-protocol
Version: 0.91.0+r55-0ubuntu1~ppa1~jaunty
Replaces: ubuntuone-storage-protocol
Provides: python2.5-ubuntuone-storageprotocol, python2.6-ubuntuone-storageprotocol
Depends: python (>= 2.5), python-central (>= 0.6.11), python-twisted-core, python-openssl, python-protobuf (>= 2.0.3-0ubuntu1), python-xdg
Conflicts: ubuntuone-storage-protocol
Conffiles:
 /etc/ssl/certs/UbuntuOne-Go_Daddy_CA.pem c8ee27407ad80a27f8316703b1e73de9
 /etc/ssl/certs/UbuntuOne-Go_Daddy_Class_2_CA.pem 4f5a072d379bdf90bc2f3c126ceaaab2
Description: Python library for Ubuntu One file storage and sharing service
 This package provides the network client library for accessing
 Ubuntu One file storage and sharing. This is the Python interface to
 Ubuntu One's online file storage and sharing service.
Homepage: https://ubuntuone.com
Original-Maintainer: Rick McBride <email address hidden>
Python-Version: >= 2.5
Package: ubuntuone-client
Status: install ok installed
Priority: optional
Section: net
Installed-Size: 164
Maintainer: Ubuntu MOTU Developers <email address hidden>
Architecture: all
Version: 0.91.1+r109-0ubuntu1~ppa1~jaunty
Replaces: nautilus-ubuntuone, ubuntuone-oauth-login, ubuntuone-storagefs
Depends: python-ubuntuone-client (= 0.91.1+r109-0ubuntu1~ppa1~jaunty), python-configglue, python-apport
Conflicts: nautilus-ubuntuone, ubuntuone-oauth-login, ubuntuone-storagefs
Conffiles:
 /etc/xdg/ubuntuone/oauth_urls 153e7bddc415f11bf4edaa5122a686d6
 /etc/xdg/ubuntuone/syncdaemon.conf c0cd99b589812614b155722c1c73b726
 /etc/xdg/ubuntuone/oauth_registration.d/ubuntuone 18188c3964431156a180c96107f3c043
Description: Ubuntu One client
 Ubuntu One is a suite of on-line services. This package contains the
 synchronization daemon for the Ubuntu One file sharin...

Read more...

Revision history for this message
mdalacu (mdalacu) wrote :

Same problem here... I am also behind a proxy server.

rldalam@crlubuntu:~$ ubuntuone-client-applet --signup
/usr/lib/python2.6/dist-packages/ubuntuone/oauthdesktop/auth.py:195: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  raise UnknownLoginError(e.message)
Traceback (most recent call last):
  File "/var/lib/python-support/python2.6/dbus/connection.py", line 578, in msg_reply_handler
    reply_handler(*message.get_args_list(**get_args_opts))
  File "/usr/lib/python2.6/dist-packages/ubuntuone/oauthdesktop/auth.py", line 241, in got_state
    self.acquire_access_token(description, store)
  File "/usr/lib/python2.6/dist-packages/ubuntuone/oauthdesktop/auth.py", line 294, in acquire_access_token
    self.request_token = self.make_token_request(oauth_request)
  File "/usr/lib/python2.6/dist-packages/ubuntuone/oauthdesktop/auth.py", line 195, in make_token_request
    raise UnknownLoginError(e.message)
ubuntuone.oauthdesktop.auth.UnknownLoginError

Changed in ubuntuone-client:
status: Fix Released → Fix Committed
status: Fix Committed → Fix Released
Revision history for this message
david_kt (d-kuntadi) wrote :

As of today (November 6), I still face this problem. I have to bypass firewall to connect.

Revision history for this message
Tim Wahrendorff (tim.timwahrendorff) wrote :

Sit behind a proxy in a studentresidence.

Cannot connect to ubuntuone. Nothing works. Can't use ubuntuOne shop in Rhythmbox, cannot use anythng related to ubuntuone...
Cannot even login from within ubuntu. Error message says: "'NoneType' object has no attribute 'makefile'".

Seriously. ubuntuOne Client never worked really good. It's an annoying piece of sh..software. Sorry to say that, but it's worthless like this. Do it again but better and working! Thx.

Changed in ubuntuone-client:
status: Fix Released → Incomplete
Revision history for this message
papukaija (papukaija) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu One better. This particular bug has already been reported and is a duplicate of bug 387308, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find.

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.