首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在centos 7.0上启动wso2应用编程接口管理器v2.0.0失败

在centos 7.0上启动wso2应用编程接口管理器v2.0.0失败
EN

Stack Overflow用户
提问于 2016-08-15 09:51:12
回答 2查看 1.2K关注 0票数 0

我正在尝试WSO2应用编程接口管理器2.0,但启动服务器失败。你愿意帮个忙吗?非常感谢,迈克尔

下面是版本信息。

代码语言:javascript
复制
[wso2@srv11 bin]$ ./wso2server.sh --version

WSO2 API Manager v2.0.0  
WSO2 Carbon Framework v4.4.7

但是当我使用"wso2server.sh -- start“命令启动API Manager时,我在wso2carbon.log中发现了以下错误信息。

代码语言:javascript
复制
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}
EN

回答 2

Stack Overflow用户

发布于 2016-08-15 10:19:35

出现此警告的原因可能是Java首选项子系统无法写入目录/etc/.java/.systemPrefs。您能否验证/etc/.java/.systemPrefs目录是否存在于您的系统中?如果它存在,它对运行JVM实例的用户是可写的吗?如果没有,请提供权限并重新启动APIM。

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

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

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

票数 1
EN

Stack Overflow用户

发布于 2016-08-19 19:40:21

关于阻塞条件异常

代码语言:javascript
复制
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文件锁异常?

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/38948303

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档