【问题标题】:Apigee Edge Private Cloud 4.16.09 Baffling Installation ErrorApigee Edge Private Cloud 4.16.09 莫名其妙的安装错误
【发布时间】:2017-01-17 05:45:21
【问题描述】:

在安装 Apigee Edge Private Cloud 版本 4.16.09(即最新版本)期间,我在路由器/消息处理 (RMP) 安装中遇到了令人沮丧的错误。 具体来说,使用 apigee-ngnix 包。在详细介绍之前,这里有一些关于正在安装的机器的基本信息:

# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.2 (Maipo)
# uname -a
Linux *** 3.10.0-327.18.2.el7.x86_64 *** Fri Apr 8 05:09:53 EDT 2016 x86_64 x86_64 x86_64 GNU/Linux

发出 RMP 安装的命令如下:

/opt/apigee/apigee-setup/bin/setup.sh -p rmp -f /tmp/myConfig.txt

随后的输出(包含有问题的错误)如下:

apigee-service: edge-router: edge-router is running

Checking for router on 127.0.0.1 port 8081 ............. OK

Checking for router uuid 649f58ba-bb61-469e-b169-ceb955961242

Checking if router is up .............................................................

router is not up.

Error: setup.sh: /opt/apigee/apigee-service/bin/apigee-service exited with unexpected status 1

当我挖掘日志时,我看到以下错误-

/opt/apigee/var/log/edge-router/edge-router.log:

java.io.IOException: Cannot run program "/opt/nginx/scripts/apigee-nginx": error=2, No such file or directory

at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)

很奇怪,安装过程没有创建 apigee-ngnix 文件(应该如此)。

/opt/apigee/var/log/edge-router/logs/system.log:

2017-01-05 13:11:09,012 main-EventThread ERROR o.a.c.ConnectionState - ConnectionState.checkState() : Authentication failed

...

2017-01-06 11:18:55,249 qtp371397455-42 ERROR REST - CustomJAXRSInvoker.performInvocation() : CustomJAXRSInvoker.performInvocation : Method com.apigee.registration.ServersAPI.isServerCompletelyUp threw an exception.

...

2017-01-06 11:18:55,253 qtp371397455-42 ERROR REST - ExceptionMapper.toResponse() : Error occurred : Service not up yet.

com.apigee.registration.ServersAPI.isServerCompletelyUp(ServersAPI.java:106)

sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

2017-01-06 11:18:55,255 qtp371397455-42 ERROR REST - ExceptionMapper.toResponse() : Returning error response : ErrorResponse{errorCode = null, errorMessage = Service not up yet.}

...

2017-01-06 11:18:55,576 main ERROR LOAD-BALANCER - LoadBalancingManagementServiceImpl.start() : Could not Initialize adaptor nginx

...

2017-01-06 11:18:55,603 main ERROR Router-Service - RouterServiceImpl.start() : Router not started because, Load Balancing could not be initialized

2017-01-06 11:18:55,614 main ERROR KERNEL.DEPLOYMENT - ServiceDeployer.startService() : ServiceDeployer.deploy() : Got a life cycle exception while starting service [RouterService, Nginx Initialization failed] : {}

com.apigee.errors.http.server.ServiceFailureException: Nginx Initialization failed

at com.apigee.proxy.service.RouterServiceImpl.start(RouterServiceImpl.java:65) ~[message-router-proxy-1.0.0.jar:na]

我很困惑这怎么会发生。我在各种日志文件中看不到任何其他错误。关于这里可能出错的任何想法?也许在哪里寻找其他线索和/或如何进行安装?我已经尝试在 nginx 周围的文件夹结构中打开超出必要的权限设置(为了安全起见),但无济于事。

请注意,Apigee Edge 安装中的所有其他组件(例如管理服务器、分析、数据存储等)的安装都没有任何问题!

提前感谢所有帮助或见解!

最好, 克里斯

【问题讨论】:

    标签: nginx apigee


    【解决方案1】:

    在安装路由器和消息处理器组件之前,运行以下命令,这是解决此问题的可行解决方法:

    mkdir /opt/apigee/etc/edge-router.d
    echo RUN_USER=root >> /opt/apigee/etc/edge-router.d/RUN_USER.sh
    chown -R apigee:apigee /opt/apigee/etc/edge-router.d
    

    ​ 最好的, 克里斯

    【讨论】:

      猜你喜欢
      • 2019-02-04
      • 1970-01-01
      • 2015-09-28
      • 2012-05-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-03-12
      • 2013-04-22
      相关资源
      最近更新 更多