[Bug 2096794] Re: apport stops working while collecting crash info on Xubuntu 25.04

Guybrush88 2096794 at bugs.launchpad.net
Mon Jan 27 19:00:55 UTC 2025


this is the traceback appearing when trying to add a crash report to an
existing ticket:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/launchpadlib/credentials.py", line 668, in check_end_user_authorization
    credentials.exchange_request_token_for_access_token(self.web_root)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/launchpadlib/credentials.py", line 217, in exchange_request_token_for_access_token
    response, content = _http_post(url, headers, params)
                        ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/launchpadlib/credentials.py", line 87, in _http_post
    raise HTTPError(response, content)
lazr.restfulclient.errors.HTTPError: HTTP Error 401: Unauthorized
Response headers:
---
content-length: 57
content-security-policy: frame-ancestors 'self';
content-type: text/plain;charset=utf-8
date: Mon, 27 Jan 2025 18:57:59 GMT
server: gunicorn
status: 401
strict-transport-security: max-age=15552000
vary: Cookie,Authorization
www-authenticate: OAuth realm="https://api.launchpad.net"
x-content-type-options: nosniff
x-content-type-warning: guessed from content
x-frame-options: SAMEORIGIN
x-launchpad-revision: 4320d60786f71ace1040d24263eb30d3a5cc7d6b
x-powered-by: Zope (www.zope.org), Python (www.python.org)
x-request-id: 7c95cf6c-c6c5-46ce-ad5c-d843571364b9
x-vcs-revision: 4320d60786f71ace1040d24263eb30d3a5cc7d6b
x-xss-protection: 1; mode=block
---
Response body:
---
b'Request token has not yet been reviewed. Try again later.'
---


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/share/apport/apport-gtk", line 660, in <module>
    app.run_argv()
    ~~~~~~~~~~~~^^
  File "/usr/lib/python3/dist-packages/apport/ui.py", line 918, in run_argv
    return self.run_update_report()
           ~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3/dist-packages/apport/ui.py", line 746, in run_update_report
    if not self.crashdb.can_update(self.args.update_report):
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/apport/crashdb_impl/launchpad.py", line 563, in can_update
    bug = self.launchpad.bugs[crash_id]
          ^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/apport/crashdb_impl/launchpad.py", line 166, in launchpad
    self.__launchpad = Launchpad.login_with(
                       ~~~~~~~~~~~~~~~~~~~~^
        "apport-collect",
        ^^^^^^^^^^^^^^^^^
    ...<4 lines>...
        version="1.0",
        ^^^^^^^^^^^^^^
    )
    ^
  File "/usr/lib/python3/dist-packages/launchpadlib/launchpad.py", line 693, in login_with
    return cls._authorize_token_and_login(
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        authorization_engine.consumer,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<8 lines>...
        version,
        ^^^^^^^^
    )
    ^
  File "/usr/lib/python3/dist-packages/launchpadlib/launchpad.py", line 444, in _authorize_token_and_login
    credentials = authorization_engine(credentials, credential_store)
  File "/usr/lib/python3/dist-packages/launchpadlib/credentials.py", line 602, in __call__
    self.make_end_user_authorize_token(credentials, request_token_string)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/launchpadlib/credentials.py", line 693, in make_end_user_authorize_token
    self.wait_for_end_user_authorization(credentials)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/launchpadlib/credentials.py", line 687, in wait_for_end_user_authorization
    self.check_end_user_authorization(credentials)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/launchpadlib/credentials.py", line 680, in check_end_user_authorization
    raise EndUserNoAuthorization(e.content)
launchpadlib.credentials.EndUserNoAuthorization: b'Request token has not yet been reviewed. Try again later.'

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/2096794

Title:
  apport stops working while collecting crash info on Xubuntu 25.04

Status in apport package in Ubuntu:
  New

Bug description:
  I was trying to report a crash for another software, and apport stops
  working while doing so on Xubuntu 25.04. This error happens after
  apport collects the crash report info.

  This is the traceback along with the command I used to report the
  original bug:

  ~$ sudo ubuntu-bug -c /home/username/Documents/_usr_games_widelands.1000.crash
  Traceback (most recent call last):
    File "/usr/share/apport/apport-gtk", line 660, in <module>
      app.run_argv()
      ~~~~~~~~~~~~^^
    File "/usr/lib/python3/dist-packages/apport/ui.py", line 924, in run_argv
      self.run_crash(self.args.crash_file)
      ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3/dist-packages/apport/ui.py", line 511, in run_crash
      self.file_report()
      ~~~~~~~~~~~~~~~~^^
    File "/usr/lib/python3/dist-packages/apport/ui.py", line 1790, in file_report
      upthread.exc_raise()
      ~~~~~~~~~~~~~~~~~~^^
    File "/usr/lib/python3/dist-packages/apport/REThread.py", line 67, in exc_raise
      raise self._exception[1].with_traceback(self._exception[2])
    File "/usr/lib/python3/dist-packages/apport/REThread.py", line 42, in run
      self._retval = self.__target(*self.__args, **self.__kwargs)
                     ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3/dist-packages/apport/crashdb_impl/launchpad.py", line 223, in upload
      ticket = upload_blob(blob_file, progress_callback, hostname=self.get_hostname())
    File "/usr/lib/python3/dist-packages/apport/crashdb_impl/launchpad.py", line 1251, in upload_blob
      assert ticket
             ^^^^^^
  AssertionError
  ---
  ProblemType: Bug
  ApportLog:
   INFO: apport (pid 2724) 2025-01-27 19:14:40,887: called for pid 2477, signal 6, core limit 0, dump mode 1
   ERROR: apport (pid 2724) 2025-01-27 19:14:41,889: gdbus call error: Error: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

   INFO: apport (pid 2724) 2025-01-27 19:14:41,893: executable: /usr/games/widelands (command line "widelands")
   INFO: apport (pid 2724) 2025-01-27 19:15:06,935: wrote report /var/crash/_usr_games_widelands.1000.crash
  ApportVersion: 2.31.0-0ubuntu3
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: XFCE
  DistroRelease: Ubuntu 25.04
  InstallationDate: Installed on 2025-01-19 (8 days ago)
  InstallationMedia: Xubuntu 24.04.1 LTS "Noble Numbat" - Release amd64 (20240827)
  Package: apport 2.31.0-0ubuntu3
  PackageArchitecture: all
  ProcEnviron:
   LANG=it_IT.UTF-8
   PATH=(custom, no user)
   SHELL=/bin/bash
   TERM=xterm-256color
   XDG_RUNTIME_DIR=<set>
  ProcVersionSignature: Ubuntu 6.11.0-13.14-generic 6.11.0
  Tags: plucky
  Uname: Linux 6.11.0-13-generic x86_64
  UpgradeStatus: Upgraded to plucky on 2025-01-26 (1 days ago)
  UserGroups: adm cdrom dip lpadmin plugdev sudo users
  _MarkForUpload: True

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/2096794/+subscriptions




More information about the foundations-bugs mailing list