DB Connect Error [nagiosxi]: Database connection failed
DB Connect Error [nagiosxi]: Database connection failed
I'm getting this error 'DB Connect Error [nagiosxi]: Database connection failed'
after restarting our Nagios instance. I tried
service postgresql restart
and it fails.
How can I fix this?
after restarting our Nagios instance. I tried
service postgresql restart
and it fails.
How can I fix this?
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: DB Connect Error [nagiosxi]: Database connection failed
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
36G 24G 11G 69% /
/dev/sda1 99M 57M 37M 61% /boot
tmpfs 6.0G 0 6.0G 0% /dev/shm
none 500M 3.8M 497M 1% /mnt/ram
/dev/mapper/VolGroup00-LogVol00
36G 24G 11G 69% /
/dev/sda1 99M 57M 37M 61% /boot
tmpfs 6.0G 0 6.0G 0% /dev/shm
none 500M 3.8M 497M 1% /mnt/ram
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: DB Connect Error [nagiosxi]: Database connection failed
Ok, not full, can you run
Code: Select all
tail /var/lib/pgsql/pgstartup.logRe: DB Connect Error [nagiosxi]: Database connection failed
I get the following after running that command
FATAL: could not create lock file "/tmp/.s.PGSQL.5432.lock": Permission denied
/etc/profile: line 39: HISTSIZE: readonly variable
/etc/profile: line 60: HISTCONTROL: readonly variable
/etc/profile: line 61: HISTFILE: readonly variable
/etc/profile: line 62: HISTFILESIZE: readonly variable
/etc/profile: line 63: HISTIGNORE: readonly variable
/etc/profile: line 64: HISTSIZE: readonly variable
/etc/profile: line 65: HISTTIMEFORMAT: readonly variable
/etc/profile: line 79: PROMPT_COMMAND: readonly variable
FATAL: could not create lock file "/tmp/.s.PGSQL.5432.lock": Permission denied
FATAL: could not create lock file "/tmp/.s.PGSQL.5432.lock": Permission denied
/etc/profile: line 39: HISTSIZE: readonly variable
/etc/profile: line 60: HISTCONTROL: readonly variable
/etc/profile: line 61: HISTFILE: readonly variable
/etc/profile: line 62: HISTFILESIZE: readonly variable
/etc/profile: line 63: HISTIGNORE: readonly variable
/etc/profile: line 64: HISTSIZE: readonly variable
/etc/profile: line 65: HISTTIMEFORMAT: readonly variable
/etc/profile: line 79: PROMPT_COMMAND: readonly variable
FATAL: could not create lock file "/tmp/.s.PGSQL.5432.lock": Permission denied
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: DB Connect Error [nagiosxi]: Database connection failed
drwxr-xr-x 19 root root 32768 Nov 27 13:00 /tmp
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: DB Connect Error [nagiosxi]: Database connection failed
run
Then try restarting postgresql again
Code: Select all
chmod +w /tmpRe: DB Connect Error [nagiosxi]: Database connection failed
Unfortunately postgresql still fails to start.
Re: DB Connect Error [nagiosxi]: Database connection failed
Would it hurt to re-run the upgrade script? Would this refresh postgresql?