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: thanks

c10c wrote:

ahh, i get what you meant. you wanted me to check the server which i am connecting for their logs.. there is no problem from WINSCP side is what you meant

Correct.
c10c

thanks

ahh, i get what you meant. you wanted me to check the server which i am connecting for their logs.. there is no problem from WINSCP side is what you meant
Thanks
martin

Re: logs

c10c wrote:

This is the logs i have. Any idea where i should look for the server logs?
I had set the WINSCP client log path but no server log path was set? Are they created automatically?
Thanks

Server log has nothing to do with WinSCP. Every SSH server is different. So I cannot help here.
c10c

logs

This is the logs i have. Any idea where i should look for the server logs?
I had set the WINSCP client log path but no server log path was set? Are they created automatically?
Thanks
martin

Re: question

Please check server log, not client (WinSCP) log.
c10c

question

The differences between a successful session and unsuccessful are mentioned below -

Successful -
-----------------
! 2012-04-09 13:57:42.387 Authenticating with public key "rsa-key-20120217"
. 2012-04-09 13:57:42.409 Sent public key signature
. 2012-04-09 13:57:42.583 Remote debug message: Agent forwarding disabled.
. 2012-04-09 13:57:42.947 Remote debug message: X11 forwarding disabled.
. 2012-04-09 13:57:42.947 Remote debug message: Forced command: /home/sshacs/acssshsink acetrax_test
. 2012-04-09 13:57:42.947 Access granted
. 2012-04-09 13:57:43.115 Opened channel for session
. 2012-04-09 13:57:43.508 Started a shell/command
. 2012-04-09 13:57:43.508 --------------------------------------------------------------------------
. 2012-04-09 13:57:43.508 Using SFTP protocol.
. 2012-04-09 13:57:43.508 Doing startup conversation with host.
> 2012-04-09 13:57:43.509 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2012-04-09 13:57:43.893 Type: SSH_FXP_VERSION, Size: 38, Number: -1
. 2012-04-09 13:57:43.893 SFTP version 3 negotiated.
-----------------------

Unsuccessful
! 2012-04-09 13:58:22.964 Authenticating with public key "rsa-key-20120217"
. 2012-04-09 13:58:22.996 Sent public key signature
. 2012-04-09 13:58:23.173 Remote debug message: Agent forwarding disabled.
. 2012-04-09 13:58:23.548 Remote debug message: X11 forwarding disabled.
. 2012-04-09 13:58:23.548 Remote debug message: Forced command: /home/sshacs/acssshsink acetrax_test
. 2012-04-09 13:58:23.548 Access granted
. 2012-04-09 13:58:23.721 Opened channel for session
. 2012-04-09 13:58:24.114 Started a shell/command
. 2012-04-09 13:58:24.124 --------------------------------------------------------------------------
. 2012-04-09 13:58:24.124 Using SFTP protocol.
. 2012-04-09 13:58:24.124 Doing startup conversation with host.
> 2012-04-09 13:58:24.128 Type: SSH_FXP_INIT, Size: 5, Number: -1
. 2012-04-09 13:58:25.111 Server sent command exit status 0

As my sessions are ASync - there is no difference in the settings done through the implementation

Should i be setting another property?

This SSH_FXP_VERSION is not authenticated properly. Should something be updated on my local machine?

Please suggest
martin

Re: full log

c10c wrote:

Thanks for responding - the full log is attached

Ok, please check server log file to see, why it forcibly closes your session.
c10c

full log

Thanks for responding - the full log is attached
martin

Re: change

Please post a full log file showing the problem.
c10c

change

Hi

The implementation was changed and I have now separate session objects being created for each upload

Now, for example If I have 36 files to upload, it processes like 18-20 of them and for the rest, throws the following error -

2012-04-06 14:02:26 FATAL Connected to sFTP failed: Connection has been unexpectedly closed. Server sent command exit status 0.

Can you help me by explaining for status 0 here is?

-Chirag
c10c

yeah, kinda figured that out already and in process of changing the implementation
Thanks
c10c

Error message on log file

2012-04-05 10:07:18 INFO Connectoin to sFTP succeeded
2012-04-05 10:07:18 INFO ------Async Upload through WINSCP starts-------
2012-04-05 10:07:18 FATAL Error while uploading data to Akamai: Cannot access a closed file.
2012-04-05 10:07:19 FATAL Error while uploading data to Akamai: Error parsing session log file


[2012-04-05 10:12:49Z] [000d] Exception: WinSCP.SessionLocalException: Element "group" not found in the log file
[2012-04-05 10:12:49Z] [000b] Exception: WinSCP.SessionLocalException: Error parsing session log file ---> System.Xml.XmlException: Unexpected end of file has occurred. The following elements are not closed: group, session. Line 6, position 1.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.ThrowUnclosedElements()
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.XmlTextReaderImpl.Read()
at WinSCP.SessionLogReader.DoRead()
--- End of inner exception stack trace ---
[2012-04-05 10:12:49Z] [000d] Session.PutFiles leaving
[2012-04-05 10:12:49Z] [000b] Session.PutFiles leaving
[2012-04-05 10:12:49Z] [0009] Session.PutFiles leaving


Any idea on why does this error happen? I am trying to upload simultaneous files using delegates..

Please help