Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: TMP files are not being cleaned up after Session is closed

Naresh wrote:

I am also using Winscp to poll the files remotely.
I am also facing same issue [ TMP files are not being cleaned up after Session is closed ] .
Is there any solution to delete temp files.

We need to now a way more to help you.
How are you using WinSCP? Show us some code. Show us log files. What TMP files specifically?
Naresh

Re: TMP files are not being cleaned up after Session is closed

[quote="Naresh"]

martin wrote:

Thanks for your post.

This bug has been added to the tracker:
https://winscp.net/tracker/849


---
Hi Team,

I am also using Winscp to poll the files remotely.
I am also facing same issue [ TMP files are not being cleaned up after Session is closed ] .
Is there any solution to delete temp files.
Naresh

Re: TMP files are not being cleaned up after Session is closed

martin wrote:

Thanks for your post.

This bug has been added to the tracker:
https://winscp.net/tracker/849


---
Hi
martin

Re: Still not cleaning up...

zaus wrote:

Only for me, these are in the application directory (same folder as the WinSCP.dll/exe).

Where do these come from?

I'm using the Nuget package (product version 5.7.6, file version 1.2.10.5874)

Which "these"? Please start a new thread and describe your problem in details, including a debug log (Session.DebugLogPath).
zaus

Still not cleaning up...

Only for me, these are in the application directory (same folder as the WinSCP.dll/exe).

Where do these come from?

I'm using the Nuget package (product version 5.7.6, file version 1.2.10.5874)
gunnerit

So that how to resoled this problem. I also have this issue.
I create a service run on Win2k8 Server.
martin

ted1001 wrote:

The new ones are not deleted. Triggering it from Powershell like this:

I have sent you an email with a development version of WinSCP to address you have used to register on this forum.
martin

ted1001 wrote:

The new ones are not deleted. Triggering it from Powershell like this:

Thanks for your report.
I will contact you shortly.
ted1001

martin wrote:

ted1001 wrote:

I just downloaded the latest version.
tmp-files are not deleted after running dispose.

Old ones or new ones? The olds one are not. You need to delete them manually. But the new ones should be deleted.


The new ones are not deleted. Triggering it from Powershell like this:

$sessionOptions = New-Object WinSCP.SessionOptions
$sessionOptions.Protocol = [WinSCP.Protocol]::Sftp
$sessionOptions.HostName = "---------REMOVED--------"
$sessionOptions.UserName = "---------REMOVED--------"
$sessionOptions.Password = "---------REMOVED--------"
$sessionOptions.SshHostKey = "ssh-rsa 1024 ---------REMOVED--------"
$session = New-Object WinSCP.Session
$session.ExecutablePath = $winscpPath
$session.DisableVersionCheck = "true"



Example of the content of a tmp-file not deleted:
<?xml version="1.0" encoding="UTF-8"?>
<session xmlns="https://winscp.net/schema/session/1.0" name="---------REMOVED--------" start="2012-05-24T08:22:55.320Z">
<group name="open -hostkey=&quot;ssh-rsa 1024 ---------REMOVED--------&quot; -timeout=15 &quot;sftp://---------REMOVED--------5&quot;" start="2012-05-24T08:22:55.711Z">
</group>
<group name="stat -- &quot;./files/lmsdeploy/---------REMOVED--------/uploadcompleted.true&quot;" start="2012-05-24T08:22:55.758Z">
<stat>
<filename value="/files/lmsdeploy/Atlantic/uploadcompleted.true" />
<result success="false">
<message>Can't get attributes of file './files/lmsdeploy/Atlantic/uploadcompleted.true'.</message>
<message>No such file or directory.
Error code: 2
Error message from server: No such file
Request code: 7</message>
</result>
</stat>
<failure>
<message>Can't get attributes of file './files/lmsdeploy/---------REMOVED--------/uploadcompleted.true'.</message>
<message>No such file or directory.
Error code: 2
Error message from server: No such file
Request code: 7</message>
</failure>
</group>
<group name="exit" start="2012-05-24T08:22:55.883Z">
</group>
</session>
martin

ted1001 wrote:

I just downloaded the latest version.
tmp-files are not deleted after running dispose.

Old ones or new ones? The olds one are not. You need to delete them manually. But the new ones should be deleted.
ted1001

gschmidt34 wrote:

I downloaded the latest release and the issue appears to be resolved.


I just downloaded the latest version.
tmp-files are not deleted after running dispose.

Winscp.exe 5.0.7.2268
Winscp.dll 5.0.7.0 (file version 1.0.0.528)
gschmidt34

I downloaded the latest release and the issue appears to be resolved.
mobject

Hi,

Any workaround for this please ? Currently my winscp exceeded 65535 temporary files and It crash.

Thanks,

mobject
martin

Re: TMP files are not being cleaned up after Session is closed

Thanks for your post.

This bug has been added to the tracker:
https://winscp.net/tracker/849
gschmidt34

TMP files are not being cleaned up after Session is closed

Every time a Session is opened a .tmp file is created in the c:\windows\temp directory, but these files are not getting removed when the Session is destroyed - even if explicitly called Session.dispose();

Is there an option for this? Or how should it be handled?