Session jammed after restart

Advertisement

Sandoval
Guest

Session jammed after restart

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.

Reply with quote

Advertisement

Sandoval
Guest

LogFile

Thank you for your response

Here is the Log.

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

Reply with quote

martin
Site Admin
martin avatar

Re: Session jammed after restart

Sandoval wrote:

It works fine until the server is restarted
And how/when does it start working again?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,442
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?

Reply with quote

Sandoval
Guest

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:

ftp <ftpAddress>
dir

and it's all

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

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,442
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.

Reply with quote

Advertisement

You can post new topics in this forum