Hi,
I have installed OPDK 4.16.05 (2-node installation). After installation, i have run the test installation script as mentioned in (http://docs.apigee.com/api-services/content/test-install).
I see organization (VALIDATE) & related stuffs (env, api-proxy etc) have installed. Finally its failed to make call to API. By default API is hosted on 59001. It seems like service has not come up on 59001.
Any idea on this?
@archendra : Hi.. Do u have any inputs on this?
Hi there!
There are a few ways to validate this:
1. Make sure all the services are running fine: /opt/apigee/apigee-service/bin/apigee-all status
2. Check for the edge-router process (
/opt/apigee/apigee-service/bin/apigee-service edge-router status)
and try restarting (
/opt/apigee/apigee-service/bin/apigee-service edge-router start
) it and see if it works.
Thanks,
Archendra
Hi @archendra,
All services are running fine. But I have noticed one strange behavior that after apigee service started, when I make first API call edge router service gets stopped.
Even if i restart service, edge router is stopped after first api call
I looked at the log file for edge-router. Here is the exception log. Could you please help on this?
Log extracts added:
2016-07-02 23:47:15,212 main INFO ClientPool - PooledClientService.initBootstrap() : Connection reuse strategy set to true 2016-07-02 23:47:15,213 main INFO ClientPool - PooledClientService.initPoolSync() : Initializing the min number of channels 10 for host:10.209.18.25 and port:8998 2016-07-02 23:47:15,630 main INFO MP-Registration - MessageProcessorManagementServiceImpl.register() : RegisterMessageProcessor uuid=d3af7631-d7bf-45d4-b4ad-aa590e4fe87f host=10.209.18.25 2016-07-02 23:47:15,631 main INFO KERNEL.DEPLOYMENT - ServiceDeployer.startService() : ServiceDeployer.deploy() : Successfully started the service : MessageProcessorManagementService 2016-07-02 23:47:15,632 main ERROR Router-Service - RouterServiceImpl.start() : Router not started because, Load Balancing could not be initialized 2016-07-02 23:47:15,635 main ERROR KERNEL - ErrorMessages.getFormattedMessage() : Unable to locate a resource bundle for error code Router not started because, Load Balancing could not be initialized 2016-07-02 23:47:15,637 main ERROR KERNEL - ErrorMessages.getFaultFlagResourceBundle() : Resource bundle null-faultflag.properties was found, Adding an empty bundle 2016-07-02 23:47:15,645 main ERROR KERNEL.DEPLOYMENT - ServiceDeployer.startService() : ServiceDeployer.deploy() : Got a life cycle exception while starting service [RouterService, Router not started because, Load Balancing could not be initialized] : {} com.apigee.kernel.exceptions.spi.UncheckedException: Router not started because, Load Balancing could not be initialized at com.apigee.proxy.service.RouterServiceImpl.start(RouterServiceImpl.java:66) ~[message-router-proxy-1.0.0.jar:na] at com.apigee.kernel.service.deployment.ServiceDeployer.startService(ServiceDeployer.java:167) [microkernel-1.0.0.jar:na] at com.apigee.kernel.service.deployment.ServiceDeployer.deploy(ServiceDeployer.java:70) [microkernel-1.0.0.jar:na] at com.apigee.kernel.MicroKernel.deployAll(MicroKernel.java:178) [microkernel-1.0.0.jar:na] at com.apigee.kernel.MicroKernel.start(MicroKernel.java:139) [microkernel-1.0.0.jar:na] at com.apigee.kernel.MicroKernel.start(MicroKernel.java:135) [microkernel-1.0.0.jar:na] at com.apigee.kernel.MicroKernel.main(MicroKernel.java:84) [microkernel-1.0.0.jar:na] 2016-07-02 23:47:15,646 main ERROR KERNEL - MicroKernel.deployAll() : MicroKernel.deployAll() : Error in deploying the deployment : RouterService com.apigee.kernel.exceptions.spi.UncheckedException: Router not started because, Load Balancing could not be initialized at com.apigee.proxy.service.RouterServiceImpl.start(RouterServiceImpl.java:66) ~[message-router-proxy-1.0.0.jar:na] at com.apigee.kernel.service.deployment.ServiceDeployer.startService(ServiceDeployer.java:167) ~[microkernel-1.0.0.jar:na] at com.apigee.kernel.service.deployment.ServiceDeployer.deploy(ServiceDeployer.java:70) ~[microkernel-1.0.0.jar:na] at com.apigee.kernel.MicroKernel.deployAll(MicroKernel.java:178) [microkernel-1.0.0.jar:na] at com.apigee.kernel.MicroKernel.start(MicroKernel.java:139) [microkernel-1.0.0.jar:na] at com.apigee.kernel.MicroKernel.start(MicroKernel.java:135) [microkernel-1.0.0.jar:na] at com.apigee.kernel.MicroKernel.main(MicroKernel.java:84) [microkernel-1.0.0.jar:na]
Looks like /opt/nginx/conf.d/ has some bad files. Can you delete all the files under
/opt/nginx/conf.d/ and restart the edge-router. It should fix the issue.
Not sure what is the exact cause. but re-installation of Apigee worked.