OPNsense Forum

Archive => 16.1 Legacy Series => Topic started by: jarckn on February 06, 2016, 06:06:45 pm

Title: Console is stuck in welcome message
Post by: jarckn on February 06, 2016, 06:06:45 pm
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
Title: Re: Console is stuck in welcome message
Post by: interfaSys on February 06, 2016, 08:33:59 pm
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.
Title: Re: Console is stuck in welcome message
Post by: domg on February 07, 2016, 02:12:10 am
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
Title: Re: Console is stuck in welcome message
Post by: interfaSys on February 07, 2016, 02:19:06 am
CTRL+T does nothing, but I failed to mention that this is on the VGA port, not the console port.
Title: Re: Console is stuck in welcome message
Post by: AdSchellevis on February 07, 2016, 06:31:36 pm
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.
Title: Re: Console is stuck in welcome message
Post by: interfaSys on February 07, 2016, 09:19:25 pm
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.
Title: Re: Console is stuck in welcome message
Post by: franco on February 15, 2016, 07:54:41 am
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.