We are using Bitbucket 5.16.11 on Windows Server with SQL Server Database, we migrated the server from a different location and everything seems to be working fine but we get these error on the logs:
2020-04-23 14:52:06,901 ERROR [AtlassianEvent::thread-2] xxxx@xxxxx.com KTBNCRx892x3993x0 xx.xx.xx.xx "POST /scm/max/max.git/git-receive-pack HTTP/1.1" c.a.s.i.e.AsyncBatchingInvokersTransformer There was an exception thrown trying to dispatch event 'com.atlassian.stash.internal.event.AnalyticsRepositoryPushEvent[source=com.atlassian.stash.internal.hook.SystemPostRepositoryHook@2b9bfea7]' for the invoker 'SingleParameterMethodListenerInvoker{method=public void com.atlassian.bitbucket.internal.branch.analytics.AnalyticsBranchTypeListener.onRepositoryPushEvent(com.atlassian.bitbucket.event.repository.RepositoryPushEvent), listener=com.atlassian.bitbucket.internal.branch.analytics.AnalyticsBranchTypeListener@6b52dd83} (monitored)'
java.lang.RuntimeException: There was a SQL exception thrown by the Active Objects library:
Database:
- name:Microsoft SQL Server
- version:14.00.3223
- minor version:0
- major version:14
Driver:
- name:Microsoft JDBC Driver 6.0 for SQL Server
- version:6.0.7507.100
com.microsoft.sqlserver.jdbc.SQLServerException: Cannot insert the value NULL into column 'ID', table 'BITBUCKET.dbo.AO_xxxD7B_BRANCH_MODEL_CONFIG'; column does not allow nulls. INSERT fails.. Listener: com.atlassian.bitbucket.internal.branch.analytics.AnalyticsBranchTypeListener event: com.atlassian.stash.internal.event.AnalyticsRepositoryPushEvent
at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke..
... frames omitted
Caused by: com.atlassian.activeobjects.internal.ActiveObjectsSqlException: There was a SQL exception thrown by the Active Objects library:
Database:
- name:Microsoft SQL Server
- version:14.00.3223
- minor version:0
- major version:14
Driver:
- name:Microsoft JDBC Driver 6.0 for SQL Server
- version:6.0.7507.100
com.microsoft.sqlserver.jdbc.SQLServerException: Cannot insert the value NULL into column 'ID', table 'BITBUCKET.dbo.AO_xxxD7B_BRANCH_MODEL_CONFIG'; column does not allow nulls. INSERT fails.
... frames omitted
Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: Cannot insert the value NULL into column 'ID', table 'BITBUCKET.dbo.AO_xxxD7B_BRANCH_MODEL_CONFIG'; column does not allow nulls. INSERT fails.
... frames omitted
Checked the SET NOCOUNT and it's OFF for the database, any ideas on how to solve this?