No route to host (Host unreachable) error

You find a Host unreachable error in the ipm.log file.

Symptoms

You encounter following error message while opening socket to the server (dbserver.somedomain.com/xx.xx.xx.xx) on port 52,332 in the ipm.log file of the Admin UI pod.

No route to host (Host unreachable)

Causes

The error indicates a database connection issue.

Resolving the problem

As a workaround, perform this step to ensure you are connected to the database:
  1. Verify whether database connection is getting established in your environment. You can run the following commands to test the database connection.
    kubectl exec -it <pod name> -- /bin/bash
    source /home/default/.bash_profile
    cd $TOP/bin/
    ./test_db.sh