You're viewing **Apigee Edge** documentation.  
[Go to the
**Apigee X** documentation](http://cloud.google.com/apigee/docs/hybrid/v1.8/ts-message-processor). info

> [!NOTE]
> **Note:** This topic applies to Edge Private Cloud only.


These topics explain how to troubleshoot issues with ZooKeeper such as connection loss errors.

## ZooKeeper connection loss errors


Sometimes the Edge components such as Message Processors and Management Servers may lose
connectivity with ZooKeeper. This can lead to issues such as API Proxy deployment errors,
Management API failures, and so on.

### Playbooks


This section provides information and guidance on some specific procedures that can be
followed for troubleshooting and resolving ZooKeeper connection loss errors.

| Problem | Error message in logs | Playbook |
|---|---|---|
| ZooKeeper connection loss errors | You may see the following error in Router or Message Processor logs: ` org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss at org.apache.zookeeper.KeeperException.create(KeeperException.java:99) ~[zookeeper-3.4.6.jar:3.4.6-1569965]` or You might see the following error while deploying an API proxy in the New Edge UI: ` Error Fetching Deployments Error while checking path existence for path: PATH` | [ZooKeeper Connection Loss Errors](https://docs.apigee.com/api-platform/troubleshoot/zookeeper/zookeeper-connection-loss-errors) |

### Diagnostic information


If you need assistance from
[Apigee Support](https://cloud.google.com/apigee/support) on the ZooKeeper
connection loss errors, then gather the following diagnostic information and share it in
the support case:

| Diagnostic information | Location | How do I gather this information? |
|---|---|---|
| ZooKeeper health check commands | ZooKeeper | ``` echo "ruok" | nc localhost 2181 | tee /tmp/zookeeper_NODE#_ruok_$(hostname)-$(date +%Y.%m.%d_%H.%M.%S).txt ``` ``` echo srvr | nc localhost 2181 | tee /tmp/zookeeper_NODE#_srvr_$(hostname)-$(date +%Y.%m.%d_%H.%M.%S).txt ``` ``` echo mntr | nc localhost 2181 | tee /tmp/zookeeper_NODE#_mntr_$(hostname)-$(date +%Y.%m.%d_%H.%M.%S).txt ``` ``` echo stat | nc localhost 2181 | tee /tmp/zookeeper_NODE#_stat_$(hostname)-$(date +%Y.%m.%d_%H.%M.%S).txt ``` ``` echo cons | nc localhost 2181 | tee /tmp/zookeeper_NODE#_cons_$(hostname)-$(date +%Y.%m.%d_%H.%M.%S).txt ``` > [!NOTE] > **Note:** Replace <var translate="no">NODE#</var> with 1, 2 and so on. You need to repeat the above steps for each of the ZooKeeper nodes in the specific data center. |
| ZooKeeper logs and associated files | ZooKeeper | ``` tar cvzf /tmp/zookeeper_logs_$(hostname)_$(date +%Y.%m.%d_%H.%M.%S).tar.gz /opt/apigee/var/log/apigee-zookeeper/*.log /opt/apigee/apigee-zookeeper/conf/zoo.cfg /opt/apigee/data/apigee-zookeeper/data/myid ``` <br /> |
| Compress all the diagnostic data | ZooKeeper | ``` tar -cvzf /tmp/data_CASE#_$(hostname).tar.gz /tmp/zookeeper_* ``` > [!NOTE] > **Note:** Replace <var translate="no">CASE#</var> with the specific case number for which you are providing these documents. |