Troubleshooting init pods

OneDB uses init containers to perform setup functions before a specific pod is fully functional. When a pod is in the init state you can run a kubectl logs command to get information about the pod. When running the kubectl logs command on an init-container you need to know the name of the init-container. This can be obtained from the kubectl describe command.
Once you find the name of the init container, you can run a kubectl logs command. You specify the pod and the name of the init container in the kubectl logs command.
kubectl logs sofy-1-odbp-mongo-6f6df887df-gn896 –c onedb-mongo-init 
Below is a sample output and we can see there is a problem connecting to the OneDB Database server.
Running Main 

SQL Service Test Unsuccessful. Server not ready 
-908 : com.informix.asf.IfxASFException: Attempt to connect to database server (null) failed. 
SQL Service Test Unsuccessful. Server not ready 
-908: com.informix.asf.IfxASFException: Attempt to connect to database server (null) failed. 
SQL Service Test Unsuccessful. Server not ready 
-908: com.informix.asf.IfxASFException: Attempt to connect to database server (null) failed. 
SQL Service Test Unsuccessful. Server not ready 
-908: com.informix.asf.IfxASFException: Attempt to connect to database server (null) failed. 
SQL Service Test Unsuccessful. Server not ready 
-908: com.informix.asf.IfxASFException: Attempt to connect to database server (null) failed. 
SQL Service Test Unsuccessful. Server not ready 
-908: com.informix.asf.IfxASFException: Attempt to connect to database server (null) failed. 
SQL Service Test Unsuccessful. Server not ready 
-908: com.informix.asf.IfxASFException: Attempt to connect to database server (null) failed. 
SQL Service Test Unsuccessful. Server not ready 
-908: com.informix.asf.IfxASFException: Attempt to connect to database server (null) failed. 
SQL Service Test Unsuccessful. Server not ready 
-908: com.informix.asf.IfxASFException: Attempt to connect to database server (null) failed. 
SQL Service Test Unsuccessful. Server not ready 
-908: com.informix.asf.IfxASFException: Attempt to connect to database server (null) failed.