Graylog fails to start with 3 Java Guice errors

1. Describe your incident:
I upgraded to 6.1 from 5.2 and I’m getting 3 errors from Java.

2. Describe your environment:

  • OS Information:
    Redhat 9.5 installed on baremetal and running all packages in the OS.

  • Package Version:
    Output from “yum list installed | grep ‘mongo|opensearch|graylog’”

graylog-6.1-repository.noarch 1-1 @System
graylog-enterprise.x86_64 6.1.5-2 @graylog
graylog-sidecar.x86_64 1.5.0-2 @graylog-sidecar
graylog-sidecar-repository.noarch 1-5 @System
mongodb-database-tools.x86_64 100.11.0-1 @mongodb-org-7.0
mongodb-mongosh.x86_64 2.3.8-1.el8 @mongodb-org-7.0
mongodb-org.x86_64 7.0.16-1.el9 @mongodb-org-7.0
mongodb-org-database.x86_64 7.0.16-1.el9 @mongodb-org-7.0
mongodb-org-database-tools-extra.x86_64 7.0.16-1.el9 @mongodb-org-7.0
mongodb-org-mongos.x86_64 7.0.16-1.el9 @mongodb-org-7.0
mongodb-org-server.x86_64 7.0.16-1.el9 @mongodb-org-7.0
mongodb-org-tools.x86_64 7.0.16-1.el9 @mongodb-org-7.0
opensearch.x86_64 2.15.0-1 @opensearch-2.x
pcp-pmda-mongodb.x86_64 6.2.2-7.el9_5 @rhel-9-for-x86_64-appstream-rpms

  • Service logs, configurations, and environment variables:
    Output from “tail -f /var/log/graylog-server/server.log”

2025-01-26T10:13:03.589-08:00 INFO [ImmutableFeatureFlagsCollector] Following feature flags are used: {default properties file=[cloud_inputs=on, investigation_report_by_ai=on, data_tiering_cloud=off, composable_index_templates=off, preflight_web=on, data_node_migration=on, remote_reindex_migration=off, instant_archiving=off, configurable_value_units=on, new_report_creation=on, threat_coverage=on]}
2025-01-26T10:13:04.126-08:00 INFO [CmdLineTool] Loaded plugin: AWS plugins 6.1.5+e3ae3ce [org.graylog.aws.AWSPlugin]
2025-01-26T10:13:04.126-08:00 INFO [CmdLineTool] Loaded plugin: Enterprise Integrations 6.1.5+e3ae3ce [org.graylog.enterprise.integrations.EnterpriseIntegrationsPlugin]
2025-01-26T10:13:04.127-08:00 INFO [CmdLineTool] Loaded plugin: Integrations 6.1.5+e3ae3ce [org.graylog.integrations.IntegrationsPlugin]
2025-01-26T10:13:04.128-08:00 INFO [CmdLineTool] Loaded plugin: Graylog Enterprise 6.1.5 [org.graylog.plugins.enterprise.EnterprisePlugin]
2025-01-26T10:13:04.129-08:00 INFO [CmdLineTool] Loaded plugin: Graylog Enterprise (ES7 Support) 6.1.5 [org.graylog.plugins.enterprise.org.graylog.plugins.enterprise.es7.EnterpriseES7Plugin]
2025-01-26T10:13:04.129-08:00 INFO [CmdLineTool] Loaded plugin: Graylog Enterprise (OpenSearch 2 Support) 6.1.5 [org.graylog.plugins.enterprise.org.graylog.plugins.enterprise.os2.EnterpriseOS2Plugin]
2025-01-26T10:13:04.130-08:00 INFO [CmdLineTool] Loaded plugin: Threat Intelligence Plugin 6.1.5+e3ae3ce [org.graylog.plugins.threatintel.ThreatIntelPlugin]
2025-01-26T10:13:04.130-08:00 INFO [CmdLineTool] Loaded plugin: Elasticsearch 7 Support 6.1.5+e3ae3ce [org.graylog.storage.elasticsearch7.Elasticsearch7Plugin]
2025-01-26T10:13:04.131-08:00 INFO [CmdLineTool] Loaded plugin: OpenSearch 2 Support 6.1.5+e3ae3ce [org.graylog.storage.opensearch2.OpenSearch2Plugin]
2025-01-26T10:13:04.164-08:00 INFO [CmdLineTool] Running with JVM arguments: -Xms1g -Xmx1g -XX:+UseG1GC -XX:-OmitStackTraceInFastThrow -Djdk.tls.acknowledgeCloseNotify=true -Dlog4j2.formatMsgNoLookups=true -Dlog4j.configurationFile=file:///etc/graylog/server/log4j2.xml -Dgraylog2.installation_source=rpm
2025-01-26T10:13:05.014-08:00 INFO [IndexerDiscoveryProvider] No indexer hosts configured, using fallback http://127.0.0.1:9200
2025-01-26T10:13:05.405-08:00 ERROR [CmdLineTool] Startup error:
com.google.inject.CreationException: Unable to create injector, see the following errors:

at CustomCAX509TrustManager.(CustomCAX509TrustManager.java:42)
while locating CustomCAX509TrustManager
at ServerPreflightChecksModule.configure(ServerPreflightChecksModule.java:44)
while locating X509TrustManager

Learn more:
ERROR_INJECTING_CONSTRUCTOR · google/guice Wiki · GitHub
Caused by: NullPointerException
at java.base/Hashtable.put(Unknown Source)
at PKCS12KeyStoreSpi$IgnoresCaseHashtable.put(Unknown Source)
at PKCS12KeyStoreSpi.engineSetCertificateEntry(Unknown Source)
at AdaptingKeyStoreSpi.engineSetCertificateEntry(Unknown Source)
at java.base/KeyStore.setCertificateEntry(Unknown Source)
at CaTruststoreImpl.filterOutPrivateKey(CaTruststoreImpl.java:74)
at java.base/Optional.map(Unknown Source)
at CaTruststoreImpl.getTrustStore(CaTruststoreImpl.java:57)
at CustomCAX509TrustManager.refresh(CustomCAX509TrustManager.java:58)
at CustomCAX509TrustManager.(CustomCAX509TrustManager.java:45)
at CustomCAX509TrustManager$$FastClassByGuice$$19b374c.GUICE$TRAMPOLINE()
at CustomCAX509TrustManager$$FastClassByGuice$$19b374c.apply()
at DefaultConstructionProxyFactory$FastClassProxy.newInstance(DefaultConstructionProxyFactory.java:82)
at ConstructorInjector.provision(ConstructorInjector.java:114)
at ConstructorInjector.construct(ConstructorInjector.java:91)
at ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:300)
at FactoryProxy.get(FactoryProxy.java:60)
at ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at SingletonScope$1.get(SingletonScope.java:169)
at InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:45)
at InternalInjectorCreator.loadEagerSingletons(InternalInjectorCreator.java:213)
at InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:186)
at InternalInjectorCreator.build(InternalInjectorCreator.java:113)
at Guice.createInjector(Guice.java:87)
at Guice.createInjector(Guice.java:69)
at Guice.createInjector(Guice.java:59)
at ServerBootstrap.getPreflightInjector(ServerBootstrap.java:287)
at ServerBootstrap.runPreflightWeb(ServerBootstrap.java:193)
at ServerBootstrap.runPreFlightChecks(ServerBootstrap.java:179)
at ServerBootstrap.beforeInjectorCreation(ServerBootstrap.java:152)
at CmdLineTool.doRun(CmdLineTool.java:338)
at CmdLineTool.run(CmdLineTool.java:270)
at Main.main(Main.java:55)

at CustomCAX509TrustManager.(CustomCAX509TrustManager.java:42)
while locating CustomCAX509TrustManager
at ServerPreflightChecksModule.configure(ServerPreflightChecksModule.java:44)
at TrustManagerAndSocketFactoryProvider.(TrustManagerAndSocketFactoryProvider.java:37)
_ for 1st parameter
at TrustManagerAndSocketFactoryProvider.class(TrustManagerAndSocketFactoryProvider.java:37)
at OkHttpClientProvider.(OkHttpClientProvider.java:75)
_ for 5th parameter
at OkHttpClientProvider.class(OkHttpClientProvider.java:59)
while locating OkHttpClientProvider
at ServerPreflightChecksModule.configure(ServerPreflightChecksModule.java:46)
while locating okhttp3.OkHttpClient

Learn more:
ERROR_INJECTING_CONSTRUCTOR · google/guice Wiki · GitHub
Caused by: NullPointerException
at java.base/Hashtable.put(Unknown Source)
at PKCS12KeyStoreSpi$IgnoresCaseHashtable.put(Unknown Source)
at PKCS12KeyStoreSpi.engineSetCertificateEntry(Unknown Source)
at AdaptingKeyStoreSpi.engineSetCertificateEntry(Unknown Source)
at java.base/KeyStore.setCertificateEntry(Unknown Source)
at CaTruststoreImpl.filterOutPrivateKey(CaTruststoreImpl.java:74)
at java.base/Optional.map(Unknown Source)
at CaTruststoreImpl.getTrustStore(CaTruststoreImpl.java:57)
at CustomCAX509TrustManager.refresh(CustomCAX509TrustManager.java:58)
at CustomCAX509TrustManager.(CustomCAX509TrustManager.java:45)
at CustomCAX509TrustManager$$FastClassByGuice$$19b374c.GUICE$TRAMPOLINE()
at CustomCAX509TrustManager$$FastClassByGuice$$19b374c.apply()
at DefaultConstructionProxyFactory$FastClassProxy.newInstance(DefaultConstructionProxyFactory.java:82)
at ConstructorInjector.provision(ConstructorInjector.java:114)
at ConstructorInjector.construct(ConstructorInjector.java:91)
at ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:300)
at FactoryProxy.get(FactoryProxy.java:60)
at ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at SingletonScope$1.get(SingletonScope.java:169)
at InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:45)
at SingleParameterInjector.inject(SingleParameterInjector.java:40)
at SingleParameterInjector.getAll(SingleParameterInjector.java:60)
at ConstructorInjector.provision(ConstructorInjector.java:113)
at ConstructorInjector.construct(ConstructorInjector.java:91)
at ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:300)
at ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at SingletonScope$1.get(SingletonScope.java:169)
at InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:45)
at SingleParameterInjector.inject(SingleParameterInjector.java:40)
at SingleParameterInjector.getAll(SingleParameterInjector.java:60)
at ConstructorInjector.provision(ConstructorInjector.java:113)
at ConstructorInjector.construct(ConstructorInjector.java:91)
at ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:300)
at ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at SingletonScope$1.get(SingletonScope.java:169)
at InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:45)
at BoundProviderFactory.get(BoundProviderFactory.java:58)
at ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at SingletonScope$1.get(SingletonScope.java:169)
at InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:45)
at InternalInjectorCreator.loadEagerSingletons(InternalInjectorCreator.java:213)
at InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:186)
at InternalInjectorCreator.build(InternalInjectorCreator.java:113)
at Guice.createInjector(Guice.java:87)
at Guice.createInjector(Guice.java:69)
at Guice.createInjector(Guice.java:59)
at ServerBootstrap.getPreflightInjector(ServerBootstrap.java:287)
at ServerBootstrap.runPreflightWeb(ServerBootstrap.java:193)
at ServerBootstrap.runPreFlightChecks(ServerBootstrap.java:179)
at ServerBootstrap.beforeInjectorCreation(ServerBootstrap.java:152)
at CmdLineTool.doRun(CmdLineTool.java:338)
at CmdLineTool.run(CmdLineTool.java:270)
at Main.main(Main.java:55)

at CustomCAX509TrustManager.(CustomCAX509TrustManager.java:42)
while locating CustomCAX509TrustManager
at ServerPreflightChecksModule.configure(ServerPreflightChecksModule.java:44)
at TrustManagerAndSocketFactoryProvider.(TrustManagerAndSocketFactoryProvider.java:37)
_ for 1st parameter
at TrustManagerAndSocketFactoryProvider.class(TrustManagerAndSocketFactoryProvider.java:37)
at OkHttpClientProvider.(OkHttpClientProvider.java:75)
_ for 5th parameter
at OkHttpClientProvider.class(OkHttpClientProvider.java:59)
while locating OkHttpClientProvider
at ServerPreflightChecksModule.configure(ServerPreflightChecksModule.java:46)
at VersionProbe.(VersionProbe.java:74)
_ for 2nd parameter
at ElasticsearchVersionProvider.(ElasticsearchVersionProvider.java:53)
_ for 3rd parameter
at ServerPreflightChecksModule.configure(ServerPreflightChecksModule.java:47)
while locating ElasticsearchVersionProvider

Learn more:
ERROR_INJECTING_CONSTRUCTOR · google/guice Wiki · GitHub
Caused by: NullPointerException
at java.base/Hashtable.put(Unknown Source)
at PKCS12KeyStoreSpi$IgnoresCaseHashtable.put(Unknown Source)
at PKCS12KeyStoreSpi.engineSetCertificateEntry(Unknown Source)
at AdaptingKeyStoreSpi.engineSetCertificateEntry(Unknown Source)
at java.base/KeyStore.setCertificateEntry(Unknown Source)
at CaTruststoreImpl.filterOutPrivateKey(CaTruststoreImpl.java:74)
at java.base/Optional.map(Unknown Source)
at CaTruststoreImpl.getTrustStore(CaTruststoreImpl.java:57)
at CustomCAX509TrustManager.refresh(CustomCAX509TrustManager.java:58)
at CustomCAX509TrustManager.(CustomCAX509TrustManager.java:45)
at CustomCAX509TrustManager$$FastClassByGuice$$19b374c.GUICE$TRAMPOLINE()
at CustomCAX509TrustManager$$FastClassByGuice$$19b374c.apply()
at DefaultConstructionProxyFactory$FastClassProxy.newInstance(DefaultConstructionProxyFactory.java:82)
at ConstructorInjector.provision(ConstructorInjector.java:114)
at ConstructorInjector.construct(ConstructorInjector.java:91)
at ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:300)
at FactoryProxy.get(FactoryProxy.java:60)
at ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at SingletonScope$1.get(SingletonScope.java:169)
at InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:45)
at SingleParameterInjector.inject(SingleParameterInjector.java:40)
at SingleParameterInjector.getAll(SingleParameterInjector.java:60)
at ConstructorInjector.provision(ConstructorInjector.java:113)
at ConstructorInjector.construct(ConstructorInjector.java:91)
at ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:300)
at ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at SingletonScope$1.get(SingletonScope.java:169)
at InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:45)
at SingleParameterInjector.inject(SingleParameterInjector.java:40)
at SingleParameterInjector.getAll(SingleParameterInjector.java:60)
at ConstructorInjector.provision(ConstructorInjector.java:113)
at ConstructorInjector.construct(ConstructorInjector.java:91)
at ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:300)
at ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at SingletonScope$1.get(SingletonScope.java:169)
at InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:45)
at BoundProviderFactory.get(BoundProviderFactory.java:58)
at ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at SingletonScope$1.get(SingletonScope.java:169)
at InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:45)
at SingleParameterInjector.inject(SingleParameterInjector.java:40)
at SingleParameterInjector.getAll(SingleParameterInjector.java:60)
at ConstructorInjector.provision(ConstructorInjector.java:113)
at ConstructorInjector.construct(ConstructorInjector.java:91)
at ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:300)
at SingleParameterInjector.inject(SingleParameterInjector.java:40)
at SingleParameterInjector.getAll(SingleParameterInjector.java:60)
at ConstructorInjector.provision(ConstructorInjector.java:113)
at ConstructorInjector.construct(ConstructorInjector.java:91)
at ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:300)
at ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at SingletonScope$1.get(SingletonScope.java:169)
at InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:45)
at InternalInjectorCreator.loadEagerSingletons(InternalInjectorCreator.java:213)
at InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:186)
at InternalInjectorCreator.build(InternalInjectorCreator.java:113)
at Guice.createInjector(Guice.java:87)
at Guice.createInjector(Guice.java:69)
at Guice.createInjector(Guice.java:59)
at ServerBootstrap.getPreflightInjector(ServerBootstrap.java:287)
at ServerBootstrap.runPreflightWeb(ServerBootstrap.java:193)
at ServerBootstrap.runPreFlightChecks(ServerBootstrap.java:179)
at ServerBootstrap.beforeInjectorCreation(ServerBootstrap.java:152)
at CmdLineTool.doRun(CmdLineTool.java:338)
at CmdLineTool.run(CmdLineTool.java:270)
at Main.main(Main.java:55)

3 errors

======================
Full classname legend:

AdaptingKeyStoreSpi: “org.bouncycastle.jcajce.provider.keystore.util.AdaptingKeyStoreSpi”
BoundProviderFactory: “com.google.inject.internal.BoundProviderFactory”
CaTruststoreImpl: “org.graylog.security.certutil.CaTruststoreImpl”
CmdLineTool: “org.graylog2.bootstrap.CmdLineTool”
ConstructorBindingImpl$Factory: “com.google.inject.internal.ConstructorBindingImpl$Factory”
ConstructorInjector: “com.google.inject.internal.ConstructorInjector”
CustomCAX509TrustManager: “org.graylog2.security.CustomCAX509TrustManager”
CustomCAX509TrustManager$$FastClassByGuice$$19b374c: “org.graylog2.security.CustomCAX509TrustManager$$FastClassByGuice$$19b374c”
DefaultConstructionProxyFactory$FastClassProxy: “com.google.inject.internal.DefaultConstructionProxyFactory$FastClassProxy”
ElasticsearchVersionProvider: “org.graylog2.storage.providers.ElasticsearchVersionProvider”
FactoryProxy: “com.google.inject.internal.FactoryProxy”
Guice: “com.google.inject.Guice”
InternalFactoryToProviderAdapter: “com.google.inject.internal.InternalFactoryToProviderAdapter”
InternalInjectorCreator: “com.google.inject.internal.InternalInjectorCreator”
KeyStore: “java.security.KeyStore”
Main: “org.graylog2.bootstrap.Main”
OkHttpClientProvider: “org.graylog2.shared.bindings.providers.OkHttpClientProvider”
PKCS12KeyStoreSpi: “org.bouncycastle.jcajce.provider.keystore.pkcs12.PKCS12KeyStoreSpi”
PKCS12KeyStoreSpi$IgnoresCaseHashtable: “org.bouncycastle.jcajce.provider.keystore.pkcs12.PKCS12KeyStoreSpi$IgnoresCaseHashtable”
ProviderToInternalFactoryAdapter: “com.google.inject.internal.ProviderToInternalFactoryAdapter”
ServerBootstrap: “org.graylog2.bootstrap.ServerBootstrap”
ServerPreflightChecksModule: “org.graylog2.bootstrap.preflight.ServerPreflightChecksModule”
SingleParameterInjector: “com.google.inject.internal.SingleParameterInjector”
SingletonScope$1: “com.google.inject.internal.SingletonScope$1”
TrustManagerAndSocketFactoryProvider: “org.graylog2.security.TrustManagerAndSocketFactoryProvider”
VersionProbe: “org.graylog2.storage.versionprobe.VersionProbe”
X509TrustManager: “javax.net.ssl.X509TrustManager”

End of classname legend:

at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:589) ~[graylog.jar:?]
at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:190) ~[graylog.jar:?]
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:113) ~[graylog.jar:?]
at com.google.inject.Guice.createInjector(Guice.java:87) ~[graylog.jar:?]
at com.google.inject.Guice.createInjector(Guice.java:69) ~[graylog.jar:?]
at com.google.inject.Guice.createInjector(Guice.java:59) ~[graylog.jar:?]
at org.graylog2.bootstrap.ServerBootstrap.getPreflightInjector(ServerBootstrap.java:287) ~[graylog.jar:?]
at org.graylog2.bootstrap.ServerBootstrap.runPreflightWeb(ServerBootstrap.java:193) ~[graylog.jar:?]
at org.graylog2.bootstrap.ServerBootstrap.runPreFlightChecks(ServerBootstrap.java:179) ~[graylog.jar:?]
at org.graylog2.bootstrap.ServerBootstrap.beforeInjectorCreation(ServerBootstrap.java:152) ~[graylog.jar:?]
at org.graylog2.bootstrap.CmdLineTool.doRun(CmdLineTool.java:338) ~[graylog.jar:?]
at org.graylog2.bootstrap.CmdLineTool.run(CmdLineTool.java:270) [graylog.jar:?]
at org.graylog2.bootstrap.Main.main(Main.java:55) [graylog.jar:?]

3. What steps have you already taken to try and solve the problem?
I believed this issue I have addressed before and made changes to “/usr/lib/systemd/system/graylog-server.service”

Here are the changes:
[Service]
User=root
Group=root

Changed from graylog user to root user.

Also tried use the local installed java by uncommenting this entry in "/etc/sysconfig/graylog-server "

Path to a custom java executable. By default the java executable of the

bundled JVM is used.

JAVA=/usr/bin/java

Did NOT work and I restored the old value.

I have done many searches on the forum and google but can’t find a resolution.
I have done a lot work on this instance and I don’t want to lose my work.
It’s been running for over a year.

4. How can the community help?
Any additional places I can look for answer would be appreciated.

There are additional logs I could post on the initail post I will include in my next post.
Cheers
fly

Additional info from the server.log:

2025-01-26T10:13:04.333-08:00 INFO [client] MongoClient with metadata {“driver”: {“name”: “mongo-java-driver|legacy”, “version”: “5.2.0”}, “os”: {“type”: “Linux”, “name”: “Linux”, “architecture”: “amd64”, “version”: “5.14.0-503.22.1.el9_5.x86_64”}, “platform”: “Java/Eclipse Adoptium/17.0.13+11”} created with settings MongoClientSettings{readPreference=primary, writeConcern=WriteConcern{w=null, wTimeout=null ms, journal=null}, retryWrites=true, retryReads=true, readConcern=ReadConcern{level=null}, credential=null, transportSettings=null, commandListeners=, codecRegistry=ProvidersCodecRegistry{codecProviders=[ValueCodecProvider{}, BsonValueCodecProvider{}, DBRefCodecProvider{}, DBObjectCodecProvider{}, DocumentCodecProvider{}, CollectionCodecProvider{}, IterableCodecProvider{}, MapCodecProvider{}, GeoJsonCodecProvider{}, GridFSFileCodecProvider{}, Jsr310CodecProvider{}, JsonObjectCodecProvider{}, BsonCodecProvider{}, EnumCodecProvider{}, com.mongodb.client.model.mql.ExpressionCodecProvider@65f651eb, com.mongodb.Jep395RecordCodecProvider@69923ac3, com.mongodb.KotlinCodecProvider@1f1ff879]}, loggerSettings=LoggerSettings{maxDocumentLength=1000}, clusterSettings={hosts=[localhost:27017], srvServiceName=mongodb, mode=SINGLE, requiredClusterType=UNKNOWN, requiredReplicaSetName=‘null’, serverSelector=‘null’, clusterListeners=‘’, serverSelectionTimeout=‘30000 ms’, localThreshold=‘15 ms’}, socketSettings=SocketSettings{connectTimeoutMS=10000, readTimeoutMS=0, receiveBufferSize=0, proxySettings=ProxySettings{host=null, port=null, username=null, password=null}}, heartbeatSocketSettings=SocketSettings{connectTimeoutMS=10000, readTimeoutMS=10000, receiveBufferSize=0, proxySettings=ProxySettings{host=null, port=null, username=null, password=null}}, connectionPoolSettings=ConnectionPoolSettings{maxSize=1000, minSize=0, maxWaitTimeMS=120000, maxConnectionLifeTimeMS=0, maxConnectionIdleTimeMS=0, maintenanceInitialDelayMS=0, maintenanceFrequencyMS=60000, connectionPoolListeners=, maxConnecting=2}, serverSettings=ServerSettings{heartbeatFrequencyMS=10000, minHeartbeatFrequencyMS=500, serverMonitoringMode=AUTO, serverListeners=‘’, serverMonitorListeners=‘’}, sslSettings=SslSettings{enabled=false, invalidHostNameAllowed=false, context=null}, applicationName=‘null’, compressorList=, uuidRepresentation=UNSPECIFIED, serverApi=null, autoEncryptionSettings=null, dnsClient=null, inetAddressResolver=null, contextProvider=null, timeoutMS=null}

2025-01-26T10:13:04.337-08:00 INFO [client] MongoClient with metadata {“driver”: {“name”: “mongo-java-driver”, “version”: “5.2.0”}, “os”: {“type”: “Linux”, “name”: “Linux”, “architecture”: “amd64”, “version”: “5.14.0-503.22.1.el9_5.x86_64”}, “platform”: “Java/Eclipse Adoptium/17.0.13+11”} created with settings MongoClientSettings{readPreference=primary, writeConcern=WriteConcern{w=null, wTimeout=null ms, journal=null}, retryWrites=true, retryReads=true, readConcern=ReadConcern{level=null}, credential=null, transportSettings=null, commandListeners=, codecRegistry=ProvidersCodecRegistry{codecProviders=[ValueCodecProvider{}, BsonValueCodecProvider{}, DBRefCodecProvider{}, DBObjectCodecProvider{}, DocumentCodecProvider{}, CollectionCodecProvider{}, IterableCodecProvider{}, MapCodecProvider{}, GeoJsonCodecProvider{}, GridFSFileCodecProvider{}, Jsr310CodecProvider{}, JsonObjectCodecProvider{}, BsonCodecProvider{}, EnumCodecProvider{}, com.mongodb.client.model.mql.ExpressionCodecProvider@65f651eb, com.mongodb.Jep395RecordCodecProvider@69923ac3, com.mongodb.KotlinCodecProvider@1f1ff879]}, loggerSettings=LoggerSettings{maxDocumentLength=1000}, clusterSettings={hosts=[localhost:27017], srvServiceName=mongodb, mode=SINGLE, requiredClusterType=UNKNOWN, requiredReplicaSetName=‘null’, serverSelector=‘null’, clusterListeners=‘’, serverSelectionTimeout=‘30000 ms’, localThreshold=‘15 ms’}, socketSettings=SocketSettings{connectTimeoutMS=10000, readTimeoutMS=0, receiveBufferSize=0, proxySettings=ProxySettings{host=null, port=null, username=null, password=null}}, heartbeatSocketSettings=SocketSettings{connectTimeoutMS=10000, readTimeoutMS=10000, receiveBufferSize=0, proxySettings=ProxySettings{host=null, port=null, username=null, password=null}}, connectionPoolSettings=ConnectionPoolSettings{maxSize=1000, minSize=0, maxWaitTimeMS=120000, maxConnectionLifeTimeMS=0, maxConnectionIdleTimeMS=0, maintenanceInitialDelayMS=0, maintenanceFrequencyMS=60000, connectionPoolListeners=, maxConnecting=2}, serverSettings=ServerSettings{heartbeatFrequencyMS=10000, minHeartbeatFrequencyMS=500, serverMonitoringMode=AUTO, serverListeners=‘’, serverMonitorListeners=‘’}, sslSettings=SslSettings{enabled=false, invalidHostNameAllowed=false, context=null}, applicationName=‘null’, compressorList=, uuidRepresentation=UNSPECIFIED, serverApi=null, autoEncryptionSettings=null, dnsClient=null, inetAddressResolver=null, contextProvider=null, timeoutMS=null}

2025-01-26T10:13:04.359-08:00 INFO [cluster] Monitor thread successfully connected to server with description ServerDescription{address=localhost:27017, type=STANDALONE, cryptd=false, state=CONNECTED, ok=true, minWireVersion=0, maxWireVersion=21, maxDocumentSize=16777216, logicalSessionTimeoutMinutes=30, roundTripTimeNanos=21224512, minRoundTripTimeNanos=0}

2025-01-26T10:13:04.431-08:00 INFO [MongoDBPreflightCheck] Connected to MongoDB version 7.0.16

2025-01-26T10:13:04.886-08:00 INFO [client] MongoClient with metadata {“driver”: {“name”: “mongo-java-driver|legacy”, “version”: “5.2.0”}, “os”: {“type”: “Linux”, “name”: “Linux”, “architecture”: “amd64”, “version”: “5.14.0-503.22.1.el9_5.x86_64”}, “platform”: “Java/Eclipse Adoptium/17.0.13+11”} created with settings MongoClientSettings{readPreference=primary, writeConcern=WriteConcern{w=null, wTimeout=null ms, journal=null}, retryWrites=true, retryReads=true, readConcern=ReadConcern{level=null}, credential=null, transportSettings=null, commandListeners=, codecRegistry=ProvidersCodecRegistry{codecProviders=[ValueCodecProvider{}, BsonValueCodecProvider{}, DBRefCodecProvider{}, DBObjectCodecProvider{}, DocumentCodecProvider{}, CollectionCodecProvider{}, IterableCodecProvider{}, MapCodecProvider{}, GeoJsonCodecProvider{}, GridFSFileCodecProvider{}, Jsr310CodecProvider{}, JsonObjectCodecProvider{}, BsonCodecProvider{}, EnumCodecProvider{}, com.mongodb.client.model.mql.ExpressionCodecProvider@65f651eb, com.mongodb.Jep395RecordCodecProvider@69923ac3, com.mongodb.KotlinCodecProvider@1f1ff879]}, loggerSettings=LoggerSettings{maxDocumentLength=1000}, clusterSettings={hosts=[localhost:27017], srvServiceName=mongodb, mode=SINGLE, requiredClusterType=UNKNOWN, requiredReplicaSetName=‘null’, serverSelector=‘null’, clusterListeners=‘’, serverSelectionTimeout=‘30000 ms’, localThreshold=‘15 ms’}, socketSettings=SocketSettings{connectTimeoutMS=10000, readTimeoutMS=0, receiveBufferSize=0, proxySettings=ProxySettings{host=null, port=null, username=null, password=null}}, heartbeatSocketSettings=SocketSettings{connectTimeoutMS=10000, readTimeoutMS=10000, receiveBufferSize=0, proxySettings=ProxySettings{host=null, port=null, username=null, password=null}}, connectionPoolSettings=ConnectionPoolSettings{maxSize=1000, minSize=0, maxWaitTimeMS=120000, maxConnectionLifeTimeMS=0, maxConnectionIdleTimeMS=0, maintenanceInitialDelayMS=0, maintenanceFrequencyMS=60000, connectionPoolListeners=, maxConnecting=2}, serverSettings=ServerSettings{heartbeatFrequencyMS=10000, minHeartbeatFrequencyMS=500, serverMonitoringMode=AUTO, serverListeners=‘’, serverMonitorListeners=‘’}, sslSettings=SslSettings{enabled=false, invalidHostNameAllowed=false, context=null}, applicationName=‘null’, compressorList=, uuidRepresentation=UNSPECIFIED, serverApi=null, autoEncryptionSettings=null, dnsClient=null, inetAddressResolver=null, contextProvider=null, timeoutMS=null}
2025-01-26T10:13:04.887-08:00 INFO [cluster] Monitor thread successfully connected to server with description ServerDescription{address=localhost:27017, type=STANDALONE, cryptd=false, state=CONNECTED, ok=true, minWireVersion=0, maxWireVersion=21, maxDocumentSize=16777216, logicalSessionTimeoutMinutes=30, roundTripTimeNanos=1286320, minRoundTripTimeNanos=0}

2025-01-26T10:13:04.888-08:00 INFO [client] MongoClient with metadata {“driver”: {“name”: “mongo-java-driver”, “version”: “5.2.0”}, “os”: {“type”: “Linux”, “name”: “Linux”, “architecture”: “amd64”, “version”: “5.14.0-503.22.1.el9_5.x86_64”}, “platform”: “Java/Eclipse Adoptium/17.0.13+11”} created with settings MongoClientSettings{readPreference=primary, writeConcern=WriteConcern{w=null, wTimeout=null ms, journal=null}, retryWrites=true, retryReads=true, readConcern=ReadConcern{level=null}, credential=null, transportSettings=null, commandListeners=, codecRegistry=ProvidersCodecRegistry{codecProviders=[ValueCodecProvider{}, BsonValueCodecProvider{}, DBRefCodecProvider{}, DBObjectCodecProvider{}, DocumentCodecProvider{}, CollectionCodecProvider{}, IterableCodecProvider{}, MapCodecProvider{}, GeoJsonCodecProvider{}, GridFSFileCodecProvider{}, Jsr310CodecProvider{}, JsonObjectCodecProvider{}, BsonCodecProvider{}, EnumCodecProvider{}, com.mongodb.client.model.mql.ExpressionCodecProvider@65f651eb, com.mongodb.Jep395RecordCodecProvider@69923ac3, com.mongodb.KotlinCodecProvider@1f1ff879]}, loggerSettings=LoggerSettings{maxDocumentLength=1000}, clusterSettings={hosts=[localhost:27017], srvServiceName=mongodb, mode=SINGLE, requiredClusterType=UNKNOWN, requiredReplicaSetName=‘null’, serverSelector=‘null’, clusterListeners=‘’, serverSelectionTimeout=‘30000 ms’, localThreshold=‘15 ms’}, socketSettings=SocketSettings{connectTimeoutMS=10000, readTimeoutMS=0, receiveBufferSize=0, proxySettings=ProxySettings{host=null, port=null, username=null, password=null}}, heartbeatSocketSettings=SocketSettings{connectTimeoutMS=10000, readTimeoutMS=10000, receiveBufferSize=0, proxySettings=ProxySettings{host=null, port=null, username=null, password=null}}, connectionPoolSettings=ConnectionPoolSettings{maxSize=1000, minSize=0, maxWaitTimeMS=120000, maxConnectionLifeTimeMS=0, maxConnectionIdleTimeMS=0, maintenanceInitialDelayMS=0, maintenanceFrequencyMS=60000, connectionPoolListeners=, maxConnecting=2}, serverSettings=ServerSettings{heartbeatFrequencyMS=10000, minHeartbeatFrequencyMS=500, serverMonitoringMode=AUTO, serverListeners=‘’, serverMonitorListeners=‘’}, sslSettings=SslSettings{enabled=false, invalidHostNameAllowed=false, context=null}, applicationName=‘null’, compressorList=, uuidRepresentation=UNSPECIFIED, serverApi=null, autoEncryptionSettings=null, dnsClient=null, inetAddressResolver=null, contextProvider=null, timeoutMS=null}

Looking at the trace related to the injection error, we are failing here:

truststore.setCertificateEntry(CA_KEY_ALIAS, keyStore.getCertificate(CA_KEY_ALIAS));

Looks like we cannot retrieve a valid CA certificate.

I haven’t configured encryption. Would the upgrade turn on encryption?

I guess I don’t understand why encryption would be necessary if I haven’t configured it in the past.

Cheers,
Fly

Take a look here: HTTPS
Maybe a default changed between 5.x and 6.x to use HTTPS.

Thanks, Patrick. I’ll take a look.

Cheers,
Fly

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