简体   繁体   English

Glassfish(Payara)集群无法启动

[英]Glassfish (Payara) cluster won't start

I'm setting up a cluster for payara 4.1 (last release), i used romote machines for instances and das and when i try to start cluster after intalling, creatin the nodes(1,2) and creating the instances i get this : 我正在为payara 4.1(最新发行版)设置集群,我使用romote机器来存储实例和das,并且当我尝试在安装后启动集群时,创建nodes(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.

For the cluster : 对于集群:

  • cluster name : cluster. 群集名称:群集。
  • nodes : node1 , node1. 节点:节点1,节点1。
  • instances : inst1, inst2. 实例:inst1,inst2。

I'm using : 我正在使用 :

  • jave 7 杰夫7
  • payara 4.1.1.163 #badassfish (build 215) payara 4.1.1.163 #badassfish(内部215)
  • Centos 6 Centos 6

The problem is a communications failure between the DAS and the remote node because of an SSL exception due to a certificate validation failure. 问题是由于证书验证失败导致的SSL异常,导致DAS与远程节点之间的通信失败。

The exception is that your certificate is not yet valid which means that your certificate's "valid from" date is in the future. 唯一的例外是您的证书尚未生效,这意味着证书的“有效期自”日期是将来的日期。 You can also get this if your system time is wrong and in the past (ie a virtual machine you just resumed after many days). 如果您的系统时间不正确并且是过去的(例如,几天后刚恢复的虚拟机),也可以获取此信息。

The further issue is that a full synchronization has been attempted. 另一个问题是已尝试完全同步 Unfortunately, this works by first deleting all the config, and then trying to retrieve new config from the DAS. 不幸的是,这首先通过删除所有配置, 然后尝试从DAS检索新配置来实现。 In a case such as yours where the DAS is unreachable or communications fail, you are left with a remote node which can't even be started manually. 在您无法访问DAS或通信失败的情况下,您将留下一个远程节点,该节点甚至无法手动启动。

This behaviour is intended to change in Payara Server eventually but, until then, please avoid using sync=full when starting remote instances. 此行为最终将在Payara Server中更改,但是在此之前,请避免在启动远程实例时使用sync=full

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM