[check_postgres] install (test) problems
Rob Sargent
rsargent at xmission.com
Tue May 19 17:20:40 UTC 2009
After perl Makefile.PL;make;make test; my directory looks like this
drwxr-sr-x 8 rob postgres 4096 2009-05-19 09:20 blib
-rwxr-xr-x 1 rob postgres 221259 2009-05-04 18:31 check_postgres.pl
-rw-r--r-- 1 rob postgres 163 2009-05-04 18:29 check_postgres.pl.asc
-rw-r--r-- 1 rob postgres 94315 2009-05-04 07:29 check_postgres.pl.html
-rw-r--r-- 1 rob postgres 21749 2009-05-19 09:20 Makefile
-rw-r--r-- 1 rob postgres 2161 2009-05-04 09:54 Makefile.PL
-rw-r--r-- 1 rob postgres 894 2009-05-04 07:30 MANIFEST
-rw-r--r-- 1 rob postgres 111 2009-05-04 11:07 MANIFEST.SKIP
-rw-r--r-- 1 rob postgres 1564 2009-05-01 12:46 META.yml
-rw-r--r-- 1 rob postgres 0 2009-05-19 09:20 pm_to_blib
-rw-r--r-- 1 rob postgres 2116 2009-05-01 12:18 README
-rw-r--r-- 1 rob postgres 3930 2009-05-04 18:29 SIGNATURE
drwxr-sr-x 2 rob postgres 4096 2009-05-04 18:35 t
drwxr-sr-x 2 rob postgres 4096 2009-05-19 09:26
test_database_check_postgres
I chose to use the postgres group hoping to alleviate the permissions
problem, but I still get
make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00_basic................ok
t/00_signature............skipped
all skipped: Set the environment variable TEST_SIGNATURE to
enable this test
t/00_test_tester..........# Creating database in directory
"test_database_check_postgres"
Could not open "test_database_check_postgres/data
space/postgresql.conf": No such file or directory
# Looks like your test died before it could output anything.
t/00_test_tester..........dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED test 1
Failed 1/1 tests, 0.00% okay
t/02_autovac_freeze.......Gave up waiting for
test_database_check_postgres/pg.log to say it was ready
# Looks like your test died before it could output anything.
t/02_autovac_freeze.......dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-8
Failed 8/8 tests, 0.00% okay
and looking in test_database_check_postgres/pg.log we see
postgres cannot access the server configuration file
"/home/rob/tools/check_postgres/check_postgres-2.8.0/test_database_check_postgres/
data space/postgresql.conf": No such file or directory
So it appear the a) postgres user is trying to read a file from a
directory that did not get created.
Sorry my first post was a little light on details: Thought it might be
something other's had seen and the details were actually in-accessible
at the time of the writing.
rjs
Greg Sabino Mullane wrote:
> Rob Sargent wrote:
>> I'm running ubuntu-8.10. I've downloaded v-2.8.1 of check-postgres.
>> 'make test' fails completely due to permission problems on the directory
>> created for the tests' data.
>>
>> Anyone else seeing this?
>
> Does the user you are running the test as have rights to create subdirectories
> in the current directory? It should be doing an initdb to create the
> "test_database_check_postgres" directory and thus have full permissions. Can you
> paste the exact error seen?
>
More information about the Check_postgres
mailing list