How do I debug OPNsense reboot?

Started by skatopn, April 08, 2024, 04:51:40 AM

Previous topic - Next topic
Sometimes my OPNsense box reboots itself.
I don't know what triggers it.

How do I:
1. configure OPNsense to record all reboot logs to a file I can later review? (e.g. save crash dump/data/errors and boot logs)
2. troubleshoot unplanned reboots?

Thanks.

Not exactly what you're after but boot logs are saved normally. They get rotated but you can go back a bit in /var/log/ directory. But, it might not have a record of the trigger i.e. a crash dump. That needs to be configured and I haven't had the need to look at the way for OPN.
One thing I used for a different system I had to troubleshoot for the same thing is I created a small VM on the same network and configured as a syslog target. There I was able to see the trigger. Hope it helps.

April 08, 2024, 12:24:36 PM #2 Last Edit: April 08, 2024, 12:26:16 PM by Monviech
You can look into these logfiles:

/var/log/dmesg.today
/var/log/dmesg.yesterday

If the OPNsense randomly reboots I would grep them for "panic".

In the GUI there's also the /crash_reporter.php
Hardware:
DEC740

Quote from: cookiemonster on April 08, 2024, 12:11:39 PM
Not exactly what you're after but boot logs are saved normally. They get rotated but you can go back a bit in /var/log/ directory. But, it might not have a record of the trigger i.e. a crash dump. That needs to be configured and I haven't had the need to look at the way for OPN.
One thing I used for a different system I had to troubleshoot for the same thing is I created a small VM on the same network and configured as a syslog target. There I was able to see the trigger. Hope it helps.

Thank you.

Quote from: Monviech on April 08, 2024, 12:24:36 PM
You can look into these logfiles:

/var/log/dmesg.today
/var/log/dmesg.yesterday

If the OPNsense randomly reboots I would grep them for "panic".

In the GUI there's also the /crash_reporter.php

Thank you.