Cannot remove temporary directory

Advertisement

kklepper
Joined:
Posts:
15

Cannot remove temporary directory

I use WinSCP for a long time now and have installed versions from 5.9.6 up to 5.13.3 without problems, but since a couple of weeks I get a very peculiar error whose cause I was not able to determine yet. It occurs when I edit a remote file with a local editor and close it.

If I interpret the error message correctly, it complains to not being able to remove a directory without a name. What's going on here?

Most probably the cause is some kind of setting, because the error now appears with any version I tested. If the reason were to be found in the program, it should have appeared after an update, but it didn't.

Indeed I changed the settings for storage recently. Some time ago I changed the storage directory but this did not cause any problem. As far as I remember the problems began when I began experimenting with the "append" checkboxes.

Now checking on or off any of these doesn't change the behavior. Clearing the whole directory doesn't change anything either.

Please see the attached screenshots.
Last edited by kklepper on 2018-06-22 11:19; edited 1 time in total
  • Image5.jpg (24.24 KB, Private file)
Description: 2 Screenshots illustrating the case

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: Cannot remove temorary directory

Please attach a full session log file showing the problem (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

kklepper
Joined:
Posts:
15

log file

I noticed 2 files in the directory which were dubious and deleted them to no avail, which was no surprise, as this phenomenon applies to every file in every directory.

To me, everything looks good in this log file. The file I opened and closed was up.sh.
  • c-bak.log (26.41 KB, Private file)

Reply with quote

martin
Site Admin
martin avatar

Re: log file

Thanks for your report.
I have sent you an email with a debug version of WinSCP to the address you have used to register on this forum.

Reply with quote

Advertisement

kklepper

As I exited I received a note to send the trace log. As I had 2 of them, I produced a zip file of about 5 MB. Upload resulted in a general error, supposedly the file was empty.

Should I give it another try?

Reply with quote

kklepper
Joined:
Posts:
15

I'm very sorry, but the problem persists. Trying to integrate the new version into my workflow, it turned out that the problem most probably is related to my way of starting WinSCP.

I use to open a dozen tabs and hate to select my workspace or whatever I called this collection from the startup dialog (b2d). Long time ago I figured out how to do that automatically, but somehow this got lost a couple of weeks ago.

So I turned to the help online and managed to work out a solution. I created a batch file winscp.bat
winscp.exe b2d
and from this batch file a shortcut which I could stick to my taskbar. Now whenever I do this with whatever version, I get this error.

On the contrary, if I start WinSCP conventionally and take my workspace from the dialogue, I don't get this error with either version.
  • WinSCP1344trace.zip (1.14 MB, Private file)
Description: The latest of those logs

Reply with quote

kklepper
Joined:
Posts:
15

First of all, thank you very much.

I have 3 executables at hand:
WinSCP_5.13.3.exe
WinSCP20180622.exe
WinSCP20180627.exe
I attached WinSCP_5.13.3.exe to my taskbar not starting my workspace automatically, so it did not produce an error whenever I closed a file in the editor. It was such a relief which showed me which amount of stress the error had put on me before.

WinSCP20180622.exe seemed to have the same problem, i.e. produce this error when automatically opening the workspace.

WinSCP20180627.exe does not show this error anymore.

Is there a switch to turn off tracing in this debug version?

PS: Now the last problem I have is adding a shortcut to the taskbar which automatically opens my preferred workspace.

I tried different scenarios (... omitted ...) -- I found the solution (simple and logical indeed):
https://www.digitalcitizen.life/shortcut-arguments-parameters-windows/

Well, I think I knew this before but had forgotten about it. Just for the record, if anybody reads this.
Description: Several log files

Reply with quote

Advertisement

martin
Site Admin
martin avatar

I actually didn't change anything between WinSCP20180622.exe and WinSCP20180627.exe to fix the problem.
So it looks suspicious.
Anyway, I'm sending you a release build of the latest version for testing.

Reply with quote

kklepper
Joined:
Posts:
15

Thank you. Works fine.

Well, these things happen... Chances are higher if your program gets more complex...

I will let you know if I get more clues...

Reply with quote

Advertisement

kklepper

I assumed my workspace data was in WinSCP.ini, but renaming this file did not change anything. Opening a single tab only or creating a new session did not help either.

What can I do?

Reply with quote

Guest

Looks like I found something -- see attachment.

Preferences/Storage/Keep... seems to be the one -- if I understand correctly, this is what I'd like to have.

WinSCP.PNG

Reply with quote

Advertisement

kklepper
Joined:
Posts:
15

Yes.

In a running session, I call preferences, check this mark, close a file in the editor, and get no error.

Next I open this file again, close it immediately, and get the error.

I remove the checkmark in preferences, open this file, close it and get no error.

Reply with quote

Advertisement

You can post new topics in this forum