I just completed following the instructions to install Graylog 5.2 on a new Ubuntu server with Opensearch and Mongodb.
Upon connecting to the webpage, it opens “Graylog Initial Setup” and wants me to implement a “Data Node” - with an error, “No data nodes have been found.”
Graylog /var/log/graylog-server/server.log reports this error, repeating.
2024-05-16T14:01:01.117Z ERROR [VersionProbe] Unable to retrieve version from Elasticsearch node: unexpected end of stream on http://127.0.0.1:9200/… - \n not found: limit=0 content=….
2024-05-16T14:01:01.118Z INFO [VersionProbe] OpenSearch/Elasticsearch is not available. Retry #1
I’ve tried stopping and restarting services to no avail.
Package Version:
dpkg -l | grep -E “.(elasticsearch|graylog|mongo).”
ii graylog-5.2-repository 1-2 all Package to install Graylog 5.2 GPG key and repository
ii graylog-enterprise 5.2.7-1 amd64 Graylog Enterprise Server
ii mongodb-database-tools 100.9.4 amd64 mongodb-database-tools package provides tools for working with the MongoDB server:
hi mongodb-mongosh 2.2.5 amd64 MongoDB Shell CLI REPL Package
hi mongodb-org 7.0.9 amd64 MongoDB open source document-oriented database system (metapackage)
hi mongodb-org-database 7.0.9 amd64 MongoDB open source document-oriented database system (metapackage)
ii mongodb-org-database-tools-extra 7.0.9 amd64 Extra MongoDB database tools
hi mongodb-org-mongos 7.0.9 amd64 MongoDB sharded cluster query router
hi mongodb-org-server 7.0.9 amd64 MongoDB database server
ii mongodb-org-shell 7.0.9 amd64 MongoDB shell client
hi mongodb-org-tools 7.0.9 amd64 MongoDB tools
admin@aznc-graylog-02:~$ sudo systemctl start opensearch.service
Job for opensearch.service failed because a timeout was exceeded.
See "systemctl status opensearch.service" and "journalctl -xe" for details.
admin@aznc-graylog-02:~$ sudo systemctl status opensearch.service
● opensearch.service - OpenSearch
Loaded: loaded (/lib/systemd/system/opensearch.service; enabled; vendor preset: enabled)
Active: failed (Result: timeout) since Sun 2024-05-19 15:37:43 UTC; 1min 14s ago
Docs: https://opensearch.org/
Process: 33051 ExecStart=/usr/share/opensearch/bin/systemd-entrypoint -p ${PID_DIR}/opensearch.pid --quiet (code=exited, status>
Main PID: 33051 (code=exited, status=143)
May 19 15:36:33 aznc-graylog-02 systemd-entrypoint[33051]: at org.opensearch.bootstrap.OpenSearch.execute(OpenSearch.java:1>
May 19 15:36:33 aznc-graylog-02 systemd-entrypoint[33051]: at org.opensearch.cli.EnvironmentAwareCommand.execute(Environmen>
May 19 15:36:33 aznc-graylog-02 systemd-entrypoint[33051]: at org.opensearch.cli.Command.mainWithoutErrorHandling(Command.j>
May 19 15:36:33 aznc-graylog-02 systemd-entrypoint[33051]: at org.opensearch.cli.Command.main(Command.java:101)
May 19 15:36:33 aznc-graylog-02 systemd-entrypoint[33051]: at org.opensearch.bootstrap.OpenSearch.main(OpenSearch.java:138)
May 19 15:36:33 aznc-graylog-02 systemd-entrypoint[33051]: at org.opensearch.bootstrap.OpenSearch.main(OpenSearch.java:104)
May 19 15:36:33 aznc-graylog-02 systemd-entrypoint[33051]: For complete error details, refer to the log at /var/log/opensearch/gray>
May 19 15:37:43 aznc-graylog-02 systemd[1]: opensearch.service: start operation timed out. Terminating.
May 19 15:37:43 aznc-graylog-02 systemd[1]: opensearch.service: Failed with result 'timeout'.
May 19 15:37:43 aznc-graylog-02 systemd[1]: Failed to start OpenSearch.
admin@aznc-graylog-02:~$ sudo journalctl -xe
--
-- The unit opensearch.service has successfully entered the 'dead' state.
May 19 15:36:23 aznc-graylog-02 systemd[1]: Stopped OpenSearch.
-- Subject: A stop job for unit opensearch.service has finished
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A stop job for unit opensearch.service has finished.
--
-- The job identifier is 21369 and the job result is done.
May 19 15:36:23 aznc-graylog-02 sudo[33027]: pam_unix(sudo:session): session closed for user root
May 19 15:36:28 aznc-graylog-02 sudo[33048]: admin : TTY=pts/0 ; PWD=/home/admin ; USER=root ; COMMAND=/usr/bin/systemctl sta>
May 19 15:36:28 aznc-graylog-02 sudo[33048]: pam_unix(sudo:session): session opened for user root by admin(uid=0)
May 19 15:36:28 aznc-graylog-02 systemd[1]: Starting OpenSearch...
-- Subject: A start job for unit opensearch.service has begun execution
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit opensearch.service has begun execution.
--
-- The job identifier is 21370.
May 19 15:36:29 aznc-graylog-02 systemd-entrypoint[33051]: WARNING: Using incubator modules: jdk.incubator.vector
May 19 15:36:29 aznc-graylog-02 systemd-entrypoint[33051]: WARNING: A terminally deprecated method in java.lang.System has been cal>
May 19 15:36:29 aznc-graylog-02 systemd-entrypoint[33051]: WARNING: System::setSecurityManager has been called by org.opensearch.bo>
May 19 15:36:29 aznc-graylog-02 systemd-entrypoint[33051]: WARNING: Please consider reporting this to the maintainers of org.opense>
May 19 15:36:29 aznc-graylog-02 systemd-entrypoint[33051]: WARNING: System::setSecurityManager will be removed in a future release
May 19 15:36:30 aznc-graylog-02 systemd-entrypoint[33051]: May 19, 2024 3:36:30 PM sun.util.locale.provider.LocaleProviderAdapter <>
May 19 15:36:30 aznc-graylog-02 systemd-entrypoint[33051]: WARNING: COMPAT locale provider will be removed in a future release
May 19 15:36:30 aznc-graylog-02 systemd-entrypoint[33051]: WARNING: A terminally deprecated method in java.lang.System has been cal>
May 19 15:36:30 aznc-graylog-02 systemd-entrypoint[33051]: WARNING: System::setSecurityManager has been called by org.opensearch.bo>
May 19 15:36:30 aznc-graylog-02 systemd-entrypoint[33051]: WARNING: Please consider reporting this to the maintainers of org.opense>
May 19 15:36:30 aznc-graylog-02 systemd-entrypoint[33051]: WARNING: System::setSecurityManager will be removed in a future release
May 19 15:36:33 aznc-graylog-02 systemd-entrypoint[33051]: uncaught exception in thread [main]
May 19 15:36:33 aznc-graylog-02 systemd-entrypoint[33051]: java.lang.IllegalArgumentException: unknown setting [indicies.query.bool>
May 19 15:36:33 aznc-graylog-02 systemd-entrypoint[33051]: at org.opensearch.common.settings.AbstractScopedSettings.validat>
May 19 15:36:33 aznc-graylog-02 systemd-entrypoint[33051]: at org.opensearch.common.settings.AbstractScopedSettings.validat>
May 19 15:36:33 aznc-graylog-02 systemd-entrypoint[33051]: at org.opensearch.common.settings.AbstractScopedSettings.validat>
May 19 15:36:33 aznc-graylog-02 systemd-entrypoint[33051]: at org.opensearch.common.settings.AbstractScopedSettings.validat>
May 19 15:36:33 aznc-graylog-02 systemd-entrypoint[33051]: at org.opensearch.common.settings.SettingsModule.<init>(Settings>
May 19 15:36:33 aznc-graylog-02 systemd-entrypoint[33051]: at org.opensearch.node.Node.<init>(Node.java:594)
May 19 15:36:33 aznc-graylog-02 systemd-entrypoint[33051]: at org.opensearch.node.Node.<init>(Node.java:420)
May 19 15:36:33 aznc-graylog-02 systemd-entrypoint[33051]: at org.opensearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:24>
May 19 15:36:33 aznc-graylog-02 systemd-entrypoint[33051]: at org.opensearch.bootstrap.Bootstrap.setup(Bootstrap.java:242)
May 19 15:36:33 aznc-graylog-02 systemd-entrypoint[33051]: at org.opensearch.bootstrap.Bootstrap.init(Bootstrap.java:404)
May 19 15:36:33 aznc-graylog-02 systemd-entrypoint[33051]: at org.opensearch.bootstrap.OpenSearch.init(OpenSearch.java:181)
May 19 15:36:33 aznc-graylog-02 systemd-entrypoint[33051]: at org.opensearch.bootstrap.OpenSearch.execute(OpenSearch.java:1>
May 19 15:36:33 aznc-graylog-02 systemd-entrypoint[33051]: at org.opensearch.cli.EnvironmentAwareCommand.execute(Environmen>
May 19 15:36:33 aznc-graylog-02 systemd-entrypoint[33051]: at org.opensearch.cli.Command.mainWithoutErrorHandling(Command.j>
May 19 15:36:33 aznc-graylog-02 systemd-entrypoint[33051]: at org.opensearch.cli.Command.main(Command.java:101)
May 19 15:36:33 aznc-graylog-02 systemd-entrypoint[33051]: at org.opensearch.bootstrap.OpenSearch.main(OpenSearch.java:138)
May 19 15:36:33 aznc-graylog-02 systemd-entrypoint[33051]: at org.opensearch.bootstrap.OpenSearch.main(OpenSearch.java:104)
May 19 15:36:33 aznc-graylog-02 systemd-entrypoint[33051]: For complete error details, refer to the log at /var/log/opensearch/gray>
May 19 15:37:43 aznc-graylog-02 systemd[1]: opensearch.service: start operation timed out. Terminating.
May 19 15:37:43 aznc-graylog-02 systemd[1]: opensearch.service: Failed with result 'timeout'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit opensearch.service has entered the 'failed' state with result 'timeout'.
May 19 15:37:43 aznc-graylog-02 systemd[1]: Failed to start OpenSearch.
-- Subject: A start job for unit opensearch.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit opensearch.service has finished with a failure.
--
-- The job identifier is 21370 and the job result is failed.
May 19 15:37:43 aznc-graylog-02 sudo[33048]: pam_unix(sudo:session): session closed for user root
May 19 15:38:58 aznc-graylog-02 sudo[33268]: admin : TTY=pts/0 ; PWD=/home/admin ; USER=root ; COMMAND=/usr/bin/systemctl sta>
May 19 15:38:58 aznc-graylog-02 sudo[33268]: pam_unix(sudo:session): session opened for user root by admin(uid=0)
May 19 15:39:46 aznc-graylog-02 sudo[33268]: pam_unix(sudo:session): session closed for user root
May 19 15:39:57 aznc-graylog-02 sudo[33271]: admin : TTY=pts/0 ; PWD=/home/admin ; USER=root ; COMMAND=/usr/bin/systemctl jou>
May 19 15:39:57 aznc-graylog-02 sudo[33271]: pam_unix(sudo:session): session opened for user root by admin(uid=0)
May 19 15:39:57 aznc-graylog-02 sudo[33271]: pam_unix(sudo:session): session closed for user root
May 19 15:40:04 aznc-graylog-02 sudo[33273]: admin : TTY=pts/0 ; PWD=/home/admin ; USER=root ; COMMAND=/usr/bin/journalctl -xe
May 19 15:40:04 aznc-graylog-02 sudo[33273]: pam_unix(sudo:session): session opened for user root by admin(uid=0)