apigee edge private cloud installation - apigee-service exited with unexpected status 1

Hi I'm trying to install Apigee edge ( 5node cluster) as per the installation instructions 

https://docs.apigee.com/private-cloud/v4.51.00/install-edge-components-node

 

Here is my config file : apigee.cfg

IP1=192.168.25.10
IP2=192.168.25.11
IP3=192.168.25.12
IP4=192.168.25.13
IP5=192.168.25.14
HOSTIP=$(hostname -i)
ENABLE_SYSTEM_CHECK=y
ENABLE_DYNAMIC_HOSTIP=n
ADMIN_EMAIL=adminuser@lab.local
APIGEE_ADMINPW=AdminPwd!
LICENSE_FILE=/root/apigee/config/license.txt
MSIP=$IP1
USE_LDAP_REMOTE_HOST=y
LDAP_HOST=adserver.lab.local
LDAP_PORT=389
APIGEE_LDAPPW=AdminPwd!
LDAP_TYPE=1
MP_POD=gateway
REGION=dc-1
ZK_HOSTS="$IP1 $IP2 $IP3"
ZK_CLIENT_HOSTS="$IP1 $IP2 $IP3"
CASS_CLUSTERNAME=Apigee
CASS_HOSTS="$IP1 $IP2 $IP3"
PG_USER=apigee
PG_PWD=postgres
PG_MASTER=$IP4
PG_STANDBY=$IP5
SKIP_SMTP=n
SMTPHOST=mail.lab.local
SMTPUSER=apigeegw@mail.lab.local
SMTPPASSWORD=MailPwd!
SMTPSSL=n
SMTPPORT=25
SMTPMAILFROM="Apigee API Gateway <apigeegw@mail.lab.local>"

I was able to install the following command successfully 

/opt/apigee/apigee-setup/bin/setup.sh -p ds -f  apigee.cfg

Both cassandra and zookeeper installed successfully on all 3 nodes (node 1, 2 and 3)

 

I'm tying to install management server using 

opt/apigee/apigee-setup/bin/setup.sh -p ms -f apigee.cfg

Everything seems to be going well but it fails with the following error, 

 

Dependencies resolved.
Nothing to do.
Complete!
Validating setup variables
Checking for required variables
Checking required variable ZK_HOSTS...OK
Checking required variable ZK_CLIENT_HOSTS...OK
Checking required variable CASS_HOSTS...OK
Checking required variable HOSTIP...OK
Checking required variable MSIP...OK
Checking required variable REGION...OK
Checking required variable ADMIN_EMAIL...OK

Checking for optional variables
Found optional variable LICENSE_FILE...File does not exist
Found optional variable APIGEE_ADMINPW...OK
Found optional variable APIGEE_LDAPPW...OK
Found optional variable LDAP_PORT...OK
Found optional variable APIGEE_PORT_HTTP_MS...OK
Found optional variable MP_POD...OK
Error: setup.sh: /opt/apigee/apigee-service/bin/apigee-service exited with unexpected status 1

 

can't seem to workout what the problem was, would you guys be able to help?

Solved Solved
1 2 501
1 ACCEPTED SOLUTION

Thx mate, its actually file permission issue. I didn't realise the folder in which I placed the license file has incorrect permissions. Had to ensure the user I'm running the install command under has access to the license file.

View solution in original post

2 REPLIES 2

Did you get a chance to check more information in /opt/apigee/var/log/edge-management-server/system.log ?

License file is required for for management-server component.

==

Found optional variable LICENSE_FILE...File does not exist

==

Good luck.

Thx mate, its actually file permission issue. I didn't realise the folder in which I placed the license file has incorrect permissions. Had to ensure the user I'm running the install command under has access to the license file.