Bitbucket DB configuration issue Edited

Hi - trying to go through the migration process for BB server, and am stuck in a loop configuring SQL Server 2014. Here is the error dump:

Bitbucket could not be migrated to the new database. Some data may have already been written to the new database leaving it in an inconsistent state. You will need to empty or recreate the new database before trying again.
	com.atlassian.stash.internal.maintenance.migration.DatabaseMigrationTask.convertToMigrationException(DatabaseMigrationTask.java:86)
	com.atlassian.stash.internal.maintenance.migration.DatabaseMigrationTask.run(DatabaseMigrationTask.java:51)
	com.atlassian.stash.internal.maintenance.DefaultMaintenanceTaskMonitor.run(DefaultMaintenanceTaskMonitor.java:212)
	...
Failed to execute change: Deletes data from an existing table; nested exception is liquibase.exception.DatabaseException: Invalid object name 'db_owner.sta_permission_type'. [Failed SQL: DELETE FROM [db_owner].[sta_permission_type]]
	com.atlassian.stash.internal.backup.liquibase.DefaultLiquibaseDao.applyChange(DefaultLiquibaseDao.java:352)
	com.atlassian.stash.internal.backup.liquibase.DefaultLiquibaseDao.deleteAllRows(DefaultLiquibaseDao.java:171)
	com.atlassian.stash.internal.backup.liquibase.DatabaseUpdater.onChangesetContent(DatabaseUpdater.java:57)
	...
Invalid object name 'db_owner.sta_permission_type'. [Failed SQL: DELETE FROM [db_owner].[sta_permission_type]]
	liquibase.executor.jvm.JdbcExecutor$ExecuteStatementCallback.doInStatement(JdbcExecutor.java:309)
	liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:55)
	liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:113)
	...
Invalid object name 'db_owner.sta_permission_type'.
	com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java:217)
	com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(SQLServerStatement.java:1655)
	com.microsoft.sqlserver.jdbc.SQLServerStatement.doExecuteStatement(SQLServerStatement.java:885)
	...

 

1 answer

Nevermind! I found the answer.

Can you elaborate? I have the same error.

Dawn Reed I'm New Here May 01, 2018

Hi, we're no longer using BB. I wasn't sure how to remove my question. Good luck to you!

The solution is to set the default schema of the database user to dbo.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

25,990 views 26 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you