OPNsense Forum

English Forums => General Discussion => Topic started by: skatopn on April 08, 2024, 04:51:40 AM

Title: How do I debug OPNsense reboot?
Post by: skatopn on April 08, 2024, 04:51:40 AM
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.
Title: Re: How do I debug OPNsense reboot?
Post by: 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.
Title: Re: How do I debug OPNsense reboot?
Post by: Monviech (Cedrik) 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
Title: Re: How do I debug OPNsense reboot?
Post by: skatopn on September 16, 2024, 01:34:05 AM
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.
Title: Re: How do I debug OPNsense reboot?
Post by: skatopn on September 16, 2024, 01:34:39 AM
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.