Before you post: Your responses to these questions will help the community help you. Please complete this template if you’re asking a support question. Don’t forget to select tags to help index your topic!
1. Describe your incident:
Just installed Graylog on a VM. and can verify that all the component’s are started.
2. Describe your environment:
OS Information: VM - Ubuntu 20.04.5 LTS 8G memory 3 cores assigned.200GB assigned.
Package Version: Running Graylog 5
Service logs, configurations, and environment variables:
3. What steps have you already taken to try and solve the problem?
Updated the server.conf with the IP address to bind.
Verified that the port was open on the firewall
Verified that the host is pingable
Checked all the services to make sure they are up and running.
4. How can the community help?
Would like to troubleshoot the issue to see why the GUI does not launch. The error I get is unable to establish a connection using that IP and port.
Thanks for that. I did check and saw that MongoDB is not available. Retry#1295. However, I did check and it is up and running. Maybe Graylog is not able to connect to Mongo???
Perhaps. I am no expert on Mongo, but I would consider confirming the version of Mongo that is installed will work with Graylog, as well as verifying the connection string in Graylog’s server.conf works for your Mongo install.
You can post up your server.conf file (properly obfuscated and using the </> forum tool to make it readable) There are some tips here on how to check versions and pull your server.conf without all the comments…
mongodb by default is wide open, ie no auth required and will just work. It should bind to 127.0.0.1 only anyway which is “internal only” and hence is safe.
Graylog 5 requires a modern mongodb 5 or 6 and on Ubuntu that can be a bit of a challenge. The Ubuntu apt provided mongodb is old.
I too run my Graylog on Ubuntu 20.04 (but I will be upgrading to 22.04) so you will want to follow this guide: https://www.mongodb.com/docs/v5.0/tutorial/install-mongodb-on-ubuntu/ to get MongoDB v5.0 installed. You don’t need to make any changes to it - it should simply work out of the box.
Can you provide the path to the log? I was searching var/log/graylog-server but do not see anything other than server.log. In var/log I also do not see server.conf. Sorry but I am still learning linux.
I can 't access the file you posted while at work. In the tips in my previous post there are commands you can run to pull out server.conf without comments and posting them directly in the forum using the </> will make it more readable.
Unless you are sure this is needed, I would comment it out. Did not catch anything else off hand… are there anything interesting in the server log (how to get there is also in the link I posted… )
Commented that line out and tried again. Unsuccessful.
This is what I see in the server log.
2023-02-23T16:08:23.265-05:00 INFO [cluster] Monitor thread successfully connected to server with description ServerDescription{address=localhost:27017, type=STANDALONE, state=CONNECTED, ok=true, minWireVersion=0, maxWireVersion=13, maxDocumentSize=16777216, logicalSessionTimeoutMinutes=30, roundTripTimeNanos=611735}
2023-02-23T16:08:23.274-05:00 INFO [MongoDBPreflightCheck] MongoDB is not available. Retry #921
2023-02-23T16:08:25.275-05:00 INFO [cluster] Cluster description not yet available. Waiting for 30000 ms before timing out
2023-02-23T16:08:25.276-05:00 INFO [connection] Opened connection [connectionId{localValue:1844, serverValue:105208}] to localhost:27017
2023-02-23T16:08:25.276-05:00 INFO [cluster] Monitor thread successfully connected to server with description ServerDescription{address=localhost:27017, type=STANDALONE, state=CONNECTED, ok=true, minWireVersion=0, maxWireVersion=13, maxDocumentSize=16777216, logicalSessionTimeoutMinutes=30, roundTripTimeNanos=714451}
2023-02-23T16:08:25.281-05:00 INFO [MongoDBPreflightCheck] MongoDB is not available. Retry #922
2023-02-23T16:08:27.283-05:00 INFO [cluster] Cluster description not yet available. Waiting for 30000 ms before timing out
2023-02-23T16:08:27.284-05:00 INFO [connection] Opened connection [connectionId{localValue:1846, serverValue:105210}] to localhost:27017
2023-02-23T16:08:27.284-05:00 INFO [cluster] Monitor thread successfully connected to server with description ServerDescription{address=localhost:27017, type=STANDALONE, state=CONNECTED, ok=true, minWireVersion=0, maxWireVersion=13, maxDocumentSize=16777216, logicalSessionTimeoutMinutes=30, roundTripTimeNanos=915156}
2023-02-23T16:08:27.291-05:00 INFO [MongoDBPreflightCheck] MongoDB is not available. Retry #923`Preformatted text`
It says MongoDB is not available You have it installed and it is running? @gerdesj posted above about getting Mongo running on Ubuntu - you went through all that?