as a preface, I'm not super knowledgeable on Bitbucket or Linux.
The issue is that I am currently trying to start up a new Bitbucket server. With Windows support ending we are leaving our SQL database in place but shutting down the old bitbucket windows server and starting a Linux server. I followed the guide at (https://confluence.atlassian.com/bitbucketserver/migrate-bitbucket-server-from-windows-to-linux-1128304336.html). When I open the web page to setup the new server I give it all the proper information but get the following error:
The target database contains tables whose names collide with Bitbucket's tables. Please migrate to a clean, empty database. For more information about creating a database for use with Bitbucket, please refer to the Bitbucket documentation.
If you continue having issues, get in touch with our support team and we'll help get you up and running.
The target database contains tables whose names collide with Bitbucket's tables. Please migrate to a clean, empty database. For more information about creating a database for use with Bitbucket, please refer to the Bitbucket documentation. com.atlassian.stash.internal.db.DefaultDatabaseManager.validateConfiguration(DefaultDatabaseManager.java:227) com.atlassian.stash.internal.migration.DefaultDatabaseMigrationService.validateConfiguration(DefaultDatabaseMigrationService.java:85) sun.reflect.GeneratedMethodAccessor745.invoke(Unknown Source) ...
I've clearly missed something or it would have worked but I cant figure out where I went wrong. I can provide any additional information you might need. Thank you for the help.
Hi @jcathey87welcome to the Atlassian community!
When I open the web page to setup the new server I give it all the proper information but get the following error.
So you instlalled the new Bitbucket instance on Linux and start it right away?
If the database settings are not in the bitbucket.properties file yet Bitbucket will show you the setup wizard in the browser and that one is only meant for empty installations.
Step 5 under On target Linux Server says to update the bitbucket.properties. In step 6 you start Bitbucket and you should not be getting the setup wizard.
I don't know whether you moved the database to another DB server too but make sure you have the right settings in bitbucket.properties.
Hope this helps!
@Charlie Misonne I believe this was the issue. I had already started bitbucket when it prompted during the install. I then shut it down and adjusted the properties file. I'm a bit confused on some wording in the instructions am I supposed to copy the bitbucket directory from windows to linux first? or is changing the properties file enough for the new server to connect and have the information it needs. We are not moving the database it is on a seperate server that isnt being touched in this process.
Thank you so much for the help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You need to copy the so called "Bitbucket home" directory containing all the git repositories, the bitbucket.properties, ... And you don't have to copy the install directory because you perform a fresh install on the target server.
Copying the home directory is explained in more detail on Migrating Bitbucket Data Center to another server (step 3)
If you only adapt the bitbucket.properties file to point to your database but you don't copy the contents of bitbucket home you will not have any of the git repositories (they'll probably be empty). Source Code (GIT) is kept on disk, not in the database.
Does this answer your question? :-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Glad I could help!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.