Opened 11 years ago

Closed 9 years ago

Last modified 4 years ago

#2688 closed defect (fixed)

make check RUNTESTFLAGS=--extension can't run on debbie

Reported by: robe Owned by: robe
Priority: medium Milestone: Website Management, Bots
Component: QA/buildbots Version: 2.1.x
Keywords: Cc:

Description

strk,

I was unable to get make check runtestflags to run on debbie so had to remark it out.

Keeps on giving this error:

psql: FATAL:  role "jenkins" does not exist
Creating database 'postgis_reg' 
createdb: could not connect to database template1: FATAL:  role "jenkins" does not exist
psql: FATAL:  role "jenkins" does not exist
Preparing db 'postgis_reg' using 'CREATE EXTENSION'

I don't know why this is an issue since I have a line

export PGUSER=postgres

and the regular regress in theory would be running into the same issue.

Anyrate she pulls this script:

http://svn.osgeo.org/postgis/buildbots/debian/scripts/postgis_regress.sh

I remarked out the extension install piece since it wasn't working.

Fill free to change it and then she should run it on next postgis regress run.

Change History (12)

comment:1 by robe, 11 years ago

Milestone: PostGIS 2.1.2Management 2.0

comment:2 by strk, 10 years ago

The script exports PGUSER too late, only for "extension" but after it runs "make check" once before. Why not exporting it once upfront ?

(if this is not an issue anymore, please close)

PS: buildbot scripts are another good candidate to move to git …

comment:3 by strk, 10 years ago

Robe any news here ? I'd love to get the bots to test with the EXTENSION, and even more with the —extension —upgrade (which I think I broke today)

comment:4 by robe, 10 years ago

no not yet. Tied up thru mid-March so probably won't have time to devote to this before then.

comment:5 by robe, 10 years ago

strk — how do I get this thing to not try to install in protected areas?

Get this error now on debbie when I try to install

make[1]: Entering directory `/var/lib/jenkins/workspace/postgis/branches/2.2/liblwgeom'
/bin/bash ../libtool --mode=install /bin/bash ../install-sh liblwgeom.la "/usr/local/lib/liblwgeom.la"
libtool: install: /bin/bash ../install-sh .libs/liblwgeom-2.2.0dev.so /usr/local/lib/liblwgeom-2.2.0dev.so
cp: cannot create regular file `/usr/local/lib/_inst.27454_': Permission denied
make[1]: *** [install-liblwgeom] Error 1
make[1]: Leaving directory `/var/lib/jenkins/workspace/postgis/branches/2.2/liblwgeom'
make: *** [install] Error 1
Build step 'Execute shell' marked build as failure

comment:6 by strk, 9 years ago

I guess it'd take properly supporting —prefix (#635) but you can try with setting the DESTDIR env variable

comment:7 by strk, 9 years ago

Robe what about creating a "postgresql" group and adding "jenkins" user to it, then make the postgresql system directories writeable by the "postgresql" group ?

comment:8 by robe, 9 years ago

Well the thing is that the postgresql directories are under jenkins so they are already writeable. The issue last I recall was that stuff tries to be installed in system.

/usr/local/lib

We might have fixed that issue though, cause as I recall on winnie, I think I'm using dest or something to prevent it from writing into /usr/local/lib. So perhaps that is the solution.

comment:9 by strk, 9 years ago

That's probably liblwgeom. Did you try —prefix too ? I'm just trying to close dangling tickets :)

comment:10 by robe, 9 years ago

(In [14721]) Try to fix make install issue using —prefix references #2688

comment:11 by robe, 9 years ago

Resolution: fixed
Status: newclosed

Okay that seems to have fixed it - using —prefix

comment:12 by robe, 4 years ago

Milestone: Management 2.0Website Management, Bots

Milestone renamed

Note: See TracTickets for help on using tickets.