JGroups ASYM_ENCRYPT causes error during startup: "key server is currently not set"
Environment
- Red Hat JBoss Enterprise Application Platform (EAP) 6.4.9
- At server startup (nodes hadn't formed a cluster yet)
Issue
When using ASYM_ENCRYPT in the JGroups stack the error below is reported when the second server instance is joining the cluster.
[Server:server-two] 16:33:34,047 INFO [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss EAP 6.4.9.GA (AS 7.5.9.Final-redhat-2) started in 13985ms - Started 318 of 383 services (129 services are lazy, passive or on-demand)
[Server:server-one] 16:33:34,707 DEBUG [org.jgroups.protocols.pbcast.GMS] (ServerService Thread Pool -- 68) election results: {}
[Server:server-one] 16:33:35,211 DEBUG [org.jgroups.protocols.pbcast.GMS] (ServerService Thread Pool -- 68) election results: {master:server-two/ejb=1}
[Server:server-one] 16:33:35,211 DEBUG [org.jgroups.protocols.pbcast.GMS] (ServerService Thread Pool -- 68) sending JOIN(master:server-one/ejb) to master:server-two/ejb
*************************************************************************************************************************************
[Server:server-one] 16:33:35,226 ***ERROR*** [org.jgroups.protocols.ASYM_ENCRYPT] (OOB-4,shared=tcpping) master:server-one/ejb: key server is currently not set
*************************************************************************************************************************************
[Server:server-two] 16:33:35,273 DEBUG [org.jgroups.protocols.pbcast.STABLE] (ViewHandler,ejb,master:server-two/ejb) suspending message garbage collection
[Server:server-two] 16:33:35,274 DEBUG [org.jgroups.protocols.pbcast.STABLE] (ViewHandler,ejb,master:server-two/ejb) resume task started, max_suspend_time=33000
[Server:server-two] 16:33:35,277 DEBUG [org.jgroups.protocols.pbcast.NAKACK2] (Incoming-1,shared=tcpping)
[Server:server-two] [master:server-two/ejb setDigest()]
[Server:server-two] existing digest: master:server-two/ejb: [1 (1)]
[Server:server-two] new digest: master:server-two/ejb: [0 (0)], master:server-one/ejb: [0 (0)]
[Server:server-two] resulting digest: master:server-two/ejb: [1 (1)], master:server-one/ejb: [0 (0)]
[Server:server-two] 16:33:35,277 DEBUG [org.jgroups.protocols.pbcast.GMS] (Incoming-1,shared=tcpping) master:server-two/ejb: installing view [master:server-two/ejb|1] [master:server-two/ejb, master:server-one/ejb]
[Server:server-two] 16:33:35,278 DEBUG [org.jgroups.protocols.FD_SOCK] (Incoming-1,shared=tcpping) VIEW_CHANGE received: [master:server-two/ejb, master:server-one/ejb]
Resolution
The error key server is currently not set is captured on server startup when the server in question is yet to join the cluster
The message means that it can't decode a message it received because it doesn't have the encryption keys and should not be of concern.
Beginning EAP 6.4.19, the log level has been changed from ERROR to FINE and should now read
[Server:server-one] 16:48:01,444 ***FINE*** [org.jgroups.protocols.ASYM_ENCRYPT] (OOB-4,shared=tcpping) master:server-one/ejb: key server is currently not set
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.