Refreshing FTP folder issue

I've had this for quite a while and cannot find any reason for it.

Basically I connect to an FTP server using a standard FTP account (PASV, port 21).
Everything is fine, however if I want to refresh the currently viewing folder by pressing F5 Directory Opus immediately changes the current folder to /tmp, and I have to use the back button to navigate back to the folder I was actually viewing.

The server is a CentOS 6 Apache server - if that makes any difference, however, I do get this folder with every standard FTP account I have. If I change and use an FTP over SSH connection I do not have this refresh issue.

Thanks for any help.

Is that happening with the latest version of Opus?

Does it make a difference if the folder tree is on or off?

I currently have version 10.5.1.0 (4848) x64, and I've seen it with each v10 update I've used.

It doesn't happen with the folder tree closed!

Update: Also, once the folder tree is re-shown, the ftp refreshes correctly. Bit weird.

When you say it changes to /tmp to you mean a /tmp folder on the server itself? Or a local temp folder on the computer you're using?

What happens in the FTP log when you push F5 and it changes folders?

If the tree is involved, screenshots of the tree before and after the change might assist us in working out what's going on.

Sorry for the lack of details.

When I press F5 in an FTP server folder (doesn't matter where) it changes the current directory to /tmp on the FTP server.

The folder tree changes with the refresh. It jumps to the tmp folder as mentioned above and the folder tree collapses the FTP listing down to the root folder.

Before F5:

After F5:

Had an issue with the images:

Before:

After:

Thanks!

It's interesting thing there is that the "www" dir from the first screenshot is completely gone from the tree in the second.

That suggests something happened to make Opus think the www dir wasn't there anymore, and it then went to the next dir up in the tree ("tmp").

Is there anything relevant in the second sceenshot's FTP log before the 150 Accepted data connection line?

It might be worth turning on the FTP log debug mode, so we can also see the commands that Opus is sending to the FTP server:

(The screenshot shows the Default Settings being edited, but note that the individual site entry may override the Log settings, if configured that way.)

I think I know why www disappeared on refresh. It's not really a folder, it's a symlink (I think that's right) that points to the actual folder public_html.

Below is the FTP log after changing to the WWW folder, and then refreshing with F5:

--> CWD www
250 OK. Current directory is /www
--> PWD
257 "/www" is your current location
--> PASV
227 Entering Passive Mode (x,x,x,x,x,x)
--> LIST -alF
150 Accepted data connection
226-Options: -a -F -l
226 32 matches total
2431 bytes received in 0.27 seconds (87.912 Kbytes/sec)
Opening Connection x.x.x.x:x
Opening Connection x.x.x.x:x
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 5 of 50 allowed.
220-Local time is now 15:39. Server port: 21.
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
--> USER -----
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 6 of 50 allowed.
220-Local time is now 15:39. Server port: 21.
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
--> USER -----
331 User -----OK. Password required
--> PASS ...
331 User -----OK. Password required
--> PASS ...
230 OK. Current restricted directory is /
--> SYST
230 OK. Current restricted directory is /
--> SYST
215 UNIX Type: L8
--> FEAT
215 UNIX Type: L8
--> FEAT
211-Extensions supported:
EPRT
IDLE
MDTM
SIZE
MFMT
REST STREAM
MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
MLSD
AUTH TLS
PBSZ
PROT
ESTA
PASV
EPSV
SPSV
ESTP
211 End.
--> OPTS MLST type;modify;size;unix.mode;unix.uid;unix.gid;
211-Extensions supported:
EPRT
IDLE
MDTM
SIZE
MFMT
REST STREAM
MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
MLSD
AUTH TLS
PBSZ
PROT
ESTA
PASV
EPSV
SPSV
ESTP
211 End.
--> OPTS MLST type;modify;size;unix.mode;unix.uid;unix.gid;
200 MLST OPTS type;size;sizd;modify;UNIX.mode;UNIX.uid;UNIX.gid;unique;
--> TYPE A
200 MLST OPTS type;size;sizd;modify;UNIX.mode;UNIX.uid;UNIX.gid;unique;
--> TYPE A
200 TYPE is now ASCII
--> PWD
200 TYPE is now ASCII
--> PWD
257 "/" is your current location
--> CWD /tmp
257 "/" is your current location
--> CWD /tmp
250 OK. Current directory is /tmp
--> PWD
250 OK. Current directory is /tmp
--> PWD
257 "/tmp" is your current location
--> PASV
257 "/tmp" is your current location
227 Entering Passive Mode (x,x,x,x,x,x)
--> LIST -alF
150 Accepted data connection
226-Options: -a -F -l
226 9 matches total
681 bytes received in 0.27 seconds (24.424 Kbytes/sec)
Connection closed

I should probably mention that if I use the public_html folder instead of the symlink www the refresh F5 works fine.

Many thanks!

If the problem only happens with symlinks, I wonder if changing this setting to "folders" will help?

(As with the previous setting, the screenshot shows the defaults but individual sites may be set to override it, so it's worth checking both the defaults, at the top of the list, and the entry for the site itself.)


Good idea. Sadly it didn't work :frowning:

Its not too much of an issue now that I know what the cause is. I will just retrain myself to use the proper public_html folder instead.