Description of problem: SELinux prevents postgresql initdb on a clean install, leaving database installation in unknown state. Version-Release number of selected component (if applicable): Fedora 11 Beta Postgreql.x86_64 0:8.3.7-1.fc11 How reproducible: Always Steps to Reproduce: 1. yum install postgresql postgresql-server 2. service postgresql initdb 3. Actual results: SELinux alert: "SELinux denied access requested by initdb. /var/lib/pgsql/pgstartup.log may be a mislabeled. /var/lib/pgsql/pgstartup.log default SELinux type is postgresql_log_t, but its current type is var_lib_t. Changing this file back to the default type, may fix your problem. " Expected results: initdb should succeed Additional info:
Hmm, that's a bug all right, but so far as I can tell it's pretty much cosmetic --- the database gets initialized anyway. Can't you start the service afterwards?
You're right. I did not have confidence that the initialization process had run to completion, so I wiped the data directory, ran restorecon on the logfile and then reinitialized the database. I tried again from clean and despite the SELinux warning on initdb and service start, everything worked fine.
OK. I'll fix it when the F11 freeze lifts, but it doesn't seem urgent enough to try to get it in before that.
This bug appears to have been reported against 'rawhide' during the Fedora 11 development cycle. Changing version to '11'. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
postgresql-8.3.8-2.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/postgresql-8.3.8-2.fc11
postgresql-8.3.8-2.fc10 has been submitted as an update for Fedora 10. http://admin.fedoraproject.org/updates/postgresql-8.3.8-2.fc10
I fixed this some time ago in HEAD, but forgot to push it into the back branches :-(. Sorry about the delay.
postgresql-8.3.8-2.fc11 has been pushed to the Fedora 11 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update postgresql'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-10731
postgresql-8.3.8-2.fc10 has been pushed to the Fedora 10 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update postgresql'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2009-10776
postgresql-8.3.8-2.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report.
postgresql-8.3.8-2.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report.