Topic "Session jammed after restart"

Author Message
Sandoval

Guest


Good afternoon.

I have a program that constantly monitors a server, connecting with FTP mode "Pasive" through the port 21. It works fine until the server is restarted, when this event occurs, the application simply stop it's process. It doesn't throw any error, or timeout, and the log doesn't register anything.

On the server side, the server is running at 10% of it's process power and the RAM Memory it's at 45%.

Greetings and thank you for your attention.

Sandoval.
Advertisements
martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27082
Location: Prague, Czechia
Please attach a log file.
Sandoval

Guest


Thank you for your response

Here is the Log.

Greetings and regards.
sessionLog.txt (47.33 KB) Private file

Description: (none)

martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27082
Location: Prague, Czechia
Sandoval wrote:
It works fine until the server is restarted

And how/when does it start working again?
Sandoval

Guest


Quote:
And how/when does it start working again?


Until I make a "dir" in the Command Prompt
martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27082
Location: Prague, Czechia
So you keep the program running. And once you type the dir somewhere (where? please be specific), the program suddenly starts working? Please give us as many details as possible!

At the same time the program is failing, if you connect with some other standalone FTP client, can you list the directory?
Sandoval

Guest


Quote:
So you keep the program running. And once you type the dir somewhere (where? please be specific), the program suddenly starts working?


Yes, in the command prompt:

Code:
ftp <ftpAddress>
dir


and it's all

Quote:
At the same time the program is failing, if you connect with some other standalone FTP client, can you list the directory?

yes, that's correct
martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27082
Location: Prague, Czechia
Just to be sure I understand:
- After you restart the machine, your application that uses WinSCP .NET assembly is not able to retrieve directory listing (although it can connect to the FTP server).
- You then connect to the same FTP server using Windows command-line ftp.exe client and issue dir command.
- The command retrieves the directory listing.
- From that moment on, the application that uses WinSCP .NET assembly is able to retrieve the directory listing too.

Is that correct?

And again, while the application that uses WinSCP .NET assembly is failing, if you connect using any other FTP client that uses passive FTP mode, is the client able to retrieve directory listing or not? Note that ftp.exe uses an active mode.
Advertisements

You can post new topics in this forum

Search

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License