LIBSSH2_ERROR_TIMEOUT: Operation timed out

Get help for specific problems
Posts: 3
Joined: 25 Oct 2025

papa44

Mirroring some folders to an offsite server using SFTP and intermittently, but more often than not, I get "LIBSSH2_ERROR_TIMEOUT: Operation timed out after 30 seconds. [libssh2_sftp_readdir]" on one particular folder. Probably 3 out of 5 syncs this happens. Doesn't seem to stop files from matching up on both sides, but can't figure out what might cause this. I've increased the timeout from 30 to 60 seconds and doesn't seem to matter.

The sync happens 4 times a day and I don't see a pattern in the time of day this happens such as you might see if the provider is throttling at certain times. But if it was a throttling thing I'd imagine it would affect other folders as well.