http://www.perlmonks.org?node_id=977226


in reply to Net::SFTP::Foreign frequent connection server stall

Hi, I am Net::SFTP::Foreign author. Set $Net::SFTP::Foreign::debug = ~(8|16|1024|2048); and send me the output by email. Also, run your script with truss and send me the last hundreds of lines.

BTW, which SSH client are you using, the one from Solaris or OpenSSH one and which version? I would try changing it.

Net::SFTP::Foreign supports timeouts and resuming transfers. You can combine these features as a workaround until we find what is going wrong.

Replies are listed 'Best First'.
Re^2: Net::SFTP::Foreign frequent connection server stall
by Anonymous Monk on Jun 20, 2012 at 16:46 UTC
    Hi Salva,

    Getting a dump from a failed run will be tricky. As it seems to only fail the first run of the day. I will try to get it.

    "ssh -V" shows: Sun_SSH_1.1.1, SSH protocols 1.5/2.0, OpenSSL
    I'm not sure what you mean by changing it or that I have any power to(?)

    PS. Just want to say kudos because I can see you actively answer user questions.
      As it seems to only fail the first run of the day

      Then, you must investigate what happens at that time of the day that is different than when it runs properly.

      It may be a problem related to the network, some firewall being rebooted every day at some time early on the morning or whatever. If you can run tcpdump on the machine, you may be able to discover what is happening with the connection at the TCP level.

      I'm not sure what you mean by changing it or that I have any power to(?)

      If you can, install OpenSSH on the machine and tell Net::SFTP::Foreign to use it instead of the SSH client from Solaris, just to see if it makes a difference.

Re^2: Net::SFTP::Foreign frequent connection server stall
by rider754 (Novice) on Jun 21, 2012 at 16:44 UTC
    Hello, not sure how to email you (can you PM me your email address?). Thanks!
      CPAN authors can usually be reached via CPANID@cpan.org. In my case, salva@cpan.org.