No such file writing to launchpadlib cache

Bug #968672 reported by James Westby on 2012-03-29
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

On production:

Traceback (most recent call last):
  File "/srv/", line 11, in <module>
  File "/srv/", line 477, in main
    fetch_symbol_files(glue.options.scan_mode, package_name, db)
  File "/srv/", line 467, in fetch_symbol_files
    for symbols in package.iter_symbols()]
  File "/srv/", line 178, in iter_symbols
    contents = self.get_symbol_contents()
  File "/srv/", line 163, in get_symbol_contents
    url = self.get_url()
  File "/srv/", line 154, in get_url
  File "/usr/lib/pymodules/python2.6/lazr/restfulclient/", line 638, in __getattr__
    return super(Entry, self).__getattr__(name)
  File "/usr/lib/pymodules/python2.6/lazr/restfulclient/", line 301, in __getattr__
    return self.lp_get_parameter(attr)
  File "/usr/lib/pymodules/python2.6/lazr/restfulclient/", line 196, in lp_get_parameter
  File "/usr/lib/pymodules/python2.6/lazr/restfulclient/", line 331, in _ensure_representation
    representation = self._root._browser.get(self._wadl_resource)
  File "/usr/lib/pymodules/python2.6/lazr/restfulclient/", line 316, in get
    response, content = self._request(url, extra_headers=headers)
  File "/usr/lib/pymodules/python2.6/lazr/restfulclient/", line 260, in _request
    str(url), method=method, body=data, headers=headers)
  File "/usr/lib/pymodules/python2.6/httplib2/", line 1444, in request
    (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
  File "/usr/lib/pymodules/python2.6/lazr/restfulclient/", line 154, in _request
    redirections, cachekey)
  File "/usr/lib/pymodules/python2.6/httplib2/", line 1252, in _request
    _updateCache(headers, response, content, self.cache, cachekey)
  File "/usr/lib/pymodules/python2.6/httplib2/", line 431, in _updateCache
    cache.set(cachekey, text)
  File "/usr/lib/pymodules/python2.6/httplib2/", line 701, in set
    f = file(cacheFullPath, "wb")
IOError: [Errno 2] No such file or directory: '/tmp/tmp73A0tW/,1.0,ubuntu,+archive,primary-application,json,9bed33d81765f1955f0f0017af06608e'

Related branches

Jonathan Lange: Approve on 2012-04-02
James Westby (james-w) wrote :

Ah, ok, so this is fallout from the cachedir bug. The cache is removed but a reference
to a webservice object outlives it, and not all of the info has been fetched.



Changed in pkgme-binary:
status: New → Fix Committed
Jonathan Lange (jml) on 2012-07-16
Changed in pkgme-devportal:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers