"Operation aborted due to an unexpected error." message when re-enabling the Tunnel after making a certificate change in vCloud Availability 3.0
search cancel

"Operation aborted due to an unexpected error." message when re-enabling the Tunnel after making a certificate change in vCloud Availability 3.0

book

Article ID: 314983

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

Symptoms:
  • After replacing either the vApp Replication Manager or Tunnel certificate in a vCloud Availability cloud site, when you re-enable the tunnel it fails with the error:
Operation aborted due to an unexpected error.
  • In the /opt/vmware/h4/cloud/log/cloud.log file on the vApp Replication Manager, you see a similar error:
2019-05-06 14:16:49.846 ERROR - [UI__f86e64c7-9454-4996-84d0-8bd589578c5e_gF] [https-jsse-nio-8443-exec-4] c.v.h.c.c.error.ExceptionAdvisorBase : A POST request from root[192.168.1.51] to /config/tunnel-service failed.

com.vmware.vdr.error.exceptions.GenericServerException: Operation aborted due to an unexpected error.
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        ...
  • In the /opt/vmware/h4/tunnel/log/tunnel.log file on the vCloud Availability Tunnel, you see a similar error:
2019-05-06 14:16:52.952 ERROR - [6840d031-96d0-4d0a-9c45-617a23129896_lM] [https-jsse-nio-8047-exec-7] c.v.h.c.c.error.ExceptionAdvisorBase : A POST request from null[192.168.1.62] to /api-client-auth failed.

org.springframework.transaction.TransactionSystemException: Could not commit JPA transaction; nested exception is javax.persistence.RollbackException: Error while committing the transaction
        ...
Caused by: javax.persistence.RollbackException: Error while committing the transaction
        ...
Caused by: java.lang.NullPointerException: null
        at org.hibernate.type.LongType.next(LongType.java:62)
        at org.hibernate.type.LongType.next(LongType.java:23)
        at org.hibernate.engine.internal.Versioning.increment(Versioning.java:92)
        ...

Note: The preceding log excerpts are only examples. Date, time, and environmental variables may vary depending on your environment.

Environment

VMware vCloud Availability 3.0.x

Cause

This issue occurs because the vApp Replication Manager authentication information cannot be updated in the Tunnel database due to a missing value in the respective database table. After making a certificate change in vCloud Availability, when you attempt to re-enable the tunnel the vApp Replication Manager authentication information may need to be updated resulting in this issue.

Resolution

This is a known issue in vCloud Availability 3.0.
Currently, there is no resolution


Workaround:
To work around this issue, contact VMware Support and note this Article ID (68066) in the problem description. For more information, see How to Submit a Support Request.

Additional Information

For more information on certificates in vCloud Availability cloud site, see the Certificate Management in VMware vCloud Availability section of the vCloud Availability documentation.