sonar报错,没有扫描结果

我添加过汉化1.23,重启sonar,web端无法汉化,页面scm已开启,是否是配置原因,还是我版本问题。


版本:
sonar-scanner-4.6.1.2450-windows
sonarqube-7.3
mysql-5.7.34-winx64
sonar.properties配置:

sonar-scanner.properties配置:

sonar-project.properties配置:
source换成绝对路径D:\Users\shuch\PycharmProjects\python_Project1 同样提示:Project root configuration file: NONE

日志报错:
C:\Users\shuch>sonar-scanner.bat -Dsonar.projectKey=Guns -Dsonar.sources=. -Dsonar.host.url=http://localhost:11000 -Dsonar.login=39629f01a7c4f8830a007ce0318e24429828d14e
INFO: Scanner configuration file: D:\Program Files\sonar-scanner-4.6.1.2450-windows\bin…\conf\sonar-scanner.properties
INFO: Project root configuration file: NONE
INFO: SonarScanner 4.6.1.2450
INFO: Java 11.0.3 AdoptOpenJDK (64-bit)
INFO: Windows 10 10.0 amd64
INFO: User cache: C:\Users\shuch.sonar\cache
INFO: Scanner configuration file: D:\Program Files\sonar-scanner-4.6.1.2450-windows\bin…\conf\sonar-scanner.properties
INFO: Project root configuration file: NONE
INFO: Analyzing on SonarQube server 7.3.0
INFO: Default locale: “zh_CN”, source code encoding: “UTF-8”
INFO: Publish mode
INFO: Load global settings
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.protobuf.UnsafeUtil (file:/C:/Users/shuch/.sonar/cache/da9310bb9fdabea7c7071706af6a955b/sonar-scanner-engine-shaded-7.3-all.jar) to field java.nio.Buffer.address
WARNING: Please consider reporting this to the maintainers of com.google.protobuf.UnsafeUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
INFO: Load global settings (done) | time=73ms
INFO: Server id: 49B321BC-AXmmnGvkNj2yR83LIX4B
INFO: User cache: C:\Users\shuch.sonar\cache
INFO: Load/download plugins
INFO: Load plugins index
INFO: Load plugins index (done) | time=79ms
INFO: Load/download plugins (done) | time=112ms
INFO: Loaded core extensions:
INFO: Process project properties
INFO: Load project repositories
INFO: Load project repositories (done) | time=192ms
INFO: Load quality profiles
INFO: Load quality profiles (done) | time=59ms
INFO: Load active rules
INFO: Load active rules (done) | time=616ms
INFO: Load metrics repository
INFO: Load metrics repository (done) | time=29ms
INFO: Project key: Guns
INFO: Project base dir: C:\Users\shuch
INFO: ------------- Scan Guns
INFO: Base dir: C:\Users\shuch
INFO: Working dir: C:\Users\shuch.scannerwork
INFO: Source paths: .
INFO: Source encoding: UTF-8, default locale: zh_CN
INFO: Load server rules
INFO: Load server rules (done) | time=221ms
INFO: Index files
WARN: Not indexing due to symlink loop: C:\Users\shuch\AppData\Local\Application Data
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 5.151s
INFO: Final Memory: 7M/34M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarScanner execution
java.lang.IllegalStateException: Failed to index files
at org.sonar.scanner.scan.filesystem.FileIndexer.indexFiles(FileIndexer.java:166)
at org.sonar.scanner.scan.filesystem.FileIndexer.index(FileIndexer.java:114)
at org.sonar.scanner.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:63)
at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:166)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:136)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:122)
at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:300)
at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:295)
at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:269)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:136)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:122)
at org.sonar.scanner.task.ScanTask.execute(ScanTask.java:48)
at org.sonar.scanner.task.TaskContainer.doAfterStart(TaskContainer.java:82)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:136)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:122)
at org.sonar.scanner.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:131)
at org.sonar.batch.bootstrapper.Batch.doExecuteTask(Batch.java:116)
at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:71)
at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
at com.sun.proxy.$Proxy0.execute(Unknown Source)
at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
at org.sonarsource.scanner.cli.Main.execute(Main.java:112)
at org.sonarsource.scanner.cli.Main.execute(Main.java:75)
at org.sonarsource.scanner.cli.Main.main(Main.java:61)
Caused by: java.nio.file.AccessDeniedException: C:\Users\shuch\AppData\Local\ElevatedDiagnostics
at java.base/sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
at java.base/sun.nio.fs.WindowsDirectoryStream.(Unknown Source)
at java.base/sun.nio.fs.WindowsFileSystemProvider.newDirectoryStream(Unknown Source)
at java.base/java.nio.file.Files.newDirectoryStream(Unknown Source)
at java.base/java.nio.file.FileTreeWalker.visit(Unknown Source)
at java.base/java.nio.file.FileTreeWalker.next(Unknown Source)
at java.base/java.nio.file.Files.walkFileTree(Unknown Source)
at org.sonar.scanner.scan.filesystem.FileIndexer.indexDirectory(FileIndexer.java:171)
at org.sonar.scanner.scan.filesystem.FileIndexer.indexFiles(FileIndexer.java:160)
… 29 more
ERROR:
ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.

C:\Users\shuch>sonar-scanner --version
INFO: Scanner configuration file: D:\Program Files\sonar-scanner-4.6.1.2450-windows\bin…\conf\sonar-scanner.properties
INFO: Project root configuration file: NONE
INFO: SonarScanner 4.6.1.2450
INFO: Java 11.0.3 AdoptOpenJDK (64-bit)
INFO: Windows 10 10.0 amd64


建key时有叉

这个报错是说扫描文件的时候没有权限了,应该是你放c盘了

我是管理员权限执行的,因为我python38装在c盘的,代码在d盘,sonar scan装在d盘了。不能没有权限啊
我还想问配置文件里的login是第一次的token值吧



而不是其他的值吧

新版本的sonar不再使用mysql,使用的数据库为Postgres

image
对应这个文件别有空格,
还有看下你的全局变量配置
image
在加载全局变量配置的时候报错的

关闭