dropbox crashed with KeyError in __getitem__(): 'content-length'

Bug #846871 reported by Omid Mottaghi
120
This bug affects 22 people
Affects Status Importance Assigned to Milestone
nautilus-dropbox (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

nautilu-dropbox 0.6.8-1

ProblemType: Crash
DistroRelease: Ubuntu 11.10
Package: nautilus-dropbox 0.6.8-1
ProcVersionSignature: Ubuntu 3.0.0-10.16-generic 3.0.4
Uname: Linux 3.0.0-10-generic i686
ApportVersion: 1.22.1-0ubuntu2
Architecture: i386
Date: Sun Sep 11 13:03:06 2011
ExecutablePath: /usr/bin/dropbox
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
InterpreterPath: /usr/bin/python2.7
ProcCmdline: /usr/bin/python /usr/bin/dropbox update
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/dropbox', 'update']
SourcePackage: nautilus-dropbox
Title: dropbox crashed with KeyError in __getitem__(): 'content-length'
UpgradeStatus: Upgraded to oneiric on 2011-09-04 (6 days ago)
UserGroups:

Revision history for this message
Omid Mottaghi (omidmottaghi) wrote :
tags: removed: need-duplicate-check
visibility: private → public
Revision history for this message
Benjamín Burgos V. (bburgosv) wrote :

Same error on 11.04

:~$ dropbox start -i
Starting Dropbox...Traceback (most recent call last):
  File "/usr/bin/dropbox", line 250, in handle_ok
    self.download = DownloadState()
  File "/usr/bin/dropbox", line 157, in __init__
    self.size = int(self.file.info()['content-length'])
  File "/usr/lib/python2.7/rfc822.py", line 388, in __getitem__
    return self.dict[name.lower()]
KeyError: 'content-length'

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
Rui Nóbrega (ranobrega) wrote :

Same here.
After the upgrade from 11.04, Dropbox simply did not start, showing the same errors that you can see above.
I solved this by installing a previous version of Dropbox (dropbox_0.6.8_i386), and starting dropbox from the command line.
Regards
RN

Revision history for this message
Raphaël Hertzog (hertzog) wrote :

Content-Length is a field that the Dropbox HTTP server returns in theory. If it's not there, it's not really a fault of the package...

$ HEAD http://www.dropbox.com/download?plat=lnx.x86
200 OK
Cache-Control: max-age=0
Connection: close
Date: Sat, 29 Oct 2011 14:16:38 GMT
Pragma: public
Accept-Ranges: bytes
Server: dbws
Content-Length: 16490475
Content-Type: application/x-tar
Client-Date: Sat, 29 Oct 2011 14:16:04 GMT
Client-Peer: 107.20.133.134:80
Client-Response-Num: 1
X-Robots-Tag: noindex,nofollow

As you see Content-Length is there...

Revision history for this message
Raphaël Hertzog (hertzog) wrote :

This bug is related to http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=651065 and http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=651143

The real underlying problem is likely an intermediary proxy that refuses the download.

Revision history for this message
John Perry (jjperry) wrote :

Therefore, this package should be more resilient if the network is not up yet.
When Ubuntu boots up, the wireless network may take several seconds to get activated. This is especially true when the router does not broadcast the SSID.

Changed in nautilus-dropbox (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Beth Holt (nbethholt) wrote :

Mine works. It just throws the error (along with everything else at startup)

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.