Originally Posted by
christopher777
what I did now is...I deleted the original postgresql file which came with kali and installed the new 9.3v Graphicall...this is what I get now...-
From the sounds of this, that wasn't wise. How did you 'delete' it?
Just rm -rf the file(s)? Did you remove the package(s)? What command(s) did you use?
Moving that aside, looking at the output:
2013-12-03 08:21:27 GMT FATAL: lock file "postmaster.pid" already exists
2013-12-03 08:21:27 GMT HINT: Is another postmaster (PID 6865) running in data directory "/etc/data"?
And from your first post:
after unplugging the external hd before shutting down
My guess would be there is a old PID file, that hasn't been removed. As a result, postgresql always things there already a copy of itself running.
I'm not sure where '/etc/data' has come from.
Because I cant be sure with what you have done fully to postgresql (and how you installed it). I can't be 100% in my next suggestion.
Below is me starting up postgresql, checking its running (twice), locating the PID file and checking to see if it have a '/etc/data/' folder like in your output (which is mentioned in your output).
Code:
root@kali-offsec ~$ service postgresql start
[ ok ] Starting PostgreSQL 9.1 database server: main.
root@kali~$ service postgresql status
Running clusters: 9.1/main
root@kali~$ ps aux | grep postgresql
root 10641 0.0 0.0 3484 768 pts/10 S+ 09:48 0:00 grep postgresql
postgres 31126 0.0 0.7 45144 7408 ? S 07:53 0:00 /usr/lib/postgresql/9.1/bin/postgres -D /var/lib/postgresql/9.1/main -c config_file=/etc/postgresql/9.1/main/postgresql.conf
root@kali~$ find / -name postmaster.pid
/var/lib/postgresql/9.1/main/postmaster.pid
root@kali~$ ls /etc/data/
ls: cannot access /etc/data/: No such file or directory
root@kali~$
My first suggestion would be to remove whatever you have done to postgresql, and restore the repo version (you may run into package dependencies issue later when you try and upgrade). After that, be 100% sure that postgresql isn't already running and then remove the PID file.