Hi,
I have an issue deleting old repos/projects on a Bitbucket server (version 7.21).
We get the "A database error has occurred" and the following in the atlassian-bitbucket.log:
2023-03-10 16:15:11,491 INFO [http-nio-127.0.0.1-7990-exec-5] .... "DELETE /projects/BTP/repos/pipeline-library HTTP/1.1" o.h.e.i.DefaultLoadEventListener HHH000327: Error performing load command
org.hibernate.InstantiationException: Cannot instantiate abstract class or interface: : com.atlassian.stash.internal.user.InternalApplicationUser
...
2023-03-10 16:15:11,501 DEBUG [http-nio-127.0.0.1-7990-exec-5] ... "DELETE /projects/BTP/repos/pipeline-library HTTP/1.1" c.a.s.i.r.e.ServiceExceptionMapper Mapping ServiceException to REST response 500
com.atlassian.bitbucket.DataStoreException: A database error has occurred.
at com.atlassian.stash.internal.aop.ExceptionRewriteAdvice.afterThrowing(ExceptionRewriteAdvice.java:47)
at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26)
...
Caused by: org.hibernate.InstantiationException: Cannot instantiate abstract class or interface: : com.atlassian.stash.internal.user.InternalApplicationUser
I would highly appreciate any hint on how to fix this, thank you!