Sonar cloud and Atlassian Datacenter

Hi!
Previously we used a cloud solution from atlassian and our our integration worked great
But we migrated to Atlassian Datacenter, and Bitbucket repos now it is not cloud-based, but deployed on our infrastructure
Part of old bitbucket accounts I migrated to github
But now, I cannot to connect our repositories. Is it enable in cloud version, or now We need to migrate to Server version of Sonar?

While SonarQube Cloud can analyze code hosted anywhere (just point the scanner to SonarCloud.io), it only officially integrates with BitBucket Cloud (easy project onboarding, Pull Request decoration). Future improvements (like Automatic Analysis for Bitbucket) will also require using Bitbucket Cloud.

Most of our customers who use on-prem DevOps platforms, or a mix of on-prem and cloud, are using SonarQube Server.

Do you have some tutorial for new projects for this case? Because when I trying to add new project, I have to choose from Github repositories (because I use Github account)

We tried to run our scan as is, but got an error:

15:51:57  [ERROR] ScannerEngine: Could not find a default branch for project with key 'projectname_payment_service'. Make sure project exists.
15:51:58  [ERROR] Bootstrapper: An error occurred: Error: Scanner engine failed with code 1

You’ll have to create a project manually.