PostgreSQL install failure - Please help

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
gshergill
Posts: 231
Joined: Tue Aug 07, 2012 5:08 am

PostgreSQL install failure - Please help

Post by gshergill »

Hi Nagios Community and Support.

I received an error during installation.

The following is the install.log;

http://pastebin.com/peip1rSR

Thank you.

Kind Regards,

gshergill
User avatar
gshergill
Posts: 231
Joined: Tue Aug 07, 2012 5:08 am

Re: PostgreSQL install failure - Please help

Post by gshergill »

Please note that it mentioned the issue was with the file;

3-dbservers

I can post the file if required.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: PostgreSQL install failure - Please help

Post by scottwilkerson »

Can you run

Code: Select all

ls -l /etc/nsswitch.conf
If the permissions aren't 644 then run

Code: Select all

chmod 644 /etc/nsswitch.conf
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
gshergill
Posts: 231
Joined: Tue Aug 07, 2012 5:08 am

Re: PostgreSQL install failure - Please help

Post by gshergill »

Hi scottwilkerson,

Thanks for the reply.

I ran the command with the following result;

Code: Select all

ls -l /etc/nsswitch.conf
-rw-r--r--. 1 root root 1688 May  4  2010 /etc/nsswitch.conf
I believe that is already on 644, but I ran chmod just in case and nothing changed so I assume it was already set to 644.

I then ran the install again;

Code: Select all

cd /tmp/nagiosxi
./fullinstall
And the same error appeared;

Code: Select all

Running './3-dbservers'...
PostgresQL installed OK - continuing...
Initializing PostgresQL...
Starting PostgresQL...
Starting postgresql service:                               [FAILED]
ERROR: Could not start PostgresQL - exiting.
RESULT=1

===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Any further tests/solutions please?

Thank you for your time

Kind Regards,

gshergill
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: PostgreSQL install failure - Please help

Post by scottwilkerson »

Was this a clean minimal install or was PostgresQL installed before you began the Nagios XI install?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: PostgreSQL install failure - Please help

Post by yancy »

gshergill,

Also, are you able to start the service manually?

Code: Select all

service postgresql start
Regards,

-Yancy
User avatar
gshergill
Posts: 231
Joined: Tue Aug 07, 2012 5:08 am

Re: PostgreSQL install failure - Please help

Post by gshergill »

Hi guys.

This was a completely clean install - I've just installed CentOS on another VM and still the same error.

Starting PostgreSQL manually results in a fail as well;

Code: Select all

service postgresql start
Starting postgresql service:                               [FAILED]
Kind Regards,

gshergill
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: PostgreSQL install failure - Please help

Post by yancy »

gshergill,

Which version of CentOS?

Code: Select all

cat /etc/*release
Regards,

-Yancy
User avatar
gshergill
Posts: 231
Joined: Tue Aug 07, 2012 5:08 am

Re: PostgreSQL install failure - Please help

Post by gshergill »

Hi yancy,

It's the latest version of CentOS;
CentOS release 6.3 (Final)
This is a 32bit system, I read somewhere that CentOS 6.x 32 bit is recommended.

Kind Regards,

gshergill
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: PostgreSQL install failure - Please help

Post by yancy »

gshergill,

Can you restore the security context of nsswitch.conf and test starting the service again.

Code: Select all

restorecon /etc/nsswitch.conf

Regards,

-Yancy
Locked