Looked at the current doc and it suggest to run psql without sudoing to postgres user, so posted a patch for that:

https://gerrit.ovirt.org/c/ovirt-engine/+/113009

Let's get it merged to see if it helped or not.



On Fri, Jan 15, 2021 at 8:58 AM Sandro Bonazzola <sbonazzo@redhat.com> wrote:
Hi,
I was wondering why sonar reports were not updated recently and I seen that travis is failing:
etting environment variables from .travis.yml
272$ export SONAR_TOKEN=[secure]
cache.1
274Setting up build cache
275$ export CASHER_DIR=${TRAVIS_HOME}/.casher
2760.29s$ Installing caching utilities
2770.00s1.42sattempting to download cache archive
278fetching master/cache--linux-xenial-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855--jdk-openjdk11.tgz
279fetching master/cache-linux-xenial-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855--jdk-openjdk11.tgz
280fetching master/cache--jdk-openjdk11.tgz
281could not download cache
2820.00s0.89sadding /home/travis/.m2 to cache
284$ java -Xmx32m -version
285openjdk version "11.0.2" 2019-01-15
286OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
287OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)
288$ javac -J-Xmx32m -version
289javac 11.0.2
install
2900.00s$ true
2910.05s$ sudo -u postgres psql -c "CREATE USER engine_test WITH PASSWORD 'test';"
292could not change directory to "/home/travis/build/oVirt/ovirt-engine": Permission denied
293psql: error: could not connect to server: No such file or directory
294 Is the server running locally and accepting
295 connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
296The command "sudo -u postgres psql -c "CREATE USER engine_test WITH PASSWORD 'test';"" failed and exited with 2 during .
298Your build has been stopped.




+Martin Perina , +Roman Mohr any idea on how to fix it?

--


--
Martin Perina
Manager, Software Engineering
Red Hat Czech s.r.o.