Bug#705854: pgreplay: FTBFS: cannot connect to database
On 21 Apr 2013, cyril.bouth...@isvtec.com wrote: > If you want pgreplay to build on the compile far, I guess we need a > Build-Depends on 'postgresql' and a patch of runtest.sh.in to use the default > Debian PostgreSQL configuration. I should have done that in the first place. The default pg_hba.conf in Debian does not allow any access to PostgreSQL without root access by default, even from localhost! There is only one role called 'postgres' and you need to sudo as 'root' then sudo as 'postgres' to use it or create a new role with 'createuser' which also needs root privileges. I see no way to install PostgreSQL and run tests without sudoing to root, changing pg_hba.conf and reloading PostgreSQL, which is impossible on the compile farm I guess. I'm forced to ignore the replay tests and a show huge warning. :( -- Cyril Bouthors - ISVTEC: Web Platform Managed Services and Scalability 14 avenue de l'Opéra, 75001 Paris. 1 rue Émile Zola, 69002 Lyon Tél : 01 84 16 16 17 - Ligne directe : 0x7B9EE3B0E - Fax : 01 77 72 57 24 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#705854: pgreplay: FTBFS: cannot connect to database
On 21 Apr 2013, u...@debian.org wrote: > Testing replay ... > skipped, cannot connect to database > To run this test, configure your environment so that this command succeeds: > "psql" -U postgres -d postgres -l > make[1]: *** [test] Error 1 > > Please fix runtest.sh to give pgreplay the benefit of the doubt if no > server is running. Aaron, Thanks for your feedback. If we modify runtest.sh to avoid running tests against PostgreSQL then the tests only make half of the mandatory job and are useless in my opinion. If you want to make a quick local build, then just edit test/runtest.sh.in and add 'exit 0' before the replay tests, at line 73. If you want pgreplay to build on the compile far, I guess we need a Build-Depends on 'postgresql' and a patch of runtest.sh.in to use the default Debian PostgreSQL configuration. I should have done that in the first place. I'll work on that but I can't disable tests. Regards, -- Cyril Bouthors - ISVTEC: Web Platform Managed Services and Scalability 14 avenue de l'Opéra, 75001 Paris. 1 rue Émile Zola, 69002 Lyon Tél : 01 84 16 16 17 - Ligne directe : 0x7B9EE3B0E - Fax : 01 77 72 57 24 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#705854: pgreplay: FTBFS: cannot connect to database
Source: pgreplay Version: 1.2.0-1 Severity: serious Justification: fails to build from source Builds of pgreplay in minimal environments (as on the autobuilders) have been failing: cd test && ./runtest.sh Testing stderr log parsing ... ok Testing CSV log parsing ... ok Testing replay ... skipped, cannot connect to database To run this test, configure your environment so that this command succeeds: "psql" -U postgres -d postgres -l make[1]: *** [test] Error 1 Please fix runtest.sh to give pgreplay the benefit of the doubt if no server is running. Thanks! -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org