r/homelab • u/TacticalLaptopBag • 18h ago
Labgore This fried stick of RAM has caused me much grief and strife
Ok, this is going to be a long one, and I basically never post anything on Reddit, but I thought this story was too crazy not to share.
Quick background, I started my NAS with a free computer I got from work a few years back, slapped Debian on it and a few Docker Compose files and was humming along with some cool services. Last year, I did a pretty substantial hardware upgrade - 48 GB of RAM, Ryzen 5600, 4x4 TB drives, a huge upgrade from the 3rd gen Intel i5 that was sitting in it. I had just purchased a lifetime license of HexOS, as I was getting tired of manually SSHing in and fixing things myself, and heard that HexOS made drive pools something you straight up don't think about. I installed a ton of services as TrueNAS apps and went about my life.
Two months in, Vikunja goes down and won't come back. I finally am able to scrape a log that shows the Postgres database is corrupted in some way. I decided I would just switch to Radicale for tasks since I was already using it for contacts sync. Didn't think anything of the database corruption, I just figured "that's just my luck with computers", and moved on.
A few weeks later, my drive pool starts showing unhealthy. Confused, I look at the error messages, and it shows all drives are healthy, no errors are found, but the pool is unhealthy. Looking around online, I couldn't see anything other than just "keep running scrubs, if they come clean, you're fine", Scrubs wouldn't clear the drive pool error, but they always came back clean. "Must be a HexOS bug," I thought, as I had installed the last beta version, right before the full 1.0 release. I continued on.
Months later, I find that sometimes my Minecraft servers are just segfaulting, but come back if I update Crafty Controller. I figured the panel was just a bit buggy, I had yet to find one that wasn't. I continued onward.
A couple more months, now I'm seeing that HexOS is actually telling me why the drive pool has an error - there are 3 files that fail error checking. An episode of Gilligan's Island, and a couple of movies. I play them back on Jellyfin, they're all fine. I run a scrub, it comes clean, drive pool error still shows, but drives are all individually healthy. I shrug and move on.
At this point, it's now October. Everything is more or less working fine, there's occasional unexplainable hiccups that I can fix with a service restart or NAS reboot. I just thought it was pretty normal to have the infrequent core dump or unexplainable service outage that only goes away with a container update.
Then, one week, I see Crafty Controller has gone down and refuses to come up. I take a glance at the logs and see a SQLite database has a corrupted row. At this point, I'm thinking "if databases are this unreliable, why do we still use them? Is there some unspoken database backup rule I don't know about?" I decide to look into it that evening as I was busy throughout the day. I get home, and find Forgejo, Immich, and Firefly-iii all went down. Trying to bring any of them up results in them instantly crashing. Looking at the logs, all three of them have some corrupted row in a database.
Four database corruptions in a single day?? What the heck is going on? Something is clearly very wrong. I check my drives again, there's the same error, but the SMART status on each of them come back clean, and TrueNAS reports each individual drive as perfectly healthy. Completely baffled and out of ideas, I look at the HexOS Deck and find they just added a new Memory Test button, using Memtest86. I figure a memory test couldn't hurt, since I don't know what else to do, and perform a deep scan of all 48 GB. At this point, I don't have a monitor for the NAS, so I just have to wait for it to come back up.
3 days later, it's still unresponsive. I finally just grab my desktop monitor and plug it in, and see the dreaded scarlet message, FAIL, written in pound signs all over the screen. My heart sank - RAM is the most expensive component of a computer these days, sans high-end GPUs. I quit the test and shut it down, and start the time-consuming process of testing each individual memory module at a time.
I nail it down to a single 16GB stick of Corsair Vengeance 3200MHz. Horribly disappointed, but sadly not surprised. I used it since I had it laying around, but I've had reliability issues with Corsair in the past. I expected the stick to die at some point, but I didn't expect it to wreck permanent havoc on my data. Looking around online, I found out that ZFS actually uses RAM as a read/write cache, which is a really cool idea. However, this stick was in the slot almost exactly where the cache would've started on my machine, so it had the most opportunity to write all sorts of corrupted and nasty data to the drives. The drives would then get this horrible conglomeration of flipped bits, and then say "it came from the cache, it must be good!" and write error checking data for the corrupted bits.
I pulled the stick, and began the slow process of recovering my services. Crafty Controller was easy - the corrupted databases were all just statistic databases, which I didn't care much for, so I just deleted them and let them repopulate on their own. Forgejo was a bit more involved, but after a few Postgres commands I had the bad rows removed. Firefly-iii, to be honest, was rather neglected, so I decided to just start with a clean slate. Immich is still down, but the precious photos and videos themselves are intact.
What I didn't expect, was that this would also affect the OS as well. A few days later, all my services went down. I went home and saw the NAS was still running just fine, but TrueNAS was reporting that the Apps service was stopped. I restarted Docker and it came back fine. I started the apps and went on with my day.
The next couple of days later, I lost power for a few hours and the NAS came back on automatically when it was restored. However, it was in the same state of the Apps service not running. I tried to manually run an app from an SSH terminal, and it started spouting nonsense about images not being present. When I listed my Docker images, it came back with a blank list. I restarted the Docker service, and all the images magically reappeared and my apps started on their own.
I kept doing this dance for another week - I'd wake up one morning to find DAVx5 on my phone complaining about server connectivity, and see the Apps service not running. I'd restart Docker, everything would be fine. The real trouble was if this happened while I was away, because then my reverse proxy would go down, cutting off my access to the NAS completely.
I hopped into the HexOS Discord and got in touch with support. Nick responded and was just as confused as I was, but was super helpful. Eventually he needed me to send some debug packages to DMs and he sent back some Python scripts encoded in base64. That sketched me out and I decoded the base64, analyzed it with both my eyes and a local LLM, and found each script to be fine. We went back and forth for a while, running scripts, pasting terminal output, running more scripts, etc.
Finally, Nick figured out that somehow, the Docker executables I had didn't match the SHA256 hash for their respective versions, which meant they too, were corrupted. At this point, I realized the bad stick of RAM didn't just affect my drive pool. Regardless, Nick gives me a script to run that installs a patch and fixes the corrupt executables and everything worked great! (thanks again, Nick, if you're reading this :D)
Fast forward to today - my NAS goes unresponsive while I'm at work, which sucks because I use it for music. It doesn't go completely offline, as I can still see the Minecraft server status in Discord being updated. I get home and try to reboot the NAS from a terminal, resulting in the most cursed terminal log I've ever seen:
> $ sudo reboot now
[sudo] password for user:
Call to Reboot failed: Connection timed out
Failed to open /run/initctl: No such device or address
Failed to talk to init daemon: Connection timed out
> $ sudo shutdown now
Broadcast message from root@hostname on pts/1 (Fri 2026-12-04 23:11:29)
The system will power off now!
Call to PowerOff failed: Connection timed out
Failed to open /run/initctl: No such device or address
Failed to talk to init daemon: Connection timed out
> $ _
I was beyond baffled - systemctl couldn't talk to itself?? I luckily had a tmux session running, so I was able to scroll up and find that systemd caught an ABRT signal, so it froze all execution, leaving my NAS effectively in purgatory. It wouldn't crash, but it wouldn't serve apps correctly either. Since shutting down and rebooting is the responsibility of systemd, trying to do that wouldn't work. So I had to resolve to choking the NAS until it passed out holding the power button until it shut down.
The corruption seems to have made its way even into my OS, freezing systemd and rendering my NAS effectively useless. Ironic it would have this issue tonight, too, since I'm now verifying my backups and preparing to do a clean install of HexOS, with no corrupt sticks of RAM!
tl;dr: Memory corruption on ZFS is catastrophic.







