Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
How do I debug OPNsense reboot?
« previous
next »
Print
Pages: [
1
]
Author
Topic: How do I debug OPNsense reboot? (Read 211 times)
skatopn
Newbie
Posts: 34
Karma: 0
How do I debug OPNsense reboot?
«
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.
Logged
cookiemonster
Hero Member
Posts: 1371
Karma: 78
Re: How do I debug OPNsense reboot?
«
Reply #1 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.
Logged
Monviech
Hero Member
Posts: 897
Karma: 93
Re: How do I debug OPNsense reboot?
«
Reply #2 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
«
Last Edit: April 08, 2024, 12:26:16 pm by Monviech
»
Logged
Reverse Proxy with automatic HTTPS and Dynamic Dns
os-caddy
,
Tutorial
,
Docs
Hardware:
DEC740
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
How do I debug OPNsense reboot?