Mongodb in Jail, not auto starting despite rc.conf

Romaxx

Cadet
Joined
Jul 13, 2019
Messages
2
Hello,
I'm new with FreeNas,
I use mongodb community version in Jail,
I have added mongod_enable=“YES” in /etc/rc.conf but it does not auto-start when I restart the jail.
/var/log/messages show:
root: /usr/local/etc/rc.d/mongod: WARNING: failed to start mongod
Is the file /usr/local/etc/mongodb.conf correct ? because it's installed default with pkg install
mongod not working and I dont know why, I need to use mongod -f /usr/local/etc/mongodb.conf to start mongo.

How to resolve rc.conf issue ? (/usr/local/etc/rc.d/mongod seems ok)
Thk
 

Romaxx

Cadet
Joined
Jul 13, 2019
Messages
2
problem solved, mongod is run as mongodb user, so check /var/db/mongodb permissions before :)
 

rucko24

Cadet
Joined
Aug 30, 2014
Messages
3
Hello,

I am interested in doing the same, I see that my script for some reason does not run, I do not know what is happening.

I have a Intel Xeon E5645 in Super micro x8dtn+, and i trying to use mongodb44-4.4.18

saludos.

Well my problem is solved.
I simply needed to access it from another pc on my network. I added this to the route

Code:
/usr/local/etc/mongodb.conf

Code:
net:
  port: 27017
  bindIp: 0.0.0.0
 
Last edited:
Top