After updating a NanoPi R4S from 24.10.5 to 25.12.4 I have been getting intermittent soft crashes on the router where I am still able to ping it, but most other functionality seems to be broken. When this happens browsing to the IP via a browser will give me "Bad Gateway" and I have had times where I was able to access SSH and times where I have not.
The one time I was able to access SSH while this was happening, I ran the "logread" command, and I recall seeing some errors about dnsmasq. I should have taken more note of this, but I was in a rush to get it fixed and didn't even take a screenshot ='(
First time I tried was via an in-place upgrade from 24.10 via attendedsysupgrade and when that wasn't working well (same symptoms), I thought maybe I had some bad packages that were getting carried through the update. I installed a fresh copy of 25.12.4 directly to the SD Card and installed ddns and sqm packages (and their luci components). It was working well for a few hours but overnight the issue happened again.
Power cycling the router seems to fix the issue until it happens again in several hours time.
Looking at the few reports in the NanoPi R4S thread on this forum, it seems like others have had no issues with 25.12.x on the device.
Not sure where to go from here in terms of troubleshooting next steps.
If you are having issues with a fresh install I would suspect the SD card. Do you have another one on hand, and preferably another brand? I'd recommend trying that first is you are able.
Thanks for the tip. Using the same SD card, the issue is not present if I roll back to 24.10.x so I am a little dubious that it is an SD card issue. I'll see if I can find a spare one in the drawer somewhere to try however.
I was able to get some log entries from the kernel log while it was happening. Not quite sure what to make of it but maybe some could make sense of it?
When I first had an R4S I had repeated issues. Helpful people on here suggested replacing the power cable and that indeed fixed it for me. Certainly it is working fine on the latest version
TBH my experience is that NanoPi R4S with OpenWrt is missing some patch. I have two R4S, and one of them fails to soft reboot since 23.05 (it worked OK with 22.03). So, since 23.05 I cannot run OpenWrt on this device anymore. See more details here.
This issue happens only with OpenWrt official. Running Armbian, DietPi, and FriendlyWrt works fine.
I spent a LOT of time trying to troubleshoot the issue (I even connected a UART), but so far I was not able to pinpoint the root cause.
At this moment I am running ImmortalWrt 25.12.0 on this unit, and it is working flawless.
Bottom line is that I believe OpenWrt is missing some patch that is impacting only some specific R4S units, and I am wondering this could be your case.
@waynea and @dsouza thanks for your experiences using the NanoPi R4S. For me it's been rock stable since the official release of OpenWRT a while back, but on 25.12.x it's the first time it's failed. Interesting to hear that on other firmware variants it's running stable.
@egc Thanks for the pointer, I will look into this further once I'm back on 25.12.x.
For now I have reverted to 24.10.7. I'll establish a baseline taking notes of any errors or warning I have on this version for a little while before trying to go back to 25.10.x. I highghly suspect it is something software related than hardware based on my experience and what others have mentioned here.