recreate missing log file in pg_ctlcluster
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
postgresql-common (Ubuntu) |
Fix Released
|
Low
|
Martin Pitt |
Bug Description
Binary package hint: postgresql-8.3
I have had this problem on both of the PostgreSql installations I've made. Contents of log file:
Log started: 2009-03-08 11:53:19
(Reading database ... 166512 files and directories currently installed.)
Preparing to replace xulrunner-1.9 1.9.0.6+
Unpacking replacement xulrunner-1.9 ...
Preparing to replace firefox-3.0 3.0.6+nobinonly
Unpacking replacement firefox-3.0 ...
Preparing to replace firefox 3.0.6+nobinonly
Unpacking replacement firefox ...
Preparing to replace libpng12-0 1.2.15~beta5-3 (using .../libpng12-
Ignoring nonregistered document `libpng12'
Unpacking replacement libpng12-0 ...
Setting up postgresql-8.3 (8.3.6-0ubuntu8.04) ...
* Starting PostgreSQL 8.3 database server
* Error: Could not create log file /var/log/
...fail!
invoke-rc.d: initscript postgresql-8.3, action "start" failed.
dpkg: error processing postgresql-8.3 (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of postgresql:
postgresql depends on postgresql-8.3; however:
Package postgresql-8.3 is not configured yet.
dpkg: error processing postgresql (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of postgresql-
postgresql-
Package postgresql-8.3 is not configured yet.
dpkg: error processing postgresql-
dependency problems - leaving unconfigured
Setting up xulrunner-1.9 (1.9.0.
Setting up firefox-3.0 (3.0.7+
Please restart all running instances of Firefox-3.0, or you will experience problems.
Setting up firefox (3.0.7+
Setting up libpng12-0 (1.2.15~
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
postgresql-8.3
postgresql
postgresql-
Log ended: 2009-03-08 11:53:30
ProblemType: Package
Architecture: amd64
Date: Tue Jun 23 09:14:45 2009
DistroRelease: Ubuntu 8.04
ErrorMessage: subprocess post-installation script returned error exit status 1
Package: postgresql-8.3 8.3.7-0ubuntu8.04.1
PackageArchitec
SourcePackage: postgresql-8.3
Title: package postgresql-8.3 8.3.7-0ubuntu8.04.1 failed to install/upgrade: subprocess post-installation script returned error exit status 1
Uname: Linux 2.6.24-24-generic x86_64
summary: |
package postgresql-8.3 8.3.7-0ubuntu8.04.1 failed to install/upgrade: - subprocess post-installation script returned error exit status 1 + could not create log file |
"Error: Could not create log file /var/log/ postgresql/ postgresql- 8.3-main. log"
Please give me the output of
ls -l /var/log/postgresql
ls -ld /var/log/postgresql