[Bug 2041699] [NEW] term.log is a 0 byte file

Brian Murray 2041699 at bugs.launchpad.net
Fri Oct 27 21:05:39 UTC 2023


Public bug reported:

There is code in ubuntu-release-upgrader to create a term.log file but
looking at ubuntu-release-upgrader bug reports (there is an apport hook
which attaches it) and upgrades I've done recently term.log appears to
be a 0 byte file.

DistUpgrade/DistUpgradeViewGtk3.py
601:            self._terminal_log = open(os.path.join(self.logdir,"term.log"),"w")

Having term.log would have been helpful as messages regarding upgrading
/ refreshing snaps are sent there.

 $ stat /var/log/dist-upgrade/term.log
  File: /var/log/dist-upgrade/term.log
  Size: 0               Blocks: 0          IO Block: 4096   regular empty file
Device: 252,4   Inode: 1708433     Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2023-09-08 15:39:42.130497519 -0700
Modify: 2023-09-06 16:03:54.183130984 -0700
Change: 2023-09-06 16:03:54.183130984 -0700
 Birth: 2023-09-06 16:03:54.183130984 -0700

This is a search of my local cache of bug attachments:

 $ find . -iname \*DistupgradeTermlog\*
./bug-1173934/VarLogDistupgradeTermlog.txt
./bug-930839/VarLogDistupgradeTermlog.txt
./bug-1265387/VarLogDistupgradeTermlog.txt
./bug-1175251/VarLogDistupgradeTermlog.txt
./bug-1316789/VarLogDistupgradeTermlog.txt
./bug-2037899/VarLogDistupgradeTermlog.txt
./bug-1998935/VarLogDistupgradeTermlog.txt
./bug-1302218/VarLogDistupgradeTermlog.txt
./bug-2002380/VarLogDistupgradeTermlog.txt
./bug-1547837/VarLogDistupgradeTermlog.txt
./bug-1026588/VarLogDistupgradeTermlog.txt

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


** Tags: rls-mm-incoming rls-nn-incoming

** Tags added: rls-mm-incoming rls-nn-incoming

** Changed in: ubuntu-release-upgrader (Ubuntu)
   Importance: Undecided => High

-- 
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/2041699

Title:
  term.log is a 0 byte file

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

Bug description:
  There is code in ubuntu-release-upgrader to create a term.log file but
  looking at ubuntu-release-upgrader bug reports (there is an apport
  hook which attaches it) and upgrades I've done recently term.log
  appears to be a 0 byte file.

  DistUpgrade/DistUpgradeViewGtk3.py
  601:            self._terminal_log = open(os.path.join(self.logdir,"term.log"),"w")

  Having term.log would have been helpful as messages regarding
  upgrading / refreshing snaps are sent there.

   $ stat /var/log/dist-upgrade/term.log
    File: /var/log/dist-upgrade/term.log
    Size: 0               Blocks: 0          IO Block: 4096   regular empty file
  Device: 252,4   Inode: 1708433     Links: 1
  Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
  Access: 2023-09-08 15:39:42.130497519 -0700
  Modify: 2023-09-06 16:03:54.183130984 -0700
  Change: 2023-09-06 16:03:54.183130984 -0700
   Birth: 2023-09-06 16:03:54.183130984 -0700

  This is a search of my local cache of bug attachments:

   $ find . -iname \*DistupgradeTermlog\*
  ./bug-1173934/VarLogDistupgradeTermlog.txt
  ./bug-930839/VarLogDistupgradeTermlog.txt
  ./bug-1265387/VarLogDistupgradeTermlog.txt
  ./bug-1175251/VarLogDistupgradeTermlog.txt
  ./bug-1316789/VarLogDistupgradeTermlog.txt
  ./bug-2037899/VarLogDistupgradeTermlog.txt
  ./bug-1998935/VarLogDistupgradeTermlog.txt
  ./bug-1302218/VarLogDistupgradeTermlog.txt
  ./bug-2002380/VarLogDistupgradeTermlog.txt
  ./bug-1547837/VarLogDistupgradeTermlog.txt
  ./bug-1026588/VarLogDistupgradeTermlog.txt

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




More information about the foundations-bugs mailing list