v1.3.0 is installed on my Arch Linux Raspberry Pi in a LAN setup. I’m facing crashes of syncthing on that pi regularly when attempting to sync a folder containing a lot of wav audio files and other data (about 60 GB). Data is stored on a powered USB hard drive attached to the pi.
In systemd journal I get a lengthy go stack trace with the error message “runtime/cgo: pthread_create failed: Resource temporarily unavailable”.
I have been observing this error ever since I installed syncthing and had it running with all my data on the device.
Error message and stack trace seem to indicate that it happens inside the go runtime when creating a new thread.
I tried increasing the maximum allowed threads and decreasing the default thread stack size via ulimit to 4k because some of my research about pthread_create indicated that this might be the underlying cause. However, this did not help to change or solve the issue.
Any hints how to sort out the reason for pthread_create failing with EAGAIN (Insufficient resources to create another thread) would be highly appreciated.