SCM provider autodetection failed. Please use "sonar.scm.provider" to define SCM of your project, or disable the SCM Sensor in the project settings

my linux system Ubuntu 18.04.5 , SonarQube 9 version , error “SCM provider autodetection failed. Please use “sonar.scm.provider” to define SCM of your project, or disable the SCM Sensor in the project settings”

/opt/sonarqube/conf/sonar.properties

sonar.jdbc.username=sonar
sonar.jdbc.password=password
sonar.jdbc.url=jdbc:postgresql://localhost/sonarqube
sonar.search.javaOpts=-Xmx512m -Xms512m -XX:+HeapDumpOnOutOfMemoryError

########### OPTIONAL USE ONLY #############
#sonar.jdbc.username=sonar
#sonar.jdbc.password=sonar
#sonar.jdbc.url=jdbc:postgresql://localhost/sonarqube
#sonar.web.host=127.0.0.1
#sonar.web.port=9000
#sonar.web.javaAdditionalOpts=-server
#sonar.search.javaOpts=-Xmx512m -Xms512m -XX:+HeapDumpOnOutOfMemoryError
#sonar.log.level=INFO
#sonar.path.logs=logs
###########################################

/opt/sonar-scanner/conf/sonar.properties
#----- Default SonarQube server
sonar.host.url=http://localhost:9000

#sonar.projectKey: key name you gave when you created the project.
sonar.projectKey=test

#----- Default source code encoding
sonar.sourceEncoding=UTF-8

#sonar.sources: path to the project to analyze.
sonar.sources=/home/user/project

#sonar.login: SonarQube authentication token.
sonar.login=630671392ed51eac436cadae1c2b9881b10fd3be

project path >> root@ubuntu:/home/user/project <<

vim /etc/profile
SONAR_RUNNER_HOME=/opt/sonar-scanner/bin
PATH=$SONAR_RUNNER_HOME/bin:$PATH
export SONAR_RUNNER_HOME
export PATH

It’s just a warning because the SonarQube Scanner tries to get some info from the SCM. The directory contains a git/SVN repository?

But why are you trying to analyze an empty directory?

INFO: Project root configuration file: NONE
Create a configuration file in the root directory of the project: sonar-project.properties
sonar-project.properties
Does the picture mean?

project path = /home/user/project/src (include code)