Error upgrading to 2011R2.4

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
itg-dac
Posts: 4
Joined: Mon Mar 05, 2012 5:24 am

Error upgrading to 2011R2.4

Post by itg-dac »

I get this error when i try to upgrade from 2011R2.3 to R2.4:

Code: Select all

# tar xzf xi-latest.tar.gz
# cd nagiosxi/
# ./upgrade
Checking PostgresQL status...
PostgresQL running - continuing...
Creating audit log database structure...
psql: could not connect to server: No such file or directory
        Is the server running locally and accepting
        connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
#
Any suggestion? :cry:
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Error upgrading to 2011R2.4

Post by scottwilkerson »

you might want to try restarting postgres

Code: Select all

service postgresql restart
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
itg-dac
Posts: 4
Joined: Mon Mar 05, 2012 5:24 am

Re: Error upgrading to 2011R2.4

Post by itg-dac »

Didnt work... suggestions ?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Error upgrading to 2011R2.4

Post by mguthrie »

This is the actual command being run that is failing:

Code: Select all

psql -U nagiosxi nagiosxi <nagiosxi/auditlog.pgsql.sql >/dev/null
Did you update the postgresql credentials for the nagiosxi user, or put any special firewall rules in place that might explain the connection refusal? It's say that it can't connect to the local postgresql socket.
Locked