Re: Having problem with postgresql configuration (template1 doesn't - Mailing list pgsql-admin
From | Vinicius |
---|---|
Subject | Re: Having problem with postgresql configuration (template1 doesn't |
Date | |
Msg-id | cvckgh$flm$1@sea.gmane.org Whole thread Raw |
In response to | Re: Having problem with postgresql configuration (template1 doesn't (Tom Lane <tgl@sss.pgh.pa.us>) |
Responses |
Re: Having problem with postgresql configuration (template1 doesn't
Re: Having problem with postgresql configuration (template1 doesn't Re: Having problem with postgresql configuration (template1 doesn't |
List | pgsql-admin |
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.
pgsql-admin by date: