Re: Postgresql 9.2 Ubuntu - is not starting

From: Patrick B <patrickbakerbr(at)gmail(dot)com>
To: John R Pierce <pierce(at)hogranch(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Postgresql 9.2 Ubuntu - is not starting
Date: 2016-08-02 20:31:57
Message-ID: CAJNY3ivoyD0CWf69J5ihaATQL5jtSvFDQ3H4g0-g4L95xmQTug@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Patrick B 2016-08-02 20:32:29 Re: pg_archivecleanup standalone bash script
Previous Message Patrick B 2016-08-02 20:27:57 Re: Postgresql 9.2 Ubuntu - is not starting