Hey there guys. Having an absolute hell of a time for a week now with my QNAP NAS that I’ve had mapped via NFS for quite a while working just fine.
Sometime in the night of 9/4 into 9/5, my Diet-Pi failed to read files off my NAS. I noticed something was wrong when all my music files suddenly had no cover art in DSub (running Airsonic on the Pi) and would never play, just flash like they were trying to. Essentially now all that happens is I can mount the drive just fine, cd and ls into it just fine but every time I try to copy any file, even just a blank test file I can create (so, write works) I get:
cp: cannot open ‘whateverfile’ for reading: Input/output error
Thinking my drive might be failing I did a full bad sector scan which took a whole night plus a filesystem check, everything was clear there. Rebooted both the NAS and pi several times, removed and readded the drive both with dietpi-drive_manager and manually, tried modifying my /etc/fstab with johnwick’s line from 2018 since I read he also has a QNAP, even went so far as to completely wipe the entire server/reimage and start from scratch last night thinking surely that would fix it. No dice.
Not sure what else to try and this point aside from getting an entirely different board and going from there… the odd thing is, I can write to the drive as mentioned, and three other NFS clients both Raspbian and Windows-based have no problems at all reading from it.
If it helps I’m running an ODROID N2 on the latest version 6.32.2 and QNAP TS-231 with the latest firmware 126.96.36.1991. Anyone have any ideas? Pulling my hair out over here. Thanks much!
if I understood right, you already reinstalled your N2, correct? If yes, you could verify the behaviour on using a different image than DietPi. Just for testing purposes how it behave. An option would be using an Armbian image.
If the issue stays, it might be something with the board?
Another option would be trying to use SAMBA/CIFS ?
As well, check kernel messaged once the issue happen dmesg -l err,crit,alert,emerg
Plus, having a look to journal about related massages journalctl -n 100 --no-pager
Thanks for the reply! Interestingly, it works just fine using the Stretch image on my other ODROID, a C2. Also, I thought maybe something had updated on the night of 9/4 but both the QNAP firmware and DietPi update were the week or so prior, and things were working fine after that time as well.