Console is stuck in welcome message

Started by jarckn, February 06, 2016, 06:06:45 PM

Previous topic - Next topic
Hello community,

after installing, configuring and restarting my OPNsense several times, the console is now stucking inside the welcome message. (image in the attachments)

Before this happened, I was changing the MAC-Address of the wan-interface. At first OPNsense couldn't find the wan-interface after rebooting, but after some troubleshooting it was able to see it. But now, the console stucks.

It was not possible to fix this with a restart.

Did anyone had this problem, too?

Cheers,

Niklas

I've had the same problem for a couple of weeks, but can't figure out how to fix it. I've had to enable other virtual terminals to be able to access the box.

I did not touch the MAC address.

The shell script must contain an error and fails in the middle.

Hello,

Could you hit control+T in console to display the status command?

I tried to change MAC on VM guest VBox but could not reproduce the console stuck

CTRL+T does nothing, but I failed to mention that this is on the VGA port, not the console port.

I have seen this before, probably caused by a crash during boot.
The old code reads /etc/ttys, flushes and rewrites it contents, which can result in an empty file if all crashes somewhere in the middle.

The easiest fix is to boot using a livecd/usb and copy the /etc/ttys from the cd back to the system (if you can't ssh to the box) or copy the default one using ssh.

That's probably it. My /etc/ttys was empty when I added the extra terminal configs and I didn't add terminal 0 thinking it was being handled somewhere else.
I did have some serious crashes due to Suricata forcing netmap mode on non-netmap enabled drivers, so that must have been when it happened.

We could add /etc/tty to rc.recover, but that would mean local modification will get lost that some weird hardware out there requires to function.

write/truncate on an important system file during boot I've never understood, we've seen such issues 8 months back and they don't work well with UFS. Probably best to tighten the write of the file in the PHP code.