Hi Perl Monks, I have a setup where through my Windows PC(cygwin) I am communicating to the linux system over ssh using Net::Expect::SSH The communication has work really good where i ran 100s of tests. In my tests, after every test failure I reboot the linux system. Intermittently, after reboot, when i try to communicate to the linux system over SSH, I see the below error of "No Pty allocated". I have no clue whats going on ?

2 [main] perl 3528 tty_list::allocate: No pty allocated pty_allocate(nonfatal): posix_openpt(): No such device or address at / +usr/lib/perl5/site_perl/5.10/i686-cygwin/IO/Pty.pm line 24. 2133 [main] perl 3528 tty_list::allocate: No pty allocated pty_allocate(nonfatal): getpt(): No such device or address at /usr/lib +/perl5/site_perl/5.10/i686-cygwin/IO/Pty.pm line 2 4. 4249 [main] perl 3528 tty_list::allocate: No pty allocated pty_allocate(nonfatal): openpty(): No such file or directory at /usr/l +ib/perl5/site_perl/5.10/i686-cygwin/IO/Pty.pm line 24. 6331 [main] perl 3528 tty_list::allocate: No pty allocated pty_allocate(nonfatal): open(/dev/ptmx): No such device or address at +/usr/lib/perl5/site_perl/5.10/i686-cygwin/IO/Pty.p m line 24. Cannot open a pty at /usr/lib/perl5/site_perl/5.10/Net/SSH/Expect.pm l +ine 120

. I realized that there are lot of orphaned SSH connections that i need to kill. Even after doing that, i still am seeing this issue

Could someone please advice ? Thanks.


In reply to No pty allocated by hardy004

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.