Postgresql - Error: Could not create log file /var/log/postgresql/...

Posted by nicefinly on Server Fault See other posts from Server Fault or by nicefinly
Published on 2012-11-09T00:26:39Z Indexed on 2012/11/09 5:05 UTC
Read the original article Hit count: 453

Filed under:
|

Every time I try to start postgresql, I get this error:

* Starting PostgreSQL 9.2 database server                                       
* Error: Could not create log file /var/log/postgresql/postgresql-9.2-main.log

To start the server, I have to sudo mkdir the postgresql folder in /var/log/

How can I start postgresql automatically every time I boot up? I already have a postgres user on the Ubuntu 12.10 system.

© Server Fault or respective owner

Related posts about postgresql

Related posts about ubuntu