Code analysis is not submitted to server

I ran sonar scanner without a sonar-project properties file. I ran with parameters on command-line

sonar-scanner -X -Dsonar.projectName=sonar-plsql-poc -Dsonar.projectVersion=10 -Dsonar.projectKey=sonar-plqlsql-poc:10 -Dsonar.sources=. -Dsonar.login=mytoken

The task ends with Succeful message but is not possible see project analyse on server. The logs

C:\Users\usuario\ops\dev\poc\sonar\sonar-scanner-2.6.1\bin\..
INFO: Scanner configuration file: C:\Users\usuario\ops\dev\poc\sonar\sonar-scanner-2.6.1\bin\..\conf\sonar-scanner.properties
INFO: Project root configuration file: NONE
INFO: SonarQube Scanner 2.6.1
INFO: Java 1.8.0_211 Oracle Corporation (64-bit)
INFO: Windows 10 10.0 amd64
INFO: User cache: C:\Users\usuario\.sonar\cache
DEBUG: Extract sonar-scanner-api-batch in temp...
DEBUG: Get bootstrap index...
DEBUG: Download: https://sonar-server/batch_bootstrap/index
DEBUG: Get bootstrap completed
DEBUG: Create isolated classloader...
DEBUG: Start temp cleaning...
DEBUG: Temp cleaning done
DEBUG: Execution getVersion
DEBUG: Execution start
DEBUG: Publish global mode
INFO: Load global repositories
DEBUG: GET 200 https://sonar-server/batch/global | time=123ms
INFO: Load global repositories (done) | time=189ms
INFO: Server id: 1a8d8ecab3ead42
INFO: User cache: C:\Users\usuario\.sonar\cache
INFO: Load plugins index
DEBUG: GET 200 https://sonar-server/deploy/plugins/index.txt | time=6ms
INFO: Load plugins index (done) | time=6ms
DEBUG: Load plugins
DEBUG: Load plugins (done) | time=18ms
DEBUG: API compatibility mode is enabled on plugin C# [csharp] (built with API lower than 5.2)
DEBUG: API compatibility mode is enabled on plugin Git [scmgit] (built with API lower than 5.2)
DEBUG: API compatibility mode is enabled on plugin SVN [scmsvn] (built with API lower than 5.2)
DEBUG: Plugins:
DEBUG:   * C# 5.3.2 (csharp)
DEBUG:   * Java 4.2 (java)
DEBUG:   * LDAP 2.0 (ldap)
DEBUG:   * Git 1.2 (scmgit)
DEBUG:   * SVN 1.3 (scmsvn)
DEBUG:   * Flow 0.1 (flow)
DEBUG:   * PL/SQL 2.8 (plsql)
DEBUG: Execution getVersion
INFO: SonarQube server 6.0
INFO: Default locale: "pt_BR", source code encoding: "UTF-8"
DEBUG: Work directory: C:\Users\usuario\ops\dev\poc\sonar\workspace\SonarRules\rule1\.sonar
DEBUG: Execution getVersion
DEBUG: Execution execute
INFO: Process project properties
DEBUG: Process project properties (done) | time=2ms
INFO: Load project repositories
DEBUG: GET 200 https://sonar-server/batch/project.protobuf?key=sonar-plqlsql-poc%3A10 | time=121ms
INFO: Load project repositories (done) | time=168ms
DEBUG: Available languages:
DEBUG:   * C# => "cs"
DEBUG:   * Java => "java"
DEBUG:   * flow => "flow"
DEBUG:   * PL/SQL => "plsql"
INFO: Load quality profiles
DEBUG: GET 200 https://sonar-server/api/qualityprofiles/search.protobuf?projectKey=sonar-plqlsql-poc%3A10 | time=65ms
INFO: Load quality profiles (done) | time=73ms
INFO: Load active rules
DEBUG: GET 200 https://sonar-server/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=cs-sonar-way-90351&p=1&ps=500 | time=117ms
DEBUG: GET 200 https://sonar-server/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=flow-sonar-way-01542&p=1&ps=500 | time=25ms
DEBUG: GET 200 https://sonar-server/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=java-mapfre-default-11855&p=1&ps=500 | time=135ms
DEBUG: GET 200 https://sonar-server/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=plsql-sonar-way-30876&p=1&ps=500 | time=78ms
INFO: Load active rules (done) | time=460ms
DEBUG: SCM Step is disabled by configuration
INFO: Publish mode
DEBUG: Start recursive analysis of project modules
INFO: -------------  Scan sonar-plsql-poc
INFO: Load server rules
DEBUG: GET 200 https://sonar-server/api/rules/list.protobuf | time=228ms
INFO: Load server rules (done) | time=248ms
DEBUG: Initializers :
INFO: Base dir: C:\Users\usuario\ops\dev\poc\sonar\workspace\SonarRules\rule1
INFO: Working dir: C:\Users\usuario\ops\dev\poc\sonar\workspace\SonarRules\rule1\.sonar
INFO: Source paths: .
INFO: Source encoding: UTF-8, default locale: pt_BR
INFO: Index files
DEBUG: Declared extensions of language C# were converted to sonar.lang.patterns.cs : **/*.cs
DEBUG: Declared extensions of language Java were converted to sonar.lang.patterns.java : **/*.java,**/*.jav
DEBUG: Declared extensions of language flow were converted to sonar.lang.patterns.flow : **/*.xml,**/*.ndf
DEBUG: Declared extensions of language PL/SQL were converted to sonar.lang.patterns.plsql : **/*.sql,**/*.pks,**/*.pkb
DEBUG: Language of file 'rule1_compliant.sql' is detected to be 'plsql'
DEBUG: Language of file 'rule1_noncompliant.sql' is detected to be 'plsql'
INFO: 2 files indexed
INFO: Quality profile for plsql: Sonar way
DEBUG: Code colorizer, supported languages: cs
DEBUG: 'SurefireSensor' skipped because there is no related file in current project
DEBUG: 'JaCoCoSensor' skipped because there is no related file in current project
DEBUG: 'JaCoCoItSensor' skipped because there is no related file in current project
DEBUG: 'JaCoCoOverallSensor' skipped because there is no related file in current project
DEBUG: 'JavaSquidSensor' skipped because there is no related file in current project
DEBUG: Sensors : Lines Sensor -> SCM Sensor -> XmlFileSensor -> PL/SQL Sensor -> Zero Coverage Sensor -> Code Colorizer Sensor -> CPD Block Indexer
INFO: plsql licensed to BB MAPFRE, PRODUCTION [Expiration: 2020-12-19, Server: 1a8d8ecab3ead42]
INFO: Sensor Lines Sensor
INFO: Sensor Lines Sensor (done) | time=10ms
INFO: Sensor SCM Sensor
INFO: SCM Publisher is disabled
INFO: Sensor SCM Sensor (done) | time=6ms
INFO: Sensor XmlFileSensor
INFO: Sensor XmlFileSensor (done) | time=0ms
INFO: Sensor PL/SQL Sensor
INFO: 2 source files to be analyzed
INFO: Sensor PL/SQL Sensor (done) | time=194ms
INFO: Sensor Zero Coverage Sensor
INFO: 2/2 source files have been analyzed
INFO: Sensor Zero Coverage Sensor (done) | time=13ms
INFO: Sensor Code Colorizer Sensor
INFO: Sensor Code Colorizer Sensor (done) | time=4ms
INFO: Sensor CPD Block Indexer
INFO: DefaultCpdBlockIndexer is used for plsql
DEBUG: Populating index from C:/Users/usuario/ops/dev/poc/sonar/workspace/SonarRules/rule1/rule1_compliant.sql
DEBUG: Populating index from C:/Users/usuario/ops/dev/poc/sonar/workspace/SonarRules/rule1/rule1_noncompliant.sql
INFO: Sensor CPD Block Indexer (done) | time=31ms
INFO: Calculating CPD for 2 files
DEBUG: Detection of duplications for sonar-plqlsql-poc:10:rule1_compliant.sql
DEBUG: Detection of duplications for sonar-plqlsql-poc:10:rule1_noncompliant.sql
INFO: CPD calculation finished
INFO: Analysis report generated in 80ms, dir size=31 KB
INFO: Analysis reports compressed in 20ms, zip size=12 KB
INFO: Analysis report generated in C:\Users\usuario\ops\dev\poc\sonar\workspace\SonarRules\rule1\.sonar\batch-report
DEBUG: Upload report
DEBUG: POST 200 https://sonar-server/api/ce/submit?projectKey=sonar-plqlsql-poc:10&projectName=sonar-plsql-poc | time=62ms
INFO: Analysis report uploaded in 65ms
INFO: ANALYSIS SUCCESSFUL, you can browse https://sonar-server/dashboard/index/sonar-plqlsql-poc:10
INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
INFO: More about the report processing at https://sonar-server/api/ce/task?id=AXEcvJtgHV0HZqN55uCs
DEBUG: Report metadata written to C:\Users\usuario\ops\dev\poc\sonar\workspace\SonarRules\rule1\.sonar\report-task.txt
DEBUG: Post-jobs :
INFO: Task total time: 2.326 s
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 4.258s
INFO: Final Memory: 45M/222M
INFO: ------------------------------------------------------------------------
DEBUG: Execution getVersion
DEBUG: Execution stop

The project on server, the project folder doest not have files

Hi,
Could you check if the background task in the SonarQube server succeeded? You can check with https://sonar-server/api/ce/task?id=AXEcvJtgHV0HZqN55uCs.
What version of SonarQube are you using?

I did this and the error is ORA-00001: unique constraint (SONARADM.SYS_C0045709) violated. I must update to the next value on sequece manually? Or there another way to fix this?

Do you have any stack trace?
Looks like you’re using SQ v6.0. Any reason not to upgrade? Our current long term support version is 7.9.

Duarte,

About problem: I did ran the sequence with NEXTVAL until CURRVAL be greater the max id on ISSUES table and fixed this problem.

About the version: My company has a plan to migrate to LTS version.

Thanks