OPDK Analytics installation issue

Not applicable

I am facing this error while installing analytics on node 2. Can anyone help on this pls.

apigee-configutil: edge-qpid-server: # OK Server is already stopped. apigee-configutil: edge-qpid-server: # OK apigee-service: edge-qpid-server: Not running (NO_LOCKFILE) apigee-service: edge-qpid-server: status=2, continuing apigee-service: edge-qpid-server: OK apigee-service: edge-qpid-server: edge-qpid-server is running Checking for qpid-server on 127.0.0.1 port 8083 ....................... OK Checking for qpid-server uuid .............. Unable to connect to qpid-server on http://127.0.0.1:8083 Error: setup.sh: /opt/apigee/apigee-service/bin/apigee-service exited with unexpected status 1

In logs i see below errors:

2016-06-26 00:22:50,239 main WARN o.a.c.ConnectionState - ConnectionState.checkTimeouts() : Connection attempt unsuccessful after 4533 (greater than max timeout of 3000). Resetting connection and trying again with a new connection. 2016-06-26 00:22:50,239 main-EventThread ERROR o.a.c.ConnectionState - ConnectionState.checkState() : Authentication failed 2016-06-26 00:22:50,342 main-EventThread ERROR o.a.c.ConnectionState - ConnectionState.checkState() : Authentication failed 2016-06-26 00:22:50,446 main ERROR KERNEL.DEPLOYMENT - ServiceDeployer.startService() : ServiceDeployer.deploy() : Got a life cycle exception while starting service [ServerRegistrationService, Error creating directories for paths : KeeperErrorCode = ConnectionLoss for /types/router] : {} com.apigee.zookeeper.ZooKeeperException: Error creating directories for paths : KeeperErrorCode = ConnectionLoss for /types/router at com.apigee.zookeeper.impl.ZooKeeperServiceImpl.createDirectories(ZooKeeperServiceImpl.java:1186) ~[zookeeper-1.0.0.jar:na] at com.apigee.services.repository.zookeeper.ZKRepository.createDirectories(ZKRepository.java:78) ~[repository-impl-1.0.0.jar:na] at com.apigee.services.repository.RepositoryServiceImpl.createDirectories(RepositoryServiceImpl.java:209) ~[repository-impl-1.0.0.jar:na] at com.apigee.registration.RegistrationManagementServiceImpl.registerMissingServerTypes(RegistrationManagementServiceImpl.java:373) ~[registration-1.0.0.jar:na] at com.apigee.registration.RegistrationManagementServiceImpl.start(RegistrationManagementServiceImpl.java:33) ~[registration-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.service.deployment.ServiceDeployer.deployDependantServices(ServiceDeployer.java:356) [microkernel-1.0.0.jar:na] at com.apigee.kernel.service.deployment.ServiceDeployer.deploy(ServiceDeployer.java:76) [microkernel-1.0.0.jar:na] at com.apigee.kernel.service.deployment.ServiceDeployer.deployDependantServices(ServiceDeployer.java:356) [microkernel-1.0.0.jar:na] at com.apigee.kernel.service.deployment.ServiceDeployer.deploy(ServiceDeployer.java:76) [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-06-26 00:22:50,447 main ERROR KERNEL - MicroKernel.deployAll() : MicroKernel.deployAll() : Error in deploying the deployment : ZooKeeperService com.apigee.zookeeper.ZooKeeperException: Error creating directories for paths : KeeperErrorCode = ConnectionLoss for /types/router at com.apigee.zookeeper.impl.ZooKeeperServiceImpl.createDirectories(ZooKeeperServiceImpl.java:1186) ~[zookeeper-1.0.0.jar:na] at com.apigee.services.repository.zookeeper.ZKRepository.createDirectories(ZKRepository.java:78) ~[repository-impl-1.0.0.jar:na]

Solved Solved
0 3 608
1 ACCEPTED SOLUTION

Not applicable

Looks like host2 is not able to connect to host1 to get the data from zookeeper. Can you please make sure that all the necessary ports are open from host1 to connect to host2?

Thanks,

Archendra

View solution in original post

3 REPLIES 3

Not applicable

Hi there!

Looks like the 8083 port didn't come up within the timeout set in wait_for_ready in /opt/apigee/apigee-qpidd/lib/actions/wait_for_ready. Please change the following line in wait_for_ready:

wait_for_ready 30 qpid-stat -q to wait_for_ready 180 qpid-stat -q

And rerun the setup again on analytics node, Hope this helps.

Thanks,

Archendra

Hi @archendra,

Updated wait_for_ready file as suggested. Its not working still.

Do you mind verifying the logs that I have attached (system.zip). I see error messages related to Zookeeper.

Also JFYI, I am trying to setup 2-host standalone installation. Host 1 installation gone well & I see all services up & running:

[root@bangvmplAPGEDGE ~]# /opt/apigee/apigee-service/bin/apigee-all status
+ apigee-service apigee-cassandra status
apigee-service: apigee-cassandra: OK
+ apigee-service apigee-openldap status
apigee-service: apigee-openldap: OK
+ apigee-service apigee-zookeeper status
apigee-service: apigee-zookeeper: OK
+ apigee-service edge-management-server status
apigee-service: edge-management-server: OK
+ apigee-service edge-message-processor status
apigee-service: edge-message-processor: OK
+ apigee-service edge-router status
apigee-service: edge-router: OK
+ apigee-service edge-ui status
apigee-service: edge-ui: OK

Thanks,

Basavaraj

Not applicable

Looks like host2 is not able to connect to host1 to get the data from zookeeper. Can you please make sure that all the necessary ports are open from host1 to connect to host2?

Thanks,

Archendra