Install failed, dead zookeeper

samuelucich
Participant IV

Hi,

First attempt to install All In One configuration. Not sure why setup.sh is not using the IP addr specified in the sa_silent_config.txt file, and using HOSTIP instead...seems strange.

This is the console output...

[root@localhost tmp]# /opt/apigee/apigee-setup/bin/setup.sh -p aio -f sa_silent_config.txt
INFO: running setup as root
INFO: changing log location to /tmp/setup-root.log
Using defaults from sa_silent_config.txt
setup.sh: Info: Check for system requirements is not enabled.
setup.sh: Proceeding with HOSTIP ::1 127.0.0.1
Service setup apigee-zookeeper
calling sudo on downgrade
Checking if downgrade is required for apigee-zookeeper
Downgrade isn't required for apigee-zookeeper
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
 * base: mirrors.advancedhosters.com
 * epel: mirror.us.leaseweb.net
 * extras: mirrors.mit.edu
 * updates: mirror.math.princeton.edu
60 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package apigee-zookeeper.noarch 0:3.4.5-0.0.957 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
 Package               Arch        Version            Repository           Size
================================================================================
Installing:
 apigee-zookeeper      noarch      3.4.5-0.0.957      apigee-release       16 M
Transaction Summary
================================================================================
Install  1 Package
Total download size: 16 M
Installed size: 35 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : apigee-zookeeper-3.4.5-0.0.957.noarch                        1/1
  Verifying  : apigee-zookeeper-3.4.5-0.0.957.noarch                        1/1
Installed:
  apigee-zookeeper.noarch 0:3.4.5-0.0.957
Complete!
/opt/apigee/apigee-setup/bin/setup.sh: line 395: 127.0.0.1: command not found
apigee-service: apigee-zookeeper: apigee-zookeeper is not running
apigee-configutil: apigee-zookeeper: # OK
apigee-service: apigee-zookeeper: Not running (NO_LOCKFILE)
apigee-service: apigee-zookeeper: status=2, continuing
apigee-service: apigee-zookeeper: Not running (DEAD)
apigee-service: apigee-zookeeper: status=3, continuing
apigee-service: apigee-zookeeper: Not running (DEAD)
apigee-service: apigee-zookeeper: apigee-zookeeper is dead
Error: setup.sh: /opt/apigee/apigee-service/bin/apigee-service exited with unexpected status 3
0 4 718
4 REPLIES 4

Not applicable

Hi @samuel ucich,

The installation process uses the value of the HOST_IP to do the setup in each node, in this case is the same for all components. The other values, IP1..., are used for later CS/ZK setup. You are seeing this error with ZK because is the first component to be installed but the error is that, in general, the setup is resolving the HOST_IP to 127.0.0.1.

You can use:

  • HOST_IP=$(hostname -i), if it resolves to the internal IP
  • HOST_IP=xx.xx.xx.xx, the internal IP
  • HOST_IP=$IP1, if IP1 is set before in the file or other env var.

yep...i changed HOSTIP = the internal IP, and i'm past that error...thanks!

If you are using "hostname -i" in your response file, if may be returning multiple addresses. Check /etc/hosts to see whether you have multiple entries for the host's name. If so, you may need to clean up your hosts file or use an alternate method to determine the proper IP address.

https://docs.apigee.com/release-notes/content/41709-edge-private-cloud-release-notes

4.17.09 has added this property and may help:

ENABLE_DYNAMIC_HOSTIP=y