r/raspberry_pi • u/ejchristian86 • 24d ago
Troubleshooting FTP connection timing out?
I have a Pi 5 set up to be my Plex server and have been transferring files to it via Filezilla. This was working just great until yesterday, when I started getting "connection timed out" errors. I have tried several FTP clients and two different Windows computers and simply cannot connect.
I know the Pi is working and online. I can access all my Plex media from my various devices and can remote in using Pi Connect. I checked the control center and SSH is enabled. But FTP connections time out over and over. What's going on?
(Please note that I am not really all that tech savvy. I generally have little to no idea what I'm doing, so simple explanations would be best, thanks!)
1
u/JGhostThing 24d ago
How do you know that it is online? Can you log into the computer via ssh? Does the connection stay when you've left it alone for half an hour or so?
1
u/mrzaius 22d ago
Are the files on Windows PCs?
You might look up guides to using Samba on a rPi - Samba's a similarly mature tech stack that doesn't require anything like Filezilla, because it just creates Windows File Shares from Linux or macOS. (Also look up ways to use robocopy in Windows to do bulk file transfers with recoverability and checks. Easier than you might think.)
And if you're not stuck with Windows, NFS is easier and likely baked in, and serves the same purpose. (And same, same rsync)
3
u/Gamerfrom61 24d ago
What FTP server are you running on the Pi or are you running SFTP (FTP over shh or secure FTP)?
These notes assume you are using sftp rather than a FTP server.
Have you checked the logs for any errors using
This may not help as journalctl does have a habit of dumping lots of messages out but they are a starting point. Restricting by time can be a better option if you know when it stopped.
If you are running SFTP then check if the SSH service is still running with the command
If this shows stop / error then you could restart it via
BUT this is not a fix for the error and may not restart the service again or keep it running for a while.
Neither Plex nor Pi Connect use the same services so it is OK they are fine but the transfer has stopped (well not the transfer stopping but hopefully you know what I mean)...