Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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.

Thanks

Comment on Net::OpenSSh failed with mux socket permissions in make test
Download Code
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..

Re: Net::OpenSSh failed with mux socket permissions in make test
by marto (Chancellor) 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 salva (Monsignor) 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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1022765]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (10)
As of 2014-08-28 03:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (255 votes), past polls