RT::Extension::LDAPImport install fails

Hi,
I’m trying to install LDAPImport and I’m stuck with an error which I
can’t properly understand stating " You tried to plan twice".
Can anyone give me a hint?
Full error export follows.

Thanks,
Giuseppe

cpan install RT::Extension::LDAPImport

CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
Database was generated on Thu, 26 May 2011 01:39:53 GMT
install is up to date.
Running install for module RT::Extension::LDAPImport
Running make for F/FA/FALCONE/RT-Extension-LDAPImport-0.31.tar.gz
CPAN: Digest::MD5 loaded ok
CPAN: Compress::Zlib loaded ok
Checksum for
/root/.cpan/sources/authors/id/F/FA/FALCONE/RT-Extension-LDAPImport-0.31.tar.gz
ok
Scanning cache /root/.cpan/build for sizes
RT-Extension-LDAPImport-0.31/
RT-Extension-LDAPImport-0.31/bin/
RT-Extension-LDAPImport-0.31/Changes
RT-Extension-LDAPImport-0.31/inc/
RT-Extension-LDAPImport-0.31/INSTALL.SKIP
RT-Extension-LDAPImport-0.31/lib/
RT-Extension-LDAPImport-0.31/Makefile.PL
RT-Extension-LDAPImport-0.31/MANIFEST
RT-Extension-LDAPImport-0.31/MANIFEST.SKIP
RT-Extension-LDAPImport-0.31/META.yml
RT-Extension-LDAPImport-0.31/README
RT-Extension-LDAPImport-0.31/SIGNATURE
RT-Extension-LDAPImport-0.31/t/
RT-Extension-LDAPImport-0.31/t/00.load.t
RT-Extension-LDAPImport-0.31/t/group-import.t
RT-Extension-LDAPImport-0.31/t/lib/
RT-Extension-LDAPImport-0.31/t/pod-coverage.t
RT-Extension-LDAPImport-0.31/t/pod.t
RT-Extension-LDAPImport-0.31/t/user-import-privileged.t
RT-Extension-LDAPImport-0.31/t/user-import.t
RT-Extension-LDAPImport-0.31/t/lib/RT/
RT-Extension-LDAPImport-0.31/t/lib/RT/Extension/
RT-Extension-LDAPImport-0.31/t/lib/RT/Extension/LDAPImport/
RT-Extension-LDAPImport-0.31/t/lib/RT/Extension/LDAPImport/Test.pm.in
RT-Extension-LDAPImport-0.31/lib/RT/
RT-Extension-LDAPImport-0.31/lib/RT/Extension/
RT-Extension-LDAPImport-0.31/lib/RT/Extension/LDAPImport.pm
RT-Extension-LDAPImport-0.31/inc/Module/
RT-Extension-LDAPImport-0.31/inc/Module/AutoInstall.pm
RT-Extension-LDAPImport-0.31/inc/Module/Install/
RT-Extension-LDAPImport-0.31/inc/Module/Install.pm
RT-Extension-LDAPImport-0.31/inc/Module/Install/AutoInstall.pm
RT-Extension-LDAPImport-0.31/inc/Module/Install/Base.pm
RT-Extension-LDAPImport-0.31/inc/Module/Install/Can.pm
RT-Extension-LDAPImport-0.31/inc/Module/Install/Fetch.pm
RT-Extension-LDAPImport-0.31/inc/Module/Install/Include.pm
RT-Extension-LDAPImport-0.31/inc/Module/Install/Makefile.pm
RT-Extension-LDAPImport-0.31/inc/Module/Install/Metadata.pm
RT-Extension-LDAPImport-0.31/inc/Module/Install/RTx.pm
RT-Extension-LDAPImport-0.31/inc/Module/Install/Substitute.pm
RT-Extension-LDAPImport-0.31/inc/Module/Install/Win32.pm
RT-Extension-LDAPImport-0.31/inc/Module/Install/WriteAll.pm
/bin/tar: Read 3072 bytes from -
RT-Extension-LDAPImport-0.31/bin/rtldapimport.in
Removing previously used /root/.cpan/build/RT-Extension-LDAPImport-0.31

CPAN.pm: Going to build F/FA/FALCONE/RT-Extension-LDAPImport-0.31.tar.gz

Cannot determine perl version info from lib/RT/Extension/LDAPImport.pm
Using RT configuration from /opt/rt4/lib/RT.pm:
./bin => /opt/rt4/local/plugins/RT-Extension-LDAPImport/bin
./lib => /opt/rt4/local/plugins/RT-Extension-LDAPImport/lib
Cannot determine perl version info from lib/RT/Extension/LDAPImport.pm
Open input
’/root/.cpan/build/RT-Extension-LDAPImport-0.31/bin/rtldapimport.in’
file for substitution
Open output
’/root/.cpan/build/RT-Extension-LDAPImport-0.31/bin/rtldapimport’ file
for substitution
Open input
’/root/.cpan/build/RT-Extension-LDAPImport-0.31/t/lib/RT/Extension/LDAPImport/Test.pm.in’
file for substitution
Open output
’/root/.cpan/build/RT-Extension-LDAPImport-0.31/t/lib/RT/Extension/LDAPImport/Test.pm’
file for substitution
*** Module::AutoInstall version 1.03
*** Checking for Perl dependencies…
[Core Features]

  • Test::More …loaded. (0.98)
  • Net::LDAP …loaded. (0.4001)
  • Class::Accessor …loaded. (0.34)
    [Proper Testing]
  • Net::LDAP::Server::Test …missing.
    ==> Auto-install the 1 optional module(s) from CPAN? [n] n
    *** Module::AutoInstall configuration finished.
    Checking if your kit is complete…
    Looks good
    Writing Makefile for RT::Extension::LDAPImport
    cp lib/RT/Extension/LDAPImport.pm blib/lib/RT/Extension/LDAPImport.pm
    Manifying blib/man3/RT::Extension::LDAPImport.3pm
    /usr/bin/make – OK
    Running make test
    PERL_DL_NONLAZY=1 /usr/bin/perl “-MExtUtils::Command::MM” “-e”
    “test_harness(0, ‘inc’, ‘blib/lib’, ‘blib/arch’)” t/00.load.t
    t/group-import.t t/pod-coverage.t t/pod.t t/user-import-privileged.t
    t/user-import.t
    t/00.load.t … 1/1 # Testing RT::Extension::LDAPImport 0.31
    t/00.load.t … ok
    t/group-import.t … 1/43 You tried to plan twice at
    t/group-import.t line 5.
    You tried to plan twice at t/group-import.t line 5.

Looks like you planned 43 tests but ran 3.

Looks like your test exited with 255 just after 3.

t/group-import.t … Dubious, test returned 255 (wstat 65280,
0xff00)
Failed 40/43 subtests
t/pod-coverage.t … ok
t/pod.t … ok
t/user-import-privileged.t … 1/34 You tried to plan twice at
t/user-import-privileged.t line 5.
You tried to plan twice at t/user-import-privileged.t line 5.

Looks like you planned 34 tests but ran 3.

Looks like your test exited with 255 just after 3.

t/user-import-privileged.t … Dubious, test returned 255 (wstat 65280,
0xff00)
Failed 31/34 subtests
t/user-import.t … 1/37 You tried to plan twice at
t/user-import.t line 5.
You tried to plan twice at t/user-import.t line 5.

Looks like you planned 37 tests but ran 3.

Looks like your test exited with 255 just after 3.

t/user-import.t … Dubious, test returned 255 (wstat 65280,
0xff00)
Failed 34/37 subtests

Test Summary Report
t/group-import.t (Wstat: 65280 Tests: 3 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 43 tests but ran 3.
t/user-import-privileged.t (Wstat: 65280 Tests: 3 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 34 tests but ran 3.
t/user-import.t (Wstat: 65280 Tests: 3 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 37 tests but ran 3.
Files=6, Tests=12, 7 wallclock secs ( 0.03 usr 0.01 sys + 3.43 cusr
0.23 csys = 3.70 CPU)
Result: FAIL
Failed 3/6 test programs. 0/12 subtests failed.
make: *** [test_dynamic] Error 255
/usr/bin/make test – NOT OK
Running make install
make test had returned bad status, won’t install without force

Giuseppe Sollazzo
Senior Systems Analyst
Computing Services
Information Services
St. George’s, University Of London
Cranmer Terrace
London SW17 0RE

Email: gsollazz@sgul.ac.uk
Direct Dial: +44 20 8725 5160
Fax: +44 20 8725 3583

Hi,
I’m trying to install LDAPImport and I’m stuck with an error which I
can’t properly understand stating " You tried to plan twice".
Can anyone give me a hint?

This module is required to run the tests:

  • Net::LDAP::Server::Test …missing.
    ==> Auto-install the 1 optional module(s) from CPAN? [n] n

But you didn’t install it, so they aren’t going to work.

If you want to run the tests, install all the deps on a dev server
where you have full access to a test database to run them.

If you don’t want to run the tests, download the tarball and follow
the instructions in the README instead of using the CPAN shell.

-kevin

Hi Kevin,
thanks for that.

The reason I answered “n” is that if I try and install the test package
I get the following output (even if I try the install separately):

Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl “-MExtUtils::Command::MM” “-e”
“test_harness(0, ‘blib/lib’, ‘blib/arch’)” t/*.t
t/00-load.t … 1/1 # Testing Net::LDAP::Server::Test 0.10, Perl
5.008008, /usr/bin/perl
t/00-load.t … ok
t/01-ldap.t … 1/12 Creating new LDAP server on port 10636 …
Accepted connection from: 127.0.0.1
Creating new LDAP server on port 10636 …
Unable to listen on port 10636: Address already in use at
/root/.cpan/build/Net-LDAP-Server-Test-0.10/blib/lib/Net/LDAP/Server/Test.pm
line 844.
… shutting down server

After which it stops there and never returns to prompt nor proceeds to
the actual install of LDAPImport. I’m still happy to run through cpan
rather than tarball so if you have any idea how to sort this out that
would be awesome.

Many thanks,
GiuseppeOn 26/05/11 14:41, Kevin Falcone wrote:

On Thu, May 26, 2011 at 01:58:00PM +0100, Giuseppe Sollazzo wrote:

Hi,
I’m trying to install LDAPImport and I’m stuck with an error which I
can’t properly understand stating " You tried to plan twice".
Can anyone give me a hint?
This module is required to run the tests:

  • Net::LDAP::Server::Test …missing.
    ==> Auto-install the 1 optional module(s) from CPAN? [n] n
    But you didn’t install it, so they aren’t going to work.

If you want to run the tests, install all the deps on a dev server
where you have full access to a test database to run them.

If you don’t want to run the tests, download the tarball and follow
the instructions in the README instead of using the CPAN shell.

-kevin

Giuseppe Sollazzo
Senior Systems Analyst
Computing Services
Information Services
St. George’s, University Of London
Cranmer Terrace
London SW17 0RE

Email: gsollazz@sgul.ac.uk
Direct Dial: +44 20 8725 5160
Fax: +44 20 8725 3583

Hi Kevin,
thanks for that.

The reason I answered “n” is that if I try and install the test package
I get the following output (even if I try the install separately):

Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl “-MExtUtils::Command::MM” “-e”
“test_harness(0, ‘blib/lib’, ‘blib/arch’)” t/*.t
t/00-load.t … 1/1 # Testing Net::LDAP::Server::Test 0.10, Perl
5.008008, /usr/bin/perl
t/00-load.t … ok
t/01-ldap.t … 1/12 Creating new LDAP server on port 10636 …
Accepted connection from: 127.0.0.1
Creating new LDAP server on port 10636 …
Unable to listen on port 10636: Address already in use at
/root/.cpan/build/Net-LDAP-Server-Test-0.10/blib/lib/Net/LDAP/Server/Test.pm
line 844.
… shutting down server

After which it stops there and never returns to prompt nor proceeds to
the actual install of LDAPImport. I’m still happy to run through cpan
rather than tarball so if you have any idea how to sort this out that
would be awesome.

Many thanks,
GiuseppeOn 26/05/11 14:41, Kevin Falcone wrote:

On Thu, May 26, 2011 at 01:58:00PM +0100, Giuseppe Sollazzo wrote:

Hi,
I’m trying to install LDAPImport and I’m stuck with an error which I
can’t properly understand stating " You tried to plan twice".
Can anyone give me a hint?
This module is required to run the tests:

  • Net::LDAP::Server::Test …missing.
    ==> Auto-install the 1 optional module(s) from CPAN? [n] n
    But you didn’t install it, so they aren’t going to work.

If you want to run the tests, install all the deps on a dev server
where you have full access to a test database to run them.

If you don’t want to run the tests, download the tarball and follow
the instructions in the README instead of using the CPAN shell.

-kevin

Giuseppe Sollazzo
Senior Systems Analyst
Computing Services
Information Services
St. George’s, University Of London
Cranmer Terrace
London SW17 0RE

Email: gsollazz@sgul.ac.uk
Direct Dial: +44 20 8725 5160
Fax: +44 20 8725 3583

The reason I answered “n” is that if I try and install the test
package I get the following output (even if I try the install
separately):

Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl “-MExtUtils::Command::MM” “-e”
“test_harness(0, ‘blib/lib’, ‘blib/arch’)” t/*.t
t/00-load.t … 1/1 # Testing Net::LDAP::Server::Test 0.10, Perl
5.008008, /usr/bin/perl
t/00-load.t … ok
t/01-ldap.t … 1/12 Creating new LDAP server on port 10636 …
Accepted connection from: 127.0.0.1
Creating new LDAP server on port 10636 …
Unable to listen on port 10636: Address already in use at /root/.cpan/build/Net-LDAP-Server-Test-0.10/blib/lib/Net/LDAP/Server/Test.pm
line 844.
… shutting down server

This is a random port, so either you have a conflict on the random
port it chose, or some other restriction from your OS.

You do understand that the test suite will need to create an rt3test
database and put data in it?

I suspect that you really do not want to run the test suite, and we’ll
release an update that moves them to author tests.

I still suggest a manual installation since it will make it easier for
you to review the README

-kevin

Hi Kevin,
thanks for your reply.

Comments inline.

The reason I answered “n” is that if I try and install the test
package I get the following output (even if I try the install
separately):

Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl “-MExtUtils::Command::MM” “-e”
“test_harness(0, ‘blib/lib’, ‘blib/arch’)” t/*.t
t/00-load.t … 1/1 # Testing Net::LDAP::Server::Test 0.10, Perl
5.008008, /usr/bin/perl
t/00-load.t … ok
t/01-ldap.t … 1/12 Creating new LDAP server on port 10636 …
Accepted connection from: 127.0.0.1
Creating new LDAP server on port 10636 …
Unable to listen on port 10636: Address already in use at /root/.cpan/build/Net-LDAP-Server-Test-0.10/blib/lib/Net/LDAP/Server/Test.pm
line 844.
… shutting down server
This is a random port, so either you have a conflict on the random
port it chose, or some other restriction from your OS.

Uhm… weird as running from root. Also, what do you mean by “random”?
Every time I run the install the port is the same, do I have any way of
altering the seed?

You do understand that the test suite will need to create an rt3test
database and put data in it?

It gets to that point actually. But this is RT4, so rt4test, which was
created without issues specifying the DBA user/pass as an environment
variable.

I suspect that you really do not want to run the test suite, and we’ll
release an update that moves them to author tests.

I still suggest a manual installation since it will make it easier for
you to review the README

Ok - I’ll have a look at the README and experiment with the manual
install, although I’d prefer a “packaged” release for the live server.
Please let me know about your release plans.

Many thanks,
Giuseppe

Giuseppe Sollazzo
Senior Systems Analyst
Computing Services
Information Services
St. George’s, University Of London
Cranmer Terrace
London SW17 0RE

Email: gsollazz@sgul.ac.uk
Direct Dial: +44 20 8725 5160
Fax: +44 20 8725 3583

t/00-load.t … ok
t/01-ldap.t … 1/12 Creating new LDAP server on port 10636 …
Accepted connection from: 127.0.0.1
Creating new LDAP server on port 10636 …
Unable to listen on port 10636: Address already in use at /root/.cpan/build/Net-LDAP-Server-Test-0.10/blib/lib/Net/LDAP/Server/Test.pm
line 844.
… shutting down server
This is a random port, so either you have a conflict on the random
port it chose, or some other restriction from your OS.

Uhm… weird as running from root. Also, what do you mean by
"random"? Every time I run the install the port is the same, do I
have any way of altering the seed?

Oh, this is you being unable to install Net::LDAP::Server::Test
If it hardcodes a port, you’ll either need to tweak the test suite or
file a bug with the author. We have no control over that.

I suspect that you really do not want to run the test suite, and we’ll
release an update that moves them to author tests.

I still suggest a manual installation since it will make it easier for
you to review the README

Ok - I’ll have a look at the README and experiment with the manual
install, although I’d prefer a “packaged” release for the live
server. Please let me know about your release plans.

You realize that the manual install is simply replicating what the
cpan shell does? The cpan shell downloads, untars it, runs perl
Makefile.PL, runs tests, installs. What you would do is download the
tarball, untar it, read the README, follow the instructions to run
Makefile.PL and install it.

The CPAN client will not configure the extension or add it to your
RT_SiteConfig.pm so you’re still going to need to read the README and
do some manual things. I’m not actually aware of any packages of this
extension.

-kevin

Hi Kevin,
thanks for the clarification. I’m not practical with perl/cpan in
general and trying to find my way trough.

I’m surprised no other users have experienced a similar problem when
installing Net::LDAP::Server::Test, but I’ll give a look - it seems to
try using that port even upon rebooting.

Thanks,
GOn 31/05/11 15:32, Kevin Falcone wrote:

On Tue, May 31, 2011 at 10:52:43AM +0100, Giuseppe Sollazzo wrote:

t/00-load.t … ok
t/01-ldap.t … 1/12 Creating new LDAP server on port 10636 …
Accepted connection from: 127.0.0.1
Creating new LDAP server on port 10636 …
Unable to listen on port 10636: Address already in use at /root/.cpan/build/Net-LDAP-Server-Test-0.10/blib/lib/Net/LDAP/Server/Test.pm
line 844.
… shutting down server
This is a random port, so either you have a conflict on the random
port it chose, or some other restriction from your OS.
Uhm… weird as running from root. Also, what do you mean by
"random"? Every time I run the install the port is the same, do I
have any way of altering the seed?
Oh, this is you being unable to install Net::LDAP::Server::Test
If it hardcodes a port, you’ll either need to tweak the test suite or
file a bug with the author. We have no control over that.

I suspect that you really do not want to run the test suite, and we’ll
release an update that moves them to author tests.

I still suggest a manual installation since it will make it easier for
you to review the README

Ok - I’ll have a look at the README and experiment with the manual
install, although I’d prefer a “packaged” release for the live
server. Please let me know about your release plans.
You realize that the manual install is simply replicating what the
cpan shell does? The cpan shell downloads, untars it, runs perl
Makefile.PL, runs tests, installs. What you would do is download the
tarball, untar it, read the README, follow the instructions to run
Makefile.PL and install it.

The CPAN client will not configure the extension or add it to your
RT_SiteConfig.pm so you’re still going to need to read the README and
do some manual things. I’m not actually aware of any packages of this
extension.

-kevin

Giuseppe Sollazzo
Senior Systems Analyst
Computing Services
Information Services
St. George’s, University Of London
Cranmer Terrace
London SW17 0RE

Email: gsollazz@sgul.ac.uk
Direct Dial: +44 20 8725 5160
Fax: +44 20 8725 3583