Glassfish (Payara) 集群无法启动
Glassfish (Payara) cluster won't start
我正在为 payara 4.1(最新版本)设置集群,我使用远程机器作为实例和 das
当我在安装后尝试启动集群时,创建节点(1,2)并创建实例我得到这个:
start-cluster cluster
remote failure: inst2: Could not start instance inst2 on node node2 (inst2).
Command failed on node node2 (inst2): Previous synchronization failed at Oct 18, 2016 3:03:13 PM
Will perform full synchronization.
Removing all cached state for instance inst2.
NCLS-ADMIN-00010
CLI802 Synchronization failed for directory config, caused by:
javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateNotYetValidException: NotBefore: Mon Nov 07 09:26:30 CET 2016
Command start-local-instance failed.
To complete this operation run the following command locally on host inst2 from the GlassFish install location /opt/payara41:
lib/nadmin start-local-instance --node node2 --sync normal inst2
inst1: Could not start instance inst1 on node node1 (inst1).
Command failed on node node1 (inst1): Previous synchronization failed at Oct 18, 2016 3:03:18 PM
Will perform full synchronization.
Removing all cached state for instance inst1.
NCLS-ADMIN-00010
CLI802 Synchronization failed for directory config, caused by:
javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateNotYetValidException: NotBefore: Mon Nov 07 09:26:30 CET 2016
Command start-local-instance failed.
To complete this operation run the following command locally on host inst1 from the GlassFish install location /opt/payara41:
lib/nadmin start-local-instance --node node1 --sync normal inst1
The command start-instance failed for: inst2 inst1
Command start-cluster failed.
对于集群:
- 集群名称:集群。
- 节点:节点 1、节点 1。
- 实例:inst1、inst2。
我正在使用:
- jave 7
- payara 4.1.1.163 #badassfish(构建 215)
- 森托斯 6
问题是由于证书验证失败导致 SSL 异常导致 DAS 和远程节点之间的通信失败。
例外情况是您的证书尚未生效,这意味着您的证书的 "valid from" 日期在未来。如果您的系统时间错误并且是过去的时间(即您在许多天后刚刚恢复的虚拟机),您也可以获得此信息。
进一步的问题是已尝试完全同步。不幸的是,这是通过 first 删除所有配置,然后 then 尝试从 DAS 检索新配置来实现的。在像您这样的 DAS 无法访问或通信失败的情况下,您将留下一个甚至无法手动启动的远程节点。
这种行为最终会在 Payara Server 中改变,但在此之前,请避免在启动远程实例时使用 sync=full
。
我正在为 payara 4.1(最新版本)设置集群,我使用远程机器作为实例和 das 当我在安装后尝试启动集群时,创建节点(1,2)并创建实例我得到这个:
start-cluster cluster
remote failure: inst2: Could not start instance inst2 on node node2 (inst2).
Command failed on node node2 (inst2): Previous synchronization failed at Oct 18, 2016 3:03:13 PM
Will perform full synchronization.
Removing all cached state for instance inst2.
NCLS-ADMIN-00010
CLI802 Synchronization failed for directory config, caused by:
javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateNotYetValidException: NotBefore: Mon Nov 07 09:26:30 CET 2016
Command start-local-instance failed.
To complete this operation run the following command locally on host inst2 from the GlassFish install location /opt/payara41:
lib/nadmin start-local-instance --node node2 --sync normal inst2
inst1: Could not start instance inst1 on node node1 (inst1).
Command failed on node node1 (inst1): Previous synchronization failed at Oct 18, 2016 3:03:18 PM
Will perform full synchronization.
Removing all cached state for instance inst1.
NCLS-ADMIN-00010
CLI802 Synchronization failed for directory config, caused by:
javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateNotYetValidException: NotBefore: Mon Nov 07 09:26:30 CET 2016
Command start-local-instance failed.
To complete this operation run the following command locally on host inst1 from the GlassFish install location /opt/payara41:
lib/nadmin start-local-instance --node node1 --sync normal inst1
The command start-instance failed for: inst2 inst1
Command start-cluster failed.
对于集群:
- 集群名称:集群。
- 节点:节点 1、节点 1。
- 实例:inst1、inst2。
我正在使用:
- jave 7
- payara 4.1.1.163 #badassfish(构建 215)
- 森托斯 6
问题是由于证书验证失败导致 SSL 异常导致 DAS 和远程节点之间的通信失败。
例外情况是您的证书尚未生效,这意味着您的证书的 "valid from" 日期在未来。如果您的系统时间错误并且是过去的时间(即您在许多天后刚刚恢复的虚拟机),您也可以获得此信息。
进一步的问题是已尝试完全同步。不幸的是,这是通过 first 删除所有配置,然后 then 尝试从 DAS 检索新配置来实现的。在像您这样的 DAS 无法访问或通信失败的情况下,您将留下一个甚至无法手动启动的远程节点。
这种行为最终会在 Payara Server 中改变,但在此之前,请避免在启动远程实例时使用 sync=full
。