Problem with Syncthing on external harddrive with samba share, need help

Hello there,

I’ve recently started using Syncthing on my Linux server and it has been working pretty great, except that I have a problem which may or may not be due to Syncthing but which didn’t pop up until I installed it.

The current setup is an external btrfs formatted 250GB USB 2.0 harddrive which is mounted at /media, that is also a shared samba folder. The following problem frequently occurs: after several hours during which Syncthing has been running, it will become impossible to access the harddrive which Syncthing syncs to, from Windows as well as from the server, Syncthing will not funtion anymore, restarting or shutting it down will not work.

If I try to force-exit, then I won’t be able to start syncthing again, as it leaves a zombie process.

The Samba server will become unresponsive entirely, until the smbd service is restarted and even then the aforementioned harddrive will not be accessible as well as the smbd becoming locked again if accessing it is attempted.

The harddrive will also not be able to be unmounted, the only way is to physically disconnect, as even rebooting becomes impossible because the harddrive is still being accessed.

Thanks in advance for your help, I’ll be happy to provide logs.

Sounds more like your USB drive is the culprit here as Samba is affected aswell. You might want to check for relevent output in dmesg

dmesg spits out the following error messages - USB device 7 is the aforementioned hardrive

[Mo Mär 11 22:15:08 2019] usb-storage 1-4:1.0: USB Mass Storage device detected

[Mo Mär 11 22:15:08 2019] usb-storage 1-4:1.0: Quirks match for vid 0bc2 pid 2300: 200000

[Mo Mär 11 22:15:08 2019] scsi host5: usb-storage 1-4:1.0

[Di Mär 12 17:01:33 2019] usb 1-4: reset high-speed USB device number 7 using ehci-pci

[Di Mär 12 17:10:46 2019] usb 1-4: reset high-speed USB device number 7 using ehci-pci

[Di Mär 12 17:24:42 2019] usb 1-4: reset high-speed USB device number 7 using ehci-pci

[Di Mär 12 17:31:38 2019] usb 1-4: reset high-speed USB device number 7 using ehci-pci

[Di Mär 12 18:13:26 2019] usb 1-4: reset high-speed USB device number 7 using ehci-pci

[Di Mär 12 18:27:53 2019] usb 1-4: reset high-speed USB device number 7 using ehci-pci

[Di Mär 12 19:30:37 2019] usb 1-4: reset high-speed USB device number 7 using ehci-pci

[Di Mär 12 20:13:27 2019] usb 1-4: reset high-speed USB device number 7 using ehci-pci

[Di Mär 12 20:46:15 2019] usb 1-4: reset high-speed USB device number 7 using ehci-pci

[Di Mär 12 21:02:26 2019] usb 1-4: reset high-speed USB device number 7 using ehci-pci

[Di Mär 12 21:15:20 2019] usb 1-4: reset high-speed USB device number 7 using ehci-pci

[Di Mär 12 21:35:53 2019] usb 1-4: reset high-speed USB device number 7 using ehci-pci

[Di Mär 12 21:56:32 2019] usb 1-4: reset high-speed USB device number 7 using ehci-pci

[Di Mär 12 22:30:33 2019] usb 1-4: reset high-speed USB device number 7 using ehci-pci

[Mi Mär 13 00:13:48 2019] usb 1-4: reset high-speed USB device number 7 using ehci-pci

It indeed is the harddrive failing, the Syncthing folders are now on another device. Thanks for the help.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.