I don’t really know what’t happening. Deployment works fine until doing a reboot or restarting the graylog service. After either one of those actions, web interface breaks. “Connection Refused”
Output from graylog server.log file:
2017-04-27T08:42:32.733-05:00 INFO [cluster] No server chosen by WritableServerSelector from cluster description ClusterDescription{type=UNKNOWN, connectionMode=SINGLE, serverDescriptions=[ServerDescription{address=localhost:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketOpenException: Exception opening socket}, caused by {java.net.ConnectException: Connection refused (Connection refused)}}]}. Waiting for 30000 ms before timing out
There is a mongod.lock file created after rebooting in /var/lib/mongodb
Deleted that file and issued “mongod --repair”
Anyone else have this issue and more importantly, fix it?
/var/lib/mongodb/journal had three files j._7 j._8 and prealloc.* over 1G a piece. this was causing var to show 98% disk usage. I deleted these three files and also edited /etc/mongo.conf by adding the line “smallfiles=true” under journal=true
Issue seems to be fixed, web interface survives reboot as well as mongodb starting upon machine start.