postgres cannot access the server configuration file "/var/lib/pgsql/9.2/data/postgresql.conf/postgresql.conf": Not a directory
-bash-4.1$ ls -al ... ... drwx------. 3 postgres postgres 4096 Sep 22 12:20 pg_xlog -rw-------. 1 postgres postgres 19601 Sep 22 11:35 postgresql.conf -rw------- 1 postgres postgres 59 Sep 23 20:35 postmaster.opts -bash-4.1$ /usr/pgsql-9.2/bin/postgres -D /var/lib/pgsql/9.2/data/postgresql.conf postgres cannot access the server configuration file "/var/lib/pgsql/9.2/data/postgresql.conf/postgresql.conf": Not a directory
-bash-4.1$ chmod 755 postgresql.conf
-bash-4.1$ /usr/pgsql-9.2/bin/postgres -D /var/lib/pgsql/9.2/data/postgresql.conf postgres cannot access the server configuration file "/var/lib/pgsql/9.2/data/postgresql.conf/postgresql.conf": Not a directory
On Mon, Sep 23, 2013 at 1:57 AM, Thara Vadakkeveedu <tharagv@yahoo.com> wrote:
> I accidentally deleted data directory this morning > (/var/lib/postgresql/9.2/data) >
What a start of a day!
> I tried su - postgres > and then from the bash shell I tried to run these commands (tried one at a > time) > but I got the message that address was in use. There are no processes > running on 5432.
I suspect if it gives you such an error there must something bound to the address. Have you tried to execute nmap against the IPv4 address your server is listening on (or supposed to be listening on)?