Upgraded to 18.04LTS from 16.04LTS and now my web service isn't allowing me to connect

Here is what I have run for verification.

graylog2v2:~$ sudo systemctl status graylog-server
● graylog-server.service - Graylog server
   Loaded: loaded (/usr/lib/systemd/system/graylog-server.service; enabled; vendor preset: enabled)
   Active: active (running) since Wed 2018-08-29 10:40:45 EDT; 4min 52s ago
     Docs: http://docs.graylog.org/
 Main PID: 1199 (graylog-server)
    Tasks: 30 (limit: 4915)
   CGroup: /system.slice/graylog-server.service
           ├─1199 /bin/sh /usr/share/graylog-server/bin/graylog-server
           └─1207 /usr/bin/java -Xms4g -Xmx4g -XX:NewRatio=1 -server -XX:+ResizeTLAB -XX:+UseConcMarkSweepGC -XX:+CMSConcurrentMTEnabled -XX:+CMSCl

graylog2v2:~$ curl -i -H 'Accept: application/json' http://graylog2.corp.com
curl: (7) Failed to connect to graylog2.corp.com port 80: Connection refused
graylog2v2:~$ curl -i -H 'Accept: application/json' http://graylog2.corp.com:12900
curl: (7) Failed to connect to graylog2.corp.com port 12900: Connection refused
graylog2v2:~$ curl -i -H 'Accept: application/json' http://graylog2.corp.com:12900/
curl: (7) Failed to connect to graylog2.corp.com port 12900: Connection refused
graylog2v2:~$ curl -i http://graylog2.corp.com:9000/
curl: (7) Failed to connect to graylog2.corp.com port 9000: Connection refused
graylog2v2:~$ ^C

Looks like mongoDB isn’t starting.

graylog2v2:~ sudo systemctl status mongodb.service ● mongodb.service - An object/document-oriented database Loaded: loaded (/lib/systemd/system/mongodb.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Wed 2018-08-29 10:53:05 EDT; 15s ago Docs: man:mongod(1) Process: 3599 ExecStart=/usr/bin/mongod --unixSocketPrefix={SOCKETPATH} --config ${CONF} $DAEMON_OPTS (code=exited, status=62)
Main PID: 3599 (code=exited, status=62)

how did you installed Graylog?

You need MongoDB and Elasticsearch up an running to be able to use Graylog - In addition the logfiles in /var/log might give you some idea what had happened.

It looks like i need to update my database data to the new version of mongodb, any good guides on how to do that?

Stepped forward from mongo 2.6 to 3.6 and now the upgrade works perfectly.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.