Re: Postgresql 9.2 Ubuntu - is not starting - Mailing list pgsql-general

From Patrick B
Subject Re: Postgresql 9.2 Ubuntu - is not starting
Date
Msg-id CAJNY3ivoyD0CWf69J5ihaATQL5jtSvFDQ3H4g0-g4L95xmQTug@mail.gmail.com
Whole thread Raw
In response to Re: Postgresql 9.2 Ubuntu - is not starting  (John R Pierce <pierce@hogranch.com>)
List pgsql-general
This is now solved guys.

There were three problems.

1 - I was looking for the logs on /var/lib/postgresql/9.2/main/pg_log. And it's wrong. On ubuntu, the logs are: /var/log/postgresql

2 - I just changed the max_stack_depth to the default

DETAIL:  "max_stack_depth" must not exceed 7680kB.
HINT:  Increase the platform's stack depth limit via "ulimit -s" or local equivalent.
2016-08-02 19:54:06.293 UTC|12960|FATAL:  configuration file "/etc/postgresql/9.2/main/postgresql.conf" contains errors

3 - My wal_files aren't being stored into pg_xlog. I use a different folder in a different partition, because my servers use SATA disks.
As I use centOS as Postgres Server, the recovery.conf was written for postgres and the restore_command and cleanup weren't right.
I just had to ajust them to Ubuntu (by putting the entire path) and it started to work.


Now, the server is restoring the wal_files and it's all good

restored log file "00000002000014AB00000063" from archive


Thanks
Patrick 

pgsql-general by date:

Previous
From: Patrick B
Date:
Subject: Re: Postgresql 9.2 Ubuntu - is not starting
Next
From: Patrick B
Date:
Subject: Re: pg_archivecleanup standalone bash script