pull-ppa-source crashed with ubuntutools.misc.DownloadError in _download_file_from_urls(): Failed to download /tmp/tmpwwavfcfx/openssl_1.0.2g-1ubuntu4.20.dsc

Bug #1938659 reported by Alex Murray
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-dev-tools (Ubuntu)
Fix Released
Medium
Alex Murray

Bug Description

pull-ppa-source crashes when trying to download source packages from a PPA in impish:

e.g.:

$ pull-ppa-source --ppa ubuntu-security-proposed/ppa openssl xenial --no-conf -vvvvvvvvv
pullpkg options: {'login': False, 'verbose': 9, 'download_only': False, 'mirror': None, 'no_conf': True, 'no_verify_signature': False, 'status': [], 'arch': 'amd64', 'pull': 'source', 'distro': 'ppa', 'ppa': 'ubuntu-security-proposed/ppa', 'package': 'openssl', 'release': 'xenial', 'version': None, 'security': False, 'upload_queue': False}
Parsed release 'xenial' pocket 'None'
Distribution: https://api.launchpad.net/devel/ubuntu
DistroSeries: https://api.launchpad.net/devel/ubuntu/xenial
Using distro 'ppa' release 'xenial' pocket 'None'
PersonTeam: https://api.launchpad.net/devel/~ubuntu-security-proposed
Archive: https://api.launchpad.net/devel/~ubuntu-security-proposed/+archive/ubuntu/ppa
Using PPA 'https://launchpad.net/~ubuntu-security-proposed/+archive/ubuntu/ppa'
Calling getPublishedSources(source_name=openssl, exact_match=True, distro_series=https://api.launchpad.net/devel/ubuntu/xenial)
SourcePackagePublishingHistory: https://api.launchpad.net/devel/~ubuntu-security-proposed/+archive/ubuntu/ppa/+sourcepub/12519281
Found openssl 1.0.2g-1ubuntu4.20 in xenial
Parsed <generator object SourcePackage._source_urls at 0x7f40bdb6e430> as /tmp/<generator object SourcePackage._source_urls at 0x7f40bdb6e430>
File not found at <generator object SourcePackage._source_urls at 0x7f40bdb6e430>
Traceback (most recent call last):
  File "/usr/bin/pull-ppa-source", line 12, in <module>
    PullPkg.main(distro='ppa', pull='source')
  File "/usr/lib/python3/dist-packages/ubuntutools/pullpkg.py", line 106, in main
    cls(*args, **kwargs).pull()
  File "/usr/lib/python3/dist-packages/ubuntutools/pullpkg.py", line 426, in pull
    srcpkg.pull()
  File "/usr/lib/python3/dist-packages/ubuntutools/archive.py", line 431, in pull
    Path(self.dsc_pathname).write_bytes(self.dsc.raw_text)
  File "/usr/lib/python3/dist-packages/ubuntutools/archive.py", line 292, in dsc
    self._download_file_from_urls(urls, tmpdsc)
  File "/usr/lib/python3/dist-packages/ubuntutools/archive.py", line 413, in _download_file_from_urls
    raise DownloadError(f'Failed to download {filename}')
ubuntutools.misc.DownloadError: Failed to download /tmp/tmpllz4pb6t/openssl_1.0.2g-1ubuntu4.20.dsc

ProblemType: Crash
DistroRelease: Ubuntu 21.10
Package: ubuntu-dev-tools 0.184
ProcVersionSignature: Ubuntu 5.11.0-25.27-generic 5.11.22
Uname: Linux 5.11.0-25-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu67
Architecture: amd64
CasperMD5CheckResult: unknown
CrashCounter: 1
CurrentDesktop: ubuntu:GNOME
Date: Mon Aug 2 10:38:10 2021
ExecutablePath: /usr/bin/pull-ppa-source
InstallationDate: Installed on 2020-10-11 (294 days ago)
InstallationMedia: Ubuntu 20.10 "Groovy Gorilla" - Beta amd64 (20200930)
InterpreterPath: /usr/bin/python3.9
PackageArchitecture: all
ProcCmdline: /usr/bin/python3 /usr/bin/pull-ppa-source --ppa ubuntu-security-proposed/ppa openssl xenial
Python3Details: /usr/bin/python3.9, Python 3.9.6, python3-minimal, 3.9.4-1
PythonArgs: ['/usr/bin/pull-ppa-source', '--ppa', 'ubuntu-security-proposed/ppa', 'openssl', 'xenial']
PythonDetails: N/A
SourcePackage: ubuntu-dev-tools
Title: pull-ppa-source crashed with ubuntutools.misc.DownloadError in _download_file_from_urls(): Failed to download /tmp/tmpwwavfcfx/openssl_1.0.2g-1ubuntu4.20.dsc
UpgradeStatus: Upgraded to impish on 2021-07-24 (8 days ago)
UserGroups: adm cdrom dialout dip libvirt lpadmin lxd plugdev sambashare sbuild sudo

Revision history for this message
Alex Murray (alexmurray) wrote :
tags: removed: need-duplicate-check
Changed in ubuntu-dev-tools (Ubuntu):
importance: Undecided → Medium
Alex Murray (alexmurray)
description: updated
description: updated
Revision history for this message
Alex Murray (alexmurray) wrote :
Mattia Rizzolo (mapreri)
Changed in ubuntu-dev-tools (Ubuntu):
assignee: nobody → Alex Murray (alexmurray)
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-dev-tools - 0.185

---------------
ubuntu-dev-tools (0.185) unstable; urgency=medium

  [ Alex Murray ]
  * ubuntutools/archive.py:
    + Fix crash due to PersonalPackageArchiveSourcePackage() returning the
      wrong object when requesting a download url. LP: #1938659

  [ Krytarik Raido ]
  * merge-changelog: Fix setting of newlines.

  [ Dan Streetman ]
  * misc: download to tmp file, to avoid leftover 0-size file on error
  * misc: handle ConnectionError as NotFoundError
  * archive: use proper component source packages sometimes have different
    component than their bpphs, so use the correct component when downloading
    binaries (LP: #1943819)
  * misc: fix flake8 complaints

  [ Stefano Rivera ]
  * Bump Standards-Version to 4.6.0, no changes needed.

 -- Stefano Rivera <email address hidden> Fri, 17 Sep 2021 15:53:02 -0700

Changed in ubuntu-dev-tools (Ubuntu):
status: Fix Committed → Fix Released
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.