Directory goes blank after using Move command

Advertisement

rf15
Joined:
Posts:
5
Location:
California

Directory goes blank after using Move command

Hi All,
Version: 6.3.5 (Build 14991 2024-09-10)
Windows 10
Protocol: SFTP
GUI Interface - Explorer

I try to take some time once a month to move older files from remote directories I use frequently to directories I don't use as much to lessen the amount of time it takes to load and/or search.

While moving large numbers of files by highlighting the ones I want to move, right-clicking and selecting Move I sometimes run into an issue where once the Move is finished the directory I am in is empty and shows no files. BUT I know the files are still there because if I copy a file from my local directory that I know is in the "empty" directory, I get a pop-up asking me if I want to Overwrite the file. See attached image.

It's hard to replicate the issue because it doesn't happen every time. It only seems to happen when moving a large number of files. In this most recent case, I was moving between 400 and 500 at a time, and it happened after I had already moved about 2,000 of them.

In the past, the directory has re-populated itself, although what causes it to re-populate seems to me to be random. Sometimes, all I need to do is copy a new file into the directory. Other times, closing WinSCP and re-opening it works. I've tried creating a new file, creating a new directory, copying multiple files into the directory... sometimes one of those will trigger it, sometimes it won't.

Any thoughts or suggestions on how to avoid this and what to do when it happens would be greatly appreciated.

Description: Screenshot of the pop-up asking if I want to overwrite the file, even though the remote target directory is empty.

winscp-overwrite.PNG

Reply with quote

Advertisement

rf15

Re: Directory goes blank after using Move command

They do not. I've tried hitting the Refresh icon, closing the connection and re-connecting, letting it time out and re-connect... still acts like it's empty.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,541
Location:
Prague, Czechia

Re: Directory goes blank after using Move command

Please attach a full session log file showing the problem including the subsequent Refresh (using the latest version of WinSCP).

To generate the session log file, enable logging, log in to your server and do the operation and only the operation that causes the error. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Reply with quote

rf15
Joined:
Posts:
5
Location:
California

Re: Directory goes blank after using Move command

Hi Martin,

Will do. I just went back into the directory and the files are now showing again, so I will come back to this the next time it happens. As I mentioned, it's hard to reproduce, but I will turn on logging before the next time I am archiving files so when it happens again I can upload them for you.

Thanks.

Reply with quote

Advertisement

rf15
Joined:
Posts:
5
Location:
California

It happened again

Hi All,

It happened to me again. As I was moving files using the Move command from one folder to another. I moved a chunk of about 500 files at once and after the move finished the directory looked empty.

I then copied a file from my local drive into the "empty" folder and all of the files showed again. It's now in a spot where if I delete the file I copied in, the directory goes blank. And if I copy that file back in from local, everything is disaplyed.

I'm attaching the log file. For this log, I started in the directory. Deleted the file I had copied (named 20230804--P5122459-2--142699505.856), the directory went blank, I copied the file back in from local, the directory was populated.

Reply with quote

martin
Site Admin
martin avatar

Re: It happened again

Thanks for the log. Though it shows just the login and initial listing of directory /TDSynnex. It does not show any delete nor move. It does not even contain any "20230804--P5122459-2--142699505.856".

Reply with quote

rf15
Joined:
Posts:
5
Location:
California

Ok, it happened again just now.

It just happened again and I had logging on for the full session. This time, I had to try and copy multiple files into the "empty" directory to get them to show again. Log is too large to attach here, so I've added the full thing to my Google Drive:
https://drive.google.com/drive/folders/1LRkBzU58ZYZOacRztRA46sWLgp3aTiO6?usp=sharing

If there's a better way to get the full file to you, if needed, let me know. I am attaching a truncated log with just the beginning and ending of the file.

Once again, thank you for looking at this.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,541
Location:
Prague, Czechia

Re: Ok, it happened again just now.

Thanks for the log.
What I can see in the log, is that at 15:40:00, you have uploaded a file (20240709....810) to the /.../Archive/ folder. After the upload, WinSCP reloaded the remote directory and the server returned NO files:
. 2024-12-09 15:40:00.579 Transfer done: 'C:\Users\Trudie\OneDrive - Paragon Micro Inc\Documents\EDI\TD Synnex\Manual Run\Dupe Test\20240709--P5166395-4180775--152804287.810' => '/TDSynnex/850 US/Archive/20240709--P5166395-4180775--152804287.810' [586]
. 2024-12-09 15:40:00.584 Copying finished: Transferred: 586, Elapsed: 0:00:00, CPS: 2,100/s
. 2024-12-09 15:40:00.584 Listing directory "/TDSynnex/850 US/Archive".
> 2024-12-09 15:40:00.584 Type: SSH_FXP_OPENDIR, Size: 33, Number: 3882507
< 2024-12-09 15:40:00.609 Type: SSH_FXP_HANDLE, Size: 45, Number: 3882507
> 2024-12-09 15:40:00.611 Type: SSH_FXP_READDIR, Size: 45, Number: 3882764
< 2024-12-09 15:40:00.766 Type: SSH_FXP_NAME, Size: 9, Number: 3882764
> 2024-12-09 15:40:00.766 Type: SSH_FXP_READDIR, Size: 45, Number: 3883020
. 2024-12-09 15:40:00.767 Empty directory listing packet. Aborting directory reading.
After that you have uploaded another file at 15:40:10. This time after reload of the same folder, the server returned thousands of entries.

Seems to be a server-side problem to me.

Reply with quote

Advertisement

You can post new topics in this forum