crash on start "dropbox start -i" Error: [Errno 8] _ssl.c:509: EOF occurred in violation of protocol

Bug #1267381 reported by Jerome
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
nautilus-dropbox (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Hi,

I work behind a proxy, using a fresh 13.10 installation of Ubuntu

1) dropbox installed from the main repository does not shown up in the indicator bar.

2) when using the command line "dropbox start -i" i get (deleteing some info):

Starting Dropbox...
Dropbox is the easiest way to share and store your files online. Want to learn more? Head to http://www.dropbox.com/
Error: Trouble connecting to Dropbox servers. Maybe your internet connection is down, or you need to set your http_proxy environment variable.
URL that failed to download: http://www.dropbox.com/download?plat=lnx.x86_64
Error: [Errno 8] _ssl.c:509: EOF occurred in violation of protocol
http_proxy = ***********-https_proxy = ***********
The installation of Dropbox failed.

while "wget http://www.dropbox.com/download?plat=lnx.x86_64" would work fine.

3) Going to the Dropbox website and following the procedure to download and install, i get a finctional dropbox installation in .dropbox

Best regards,

J

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nautilus-dropbox (Ubuntu):
status: New → Confirmed
Revision history for this message
Rüdiger Kupper (ruediger.kupper) wrote :

Specifcally, installation fails *even when $http_proxy and/or $https_proxy is configured.

Details:
We have a proxy at 10.32.1.250:8080. It's completely transparent, it simply serves for authentication (log who accesses the internet).

(A) If I do neither configure $http_proxy, nor $http_proxy, I get:

root@ltsp8:~# export http_proxy=
root@ltsp8:~# export https_proxy=
root@ltsp8:~# dropbox start -i
Starting Dropbox...
Dropbox is the easiest way to share and store your files online. Want to learn more? Head to http://www.dropbox.com/

Traceback (most recent call last):
  File "/usr/bin/dropbox", line 1404, in <module>
    ret = main(sys.argv)
  File "/usr/bin/dropbox", line 1393, in main
    result = commands[argv[i]](argv[i+1:])
  File "/usr/bin/dropbox", line 817, in update
    download()
  File "/usr/bin/dropbox", line 540, in download
    download = DownloadState()
  File "/usr/bin/dropbox", line 264, in __init__
    self.size = int(self.socket.info()['content-length'])
  File "/usr/lib/python2.7/rfc822.py", line 388, in __getitem__
    return self.dict[name.lower()]
KeyError: 'content-length'
The installation of Dropbox failed.

(B) If I configure $http_proxy only, I get:

root@ltsp8:~# export http_proxy=http://10.32.1.250:8080
root@ltsp8:~# export https_proxy=
root@ltsp8:~# dropbox start -i
Starting Dropbox...
Dropbox is the easiest way to share and store your files online. Want to learn more? Head to http://www.dropbox.com/

Enter username for Zieladresse ausserhalb des Kepler-Netzwerkes (proxyL) at 10.32.1.250:8080: kup
Enter password for kup in Zieladresse ausserhalb des Kepler-Netzwerkes (proxyL) at 10.32.1.250:8080:

(at this point, installation hangs forever, obviously trying to get through to an https:// address).

(C) If I configure both $http_proxy and $https_proxy, I get:

root@ltsp8:~# export http_proxy=http://10.32.1.250:8080
root@ltsp8:~# export https_proxy=https://10.32.1.250:8080
root@ltsp8:~# dropbox start -i
Starting Dropbox...
Dropbox is the easiest way to share and store your files online. Want to learn more? Head to http://www.dropbox.com/

Enter username for Zieladresse ausserhalb des Kepler-Netzwerkes (proxyL) at 10.32.1.250:8080: kup
Enter password for kup in Zieladresse ausserhalb des Kepler-Netzwerkes (proxyL) at 10.32.1.250:8080:

Error: Trouble connecting to Dropbox servers. Maybe your internet connection is down, or you need to set your http_proxy environment variable.

URL that failed to download: http://www.dropbox.com/download?plat=lnx.x86_64
Error: [Errno 1] _ssl.c:509: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
http_proxy = http://10.32.1.250:8080https_proxy = https://10.32.1.250:8080
The installation of Dropbox failed.

So, there's literally no way that works. Dropbox cannot be installed behind a proxy.

Please fix quick!

Revision history for this message
Rüdiger Kupper (ruediger.kupper) wrote :

Please not especially the line
> http_proxy = http://10.32.1.250:8080https_proxy = https://10.32.1.250:8080

This looks as if environments variables for http_proxy and https_proxy get falsely concatenated (programmer forgot a ";" ???)

Revision history for this message
Chow Loong Jin (hyperair) wrote : Re: [Bug 1267381] Re: crash on start "dropbox start -i" Error: [Errno 8] _ssl.c:509: EOF occurred in violation of protocol

On Thu, Mar 20, 2014 at 05:24:39PM -0000, Rüdiger Kupper wrote:
> Please not especially the line
> > http_proxy = http://10.32.1.250:8080https_proxy = https://10.32.1.250:8080
>
> This looks as if environments variables for http_proxy and https_proxy
> get falsely concatenated (programmer forgot a ";" ???)

Looks like just an error in constructing the error message:

def get_download_debug_info(url, e):
    msg = "\nURL that failed to download: %s\nError: %s\n" % (url, e.strerror)
    if "http_proxy" in os.environ:
        msg += "http_proxy = %s" % os.environ["http_proxy"]
    if "https_proxy" in os.environ:
        msg += "https_proxy = %s" % os.environ["https_proxy"]
    return msg

--
Kind regards,
Loong Jin

Revision history for this message
Rüdiger Kupper (ruediger.kupper) wrote :

Right, so that's not the cause.
(As an aside, the error messages you get from dropbox are not very helpful. In the first example, you get "KeyError: 'content-length'". In the last example, it suggests setting $http_proxy, while it is already set.)

Revision history for this message
Chow Loong Jin (hyperair) wrote :

On Sat, Mar 22, 2014 at 05:26:09PM -0000, Rüdiger Kupper wrote:
> Right, so that's not the cause.
> (As an aside, the error messages you get from dropbox are not very helpful. In the first example, you get "KeyError: 'content-length'". In the last example, it suggests setting $http_proxy, while it is already set.)

Content-Length missing suggests that either the proxy isn't functioning properly
(not forwarding the Content-Length header) or that it's returning some status
code that the dropbox installation script doesn't understand.

I'll need to set up a local HTTP proxy to debug this, unless someone offers me a
proxy server that shows this problem. :/

--
Kind regards,
Loong Jin

Revision history for this message
Rüdiger Kupper (ruediger.kupper) wrote :

Thanks for caring.
Sorry, I don't have a proxy you can access. If it helps: Ours is Squid with a fairly standard configuration.

Revision history for this message
Chow Loong Jin (hyperair) wrote :

On Sun, Mar 23, 2014 at 10:22:11AM -0000, Rüdiger Kupper wrote:
> Thanks for caring.
> Sorry, I don't have a proxy you can access. If it helps: Ours is Squid with a fairly standard configuration.

Thanks, I'll try reproducing that later.

--
Kind regards,
Loong Jin

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.