Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I've installed PostgreSQL 9.0 on Ubuntu 10.04 using this guide.

However, when I try to start the service, I get this back, with no error or message shown.

root@srv1:/etc/init.d# ./postgresql start
* Starting PostgreSQL 9.0 database server
* The     PostgreSQL server failed to start. Please check the log output.
                                                                     [fail]

I don't know where the log file is to see this error. It's definitely not in /var/log/* or /var/log/postgresql

share|improve this question
2  
Can you check your postgresql.conf file and look for the logging options? I see PG output logs in /var/log/postgresql/postgresql-8.4-main.log and I've left my logging options at default on Ubuntu 10.10. –  growse Mar 24 '11 at 13:13
1  
Weird! I looked into the config file and found all logging was disabled. I turned on logging and now the service starts ok!!! - THANKS! –  Samuurai Mar 24 '11 at 13:25
1  
ahh.. it was to do with rights of the log file.. :((( –  Samuurai Mar 24 '11 at 13:26

1 Answer 1

up vote 0 down vote accepted

The issue was to do with not having write access to the log file for the 'postgres' user.

IMO, the startup script should echo an error to the screen instead of telling you to check the log that it can't even write to.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.