2016-08-15 31 views
0

我正在尝试WSO2 API Manager 2.0,但无法启动服务器。你想要举手吗?非常感谢Michael无法在centos上启动wso2 API Manager v2.0.0 7.0

以下是版本信息。

​​

但是,当我开始API管理器“wso2server.sh --start”命令,我发现在wso2carbon.log以下错误信息。

ID: [-1234] [] [2016-08-15 09:48:32,824] INFO {org.wso2.andes.server.security.auth.manager.PrincipalDatabaseAuthenticationManager} - Initialised PLAIN SASL provider successfully {org.wso2.andes.server.security.auth.manager.PrincipalDatabaseAuthenticationManager} 
TID: [-1234] [] [2016-08-15 09:48:32,825] INFO {org.wso2.andes.server.security.auth.manager.PrincipalDatabaseAuthenticationManager} - Additional SASL providers successfully registered. {org.wso2.andes.server.security.auth.manager.PrincipalDatabaseAuthenticationManager} 
TID: [-1234] [] [2016-08-15 09:48:32,825] INFO {org.wso2.andes.server.security.auth.manager.PrincipalDatabaseAuthenticationManager} - Registering UserManagementMBean {org.wso2.andes.server.security.auth.manager.PrincipalDatabaseAuthenticationManager} 
TID: [-1] [] [2016-08-15 09:48:35,634] WARN {java.util.prefs.FileSystemPreferences} - Could not lock System prefs. Unix error code 32577. {java.util.prefs.FileSystemPreferences} 
TID: [-1] [] [2016-08-15 09:48:35,635] WARN {java.util.prefs.FileSystemPreferences} - Couldn't flush system prefs: java.util.prefs.BackingStoreException: Couldn't get file lock. {java.util.prefs.FileSystemPreferences} 
TID: [-1] [] [2016-08-15 09:48:52,850] WARN {org.wso2.carbon.apimgt.gateway.throttling.util.KeyTemplateRetriever} - Failed retrieving throttling data from remote endpoint: Connection refused. Retrying after 15 seconds... {org.wso2.carbon.apimgt.gateway.throttling.util.KeyTemplateRetriever} 
TID: [-1] [] [2016-08-15 09:48:52,862] WARN {org.wso2.carbon.apimgt.gateway.throttling.util.BlockingConditionRetriever} - Failed retrieving Blocking Conditions from remote endpoint: Connection refused. Retrying after 15 seconds... {org.wso2.carbon.apimgt.gateway.throttling.util.BlockingConditionRetriever} 
TID: [-1] [] [2016-08-15 09:48:53,073] WARN {org.wso2.carbon.application.deployer.internal.AppDeployerServiceComponent} - Waiting for required OSGi services: org.wso2.carbon.application.deployer.synapse.service.SynapseAppDeployerService, {org.wso2.carbon.application.deployer.internal.AppDeployerServiceComponent} 
TID: [-1] [] [2016-08-15 09:48:53,092] WARN {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} - Waiting for required OSGi services: org.wso2.carbon.application.deployer.service.CappDeploymentService,org.wso2.carbon.server.admin.common.IServerAdmin,org.wso2.carbon.throttling.agent.ThrottlingAgent, {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} 
TID: [-1] [] [2016-08-15 09:49:05,628] WARN {java.util.prefs.FileSystemPreferences} - Could not lock System prefs. Unix error code 32577. {java.util.prefs.FileSystemPreferences} 
TID: [-1] [] [2016-08-15 09:49:05,628] WARN {java.util.prefs.FileSystemPreferences} - Couldn't flush system prefs: java.util.prefs.BackingStoreException: Couldn't get file lock. {java.util.prefs.FileSystemPreferences} 
TID: [-1] [] [2016-08-15 09:49:07,854] WARN {org.wso2.carbon.apimgt.gateway.throttling.util.KeyTemplateRetriever} - Failed retrieving throttling data from remote endpoint: Connection refused. Retrying after 15 seconds... {org.wso2.carbon.apimgt.gateway.throttling.util.KeyTemplateRetriever} 
TID: [-1] [] [2016-08-15 09:49:07,865] WARN {org.wso2.carbon.apimgt.gateway.throttling.util.BlockingConditionRetriever} - Failed retrieving Blocking Conditions from remote endpoint: Connection refused. Retrying after 15 seconds... {org.wso2.carbon.apimgt.gateway.throttling.util.BlockingConditionRetriever} 
TID: [-1] [] [2016-08-15 09:49:24,583] WARN {org.wso2.carbon.apimgt.gateway.throttling.util.KeyTemplateRetriever} - Failed retrieving throttling data from remote endpoint: Connection refused. Retrying after 15 seconds... {org.wso2.carbon.apimgt.gateway.throttling.util.KeyTemplateRetriever} 
TID: [-1] [] [2016-08-15 09:49:24,593] WARN {org.wso2.carbon.apimgt.gateway.throttling.util.BlockingConditionRetriever} - Failed retrieving Blocking Conditions from remote endpoint: Connection refused. Retrying after 15 seconds... {org.wso2.carbon.apimgt.gateway.throttling.util.BlockingConditionRetriever} 
+0

由于jdk问题,我见过类似的问题。例如,当你安装了2个JDK时,bin和HOME的路径没有正确给出等。你能检查吗?你是什​​么JDK? – Bee

回答

1

由于Java Preferences子系统无法写入目录/etc/.java/.systemPrefs,可能会发生此警告。你可以验证目录/etc/.java/.systemPrefs是否存在于你的系统中?如果它存在,它是否对运行JVM实例的用户可写?如果不是,请提供许可并重新启动APIM。

如果上述不起作用,您也可以尝试下面的解决方法。

1)在运行JVM的用户可访问的位置创建一个目录,并具有以下子结构。 /.java/.systemPrefs

2)启动WSO2 APIM服务器的Java选项-Djava.util.prefs.systemRoot=<CREATED_DIR>/.java

0

关于阻塞条件异常

TID: [-1] [] [2016-08-19 17:33:32,455] WARN {org.wso2.carbon.apimgt.gateway.throttling.util.BlockingConditionRetriever} - Failed retrieving Blocking Conditions from remote endpoint: Connection refused. Retrying after 15 seconds... {org.wso2.carbon.apimgt.gateway.throttling.util.BlockingConditionRetriever} 

这仅出现我一个集群部署[X1出版商, x1商店,x1网关管理员,x2网关工作者]。这个问题不会在独立设置中出现。

我已经尝试设置流量管理器(tm)节点并指向网关和发布者节点在tm节点(https://docs.wso2.com/display/CLUSTER44x/Clustering+API+Manager+2.0.0),但是这不能解决问题。

我认为,在应用java系统首选项修复后,您仍然遇到阻止条件警告,但不再是Unix文件锁定异常?