Skip Menu |

This queue is for tickets about the Module-Build-Database CPAN distribution.

Report information
The Basics
Id: 79558
Status: resolved
Priority: 0/
Queue: Module-Build-Database

People
Owner: Nobody in particular
Requestors: d.thomas [...] its.uq.edu.au
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: main test FAILs on RHEL6
PERL_DL_NONLAZY=1 /opt/perl/uq.cis.perl-base2.rhel6-5.16.1-20120910/bin/perl "- MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00-load.t ................ 1/1 # Testing Module::Build::Database 0.33, Perl 5.016001, /opt/perl/uq.cis.perl-base2.rhel6-5.16.1-20120910/bin/perl t/00-load.t ................ ok t/01-install-postgis.t ..... skipped: No postgis.sql, set TEST_POSTGIS_BASE=/usr/local/wherever to give a location ... [see below] t/03-install-sqlite.t ...... ok t/pod.t .................... ok /opt/perl/uq.cis.perl-base2.rhel6-5.16.1-20120910/bin/perl -I blib/lib -I blib/arch t/02- install-no-postgis.t ok 1 - perl -Mblib=/opt/work/uq.cis.perl.build/uq.cis.perl.build.rhel6-5.16.1- 20120910/tarball-build/Module-Build-Database-0.33/t/../blib Build.PL not ok 2 - ./Build dbtest # Failed test './Build dbtest' # at /opt/work/uq.cis.perl.build/uq.cis.perl.build.rhel6-5.16.1-20120910/tarball- build/Module-Build-Database-0.33/t/tlib/misc.pm line 16. # ./Build dbtest failed : 512 512 # # starting test database # Error with '/usr/bin/initdb -D /tmp/mbdtest_qaB5MY/db >> /tmp/mbdtest_qaB5MY/postgres.log 2>&1' : 256 256 # could not initdb at /opt/work/uq.cis.perl.build/uq.cis.perl.build.rhel6-5.16.1- 20120910/tarball-build/Module-Build-Database- 0.33/t/../blib/lib/Module/Build/Database/PostgreSQL.pm line 155. not ok 3 - ./Build dbdist # Failed test './Build dbdist' # at /opt/work/uq.cis.perl.build/uq.cis.perl.build.rhel6-5.16.1-20120910/tarball- build/Module-Build-Database-0.33/t/tlib/misc.pm line 16. # ./Build dbdist failed : 512 512 # Error with '/usr/bin/initdb -D /tmp/mbdtest_PT3nh6/db >> /tmp/mbdtest_PT3nh6/postgres.log 2>&1' : 256 256 # could not initdb at /opt/work/uq.cis.perl.build/uq.cis.perl.build.rhel6-5.16.1- 20120910/tarball-build/Module-Build-Database- 0.33/t/../blib/lib/Module/Build/Database/PostgreSQL.pm line 155. not ok 4 - created base.sql # Failed test 'created base.sql' # at t/02-install-no-postgis.t line 47. not ok 5 - created patches_applied.txt # Failed test 'created patches_applied.txt' # at t/02-install-no-postgis.t line 48. # using local port 9999 not ok 6 - initdb -D /tmp/ezqzHOedqt/dbtest # Failed test 'initdb -D /tmp/ezqzHOedqt/dbtest' # at /opt/work/uq.cis.perl.build/uq.cis.perl.build.rhel6-5.16.1-20120910/tarball- build/Module-Build-Database-0.33/t/tlib/misc.pm line 16. # initdb -D /tmp/ezqzHOedqt/dbtest failed : 256 256 # initdb: cannot be run as root # Please log in (using, e.g., "su") as the (unprivileged) user that will # own the server process. No such file or directory at t/02-install-no-postgis.t line 76. 1..6 # Looks like you failed 5 tests of 6. # Looks like your test exited with 2 just after 6. any ideas to help diagnose from build of DBD::Pg # DBI Version 1.622 # DBD::Pg Version 2.19.3 # Perl Version 5.16.1 # OS linux # PostgreSQL (compiled) 80412 # PostgreSQL (target) 80412 # PostgreSQL (reported) PostgreSQL 8.4.12 on x86_64-redhat-linux-gnu, compiled by GCC gcc (GCC) 4.4.6 20110731 (Red Hat 4.4.6-3), 64-bit # Default port 5432 # DBI_DSN dbi:Pg:db="postgres";port=5441;host=/tmp/dbdpg_testdatabase_IEF2_W/data/socket # DBI_USER postgres # Test schema dbd_pg_testschema # LANG C # array_nulls on # backslash_quote safe_encoding # client_encoding UTF8 # server_encoding UTF8 # standard_conforming_strings off # Adjusted: initdb
Subject: Re: [rt.cpan.org #79558] main test FAILs on RHEL6
Date: Tue, 11 Sep 2012 12:08:56 -0400
To: "d.thomas [...] its.uq.edu.au via RT" <bug-Module-Build-Database [...] rt.cpan.org>
From: Brian Duggan <bduggan [...] matatu.org>
On Monday, September 10, d.thomas@its.uq.edu.au via RT wrote: Show quoted text
> [..] > # initdb -D /tmp/ezqzHOedqt/dbtest failed : 256 256 > # initdb: cannot be run as root > # Please log in (using, e.g., "su") as the (unprivileged) user that will > # own the server process.
Show quoted text
> [..]
Show quoted text
> any ideas to help diagnose >
Looks like the test suite doesn't work when run as root (since initdb doesn't work when run as root). Thanks for reporting this, looks like I'll just have to skip this test when it is run as root. Brian
Subject: Re: [rt.cpan.org #79558] main test FAILs on RHEL6
Date: Tue, 11 Sep 2012 19:09:47 +0000
To: "<bug-Module-Build-Database [...] rt.cpan.org>" <bug-Module-Build-Database [...] rt.cpan.org>
From: Danny Thomas <d.thomas [...] its.uq.edu.au>
On 12/09/2012, at 2:09 AM, Brian Duggan via RT wrote: Show quoted text
> Thanks for reporting this, looks like I'll just have > to skip this test when it is run as root.
could you prompt for another userid to run it as ?
Subject: Re: [rt.cpan.org #79558] main test FAILs on RHEL6
Date: Wed, 12 Sep 2012 08:27:15 -0400
To: "d.thomas [...] its.uq.edu.au via RT" <bug-Module-Build-Database [...] rt.cpan.org>
From: Brian Duggan <bduggan [...] matatu.org>
On Tuesday, September 11, d.thomas@its.uq.edu.au via RT wrote: Show quoted text
> could you prompt for another userid to run it as ?
I'd rather avoid prompting since I think tests are often run unattended. Also, I think changing users is a bit outside the scope of a unit test suite; most of the automated tools (cpanminus, cpanplus, ...) have ways of only doing the install as root (e.g. cpanm -S), so that building/ testing can be run as a non-root user. I went ahead and released 0.34 to CPAN which skips postgres tests when run as root, so I'm going to resolve this bug. Brian