[solved]Re: messed var directory
Sven Richter
sveri-list at gmx.de
Sun Jun 24 08:24:50 UTC 2007
Hah, i finally solved it.
And i had do see i am so stupid.
I always thought i changed the subtree of /var,
but didnt look at var himself.
The problem was that owner and group of /var were vboxusers,
chmod was 0700 and postgres and so on are not in the vobxusers
group.
So most of the things run fine now, i found a feisty server to compare
the rights and my weekend is saved :-)
On Friday 22 June 2007 10:53:30 Sven Richter wrote:
> 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