From: Vinicius <cviniciusm@terra.com.br>
To: pgsql-admin@postgresql.org
Subject: Re: Having problem with postgresql configuration (template1 doesn't
Date: Mon, 21 Feb 2005 09:51:52 -0300
Message-ID: <cvclaq$hto$1@sea.gmane.org> (raw)
In-Reply-To: <cvckgh$flm$1@sea.gmane.org>
References: <cva248$c68$1@sea.gmane.org>
<15094.1108921716@sss.pgh.pa.us>
<cvamr2$3s6$1@sea.gmane.org>
<15926.1108930090@sss.pgh.pa.us>
<cvckgh$flm$1@sea.gmane.org>
Vinicius escreveu:
> Tom Lane escreveu:
>
>> Vinicius <cviniciusm@terra.com.br> writes:
>>
>>> I tryed to create another data dir because I don't have the template1
>>> database.
>>
>>
>>
>> I think you got bit by one of the early-FC3 selinux policy bugs; see
>> https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=142607
>> https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=143208
>>
>> You probably want to rm -rf /var/lib/pgsql/data/ and try again
>> after making sure (a) you have the latest postgres and selinux
>> packages and (b) you've done restorecon on /var/lib/pgsql and
>> /var/log/pgsql.
>>
>> regards, tom lane
>>
>> ---------------------------(end of broadcast)---------------------------
>> TIP 7: don't forget to increase your free space map settings
>>
>
> I did do "rm -fr /var/lib/pgsql/data/"
> (a) I have the lastest *stable postgres package* from Fedora Core 3;
> (b) I did do restorecon on "/var/lib/pgsql" and on "/var/log/pgsql".
>
> now it pass the "...creating template1 database in
> /var/lib/pgsql/data/base/1... ok" but stop at
> "...
> initializing pg_shadow... ok
> enabling unlimited row size for system tables... ok
> initializing pg_depend... ok
> creating system views... ok
> loading pg_description... ok
> creating conversions... ok
> setting privileges on built-in objects... ok
> *creating information schema...*
> initdb: failed"
>
> /var/log/messages shows:
> "...
> Feb 21 09:10:43 ronin kernel: audit(1108987843.094:0): avc: denied {
> read } for pid=6766 exe=/usr/bin/postgres path=/tmp/sh-thd-1108997049
> (deleted) dev=dm-0 ino=1046660 scontext=user_u:system_r:postgresql_t
> tcontext=user_u:object_r:tmp_t tclass=file
> Feb 21 09:10:43 ronin kernel: audit(1108987843.423:0): avc: denied {
> read } for pid=6767 exe=/usr/bin/postgres path=/tmp/sh-thd-1108980215
> (deleted) dev=dm-0 ino=1046660 scontext=user_u:system_r:postgresql_t
> tcontext=user_u:object_r:tmp_t tclass=file
> Feb 21 09:10:43 ronin kernel: audit(1108987843.480:0): avc: denied {
> read } for pid=6768 exe=/usr/bin/postgres path=/tmp/sh-thd-1109000142
> (deleted) dev=dm-0 ino=1046660 scontext=user_u:system_r:postgresql_t
> tcontext=user_u:object_r:tmp_t tclass=file
> Feb 21 09:10:43 ronin kernel: audit(1108987843.542:0): avc: denied {
> read } for pid=6769 exe=/usr/bin/postgres path=/tmp/sh-thd-1108983044
> (deleted) dev=dm-0 ino=1046660 scontext=user_u:system_r:postgresql_t
> tcontext=user_u:object_r:tmp_t tclass=file"
>
> I think "/usr/bin/postgres" was tried to write to a file in "/tmp" and
> was denied.
>
> And I still don't get the template1 database.
>
> Thanks.
I think it tried to read instead to write.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: cviniciusm@terra.com.br
Subject: Re: Having problem with postgresql configuration (template1 doesn't
In-Reply-To: <cvclaq$hto$1@sea.gmane.org>
References: <cva248$c68$1@sea.gmane.org> <15094.1108921716@sss.pgh.pa.us> <cvamr2$3s6$1@sea.gmane.org> <15926.1108930090@sss.pgh.pa.us> <cvckgh$flm$1@sea.gmane.org> <cvclaq$hto$1@sea.gmane.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox