I need to migrate the sonarqube database and it’s not possible to upgrade now. We will the upgrade for next month. Could you please help to migrate the database now.
We are using the enterprise edition 8.4.1 in both the Sonarqube environments.
Your third screenshot indicates your export is named gsk-tech_ch-api-portal.zip (I guess. It’s cut off.) Your first screenshot indicates you have a file in the correct directory named target.zip. Your middle screenshot indicates that SonarQube can’t find a correctly named zip to import.
Somewhere in there it looks like your zip file got renamed…
We didn’t re-named the file anywhere. While exporting the file from source named as target.zip file and imported the file in same path shown in document but unable to import the project file in Sonarqube UI. We used same project key and project name in both source and target sonarqube UI. I followed the 8.4 version documention prior to start this activity. You have also suggested this option in different mail thread last week.
Please assist on where we renamed the file and if file got renamed where I need to check it.
I’m unable to import the file from server stating “master” branch has not been analyzed yet and you have multiple branches already. It looks like it is not your Main Branch, check your configuration.
Please refer the attached screen shots and advise how to move these type of projects from source UI to target UI.
Have you checked the docs on this? You’re supposed to be importing into a provisioned, but otherwise empty project on the target server. The problem is just what the error message tells you:
If you really want to import this into the target server, you’ll need to delete the project there, re-configure it and then do the import without doing any analyses first.
Yes, There are multiple branches in other projects as well and am able to import those projects now. Only this project, I’m unable to move to target server.
→ If i delete the project from the source server and re-configure it means will not have the project data available in the source server right? because we have migrated that github repo to different organization so we do not have repo available in github source. Please assist me how to move this project.
Please go to the docs I linked earlier and step through them.
Since we’re dealing with a version that’s long past EOL, that’s really all I can say. If that doesn’t work, then you’ll need to upgrade both the source and target instances and try again.
It’s giving me the same error(attached in my earlier messages) even after deleting the project and imported the project again. I have followed as per documentation to move the projects. Only projects which is in “failed” status unable to move it. Remaining projects which is in “passed” status able to move it.