Currently running 13.2-RELEASE-p2 and a few weeks back started seeing random reboots overnight. Did some troubleshooting and I managed to track it down to the Daily Periodic jobs that run at 3am. FYI, this system does not send outgoing email, so I found 1300+ files in /var/spool/clientmqueue and removed them.
Removing those files corrected the random reboot. There was no shutdown or errors of any kind to indicate a problem. Nothing in messages, daemon or console logs. The machine would just reboot and start normal bootup. Should that many files cause a system reboot? It just seems strange that there was no errors or indication that it was even shutting down. When I issue reboot or shutdown I see info in the logs indicating that it's coming down and who initiated the reboot/shutdown.
Here's my rc.conf:
This is my periodic.conf:
Mostly this machine is just a NAS for my home network, but I may be adding some function to it soon. Hopefully the creation of periodic.conf will stop files from showing up in /var/spool/clientmqueue since it doesn't send outgoing mail.
CPU is AMD Ryzen 5 5600G with 64 gig DDR4. The OS drive is an SSD and is formatted with ZFS.
Thanks
Removing those files corrected the random reboot. There was no shutdown or errors of any kind to indicate a problem. Nothing in messages, daemon or console logs. The machine would just reboot and start normal bootup. Should that many files cause a system reboot? It just seems strange that there was no errors or indication that it was even shutting down. When I issue reboot or shutdown I see info in the logs indicating that it's coming down and who initiated the reboot/shutdown.
Here's my rc.conf:
Code:
hostname="XXXXXXXXX"
ifconfig_em0="inet XXXXXXXX netmask 0xffffff00"
defaultrouter="XXXXXXX"
sshd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="NO"
zfs_enable="YES"
sendmail_cert_create="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
sendmail_enable="NO"
nmbd_enable="NO"
smbd_enable="YES"
winbindd_enable="NO"
named_enable="YES"
portmap_enable="YES"
rpcbind_enable="YES"
nfs_server_enable="YES"
mountd_enable="YES"
mountd_flags="-r -n"
ntpd_enable="YES"
This is my periodic.conf:
Code:
daily_output="/var/log/periodic.daily.log" # user or /file
weekly_output="/var/log/periodic.weekly.log" # user or /file
monthly_output="/var/log/periodic.monthly.log" # user or /file
Mostly this machine is just a NAS for my home network, but I may be adding some function to it soon. Hopefully the creation of periodic.conf will stop files from showing up in /var/spool/clientmqueue since it doesn't send outgoing mail.
CPU is AMD Ryzen 5 5600G with 64 gig DDR4. The OS drive is an SSD and is formatted with ZFS.
Thanks