Public bug reported:

Observed logs:

May 22 10:45:04 ENVY agetty[85340]: -: failed to get terminal attributes: 
Input/output error
May 22 10:45:14 ENVY systemd[1]: [email protected]: Deactivated 
successfully.
May 22 10:45:15 ENVY systemd[1]: [email protected]: Scheduled restart 
job, restart counter is at 1089.
May 22 10:45:15 ENVY systemd[1]: Started [email protected] - Serial 
Getty on ttyS0.
May 22 10:45:15 ENVY agetty[85353]: could not get terminal name: -22
May 22 10:45:15 ENVY agetty[85353]: -: failed to get terminal attributes: 
Input/output error

I'm also adding some additional info about the system.

===== date =====
2026-05-22T10:58:51+03:00

===== lsb_release -a =====
Distributor ID: Ubuntu
Description:    Ubuntu 26.04 LTS
Release:        26.04
Codename:       resolute

===== uname -a =====
Linux ENVY 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 
UTC 2026 x86_64 GNU/Linux

===== /proc/cmdline =====
snapd_recovery_mode=run console=ttyS0,115200n8 console=tty1 panic=-1 quiet 
splash snapd.xkb="us,pc105,,grp_led:scroll"

===== systemctl status [email protected] =====
● [email protected] - Serial Getty on ttyS0
     Loaded: loaded (/usr/lib/systemd/system/[email protected]; 
enabled-runtime; preset: enabled)
     Active: active (running) since Fri 2026-05-22 10:58:44 EEST; 6s ago
 Invocation: 86cc3ee986284e449a9254fb18d1a999
       Docs: man:agetty(8)
             man:systemd-getty-generator(8)
             https://0pointer.de/blog/projects/serial-console.html
   Main PID: 91357 (agetty)
      Tasks: 1 (limit: 34255)
     Memory: 304K (peak: 2M)
        CPU: 15ms
     CGroup: 
/system.slice/system-serial\x2dgetty.slice/[email protected]
             └─91357 /usr/sbin/agetty --noreset --noclear 
--issue-file=/etc/issue:/etc/issue.d:/run/issue.d:/usr/lib/issue.d --keep-baud 
115200,57600,38400,9600 - vt220

May 22 10:58:44 ENVY systemd[1]: [email protected]: Scheduled restart 
job, restart counter is at 1168.
May 22 10:58:44 ENVY systemd[1]: Started [email protected] - Serial 
Getty on ttyS0.
May 22 10:58:44 ENVY agetty[91357]: could not get terminal name: -22
May 22 10:58:44 ENVY agetty[91357]: -: failed to get terminal attributes: 
Input/output error

===== systemctl cat [email protected] =====
# /usr/lib/systemd/system/[email protected]
#  SPDX-License-Identifier: LGPL-2.1-or-later
#
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.

[Unit]
Description=Serial Getty on %I
Documentation=man:agetty(8) man:systemd-getty-generator(8)
Documentation=https://0pointer.de/blog/projects/serial-console.html
BindsTo=dev-%i.device
After=dev-%i.device systemd-user-sessions.service plymouth-quit-wait.service 
getty-pre.target
After=rc-local.service

# If additional gettys are spawned during boot then we should make
# sure that this is synchronized before getty.target, even though
# getty.target didn't actually pull it in.
Before=getty.target
IgnoreOnIsolate=yes

# IgnoreOnIsolate causes issues with sulogin, if someone isolates
# rescue.target or starts rescue.service from multi-user.target or
# graphical.target.
Conflicts=rescue.service
Before=rescue.service

[Service]
ExecStart=-/usr/sbin/agetty --noreset --noclear 
--issue-file=/etc/issue:/etc/issue.d:/run/issue.d:/usr/lib/issue.d --keep-baud 
115200,57600,38400,9600 - ${TERM}
Type=idle
Restart=always
UtmpIdentifier=%I
StandardInput=tty
StandardOutput=tty
TTYPath=/dev/%I
TTYReset=yes
TTYVHangup=yes
IgnoreSIGPIPE=no
SendSIGHUP=yes
ImportCredential=tty.serial.%I.agetty.*:agetty.
ImportCredential=tty.serial.%I.login.*:login.
ImportCredential=agetty.*
ImportCredential=login.*
ImportCredential=shell.*

[Install]
WantedBy=getty.target

===== journalctl -b -u [email protected] =====
May 22 07:39:09 ENVY systemd[1]: Started [email protected] - Serial 
Getty on ttyS0.
May 22 07:39:09 ENVY agetty[5486]: could not get terminal name: -22
May 22 07:39:09 ENVY agetty[5486]: -: failed to get terminal attributes: 
Input/output error
May 22 07:39:19 ENVY systemd[1]: [email protected]: Deactivated 
successfully.
May 22 07:39:19 ENVY systemd[1]: [email protected]: Scheduled restart 
job, restart counter is at 1.
May 22 07:39:19 ENVY systemd[1]: Started [email protected] - Serial 
Getty on ttyS0.
May 22 07:39:19 ENVY agetty[5587]: could not get terminal name: -22
May 22 07:39:19 ENVY agetty[5587]: -: failed to get terminal attributes: 
Input/output error
May 22 07:39:29 ENVY systemd[1]: [email protected]: Deactivated 
successfully.
May 22 07:39:30 ENVY systemd[1]: [email protected]: Scheduled restart 
job, restart counter is at 2.
May 22 10:58:24 ENVY systemd[1]: Started [email protected] - Serial 
Getty on ttyS0.
May 22 10:58:24 ENVY agetty[91303]: could not get terminal name: -22
May 22 10:58:24 ENVY agetty[91303]: -: failed to get terminal attributes: 
Input/output error
May 22 10:58:34 ENVY systemd[1]: [email protected]: Deactivated 
successfully.
May 22 10:58:34 ENVY systemd[1]: [email protected]: Scheduled restart 
job, restart counter is at 1167.
May 22 10:58:34 ENVY systemd[1]: Started [email protected] - Serial 
Getty on ttyS0.
May 22 10:58:34 ENVY agetty[91334]: could not get terminal name: -22
May 22 10:58:34 ENVY agetty[91334]: -: failed to get terminal attributes: 
Input/output error
May 22 10:58:44 ENVY systemd[1]: [email protected]: Deactivated 
successfully.
May 22 10:58:44 ENVY systemd[1]: [email protected]: Scheduled restart 
job, restart counter is at 1168.
May 22 10:58:44 ENVY systemd[1]: Started [email protected] - Serial 
Getty on ttyS0.
May 22 10:58:44 ENVY agetty[91357]: could not get terminal name: -22
May 22 10:58:44 ENVY agetty[91357]: -: failed to get terminal attributes: 
Input/output error

===== ls -l /dev/ttyS0 =====
crw------- 1 root tty 4, 64 May 22 07:38 /dev/ttyS0

===== dmesg serial/ttyS/8250 lines =====

===== systemctl is-enabled [email protected] =====
enabled-runtime

ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: systemd 259.5-0ubuntu3
ProcVersionSignature: Ubuntu 7.0.0-15.15-generic 7.0.0
Uname: Linux 7.0.0-15-generic x86_64
ApportVersion: 2.34.0-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Fri May 22 10:56:11 2026
MachineType: HP HP Pro SFF 400 G9 Desktop PC
ProcEnviron:
 LANG=en_US.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
ProcKernelCmdLine: snapd_recovery_mode=run console=ttyS0,115200n8 console=tty1 
panic=-1 quiet splash snapd.xkb="us,pc105,,grp_led:scroll"
SourcePackage: systemd
SystemdFailedUnits:
 Error: command ['systemctl', 'status', '--full', '●'] failed with exit code 4: 
Invalid unit name "●" escaped as "\xe2\x97\x8f" (maybe you should use 
systemd-escape?).
 Unit \xe2\x97\x8f.service could not be found.
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 01/09/2026
dmi.bios.release: 21.0
dmi.bios.vendor: HP
dmi.bios.version: U03 Ver. 02.21.00
dmi.board.name: 8954
dmi.board.vendor: HP
dmi.board.version: KBC Version 12.03.55
dmi.chassis.type: 3
dmi.chassis.vendor: HP
dmi.ec.firmware.release: 18.3
dmi.modalias: 
dmi:bvnHP:bvrU03Ver.02.21.00:bd01/09/2026:br21.0:efr18.3:svnHP:pnHPProSFF400G9DesktopPC:pvrSBKPFV3:rvnHP:rn8954:rvrKBCVersion12.03.55:cvnHP:ct3:cvr:sku6U3M3EA#AKS:pfa103C_53307FHPProDesk:
dmi.product.family: 103C_53307F HP ProDesk
dmi.product.name: HP Pro SFF 400 G9 Desktop PC
dmi.product.sku: 6U3M3EA#AKS
dmi.product.version: SBKPFV3
dmi.sys.vendor: HP

** Affects: systemd (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug resolute

** Description changed:

  Observed logs:
  
  May 22 10:45:04 ENVY agetty[85340]: -: failed to get terminal attributes: 
Input/output error
  May 22 10:45:14 ENVY systemd[1]: [email protected]: Deactivated 
successfully.
  May 22 10:45:15 ENVY systemd[1]: [email protected]: Scheduled 
restart job, restart counter is at 1089.
  May 22 10:45:15 ENVY systemd[1]: Started [email protected] - Serial 
Getty on ttyS0.
  May 22 10:45:15 ENVY agetty[85353]: could not get terminal name: -22
  May 22 10:45:15 ENVY agetty[85353]: -: failed to get terminal attributes: 
Input/output error
  
- 
- 
- 
- 
- I'm also adding some additional info abot the system.
+ I'm also adding some additional info about the system.
  
  ===== date =====
  2026-05-22T10:58:51+03:00
  
  ===== lsb_release -a =====
  Distributor ID:       Ubuntu
  Description:  Ubuntu 26.04 LTS
  Release:      26.04
  Codename:     resolute
  
  ===== uname -a =====
  Linux ENVY 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 
16:06:43 UTC 2026 x86_64 GNU/Linux
  
  ===== /proc/cmdline =====
  snapd_recovery_mode=run console=ttyS0,115200n8 console=tty1 panic=-1 quiet 
splash snapd.xkb="us,pc105,,grp_led:scroll"
  
  ===== systemctl status [email protected] =====
  ● [email protected] - Serial Getty on ttyS0
-      Loaded: loaded (/usr/lib/systemd/system/[email protected]; 
enabled-runtime; preset: enabled)
-      Active: active (running) since Fri 2026-05-22 10:58:44 EEST; 6s ago
-  Invocation: 86cc3ee986284e449a9254fb18d1a999
-        Docs: man:agetty(8)
-              man:systemd-getty-generator(8)
-              https://0pointer.de/blog/projects/serial-console.html
-    Main PID: 91357 (agetty)
-       Tasks: 1 (limit: 34255)
-      Memory: 304K (peak: 2M)
-         CPU: 15ms
-      CGroup: 
/system.slice/system-serial\x2dgetty.slice/[email protected]
-              └─91357 /usr/sbin/agetty --noreset --noclear 
--issue-file=/etc/issue:/etc/issue.d:/run/issue.d:/usr/lib/issue.d --keep-baud 
115200,57600,38400,9600 - vt220
+      Loaded: loaded (/usr/lib/systemd/system/[email protected]; 
enabled-runtime; preset: enabled)
+      Active: active (running) since Fri 2026-05-22 10:58:44 EEST; 6s ago
+  Invocation: 86cc3ee986284e449a9254fb18d1a999
+        Docs: man:agetty(8)
+              man:systemd-getty-generator(8)
+              https://0pointer.de/blog/projects/serial-console.html
+    Main PID: 91357 (agetty)
+       Tasks: 1 (limit: 34255)
+      Memory: 304K (peak: 2M)
+         CPU: 15ms
+      CGroup: 
/system.slice/system-serial\x2dgetty.slice/[email protected]
+              └─91357 /usr/sbin/agetty --noreset --noclear 
--issue-file=/etc/issue:/etc/issue.d:/run/issue.d:/usr/lib/issue.d --keep-baud 
115200,57600,38400,9600 - vt220
  
  May 22 10:58:44 ENVY systemd[1]: [email protected]: Scheduled 
restart job, restart counter is at 1168.
  May 22 10:58:44 ENVY systemd[1]: Started [email protected] - Serial 
Getty on ttyS0.
  May 22 10:58:44 ENVY agetty[91357]: could not get terminal name: -22
  May 22 10:58:44 ENVY agetty[91357]: -: failed to get terminal attributes: 
Input/output error
  
  ===== systemctl cat [email protected] =====
  # /usr/lib/systemd/system/[email protected]
  #  SPDX-License-Identifier: LGPL-2.1-or-later
  #
  #  This file is part of systemd.
  #
  #  systemd is free software; you can redistribute it and/or modify it
  #  under the terms of the GNU Lesser General Public License as published by
  #  the Free Software Foundation; either version 2.1 of the License, or
  #  (at your option) any later version.
  
  [Unit]
  Description=Serial Getty on %I
  Documentation=man:agetty(8) man:systemd-getty-generator(8)
  Documentation=https://0pointer.de/blog/projects/serial-console.html
  BindsTo=dev-%i.device
  After=dev-%i.device systemd-user-sessions.service plymouth-quit-wait.service 
getty-pre.target
  After=rc-local.service
  
  # If additional gettys are spawned during boot then we should make
  # sure that this is synchronized before getty.target, even though
  # getty.target didn't actually pull it in.
  Before=getty.target
  IgnoreOnIsolate=yes
  
  # IgnoreOnIsolate causes issues with sulogin, if someone isolates
  # rescue.target or starts rescue.service from multi-user.target or
  # graphical.target.
  Conflicts=rescue.service
  Before=rescue.service
  
  [Service]
  ExecStart=-/usr/sbin/agetty --noreset --noclear 
--issue-file=/etc/issue:/etc/issue.d:/run/issue.d:/usr/lib/issue.d --keep-baud 
115200,57600,38400,9600 - ${TERM}
  Type=idle
  Restart=always
  UtmpIdentifier=%I
  StandardInput=tty
  StandardOutput=tty
  TTYPath=/dev/%I
  TTYReset=yes
  TTYVHangup=yes
  IgnoreSIGPIPE=no
  SendSIGHUP=yes
  ImportCredential=tty.serial.%I.agetty.*:agetty.
  ImportCredential=tty.serial.%I.login.*:login.
  ImportCredential=agetty.*
  ImportCredential=login.*
  ImportCredential=shell.*
  
  [Install]
  WantedBy=getty.target
  
  ===== journalctl -b -u [email protected] =====
  May 22 07:39:09 ENVY systemd[1]: Started [email protected] - Serial 
Getty on ttyS0.
  May 22 07:39:09 ENVY agetty[5486]: could not get terminal name: -22
  May 22 07:39:09 ENVY agetty[5486]: -: failed to get terminal attributes: 
Input/output error
  May 22 07:39:19 ENVY systemd[1]: [email protected]: Deactivated 
successfully.
  May 22 07:39:19 ENVY systemd[1]: [email protected]: Scheduled 
restart job, restart counter is at 1.
  May 22 07:39:19 ENVY systemd[1]: Started [email protected] - Serial 
Getty on ttyS0.
  May 22 07:39:19 ENVY agetty[5587]: could not get terminal name: -22
  May 22 07:39:19 ENVY agetty[5587]: -: failed to get terminal attributes: 
Input/output error
  May 22 07:39:29 ENVY systemd[1]: [email protected]: Deactivated 
successfully.
  May 22 07:39:30 ENVY systemd[1]: [email protected]: Scheduled 
restart job, restart counter is at 2.
  May 22 10:58:24 ENVY systemd[1]: Started [email protected] - Serial 
Getty on ttyS0.
  May 22 10:58:24 ENVY agetty[91303]: could not get terminal name: -22
  May 22 10:58:24 ENVY agetty[91303]: -: failed to get terminal attributes: 
Input/output error
  May 22 10:58:34 ENVY systemd[1]: [email protected]: Deactivated 
successfully.
  May 22 10:58:34 ENVY systemd[1]: [email protected]: Scheduled 
restart job, restart counter is at 1167.
  May 22 10:58:34 ENVY systemd[1]: Started [email protected] - Serial 
Getty on ttyS0.
  May 22 10:58:34 ENVY agetty[91334]: could not get terminal name: -22
  May 22 10:58:34 ENVY agetty[91334]: -: failed to get terminal attributes: 
Input/output error
  May 22 10:58:44 ENVY systemd[1]: [email protected]: Deactivated 
successfully.
  May 22 10:58:44 ENVY systemd[1]: [email protected]: Scheduled 
restart job, restart counter is at 1168.
  May 22 10:58:44 ENVY systemd[1]: Started [email protected] - Serial 
Getty on ttyS0.
  May 22 10:58:44 ENVY agetty[91357]: could not get terminal name: -22
  May 22 10:58:44 ENVY agetty[91357]: -: failed to get terminal attributes: 
Input/output error
  
  ===== ls -l /dev/ttyS0 =====
  crw------- 1 root tty 4, 64 May 22 07:38 /dev/ttyS0
  
  ===== dmesg serial/ttyS/8250 lines =====
  
  ===== systemctl is-enabled [email protected] =====
  enabled-runtime
  
  ProblemType: Bug
  DistroRelease: Ubuntu 26.04
  Package: systemd 259.5-0ubuntu3
  ProcVersionSignature: Ubuntu 7.0.0-15.15-generic 7.0.0
  Uname: Linux 7.0.0-15-generic x86_64
  ApportVersion: 2.34.0-0ubuntu2
  Architecture: amd64
  CasperMD5CheckResult: pass
  CurrentDesktop: ubuntu:GNOME
  Date: Fri May 22 10:56:11 2026
  MachineType: HP HP Pro SFF 400 G9 Desktop PC
  ProcEnviron:
-  LANG=en_US.UTF-8
-  PATH=(custom, no user)
-  SHELL=/bin/bash
-  TERM=xterm-256color
+  LANG=en_US.UTF-8
+  PATH=(custom, no user)
+  SHELL=/bin/bash
+  TERM=xterm-256color
  ProcKernelCmdLine: snapd_recovery_mode=run console=ttyS0,115200n8 
console=tty1 panic=-1 quiet splash snapd.xkb="us,pc105,,grp_led:scroll"
  SourcePackage: systemd
  SystemdFailedUnits:
-  Error: command ['systemctl', 'status', '--full', '●'] failed with exit code 
4: Invalid unit name "●" escaped as "\xe2\x97\x8f" (maybe you should use 
systemd-escape?).
-  Unit \xe2\x97\x8f.service could not be found.
+  Error: command ['systemctl', 'status', '--full', '●'] failed with exit code 
4: Invalid unit name "●" escaped as "\xe2\x97\x8f" (maybe you should use 
systemd-escape?).
+  Unit \xe2\x97\x8f.service could not be found.
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 01/09/2026
  dmi.bios.release: 21.0
  dmi.bios.vendor: HP
  dmi.bios.version: U03 Ver. 02.21.00
  dmi.board.name: 8954
  dmi.board.vendor: HP
  dmi.board.version: KBC Version 12.03.55
  dmi.chassis.type: 3
  dmi.chassis.vendor: HP
  dmi.ec.firmware.release: 18.3
  dmi.modalias: 
dmi:bvnHP:bvrU03Ver.02.21.00:bd01/09/2026:br21.0:efr18.3:svnHP:pnHPProSFF400G9DesktopPC:pvrSBKPFV3:rvnHP:rn8954:rvrKBCVersion12.03.55:cvnHP:ct3:cvr:sku6U3M3EA#AKS:pfa103C_53307FHPProDesk:
  dmi.product.family: 103C_53307F HP ProDesk
  dmi.product.name: HP Pro SFF 400 G9 Desktop PC
  dmi.product.sku: 6U3M3EA#AKS
  dmi.product.version: SBKPFV3
  dmi.sys.vendor: HP

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

Title:
  Ubuntu 26.04 repeatedly starts [email protected] even though
  ttyS0 is unusable, causing journal spam and a service restart loop.

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


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to