[Bug 2072701] [NEW] do-release-upgrade failed (due to out of disk space)

timeless 2072701 at bugs.launchpad.net
Wed Jul 10 21:46:15 UTC 2024


Public bug reported:

Please report this bug in a browser at
http://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+filebug
and attach the files in /var/log/dist-upgrade/ to the bug report.
E:Sub-process /usr/bin/dpkg returned an error code (1)

dpkg: unrecoverable fatal error, aborting:
 unable to flush /var/lib/dpkg/updates/tmp.i after padding: No space left on device
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.12/logging/__init__.py", line 1164, in emit
    self.flush()
  File "/usr/lib/python3.12/logging/__init__.py", line 1144, in flush
    self.stream.flush()
OSError: [Errno 28] No space left on device
Call stack:
  File "/tmp/ubuntu-release-upgrader-gdo10meu/./xorg_fix_proprietary.py", line 88, in <module>
    logging.info("%s running" % sys.argv[0])
Message: '/usr/bin/do-release-upgrade running'
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.12/logging/__init__.py", line 1164, in emit
    self.flush()
  File "/usr/lib/python3.12/logging/__init__.py", line 1144, in flush
    self.stream.flush()
OSError: [Errno 28] No space left on device
Call stack:
  File "/tmp/ubuntu-release-upgrader-gdo10meu/./xorg_fix_proprietary.py", line 91, in <module>
    logging.info("No xorg.conf, exiting")
Message: 'No xorg.conf, exiting'
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.12/logging/__init__.py", line 1164, in emit
    self.flush()
  File "/usr/lib/python3.12/logging/__init__.py", line 1144, in flush
    self.stream.flush()
OSError: [Errno 28] No space left on device
Call stack:
  File "/usr/lib/ubuntu-advantage/convert_list_to_deb822.py", line 32, in <module>
    cfg = UAConfig()
  File "/usr/lib/python3/dist-packages/uaclient/config.py", line 96, in __init__
    self.cfg, self.invalid_keys = parse_config(self.cfg_path)
  File "/usr/lib/python3/dist-packages/uaclient/config.py", line 491, in parse_config
    LOG.debug("Using client configuration file at %s", config_path)
Message: 'Using client configuration file at %s'
Arguments: ('/etc/ubuntu-advantage/uaclient.conf',)
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.12/logging/__init__.py", line 1164, in emit
    self.flush()
  File "/usr/lib/python3.12/logging/__init__.py", line 1144, in flush
    self.stream.flush()
OSError: [Errno 28] No space left on device
Call stack:
  File "/usr/lib/ubuntu-advantage/convert_list_to_deb822.py", line 32, in <module>
    cfg = UAConfig()
  File "/usr/lib/python3/dist-packages/uaclient/config.py", line 96, in __init__
    self.cfg, self.invalid_keys = parse_config(self.cfg_path)
  File "/usr/lib/python3/dist-packages/uaclient/config.py", line 493, in parse_config
    cfg.update(safe_load(system.load_file(config_path)))
  File "/usr/lib/python3/dist-packages/uaclient/system.py", line 522, in load_file
    LOG.debug("Reading file: %s", filename)
Message: 'Reading file: %s'
Arguments: ('/etc/ubuntu-advantage/uaclient.conf',)
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/uaclient/files/files.py", line 65, in read
    content = system.load_file(self.path)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/uaclient/system.py", line 521, in load_file
    with open(filename, "rb") as stream:
         ^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/ubuntu-advantage/private/user-config.json'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.12/logging/__init__.py", line 1164, in emit
    self.flush()
  File "/usr/lib/python3.12/logging/__init__.py", line 1144, in flush
    self.stream.flush()
OSError: [Errno 28] No space left on device
Call stack:
  File "/usr/lib/ubuntu-advantage/convert_list_to_deb822.py", line 32, in <module>
    cfg = UAConfig()
  File "/usr/lib/python3/dist-packages/uaclient/config.py", line 102, in __init__
    self.user_config = user_config_file.user_config.read()
  File "/usr/lib/python3/dist-packages/uaclient/files/user_config_file.py", line 131, in read
    private_config = self._private.read()
  File "/usr/lib/python3/dist-packages/uaclient/files/data_types.py", line 39, in read
    raw_data = self.ua_file.read()
  File "/usr/lib/python3/dist-packages/uaclient/files/files.py", line 67, in read
    LOG.debug("Tried to load %s but file does not exist", self.path)
Message: 'Tried to load %s but file does not exist'
Arguments: ('/var/lib/ubuntu-advantage/private/user-config.json',)
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/uaclient/files/files.py", line 65, in read
    content = system.load_file(self.path)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/uaclient/system.py", line 521, in load_file
    with open(filename, "rb") as stream:
         ^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/ubuntu-advantage/user-config.json'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.12/logging/__init__.py", line 1164, in emit
    self.flush()
  File "/usr/lib/python3.12/logging/__init__.py", line 1144, in flush
    self.stream.flush()
OSError: [Errno 28] No space left on device
Call stack:
  File "/usr/lib/ubuntu-advantage/convert_list_to_deb822.py", line 32, in <module>
    cfg = UAConfig()
  File "/usr/lib/python3/dist-packages/uaclient/config.py", line 102, in __init__
    self.user_config = user_config_file.user_config.read()
  File "/usr/lib/python3/dist-packages/uaclient/files/user_config_file.py", line 134, in read
    public_config = self._public.read()
  File "/usr/lib/python3/dist-packages/uaclient/files/data_types.py", line 39, in read
    raw_data = self.ua_file.read()
  File "/usr/lib/python3/dist-packages/uaclient/files/files.py", line 67, in read
    LOG.debug("Tried to load %s but file does not exist", self.path)
Message: 'Tried to load %s but file does not exist'
Arguments: ('/var/lib/ubuntu-advantage/user-config.json',)
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.12/logging/__init__.py", line 1164, in emit
    self.flush()
  File "/usr/lib/python3.12/logging/__init__.py", line 1144, in flush
    self.stream.flush()
OSError: [Errno 28] No space left on device
Call stack:
  File "/usr/lib/ubuntu-advantage/upgrade_lts_contract.py", line 14, in <module>
    cfg = config.UAConfig()
  File "/usr/lib/python3/dist-packages/uaclient/config.py", line 96, in __init__
    self.cfg, self.invalid_keys = parse_config(self.cfg_path)
  File "/usr/lib/python3/dist-packages/uaclient/config.py", line 491, in parse_config
    LOG.debug("Using client configuration file at %s", config_path)
Message: 'Using client configuration file at %s'
Arguments: ('/etc/ubuntu-advantage/uaclient.conf',)
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.12/logging/__init__.py", line 1164, in emit
    self.flush()
  File "/usr/lib/python3.12/logging/__init__.py", line 1144, in flush
    self.stream.flush()
OSError: [Errno 28] No space left on device
Call stack:
  File "/usr/lib/ubuntu-advantage/upgrade_lts_contract.py", line 14, in <module>
    cfg = config.UAConfig()
  File "/usr/lib/python3/dist-packages/uaclient/config.py", line 96, in __init__
    self.cfg, self.invalid_keys = parse_config(self.cfg_path)
  File "/usr/lib/python3/dist-packages/uaclient/config.py", line 493, in parse_config
    cfg.update(safe_load(system.load_file(config_path)))
  File "/usr/lib/python3/dist-packages/uaclient/system.py", line 522, in load_file
    LOG.debug("Reading file: %s", filename)
Message: 'Reading file: %s'
Arguments: ('/etc/ubuntu-advantage/uaclient.conf',)
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/uaclient/files/files.py", line 65, in read
    content = system.load_file(self.path)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/uaclient/system.py", line 521, in load_file
    with open(filename, "rb") as stream:
         ^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/ubuntu-advantage/private/user-config.json'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.12/logging/__init__.py", line 1164, in emit
    self.flush()
  File "/usr/lib/python3.12/logging/__init__.py", line 1144, in flush
    self.stream.flush()
OSError: [Errno 28] No space left on device
Call stack:
  File "/usr/lib/ubuntu-advantage/upgrade_lts_contract.py", line 14, in <module>
    cfg = config.UAConfig()
  File "/usr/lib/python3/dist-packages/uaclient/config.py", line 102, in __init__
    self.user_config = user_config_file.user_config.read()
  File "/usr/lib/python3/dist-packages/uaclient/files/user_config_file.py", line 131, in read
    private_config = self._private.read()
  File "/usr/lib/python3/dist-packages/uaclient/files/data_types.py", line 39, in read
    raw_data = self.ua_file.read()
  File "/usr/lib/python3/dist-packages/uaclient/files/files.py", line 67, in read
    LOG.debug("Tried to load %s but file does not exist", self.path)
Message: 'Tried to load %s but file does not exist'
Arguments: ('/var/lib/ubuntu-advantage/private/user-config.json',)
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/uaclient/files/files.py", line 65, in read
    content = system.load_file(self.path)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/uaclient/system.py", line 521, in load_file
    with open(filename, "rb") as stream:
         ^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/ubuntu-advantage/user-config.json'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.12/logging/__init__.py", line 1164, in emit
    self.flush()
  File "/usr/lib/python3.12/logging/__init__.py", line 1144, in flush
    self.stream.flush()
OSError: [Errno 28] No space left on device
Call stack:
  File "/usr/lib/ubuntu-advantage/upgrade_lts_contract.py", line 14, in <module>
    cfg = config.UAConfig()
  File "/usr/lib/python3/dist-packages/uaclient/config.py", line 102, in __init__
    self.user_config = user_config_file.user_config.read()
  File "/usr/lib/python3/dist-packages/uaclient/files/user_config_file.py", line 134, in read
    public_config = self._public.read()
  File "/usr/lib/python3/dist-packages/uaclient/files/data_types.py", line 39, in read
    raw_data = self.ua_file.read()
  File "/usr/lib/python3/dist-packages/uaclient/files/files.py", line 67, in read
    LOG.debug("Tried to load %s but file does not exist", self.path)
Message: 'Tried to load %s but file does not exist'
Arguments: ('/var/lib/ubuntu-advantage/user-config.json',)
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.12/logging/__init__.py", line 1164, in emit
    self.flush()
  File "/usr/lib/python3.12/logging/__init__.py", line 1144, in flush
    self.stream.flush()
OSError: [Errno 28] No space left on device
Call stack:
  File "/usr/lib/ubuntu-advantage/upgrade_lts_contract.py", line 16, in <module>
    http.configure_web_proxy(cfg.http_proxy, cfg.https_proxy)
  File "/usr/lib/python3/dist-packages/uaclient/http/__init__.py", line 146, in configure_web_proxy
    LOG.debug("Setting no_proxy: %s", no_proxy)
Message: 'Setting no_proxy: %s'
Arguments: ('169.254.169.254,[fd00:ec2::254],metadata',)
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.12/logging/__init__.py", line 1164, in emit
    self.flush()
  File "/usr/lib/python3.12/logging/__init__.py", line 1144, in flush
    self.stream.flush()
OSError: [Errno 28] No space left on device
Call stack:
  File "/usr/lib/ubuntu-advantage/upgrade_lts_contract.py", line 16, in <module>
    http.configure_web_proxy(cfg.http_proxy, cfg.https_proxy)
  File "/usr/lib/python3/dist-packages/uaclient/http/__init__.py", line 154, in configure_web_proxy
    LOG.debug("Setting global proxy dict", extra={"extra": proxy_dict})
Message: 'Setting global proxy dict'
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.12/logging/__init__.py", line 1164, in emit
    self.flush()
  File "/usr/lib/python3.12/logging/__init__.py", line 1144, in flush
    self.stream.flush()
OSError: [Errno 28] No space left on device
Call stack:
  File "/usr/lib/ubuntu-advantage/upgrade_lts_contract.py", line 17, in <module>
    upgrade_lts_contract.process_contract_delta_after_apt_lock(cfg)
  File "/usr/lib/python3/dist-packages/uaclient/upgrade_lts_contract.py", line 52, in process_contract_delta_after_apt_lock
    LOG.debug("Check whether to upgrade-lts-contract")
Message: 'Check whether to upgrade-lts-contract'
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/uaclient/files/files.py", line 65, in read
    content = system.load_file(self.path)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/uaclient/system.py", line 521, in load_file
    with open(filename, "rb") as stream:
         ^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/ubuntu-advantage/private/machine-token.json'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.12/logging/__init__.py", line 1164, in emit
    self.flush()
  File "/usr/lib/python3.12/logging/__init__.py", line 1144, in flush
    self.stream.flush()
OSError: [Errno 28] No space left on device
Call stack:
  File "/usr/lib/ubuntu-advantage/upgrade_lts_contract.py", line 17, in <module>
    upgrade_lts_contract.process_contract_delta_after_apt_lock(cfg)
  File "/usr/lib/python3/dist-packages/uaclient/upgrade_lts_contract.py", line 53, in process_contract_delta_after_apt_lock
    if not _is_attached(cfg).is_attached:
  File "/usr/lib/python3/dist-packages/uaclient/api/u/pro/status/is_attached/v1.py", line 81, in _is_attached
    is_machine_attached = bool(cfg.machine_token)
  File "/usr/lib/python3/dist-packages/uaclient/config.py", line 337, in machine_token
    return self.machine_token_file.machine_token
  File "/usr/lib/python3/dist-packages/uaclient/files/files.py", line 187, in machine_token
    content = self.read()
  File "/usr/lib/python3/dist-packages/uaclient/files/files.py", line 169, in read
    content = file_handler.read()
  File "/usr/lib/python3/dist-packages/uaclient/files/files.py", line 87, in read
    content = self.pro_file.read()
  File "/usr/lib/python3/dist-packages/uaclient/files/files.py", line 67, in read
    LOG.debug("Tried to load %s but file does not exist", self.path)
Message: 'Tried to load %s but file does not exist'
Arguments: ('/var/lib/ubuntu-advantage/private/machine-token.json',)
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.12/logging/__init__.py", line 1164, in emit
    self.flush()
  File "/usr/lib/python3.12/logging/__init__.py", line 1144, in flush
    self.stream.flush()
OSError: [Errno 28] No space left on device
Call stack:
  File "/usr/lib/ubuntu-advantage/upgrade_lts_contract.py", line 17, in <module>
    upgrade_lts_contract.process_contract_delta_after_apt_lock(cfg)
  File "/usr/lib/python3/dist-packages/uaclient/upgrade_lts_contract.py", line 54, in process_contract_delta_after_apt_lock
    LOG.debug("Skipping upgrade-lts-contract. Machine is unattached")
Message: 'Skipping upgrade-lts-contract. Machine is unattached'
Arguments: ()

Upgrade complete

The upgrade has completed but there were errors during the upgrade
process.

To continue please press [ENTER]

----

There are periodically bugs in this general area. The only open one I can find is:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1575573

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: ubuntu-release-upgrader-core 1:24.04.19
ProcVersionSignature: Ubuntu 6.8.0-36.36-generic 6.8.4
Uname: Linux 6.8.0-36-generic x86_64
NonfreeKernelModules: zfs
ApportVersion: 2.28.1-0ubuntu3
Architecture: amd64
CasperMD5CheckResult: unknown
CloudArchitecture: x86_64
CloudBuildName: server
CloudID: gce
CloudName: gce
CloudPlatform: gce
CloudRegion: us-central1
CloudSerial: 20170516
CloudSubPlatform: metadata (http://metadata.google.internal/computeMetadata/v1/)
CrashDB: ubuntu
Date: Wed Jul 10 21:30:40 2024
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
SourcePackage: ubuntu-release-upgrader
UpgradeStatus: Upgraded to noble on 2024-07-05 (5 days ago)
VarLogDistupgradeXorgFixuplog:

** Affects: ubuntu-release-upgrader (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug cloud-image dist-upgrade noble

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

Title:
  do-release-upgrade failed (due to out of disk space)

Status in ubuntu-release-upgrader package in Ubuntu:
  New

Bug description:
  Please report this bug in a browser at
  http://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+filebug
  and attach the files in /var/log/dist-upgrade/ to the bug report.
  E:Sub-process /usr/bin/dpkg returned an error code (1)

  dpkg: unrecoverable fatal error, aborting:
   unable to flush /var/lib/dpkg/updates/tmp.i after padding: No space left on device
  --- Logging error ---
  Traceback (most recent call last):
    File "/usr/lib/python3.12/logging/__init__.py", line 1164, in emit
      self.flush()
    File "/usr/lib/python3.12/logging/__init__.py", line 1144, in flush
      self.stream.flush()
  OSError: [Errno 28] No space left on device
  Call stack:
    File "/tmp/ubuntu-release-upgrader-gdo10meu/./xorg_fix_proprietary.py", line 88, in <module>
      logging.info("%s running" % sys.argv[0])
  Message: '/usr/bin/do-release-upgrade running'
  Arguments: ()
  --- Logging error ---
  Traceback (most recent call last):
    File "/usr/lib/python3.12/logging/__init__.py", line 1164, in emit
      self.flush()
    File "/usr/lib/python3.12/logging/__init__.py", line 1144, in flush
      self.stream.flush()
  OSError: [Errno 28] No space left on device
  Call stack:
    File "/tmp/ubuntu-release-upgrader-gdo10meu/./xorg_fix_proprietary.py", line 91, in <module>
      logging.info("No xorg.conf, exiting")
  Message: 'No xorg.conf, exiting'
  Arguments: ()
  --- Logging error ---
  Traceback (most recent call last):
    File "/usr/lib/python3.12/logging/__init__.py", line 1164, in emit
      self.flush()
    File "/usr/lib/python3.12/logging/__init__.py", line 1144, in flush
      self.stream.flush()
  OSError: [Errno 28] No space left on device
  Call stack:
    File "/usr/lib/ubuntu-advantage/convert_list_to_deb822.py", line 32, in <module>
      cfg = UAConfig()
    File "/usr/lib/python3/dist-packages/uaclient/config.py", line 96, in __init__
      self.cfg, self.invalid_keys = parse_config(self.cfg_path)
    File "/usr/lib/python3/dist-packages/uaclient/config.py", line 491, in parse_config
      LOG.debug("Using client configuration file at %s", config_path)
  Message: 'Using client configuration file at %s'
  Arguments: ('/etc/ubuntu-advantage/uaclient.conf',)
  --- Logging error ---
  Traceback (most recent call last):
    File "/usr/lib/python3.12/logging/__init__.py", line 1164, in emit
      self.flush()
    File "/usr/lib/python3.12/logging/__init__.py", line 1144, in flush
      self.stream.flush()
  OSError: [Errno 28] No space left on device
  Call stack:
    File "/usr/lib/ubuntu-advantage/convert_list_to_deb822.py", line 32, in <module>
      cfg = UAConfig()
    File "/usr/lib/python3/dist-packages/uaclient/config.py", line 96, in __init__
      self.cfg, self.invalid_keys = parse_config(self.cfg_path)
    File "/usr/lib/python3/dist-packages/uaclient/config.py", line 493, in parse_config
      cfg.update(safe_load(system.load_file(config_path)))
    File "/usr/lib/python3/dist-packages/uaclient/system.py", line 522, in load_file
      LOG.debug("Reading file: %s", filename)
  Message: 'Reading file: %s'
  Arguments: ('/etc/ubuntu-advantage/uaclient.conf',)
  --- Logging error ---
  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/uaclient/files/files.py", line 65, in read
      content = system.load_file(self.path)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3/dist-packages/uaclient/system.py", line 521, in load_file
      with open(filename, "rb") as stream:
           ^^^^^^^^^^^^^^^^^^^^
  FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/ubuntu-advantage/private/user-config.json'

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "/usr/lib/python3.12/logging/__init__.py", line 1164, in emit
      self.flush()
    File "/usr/lib/python3.12/logging/__init__.py", line 1144, in flush
      self.stream.flush()
  OSError: [Errno 28] No space left on device
  Call stack:
    File "/usr/lib/ubuntu-advantage/convert_list_to_deb822.py", line 32, in <module>
      cfg = UAConfig()
    File "/usr/lib/python3/dist-packages/uaclient/config.py", line 102, in __init__
      self.user_config = user_config_file.user_config.read()
    File "/usr/lib/python3/dist-packages/uaclient/files/user_config_file.py", line 131, in read
      private_config = self._private.read()
    File "/usr/lib/python3/dist-packages/uaclient/files/data_types.py", line 39, in read
      raw_data = self.ua_file.read()
    File "/usr/lib/python3/dist-packages/uaclient/files/files.py", line 67, in read
      LOG.debug("Tried to load %s but file does not exist", self.path)
  Message: 'Tried to load %s but file does not exist'
  Arguments: ('/var/lib/ubuntu-advantage/private/user-config.json',)
  --- Logging error ---
  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/uaclient/files/files.py", line 65, in read
      content = system.load_file(self.path)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3/dist-packages/uaclient/system.py", line 521, in load_file
      with open(filename, "rb") as stream:
           ^^^^^^^^^^^^^^^^^^^^
  FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/ubuntu-advantage/user-config.json'

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "/usr/lib/python3.12/logging/__init__.py", line 1164, in emit
      self.flush()
    File "/usr/lib/python3.12/logging/__init__.py", line 1144, in flush
      self.stream.flush()
  OSError: [Errno 28] No space left on device
  Call stack:
    File "/usr/lib/ubuntu-advantage/convert_list_to_deb822.py", line 32, in <module>
      cfg = UAConfig()
    File "/usr/lib/python3/dist-packages/uaclient/config.py", line 102, in __init__
      self.user_config = user_config_file.user_config.read()
    File "/usr/lib/python3/dist-packages/uaclient/files/user_config_file.py", line 134, in read
      public_config = self._public.read()
    File "/usr/lib/python3/dist-packages/uaclient/files/data_types.py", line 39, in read
      raw_data = self.ua_file.read()
    File "/usr/lib/python3/dist-packages/uaclient/files/files.py", line 67, in read
      LOG.debug("Tried to load %s but file does not exist", self.path)
  Message: 'Tried to load %s but file does not exist'
  Arguments: ('/var/lib/ubuntu-advantage/user-config.json',)
  --- Logging error ---
  Traceback (most recent call last):
    File "/usr/lib/python3.12/logging/__init__.py", line 1164, in emit
      self.flush()
    File "/usr/lib/python3.12/logging/__init__.py", line 1144, in flush
      self.stream.flush()
  OSError: [Errno 28] No space left on device
  Call stack:
    File "/usr/lib/ubuntu-advantage/upgrade_lts_contract.py", line 14, in <module>
      cfg = config.UAConfig()
    File "/usr/lib/python3/dist-packages/uaclient/config.py", line 96, in __init__
      self.cfg, self.invalid_keys = parse_config(self.cfg_path)
    File "/usr/lib/python3/dist-packages/uaclient/config.py", line 491, in parse_config
      LOG.debug("Using client configuration file at %s", config_path)
  Message: 'Using client configuration file at %s'
  Arguments: ('/etc/ubuntu-advantage/uaclient.conf',)
  --- Logging error ---
  Traceback (most recent call last):
    File "/usr/lib/python3.12/logging/__init__.py", line 1164, in emit
      self.flush()
    File "/usr/lib/python3.12/logging/__init__.py", line 1144, in flush
      self.stream.flush()
  OSError: [Errno 28] No space left on device
  Call stack:
    File "/usr/lib/ubuntu-advantage/upgrade_lts_contract.py", line 14, in <module>
      cfg = config.UAConfig()
    File "/usr/lib/python3/dist-packages/uaclient/config.py", line 96, in __init__
      self.cfg, self.invalid_keys = parse_config(self.cfg_path)
    File "/usr/lib/python3/dist-packages/uaclient/config.py", line 493, in parse_config
      cfg.update(safe_load(system.load_file(config_path)))
    File "/usr/lib/python3/dist-packages/uaclient/system.py", line 522, in load_file
      LOG.debug("Reading file: %s", filename)
  Message: 'Reading file: %s'
  Arguments: ('/etc/ubuntu-advantage/uaclient.conf',)
  --- Logging error ---
  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/uaclient/files/files.py", line 65, in read
      content = system.load_file(self.path)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3/dist-packages/uaclient/system.py", line 521, in load_file
      with open(filename, "rb") as stream:
           ^^^^^^^^^^^^^^^^^^^^
  FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/ubuntu-advantage/private/user-config.json'

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "/usr/lib/python3.12/logging/__init__.py", line 1164, in emit
      self.flush()
    File "/usr/lib/python3.12/logging/__init__.py", line 1144, in flush
      self.stream.flush()
  OSError: [Errno 28] No space left on device
  Call stack:
    File "/usr/lib/ubuntu-advantage/upgrade_lts_contract.py", line 14, in <module>
      cfg = config.UAConfig()
    File "/usr/lib/python3/dist-packages/uaclient/config.py", line 102, in __init__
      self.user_config = user_config_file.user_config.read()
    File "/usr/lib/python3/dist-packages/uaclient/files/user_config_file.py", line 131, in read
      private_config = self._private.read()
    File "/usr/lib/python3/dist-packages/uaclient/files/data_types.py", line 39, in read
      raw_data = self.ua_file.read()
    File "/usr/lib/python3/dist-packages/uaclient/files/files.py", line 67, in read
      LOG.debug("Tried to load %s but file does not exist", self.path)
  Message: 'Tried to load %s but file does not exist'
  Arguments: ('/var/lib/ubuntu-advantage/private/user-config.json',)
  --- Logging error ---
  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/uaclient/files/files.py", line 65, in read
      content = system.load_file(self.path)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3/dist-packages/uaclient/system.py", line 521, in load_file
      with open(filename, "rb") as stream:
           ^^^^^^^^^^^^^^^^^^^^
  FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/ubuntu-advantage/user-config.json'

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "/usr/lib/python3.12/logging/__init__.py", line 1164, in emit
      self.flush()
    File "/usr/lib/python3.12/logging/__init__.py", line 1144, in flush
      self.stream.flush()
  OSError: [Errno 28] No space left on device
  Call stack:
    File "/usr/lib/ubuntu-advantage/upgrade_lts_contract.py", line 14, in <module>
      cfg = config.UAConfig()
    File "/usr/lib/python3/dist-packages/uaclient/config.py", line 102, in __init__
      self.user_config = user_config_file.user_config.read()
    File "/usr/lib/python3/dist-packages/uaclient/files/user_config_file.py", line 134, in read
      public_config = self._public.read()
    File "/usr/lib/python3/dist-packages/uaclient/files/data_types.py", line 39, in read
      raw_data = self.ua_file.read()
    File "/usr/lib/python3/dist-packages/uaclient/files/files.py", line 67, in read
      LOG.debug("Tried to load %s but file does not exist", self.path)
  Message: 'Tried to load %s but file does not exist'
  Arguments: ('/var/lib/ubuntu-advantage/user-config.json',)
  --- Logging error ---
  Traceback (most recent call last):
    File "/usr/lib/python3.12/logging/__init__.py", line 1164, in emit
      self.flush()
    File "/usr/lib/python3.12/logging/__init__.py", line 1144, in flush
      self.stream.flush()
  OSError: [Errno 28] No space left on device
  Call stack:
    File "/usr/lib/ubuntu-advantage/upgrade_lts_contract.py", line 16, in <module>
      http.configure_web_proxy(cfg.http_proxy, cfg.https_proxy)
    File "/usr/lib/python3/dist-packages/uaclient/http/__init__.py", line 146, in configure_web_proxy
      LOG.debug("Setting no_proxy: %s", no_proxy)
  Message: 'Setting no_proxy: %s'
  Arguments: ('169.254.169.254,[fd00:ec2::254],metadata',)
  --- Logging error ---
  Traceback (most recent call last):
    File "/usr/lib/python3.12/logging/__init__.py", line 1164, in emit
      self.flush()
    File "/usr/lib/python3.12/logging/__init__.py", line 1144, in flush
      self.stream.flush()
  OSError: [Errno 28] No space left on device
  Call stack:
    File "/usr/lib/ubuntu-advantage/upgrade_lts_contract.py", line 16, in <module>
      http.configure_web_proxy(cfg.http_proxy, cfg.https_proxy)
    File "/usr/lib/python3/dist-packages/uaclient/http/__init__.py", line 154, in configure_web_proxy
      LOG.debug("Setting global proxy dict", extra={"extra": proxy_dict})
  Message: 'Setting global proxy dict'
  Arguments: ()
  --- Logging error ---
  Traceback (most recent call last):
    File "/usr/lib/python3.12/logging/__init__.py", line 1164, in emit
      self.flush()
    File "/usr/lib/python3.12/logging/__init__.py", line 1144, in flush
      self.stream.flush()
  OSError: [Errno 28] No space left on device
  Call stack:
    File "/usr/lib/ubuntu-advantage/upgrade_lts_contract.py", line 17, in <module>
      upgrade_lts_contract.process_contract_delta_after_apt_lock(cfg)
    File "/usr/lib/python3/dist-packages/uaclient/upgrade_lts_contract.py", line 52, in process_contract_delta_after_apt_lock
      LOG.debug("Check whether to upgrade-lts-contract")
  Message: 'Check whether to upgrade-lts-contract'
  Arguments: ()
  --- Logging error ---
  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/uaclient/files/files.py", line 65, in read
      content = system.load_file(self.path)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3/dist-packages/uaclient/system.py", line 521, in load_file
      with open(filename, "rb") as stream:
           ^^^^^^^^^^^^^^^^^^^^
  FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/ubuntu-advantage/private/machine-token.json'

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "/usr/lib/python3.12/logging/__init__.py", line 1164, in emit
      self.flush()
    File "/usr/lib/python3.12/logging/__init__.py", line 1144, in flush
      self.stream.flush()
  OSError: [Errno 28] No space left on device
  Call stack:
    File "/usr/lib/ubuntu-advantage/upgrade_lts_contract.py", line 17, in <module>
      upgrade_lts_contract.process_contract_delta_after_apt_lock(cfg)
    File "/usr/lib/python3/dist-packages/uaclient/upgrade_lts_contract.py", line 53, in process_contract_delta_after_apt_lock
      if not _is_attached(cfg).is_attached:
    File "/usr/lib/python3/dist-packages/uaclient/api/u/pro/status/is_attached/v1.py", line 81, in _is_attached
      is_machine_attached = bool(cfg.machine_token)
    File "/usr/lib/python3/dist-packages/uaclient/config.py", line 337, in machine_token
      return self.machine_token_file.machine_token
    File "/usr/lib/python3/dist-packages/uaclient/files/files.py", line 187, in machine_token
      content = self.read()
    File "/usr/lib/python3/dist-packages/uaclient/files/files.py", line 169, in read
      content = file_handler.read()
    File "/usr/lib/python3/dist-packages/uaclient/files/files.py", line 87, in read
      content = self.pro_file.read()
    File "/usr/lib/python3/dist-packages/uaclient/files/files.py", line 67, in read
      LOG.debug("Tried to load %s but file does not exist", self.path)
  Message: 'Tried to load %s but file does not exist'
  Arguments: ('/var/lib/ubuntu-advantage/private/machine-token.json',)
  --- Logging error ---
  Traceback (most recent call last):
    File "/usr/lib/python3.12/logging/__init__.py", line 1164, in emit
      self.flush()
    File "/usr/lib/python3.12/logging/__init__.py", line 1144, in flush
      self.stream.flush()
  OSError: [Errno 28] No space left on device
  Call stack:
    File "/usr/lib/ubuntu-advantage/upgrade_lts_contract.py", line 17, in <module>
      upgrade_lts_contract.process_contract_delta_after_apt_lock(cfg)
    File "/usr/lib/python3/dist-packages/uaclient/upgrade_lts_contract.py", line 54, in process_contract_delta_after_apt_lock
      LOG.debug("Skipping upgrade-lts-contract. Machine is unattached")
  Message: 'Skipping upgrade-lts-contract. Machine is unattached'
  Arguments: ()

  Upgrade complete

  The upgrade has completed but there were errors during the upgrade
  process.

  To continue please press [ENTER]

  ----

  There are periodically bugs in this general area. The only open one I can find is:
  https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1575573

  ProblemType: Bug
  DistroRelease: Ubuntu 24.04
  Package: ubuntu-release-upgrader-core 1:24.04.19
  ProcVersionSignature: Ubuntu 6.8.0-36.36-generic 6.8.4
  Uname: Linux 6.8.0-36-generic x86_64
  NonfreeKernelModules: zfs
  ApportVersion: 2.28.1-0ubuntu3
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CloudArchitecture: x86_64
  CloudBuildName: server
  CloudID: gce
  CloudName: gce
  CloudPlatform: gce
  CloudRegion: us-central1
  CloudSerial: 20170516
  CloudSubPlatform: metadata (http://metadata.google.internal/computeMetadata/v1/)
  CrashDB: ubuntu
  Date: Wed Jul 10 21:30:40 2024
  PackageArchitecture: all
  ProcEnviron:
   LANG=en_US.UTF-8
   PATH=(custom, no user)
   SHELL=/bin/bash
   TERM=xterm-256color
  SourcePackage: ubuntu-release-upgrader
  UpgradeStatus: Upgraded to noble on 2024-07-05 (5 days ago)
  VarLogDistupgradeXorgFixuplog:

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/2072701/+subscriptions




More information about the foundations-bugs mailing list