Problem with postgresql and need to fix it in the next release

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



To recreate the problem

I install FC3 on a server with  SELINUX=enforcing and
SELINUXTYPE=targeted

after, I install postgresql and do initdb with the user postgres

 -bash-3.00$ /usr/bin/initdb
The files belonging to this database system will be owned by user
"postgres".
This user must also own the server process.

The database cluster will be initialized with locale en_US.UTF-8.

fixing permissions on existing directory /var/lib/pgsql/data... ok
creating directory /var/lib/pgsql/data/base... ok
creating directory /var/lib/pgsql/data/global... ok
creating directory /var/lib/pgsql/data/pg_xlog... ok
creating directory /var/lib/pgsql/data/pg_clog... ok
selecting default max_connections... 100
selecting default shared_buffers... 1000
creating configuration files... ok
creating template1 database in /var/lib/pgsql/data/base/1... ok
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

To fix that, i must to disable SELinux => SELINUX=disabled
in /etc/sysconfig/selinux

restart my server 

log in with the user posgres

rm -rf /var/lib/pgsql/data/* && /usr/bin/initdb

and that's work





-- 
Daniel Chénard
SysAdmin Unix
Infoteck Internet
5480, Boul. Jean XXIII
Trois-Rivières-Ouest, Québec
Canada
G8Z 4A9
Tel: 819-370-3232
Sans Frais: 1-866-853-3232
Fax: 819-370-3624

PS: The Light at the End of The Tunnel
     will be turned off until further
     notice due to budget cutbacks.




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux