messed var directory
Sven Richter
sveri-list at gmx.de
Fri Jun 22 08:53:30 UTC 2007
On Wednesday 20 June 2007 02:25:36 Derek Broughton wrote:
> Sven Richter wrote:
> >> afaict, the biggest problem is /var/lib. That's a hodgepodge of
> >> different permissions.
> >
> > Yep, i needed my postgresql database today, starting it stopped
> > with the following error message:
> > * Starting PostgreSQL 8.2 database server
> > * could not change directory to "/var/lib/postgresql"
> > pg_controldata: could not open
> > file "/var/lib/postgresql/8.2/main/global/pg_control" for reading:
> > Permission denied
> > Error: Could not parse locale out of pg_controldata output
> >
> > [fail]
> >
> >
> > Any ideas what i could do about it?
>
> Not about this specific app, but "dpkg -i /var/cache/apt/archives/*" should
> fix anything that you still have the .deb files for.
As desperate as i am i tried it :-)
But the configuration fails:
invoke-rc.d: initscript postgresql-8.2, action "start" failed.
dpkg: Fehler beim Bearbeiten von postgresql-8.2 (--configure):
Unterprozess post-installation script gab den Fehlerwert 1 zurück
(subprocess post-installation script returned error 1)
Fehler traten auf beim Bearbeiten von:
postgresql-8.2
I tried to set the permissions of the whole postgresql directory
to 0777 but the same failure appears:
Error: Could not parse locale out of pg_controldata output
I think this is the tricky one, maybe the program does not have
the rights to parse something in the console?
Any Ideas?
Greetings
Sven Richter
More information about the ubuntu-users
mailing list