Symptoms:
[UUID] org.hibernate.exception.GenericJDBCException: Cannot release connection - Cannot release connection - Uncaught underlying exception.
/opt/vmware/vcloud-director/logs/vcloud-container-debug.log
, entries similar to the following are logged:org.hibernate.HibernateException: org.hibernate.exception.GenericJDBCException: Cannot release connection
at com.vmware.vcloud.common.persist.Conversation.monitor(Conversation.java:583)
This is a known issue affecting VMware Cloud Director 10.3.X.
The issue is resolved in VMware Cloud Director 10.4.X, available at VMware By Broadcom Downloads.
If you cannot upgrade to VMware Cloud Director 10.4.X, please use the workaround specified in the Workaround section below.
Workaround:
/opt/vmware/vcloud-director/bin/cell-management-tool manage-config -n jms.cluster.discoveryMechanism -v TABLE
/opt/vmware/vcloud-director/bin/cell-management-tool manage-config -n database.pool.jdbcInterceptors -v "com.vmware.vcloud.common.datasource.CustomJdbcInterceptor;com.vmware.vcloud.common.datasource.ConnectionStateInterceptor;com.vmware.vcloud.common.datasource.QueryTimeOutInterceptor(queryTimeout=20000)"
systemctl restart vmware-vcd
Please note: When upgrading to VCD 10.4.X, these configurations will need to be removed.
To remove these configurations, please run the below commands to reset Cloud Director to the default settings:
/opt/vmware/vcloud-director/bin/cell-management-tool manage-config -n jms.cluster.discoveryMechanism -d
/opt/vmware/vcloud-director/bin/cell-management-tool manage-config -n database.pool.jdbcInterceptors -d