Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Net::OpenSSh failed with mux socket permissions in make test

by ismaq (Initiate)
on Mar 11, 2013 at 08:58 UTC ( #1022765=perlquestion: print w/replies, xml ) Need Help??
ismaq has asked for the wisdom of the Perl Monks concerning the following question:

I'm trying to install Net::OpenSSH in HP_UX but when I do make test I get:

root-gfaae329:/root/.cpan/build/Net-OpenSSH-0.60>make test PERL_DL_NONLAZY=1 /opt/perl/bin/perl "-MExtUtils::Command::MM" + "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/1_run.....# # SSH client found: OpenSSH_5.9p1+sftpfilecontrol-v1.3-hpn13v12, OpenS +SL 0.9.8x 10 May 2012 # HP-UX Secure Shell-A.05.90.009, HP-UX Secure Shell version. # Trying to connect to localhost, timeout is 15s. t/1_run.....1/46 # Failed test 'mux socket permissions' # at t/1_run.t line 92. # got: '448' # expected: '384' # Failed test at t/1_run.t line 117. t/1_run.....39/46 # Looks like you failed 2 tests of 46. t/1_run..... Dubious, test returned 2 (wstat 512, 0x200) Failed 2/46 subtests (less 1 skipped subtest: 43 okay) t/2_pods....skipped: Only the author needs to check that POD docs are +right Test Summary Report ------------------- t/1_run (Wstat: 512 Tests: 46 Failed: 2) Failed tests: 2, 9 Non-zero exit status: 2 Files=2, Tests=46, 3 wallclock secs ( 0.07 usr 0.02 sys + 0.78 cusr + 0.41 csys = 1.28 CPU) Result: FAIL Failed 1/2 test programs. 2/46 subtests failed. *** Error exit code 255 Stop.

I would like to know how I can solve this problem.


Replies are listed 'Best First'.
Re: Net::OpenSSh failed with mux socket permissions in make test
by salva (Abbot) on Mar 11, 2013 at 11:22 UTC
    First, note that you are not using OpenSSH as required by Net::OpenSSH but a derived version from HP with several patches applied.

    Having said that, there should not be mayor problems using the ssh from HP as the multiplexing capability is there and the command line flags and configuration directives are mostly the same.

    Specifically, for the two failing tests:

    The first one is completely harmless. For some reason, the multiplexing socket is created with permissions 700 instead of the expected 600.

    The second one is probably caused by calling ps with the wrong arguments.

    HP used to have a program that allowed open source developers to port their software to HP operating systems and machines, but they canceled it some years ago. So, I stopped supporting my modules there also.

Re: Net::OpenSSh failed with mux socket permissions in make test
by marto (Bishop) on Mar 11, 2013 at 11:11 UTC
    my $muxs = $ssh->get_ctl_path; ok(-S $muxs, "mux socket exists"); is((stat $muxs)[2] & 0777, 0600, "mux socket permissions"); # line 92

    Have you worked through the troubleshooting section of Net::OpenSSH? Chances are you're hitting this permissions problem for good reason.

    Update: 448 in base 8 is 700. Speak to your systems administrator if in doubt

      The 700 is probably caused by some of the patches applied to OpenSSH by HP or some HP-UX deviation from the common practice of creating sockets with permissions 666 & ~umask.
Re: Net::OpenSSh failed with mux socket permissions in make test
by Khen1950fx (Canon) on Mar 11, 2013 at 10:15 UTC
    According to the Makefile.PL, the module doesn't work on Windows, assuming that Secure Shell requires Windows.

      "I'm trying to install Net::OpenSSH in HP_UX but when I do make test I get..

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1022765]
Approved by Corion
[stevieb]: ...has honed in my skills of recognizing sound
[stevieb]: All of the early members are coming out of the woodwork today :) Hey, planetscape
[Corion]: This cover version had so much promise but the singing is underwhelming :-/
[stevieb]: erix Thanks! I dislike remakes of songs usually, but my favourite remix of guitar/weeps is Jeff Healey. I'll take a listen to yours
[planetscape]: hi stevieb!
[stonecolddevin]: also hi Corion
[Corion]: stevieb: Yeah, but I don't follow guitar players enough... I never got Prince and I don't think I could recognize his play style. I can recognize Santana and Nile Rodgers, but that's about it, and not really deep knowledge I think ;)
[stevieb]: Jeff Healey cut of My guitar gently weeps
[stonecolddevin]: you don't recognize Prince. Prince tells you it's him.
[erix]: Alvin Lee (Ten Years After) played a jazzguitar ("Big Red"), a good warm sound

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2017-06-22 21:30 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (531 votes). Check out past polls.