Page 1 of 1

issue reconnecting to same server with different root directory

Posted: 2021-04-05 19:59
by hudson4351
I am finding that reconnecting to an FTP server that is started from a different root directory does not display the correct directory contents unless FileZilla is completely closed and reopened first. I am creating an FTP server on my Android phone and connecting to it using FileZilla 3.53.1 for PC. Here are the steps I am following:

1. start FTP server on phone in /storage/
2. connect to FTP server using FileZilla using drop-down arrow next to "Quickconnect" and specifying phone's IP; choose "OK" when asked about "Insecure FTP connection"
3. stop FTP server on phone

log file from above 3 steps:

Code: Select all

14:48:52	Status:	Connecting to 192.168.1.2:2121...
14:48:52	Status:	Connection established, waiting for welcome message...
14:48:53	Status:	Insecure server, it does not support FTP over TLS.
14:48:57	Status:	Logged in
14:48:57	Status:	Retrieving directory listing...
14:48:57	Status:	Directory listing of "/" successful
14:49:14	Status:	Retrieving directory listing of "/0000-0000"...
14:49:15	Status:	Directory listing of "/0000-0000" successful
14:49:28	Status:	Connection closed by server
4. start FTP server on phone in /
5. connect to FTP server using FileZilla on PC using drop-down arrow next to "Quickconnect" and specifying phone's IP
6. choose "Abort previous connection and connect in current tab" when prompted (not sure why I get this window that says "FileZilla is already connected to a server.")

At this point, the listing of directories in FileZilla's right-hand window still shows the directory structure from when the previous server was started from /storage/, and trying to navigate inside some of those directories gives the error shown in the log file below:

Code: Select all

14:53:44	Status:	Disconnected from server
14:53:44	Status:	Connecting to 192.168.1.2:2121...
14:53:45	Status:	Connection established, waiting for welcome message...
14:53:45	Status:	Insecure server, it does not support FTP over TLS.
14:53:45	Status:	Logged in
14:53:45	Status:	Retrieving directory listing...
14:53:45	Status:	Directory listing of "/" successful
14:54:04	Status:	Retrieving directory listing of "/self"...
14:54:04	Command:	CWD /self
14:54:04	Response:	550 path does not exist!
14:54:04	Error:	Failed to retrieve directory listing
If I completely close FileZilla, reopen it, then reconnect to the same FTP server on my phone, the directory structure is displayed correctly. Is this always necessary or does a setting control this behavior?

Re: issue reconnecting to same server with different root directory

Posted: 2021-04-05 21:20
by boco
In order to avoid unnecessary server queries, received lists of directories are cached for some time. If you find that FileZilla still displays cached contents after having reconfigured the server, you need to press F5 to refresh the listing.