I recently moved to Graylog v2.4.5 and only have one appliance with a single mongodb instance. For some reason we are not able to get to main site to login and in the logs I see connection errors:
2018-06-27_19:36:25.42538 ERROR [CmdLineTool] Guice error (more detail on log level debug): Error injecting constructor, com.mongodb.MongoCommandException: Command failed with error 13: ‘not authorized on graylog to execute command { createIndexes: “roles”, indexes: [ { key: { name_lower: 1 }, name: “name_lower_1”, ns: “graylog.roles”, unique: true } ] }’ on server 127.0.0.1:27017. The full response is { “ok” : 0.0, “errmsg” : “not authorized on graylog to execute command { createIndexes: “roles”, indexes: [ { key: { name_lower: 1 }, name: “name_lower_1”, ns: “graylog.roles”, unique: true } ] }”, “code” : 13, “codeName” : “Unauthorized” }
I have another installation and after the upgrade we are good and didn’t have any issues connecting.
I have verified that I included the string in the graylog.conf file. I am still seeing the same error in the logs. I also verified that the user has the right access on they graylog database on mongodb. I tried updating the password but still not able to connect.
I stared out my password but you see the output. I also tried removing the username and add USER and removed password as PASS but still not to connect.