MyApps backend for pkgme

No such file writing to launchpadlib cache

Reported by James Westby on 2012-03-29
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pkgme-devportal
Undecided
Unassigned

Bug Description

On production:

Traceback (most recent call last):
  File "/srv/myapps-library.canonical.com/production/import-scripts/sourcecode/pkgme-binary/bin/fetch-symbol-files", line 11, in <module>
    sys.exit(database.main())
  File "/srv/myapps-library.canonical.com/production/import-scripts/sourcecode/pkgme-binary/devportalbinary/database.py", line 477, in main
    fetch_symbol_files(glue.options.scan_mode, package_name, db)
  File "/srv/myapps-library.canonical.com/production/import-scripts/sourcecode/pkgme-binary/devportalbinary/database.py", line 467, in fetch_symbol_files
    for symbols in package.iter_symbols()]
  File "/srv/myapps-library.canonical.com/production/import-scripts/sourcecode/pkgme-binary/devportalbinary/database.py", line 178, in iter_symbols
    contents = self.get_symbol_contents()
  File "/srv/myapps-library.canonical.com/production/import-scripts/sourcecode/pkgme-binary/devportalbinary/database.py", line 163, in get_symbol_contents
    url = self.get_url()
  File "/srv/myapps-library.canonical.com/production/import-scripts/sourcecode/pkgme-binary/devportalbinary/database.py", line 154, in get_url
    self.bpph.archive.web_link,
  File "/usr/lib/pymodules/python2.6/lazr/restfulclient/resource.py", line 638, in __getattr__
    return super(Entry, self).__getattr__(name)
  File "/usr/lib/pymodules/python2.6/lazr/restfulclient/resource.py", line 301, in __getattr__
    return self.lp_get_parameter(attr)
  File "/usr/lib/pymodules/python2.6/lazr/restfulclient/resource.py", line 196, in lp_get_parameter
    self._ensure_representation()
  File "/usr/lib/pymodules/python2.6/lazr/restfulclient/resource.py", line 331, in _ensure_representation
    representation = self._root._browser.get(self._wadl_resource)
  File "/usr/lib/pymodules/python2.6/lazr/restfulclient/_browser.py", line 316, in get
    response, content = self._request(url, extra_headers=headers)
  File "/usr/lib/pymodules/python2.6/lazr/restfulclient/_browser.py", line 260, in _request
    str(url), method=method, body=data, headers=headers)
  File "/usr/lib/pymodules/python2.6/httplib2/__init__.py", 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/_browser.py", line 154, in _request
    redirections, cachekey)
  File "/usr/lib/pymodules/python2.6/httplib2/__init__.py", line 1252, in _request
    _updateCache(headers, response, content, self.cache, cachekey)
  File "/usr/lib/pymodules/python2.6/httplib2/__init__.py", line 431, in _updateCache
    cache.set(cachekey, text)
  File "/usr/lib/pymodules/python2.6/httplib2/__init__.py", line 701, in set
    f = file(cacheFullPath, "wb")
IOError: [Errno 2] No such file or directory: '/tmp/tmp73A0tW/api.launchpad.net/cache/api.launchpad.net,1.0,ubuntu,+archive,primary-application,json,9bed33d81765f1955f0f0017af06608e'

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.

Thanks,

James

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