-
Type:
Bug
-
Resolution: Incomplete
-
Priority:
Major - P3
-
None
-
Affects Version/s: 2.2.1
-
Component/s: Admin
-
None
-
Environment:Fedora 17 (last updated November 11, 2012
-
ALL
-
-
None
-
3
-
None
-
None
-
None
-
None
-
None
-
None
SELinux:
1. Get attr on / fails. This is a common issue with Fedora and installs. I've had it happen with Fail2Ban and other packages.
2. Need to: semanage port -a -t mongod_port_t -p tcp 28017
In addition I have discovered the following other issues, not related to SELinux:
Mongo doesn't seem to take the configuration option for the db path, so you must create /data/db. That is, /etc/mongod.conf is correct and sets the dbpath to a path that exists, but it won't accept it.
/var/run/mongodb is not created on install. You must create /var/run/mongodb so that the PID may be stored. also must do chown mongod:mongod /var/run/mongodb
Mongod starts, but doesn't know it. Attempt to start via service mongod start pauses for several minutes until it "fails." However, the issue really is that it started, but it doesn't know it.
Mongod is running, you can connect to it, query, etc. but service doesn't know it, so it will hang. If you put it to auto-start it will hang your boot process, making you believe that your VM is corrupted.
I'm pretty surprised others aren't running into an issue as I'm doing this with a fairly clean install of Fedora. The only things I have really changed are updated, and installed Sun JDK.
Regards,
Erik