Skip to content
This repository was archived by the owner on Oct 11, 2023. It is now read-only.
This repository was archived by the owner on Oct 11, 2023. It is now read-only.

respawn.log spammed with errors when there is no serial port on the machine #2466

@janeczku

Description

@janeczku

RancherOS Version: (ros os version)
v1.4.0
Where are you running RancherOS? (docker-machine, AWS, GCE, baremetal, etc.)
vSphere

On hosts that don't one or two serial ports connected, the following errors are logged in /var/log/boot/respawn.log every 10 seconds.

$ cat respawn.log
time="2018-09-07T19:11:28Z" level=debug msg="START: [respawn -f /etc/respawn.conf] in /"
time="2018-09-07T19:11:28Z" level=info msg="respawn RancherOS
built: '2018-09-07T17:58:59Z', 289ff05"
time="2018-09-07T19:11:38Z" level=error msg="/sbin/agetty -n -l /usr/bin/autologin -o rancher:ttyS0 ttyS0 : exit status 1"
time="2018-09-07T19:11:38Z" level=error msg="/sbin/agetty -n -l /usr/bin/autologin -o rancher:ttyS1 ttyS1 : exit status 1"
(...)

The ISO and many of the other images enable autologin for one or multiple serial ports by default.

Possible fix: Check if the serial port device is actually connected to a hardware device before adding to respawn.conf.

if allowAutoLogin && strings.Contains(cmdline, fmt.Sprintf("rancher.autologin=%s", tty)) {

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions