TempleHasFallen
Dabbler
- Joined
- Jan 27, 2022
- Messages
- 34
So this has been driving me absolutely crazy.
My TrueNAS Scale 22.12.3.2 box has been restarting itself every night around 3 AM without any indication as to why it is happening.
This is not an "unscheduled system reboot" either, as I don't get a notification like that once it starts back up.
The syslog is not very helpful, last entries are an email sent regarding a cronjob at 3AM and then syslog starting up again at 3:07 AM:
At 3AM the following should be running:
2 Cron Jobs:
- DDNS update (every 10 mins)
- A custom bash script which no longer exists (script not found, needs to be replaced, keeping it as a reminder to get emailed)
2 Snapshot Tasks:
- A recursive on an NVMe pool
- A simple on an HDD pool
2 Replication Tasks:
- NVMe to HDD
- NVMe to remote
Curiously enough the NVMe to HDD task says finished (no logs available), while the NVMe to remote says error (that one should take a while).
I'm running around ~15 KVM VMs, ~20 apps, iSCSI shares, SMB shares, NFS shares. Restarting every night is catastrophic for many reasons.
To mention, all of this was in place exactly as before in 22.12.2 and did not cause any issues. The issues started one day after the 22.12.3.2 installation.
How can I troubleshoot and find out why the server is restarting?
My TrueNAS Scale 22.12.3.2 box has been restarting itself every night around 3 AM without any indication as to why it is happening.
This is not an "unscheduled system reboot" either, as I don't get a notification like that once it starts back up.
The syslog is not very helpful, last entries are an email sent regarding a cronjob at 3AM and then syslog starting up again at 3:07 AM:
Code:
Jul 16 03:00:03 freenas middlewared[7951]: sending mail to REDACTED Content-Type: multipart/mixed MIME-Version: 1.0 Subject: REDACTED: CronTask Run From: FreeNAS.superhome <freenas.superhome@biochip.pw> To: REDACTED Date: Sun, 16 Jul 2023 00:00:01 -0000 Message-ID: <REDACTED> Jul 16 03:07:09 freenas syslog-ng[22760]: syslog-ng starting up; version='3.28.1' Jul 16 03:04:13 freenas kernel: microcode: microcode updated early to revision 0x49, date = 2021-08-11 Jul 16 03:04:13 freenas kernel: Linux version 5.15.107+truenas (root@tnsbuilds01.tn.ixsystems.net) (gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1 SMP Tue Jul 4 16:27:21 UTC 2023 Jul 16 03:04:13 freenas kernel: Command line: BOOT_IMAGE=/ROOT/22.12.3.2@/boot/vmlinuz-5.15.107+truenas root=ZFS=boot-pool/ROOT/22.12.3.2 ro libata.allow_tpm=1 amd_iommu=on iommu=pt kvm_amd.npt=1 kvm_amd.avic=1 intel_iommu=on zfsforce=1 nvme_core.multipath=N Jul 16 03:04:13 freenas kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers' Jul 16 03:04:13 freenas kernel: x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers' Jul 16 03:04:13 freenas kernel: x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers' Jul 16 03:04:13 freenas kernel: x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
At 3AM the following should be running:
2 Cron Jobs:
- DDNS update (every 10 mins)
- A custom bash script which no longer exists (script not found, needs to be replaced, keeping it as a reminder to get emailed)
2 Snapshot Tasks:
- A recursive on an NVMe pool
- A simple on an HDD pool
2 Replication Tasks:
- NVMe to HDD
- NVMe to remote
Curiously enough the NVMe to HDD task says finished (no logs available), while the NVMe to remote says error (that one should take a while).
I'm running around ~15 KVM VMs, ~20 apps, iSCSI shares, SMB shares, NFS shares. Restarting every night is catastrophic for many reasons.
To mention, all of this was in place exactly as before in 22.12.2 and did not cause any issues. The issues started one day after the 22.12.3.2 installation.
How can I troubleshoot and find out why the server is restarting?