reassign 511770 postgresql-common 94
retitle 511770 startup fails: Could not create log file
tag 511770 needinfo
thanks

Hello Eric,

Eric Van Buggenhaut [2009-01-14 11:59 +0100]:
> Setting up postgresql-7.4 (7.4.23-0etch1) ...
> Starting PostgreSQL 7.4 database server: main* Error: Could not create
> log file /var/log/postgresql/postgresql-7.4-main.log
>  failed!

Do you happen to know if you previously did anything to the log file?
It is normally created by pg_createcluster, i. e. for most people at
package installation (not upgrade). Did you happen to delete it
manually? The logrotate script should make sure that the file never
gets deleted, and nothing else is touching the log file.

As a workaround, pg_ctlcluster could create the log file if it does
not exist any more and it is started as root, but first I need to know
how it disappeared in the first place.

Thanks,

Martin

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to