Its a brand new drive.
Can there be some sort of power save on the drive?
I tried to unplug and replug the drive last time but nextcloud didnt find the files.
Is there some command I can use to try to re mount the drive?
It also only happens after I upload new files
Den sön 14 maj 2023 09:50Oliver_Van via Nextcloud community <noreply@nextcloud.com> skrev:
Yesterday I uploaded som more date and after some time teh server crashed again with teh same error.
The command sudo df -hT gave me the following result:
I would look at the system logs in /var/log just after the event.
-rw-r----- 1 root adm 2,1M May 17 10:34 syslog
-rw-r----- 1 root adm 1,5M May 17 10:34 messages
-rw-r----- 1 root adm 1,5M May 17 10:34 kern.log
I guess its better to do this after a crash but now when everything is fine i found one error message:
Transfer event TRB DMA ptr not part of current TD ep_index 3 comp_code 1
It is more important however to find out why automount is failing, rather then changing the method of mounting the drive. Have you tried checking the connections and changing the cable?
Automount should work fine, unless you want more control over drive mounting or need to add more then one drive.
It is a brand new 14TB drive so I dont think I will need to add more storage for a while
Bu I have tried with another smaller drive before and got the same trouble then as well. Also tried 3 different Pi. The only thing I havent tried is just juse a big sd card as storage but that is not enough storage so thats no use.
As mentioned earlier, I would look at these logs for clues. If you share the content of them via pastebin or similar, others can have a look too.
I would also try another cable. A new drive with a modern usb3 cable/plug, might not work as one expects, on an older pi with usb2 ports. I have stopped using rpi’s for server purposes completely, they were fun for learning and playing around with.
Sorry you’re experiencing this issue. I have several Raspberry Pi “servers” including a Pi 4 that was my original production home NC host (it isn’t now but it still has some test NC containers on it and hosts other stuff now). It too has an external USB drive for data storage.
You are having a hardware issue with your Pi. It may not be a defect, but could be an issue with power draw, etc. due to the combination of specific components. One of the most notorious issues with the Pi is the sensitivity to power draw on its USB ports. I can easily take mine offline inadvertently by connecting two less hefty SSD SATA drives sitting in unpowered USB enclosures. A 14TB spinning HDD like you have probably exceeds Pi specs easily during heavy read/write operations and just starting up.
You probably should ignore the NC issues that keep arising and focus on reproducing and resolving the crashing of your external drive. NC expects reliable underlying compute/storage/OS.
My guess is that you could reproduce the issue by simply doing some massive file copying/creation based on the prior bits in this thread.
I would suggest getting some assistance over at https://forums.raspberrypi.com/ and when things seem stable hardware-wise to pop back here so we can help you make sure your NC installation is all tuned up.