Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with jgroups-tcp.xml file with cluster configuration [version 0.14.1] #1070

Closed
pattinik opened this issue Feb 29, 2024 · 3 comments
Closed
Assignees

Comments

@pattinik
Copy link

Hi, I have an install of glowroot version 0.14.0 in cluster configuration with java11 and cassandra version 4.0 (with two cluster nodes).
glowroot-central.proprierties file is configured as below. This configuration works fine, but when I tried to update it to 0.14.1 version, I got this error:

"Error while trying to create a channel using the specified configuration file: jgroups-tcp.xml
org.infinispan.manager.EmbeddedCacheManagerStartupException: ISPN000085: Error while trying to create a channel using the specified configuration file: jgroups-tcp.xml"

What is wrong with new version?

#############################################
## Cluster configuration
jgroups.configurationFile=jgroups-tcp.xml
jgroups.symEncryptAlgorithm=AES/CBC/PKCS5Padding
jgroups.symEncryptKeystoreName=/path/to/glowroot-central-0.14.1/jgroups.keystore
jgroups.symEncryptKeystorePassword=xxxxxx
jgroups.symEncryptKeyAlias=yyyyy
jgroups.symEncryptKeyPassword=zzzzzzzz
jgroups.localAddress=glowroot-central1.local
jgroups.localPort=7800
jgroups.initialNodes=glowroot-central1.local:7800,glowroot-central2.local:7800
collector.address=http://glowroot-central1.local:8181,http://glowroot-central2.local:8181
@Nowheresly Nowheresly self-assigned this Feb 29, 2024
@Nowheresly
Copy link
Collaborator

Hi @pattinik
Thanks for your report.

I see the real error is this one:
Caused by: java.io.IOException: DerInputStream.getLength(): lengthTag=78, too big.

Jgroups changed the default keystore from jks to pkcs12 !
See here: belaban/JGroups@c6f50e5

So it tries to read the jks provided as a pkcs12 file...

So either you change the jgroups-tcp.xml file and you add
keystore_type="JCEKS"
as attribute to the SYM_ENCRYPT tag

Or you convert your jks to the pkcs12 format, for example using a command like:

keytool -importkeystore -srckeystore jgroups.keystore -srcstoretype JCEKS -deststoretype PKCS12 -destkeystore keystore.p12

@Nowheresly
Copy link
Collaborator

The wiki page has been updated accordingly:

https://github.com/glowroot/glowroot/wiki/Central-Collector-Cluster

@pattinik
Copy link
Author

pattinik commented Mar 1, 2024

Thank you very much! @Nowheresly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants