I’m getting the following issues on edge-ms server installation.
Java version “1.7.0_101”
Apigee : 4.16.01
IP1=172.xx.xx.xx HOSTIP=$(hostname -i) ADMIN_EMAIL=xxx@xxx.com APIGEE_ADMINPW=Secret123 LICENSE_FILE=/opt/apigee/license.txt MSIP=$IP1 APIGEE_PORT_HTTP_MS=8080 LDAP_TYPE=1 LDAP_SID=1 APIGEE_LDAPPW=Secret123 BIND_ON_ALL_INTERFACES=y MP_POD=gateway REGION=dc-1 ZK_HOSTS=“$IP1” ZK_CLIENT_HOSTS=“$IP1” CASS_HOSTS=“$IP1” SKIP_SMTP=n
/opt/apigee/apigee-setup/bin/setup.sh -p sa -f configFile
I hope that this is not port related issue.
…
..
Connected to: “Apigee” on 172.xx.xx.xx/9160 Connected to: “Apigee” on 172.xx.xx.xx/9160 Keyspace: user_settings Column Family: user_settings Updating Keyspace: user_settings update KEYSPACE user_settings WITH placement_strategy = ‘NetworkTopologyStrategy’ AND strategy_options={dc-1:1}; Server is already stopped. apigee-configutil: edge-management-server: # OK apigee-service: edge-management-server: Not running (NO_LOCKFILE) apigee-service: edge-management-server: status=2, continuing apigee-service: edge-management-server: OK apigee-service: edge-management-server: edge-management-server is running Checking for management-server on 127.0.0.1 port 8080 … OK Checking for management-server uuid 0ff83bb9-790d-44fc-a13d-60bb4098a316 Checking if management-server is up . Unable to connect to management-server on http://127.0.0.1:8080 Error: setup.sh: /opt/apigee/apigee-service/bin/apigee-service exited with unexpected status 1
I have checked the log in edge-management-server
/opt/apigee/var/log/edge-management-server/system.log
016-07-25 13:45:40,211 main INFO CLUSTER - ClusterServiceImpl.start() : Registering to join a cluster with servers of type management-server 2016-07-25 13:45:40,221 qtp544996803-41 ERROR REST - CustomJAXRSInvoker.performInvocation() : CustomJAXRSInvoker.performInvocation : Method com.apigee.registration.RegistrationManagementAPI.isServerCompletelyUp threw an exception. 2016-07-25 13:45:40,223 qtp544996803-41 ERROR REST - ExceptionMapper.toResponse() : Error occurred : Service not up yet. com.apigee.registration.ServersAPI.isServerCompletelyUp(ServersAPI.java:103) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)..
..
2016-07-25 13:45:40,478 Timer-0 INFO SERVICE.LICENSE - ScheduledLicenseValidator.run() : Stopping management server as No license found !!! 2016-07-25 13:45:40,479 Timer-0 INFO KERNEL.DEPLOYMENT - ServiceDeployer.stopService() : ServiceDeployer.unDeploy() : Successfully stopped the service : ServerBindService 2016-07-25 13:45:40,479 Timer-0 INFO KERNEL.DEPLOYMENT - ServiceDeployer.stopService() : ServiceDeployer.unDeploy() : Successfully stopped the service : ServerRegistrationService 2016-07-25 13:45:40,480 Timer-0 INFO KERNEL.DEPLOYMENT - ServiceDeployer.stopService() : ServiceDeployer.unDeploy() : Successfully stopped the service : RepositoryService 2016-07-25 13:45:40,481 main ERROR KERNEL.DEPLOYMENT - ServiceDeployer.startService() : ServiceDeployer.deploy() : Got a life cycle exception while starting service [UserService, null] : {} java.lang.NullPointerException: null at com.apigee.services.repository.zookeeper.ZKRepository.createDirectory(ZKRepository.java:69) ~[repository-impl-1.0.0.jar:na] at com.apigee.services.repository.RepositoryServiceImpl.createDirectory(RepositoryServiceImpl.java:204) ~[repository-impl-1.0.0.jar:na] at com.apigee.registration.events.WatcherBasedDispatcher.ensureTypePathExists(WatcherBasedDispatcher.java:46) ~[registration-1.0.0.jar:na]…
…
2016-07-25 13:45:40,483 main ERROR KERNEL - MicroKernel.deployAll() : MicroKernel.deployAll() : Error in deploying the deployment : ZooKeeperService com.apigee.kernel.exceptions.spi.UncheckedException: Starting of Service UserService failed unexpectedly..
..
Caused by: java.lang.NullPointerException: null at com.apigee.services.repository.zookeeper.ZKRepository.createDirectory(ZKRepository.java:69) ~[repository-impl-1.0.0.jar:na]