Bad News Folders
This may be a Linux issue, but I'm using WinSCP to connect so I'll ask it here.
When copying files from the Local (Windows) directory to the remote (Linux) FTP server, sometimes WinSCP loses the connection and is unable to reconnect. It keeps trying, but to no avail. However, after aborting, usually the connection is still there, or if it isn't, it's easy to reconnect manually.
Investigating further, I found is that there are certain "bad news" folders on the remote server. Simply clicking on a "bad news" folder to browse it in the WinSCP window causes WinSCP to lose the connection. Similarly, it can't delete these "bad news" folders. Interestingly, they have the same Unix permissions listed as the folders that work.
One workaround I tried that did work is this:
1) Rename the "bad news" folder.
2) Create a copy of the "bad news" folder on the local server WITH A DIFFERENT NAME.
3) Upload the renamed folder.
4) Rename the folder on the remote server to the original name.
5) Then delete the renamed "bad news" folders
Step #2 is particularly interesting here. If I try to upload a folder that has the same name that the "bad news" folder had previously (even though I renamed the bad news folder), then the uploaded folder is also "bad news." However, if I upload a folder with a different name, and then rename it to the name that the "bad news" folder had before, then the newly uploaded folder functions normally, and I can get inside it.
Moreover, after doing step #4, it's as if something "resets" because step #5 is possible, whereas it wasn't before. For example, before step #4, it's impossible to delete the bad news folders, even after they were renamed. But once the "good" folder is renamed to the original name, then the old "bad news" folders can be deleted.
I'm thinking this might have something to do with the fact that I deleted a bunch of files on the server previously (which I had put up earlier using the same account), and somehow some "ghosts" have remained? In any case, I wish WinSCP could somehow get around this, because my workaround takes a lot of extra work.
When copying files from the Local (Windows) directory to the remote (Linux) FTP server, sometimes WinSCP loses the connection and is unable to reconnect. It keeps trying, but to no avail. However, after aborting, usually the connection is still there, or if it isn't, it's easy to reconnect manually.
Investigating further, I found is that there are certain "bad news" folders on the remote server. Simply clicking on a "bad news" folder to browse it in the WinSCP window causes WinSCP to lose the connection. Similarly, it can't delete these "bad news" folders. Interestingly, they have the same Unix permissions listed as the folders that work.
One workaround I tried that did work is this:
1) Rename the "bad news" folder.
2) Create a copy of the "bad news" folder on the local server WITH A DIFFERENT NAME.
3) Upload the renamed folder.
4) Rename the folder on the remote server to the original name.
5) Then delete the renamed "bad news" folders
Step #2 is particularly interesting here. If I try to upload a folder that has the same name that the "bad news" folder had previously (even though I renamed the bad news folder), then the uploaded folder is also "bad news." However, if I upload a folder with a different name, and then rename it to the name that the "bad news" folder had before, then the newly uploaded folder functions normally, and I can get inside it.
Moreover, after doing step #4, it's as if something "resets" because step #5 is possible, whereas it wasn't before. For example, before step #4, it's impossible to delete the bad news folders, even after they were renamed. But once the "good" folder is renamed to the original name, then the old "bad news" folders can be deleted.
I'm thinking this might have something to do with the fact that I deleted a bunch of files on the server previously (which I had put up earlier using the same account), and somehow some "ghosts" have remained? In any case, I wish WinSCP could somehow get around this, because my workaround takes a lot of extra work.