404 on analysis report submission

I get the same problem.

I keep trying the Bitbucket way but it is still not working. I tried it locally but it still fails.

./sonar-scanner-4.7.0.2747-linux/bin/sonar-scanner -X \
  -Dsonar.login=$SONAR_TOKEN \
  -Dsonar.organization=shopgodev \
  -Dsonar.projectKey=ShopGoDev_schema-registry \
  -Dsonar.sources=. \
  -Dsonar.host.url=https://sonarcloud.io

I turned on debug logs and this is what I get in the last few lines.

18:48:17.460 INFO: Analysis report generated in 267ms, dir size=242 KB
18:48:17.544 INFO: Analysis report compressed in 83ms, zip size=86 KB
18:48:17.544 INFO: Analysis report generated in /home/user/Projects/schema-registry/.scannerwork/scanner-report
18:48:17.544 DEBUG: Upload report
18:48:20.602 DEBUG: POST 404 https://sonarcloud.io/api/ce/submit?organization=shopgodev&projectKey=ShopGoDev_schema-registry | time=3057ms

Hi,

Welcome to the community!

I’ve split your post into a new topic since it actually is a bit different.

Can you confirm that you imported the project into SonarCloud?

Would you mind providing the full analysis log, redacted as necessary? I ask because I’d like to see the first few requests at the top of the log. I find it odd that you’re getting a 404 only at the end.

 
Ann

It has been imported but not analyzed.

Here are the first lines up to the line that I think is suspicious.

00:49:34.746 INFO: Scanner configuration file: /home/user/Projects/schema-registry/sonar-scanner-4.7.0.2747-linux/conf/sonar-scanner.properties
00:49:34.749 INFO: Project root configuration file: NONE
00:49:34.763 INFO: SonarScanner 4.7.0.2747
00:49:34.763 INFO: Java 11.0.14.1 Eclipse Adoptium (64-bit)
00:49:34.763 INFO: Linux 5.10.102.1-microsoft-standard-WSL2 amd64
00:49:34.844 DEBUG: keyStore is : 
00:49:34.844 DEBUG: keyStore type is : pkcs12
00:49:34.844 DEBUG: keyStore provider is : 
00:49:34.845 DEBUG: init keystore
00:49:34.845 DEBUG: init keymanager of type SunX509
00:49:34.913 DEBUG: Create: /home/user/.sonar/cache
00:49:34.913 INFO: User cache: /home/user/.sonar/cache
00:49:34.913 DEBUG: Create: /home/user/.sonar/cache/_tmp
00:49:34.914 DEBUG: Extract sonar-scanner-api-batch in temp...
00:49:34.916 DEBUG: Get bootstrap index...
00:49:34.916 DEBUG: Download: https://sonarcloud.io/batch/index
00:49:36.412 DEBUG: Get bootstrap completed
00:49:36.415 DEBUG: Create isolated classloader...
00:49:36.419 DEBUG: Start temp cleaning...
00:49:36.425 DEBUG: Temp cleaning done
00:49:36.425 INFO: Scanner configuration file: /home/user/Projects/schema-registry/sonar-scanner-4.7.0.2747-linux/conf/sonar-scanner.properties
00:49:36.425 INFO: Project root configuration file: NONE
00:49:36.426 INFO: Analyzing on SonarCloud
00:49:36.426 INFO: Default locale: "en", source code encoding: "UTF-8" (analysis is platform dependent)
00:49:36.426 DEBUG: Work directory: /home/user/Projects/schema-registry/.scannerwork
00:49:36.427 DEBUG: Execution execute
00:49:36.572 DEBUG: SonarCloud 9.9.0.229
00:49:36.695 INFO: Load global settings
00:49:38.086 DEBUG: GET 200 https://sonarcloud.io/api/settings/values.protobuf | time=1390ms
00:49:38.090 INFO: Load global settings (done) | time=1395ms
00:49:38.092 INFO: Server id: 1BD809FA-AWHW8ct9-T_TB3XqouNu
00:49:38.099 INFO: User cache: /home/user/.sonar/cache
00:49:38.102 INFO: Load/download plugins
00:49:38.102 INFO: Load plugins index
00:49:39.476 DEBUG: GET 200 https://sonarcloud.io/api/plugins/installed | time=1373ms
00:49:39.494 INFO: Load plugins index (done) | time=1392ms
00:49:39.630 INFO: Load/download plugins (done) | time=1528ms
00:49:39.744 DEBUG: Plugins:
00:49:39.744 DEBUG:   * IaC Code Quality and Security 1.9.2.2279 (iac)
00:49:39.744 DEBUG:   * PL/SQL Code Quality and Security 3.7.0.4372 (plsql)
00:49:39.745 DEBUG:   * Scala Code Quality and Security 1.10.0.3710 (sonarscala)
00:49:39.745 DEBUG:   * C# Code Quality and Security 8.43.0.51858 (csharp)
00:49:39.745 DEBUG:   * Vulnerability Analysis 9.6.0.17156 (security)
00:49:39.745 DEBUG:   * Java Code Quality and Security 7.13.0.29990 (java)
00:49:39.745 DEBUG:   * HTML Code Quality and Security 3.6.0.3106 (web)
00:49:39.745 DEBUG:   * Flex Code Quality and Security 2.7.0.2865 (flex)
00:49:39.745 DEBUG:   * XML Code Quality and Security 2.5.0.3376 (xml)
00:49:39.745 DEBUG:   * Text file Code Quality and Security 1.1.0.282 (text)
00:49:39.745 DEBUG:   * VB.NET Code Quality and Security 8.43.0.51858 (vbnet)
00:49:39.745 DEBUG:   * Swift Code Quality and Security 4.6.1.5444 (swift)
00:49:39.745 DEBUG:   * CFamily Code Quality and Security 6.36.0.52033 (cpp)
00:49:39.745 DEBUG:   * Python Code Quality and Security 3.15.1.9817 (python)
00:49:39.745 DEBUG:   * Dataflow Bug Detection Rules for Python 1.5.0.1969 (dbdpythonfrontend)
00:49:39.745 DEBUG:   * Dataflow Bug Detection 1.5.0.1969 (dbd)
00:49:39.745 DEBUG:   * Go Code Quality and Security 1.10.0.3710 (go)
00:49:39.746 DEBUG:   * JaCoCo 1.1.1.1157 (jacoco)
00:49:39.746 DEBUG:   * Kotlin Code Quality and Security 2.10.0.1456 (kotlin)
00:49:39.746 DEBUG:   * Dataflow Bug Detection Rules for Java 1.5.0.1969 (dbdjavafrontend)
00:49:39.746 DEBUG:   * T-SQL Code Quality and Security 1.6.0.4844 (tsql)
00:49:39.746 DEBUG:   * Apex Code Quality and Security 1.10.0.3710 (sonarapex)
00:49:39.746 DEBUG:   * JavaScript/TypeScript/CSS Code Quality and Security 9.6.0.18814 (javascript)
00:49:39.746 DEBUG:   * Ruby Code Quality and Security 1.10.0.3710 (ruby)
00:49:39.746 DEBUG:   * Vulnerability Rules for C# 9.6.0.17156 (securitycsharpfrontend)
00:49:39.746 DEBUG:   * Vulnerability Rules for Java 9.6.0.17156 (securityjavafrontend)
00:49:39.746 DEBUG:   * License for SonarLint 8.0.0.31186 (license)
00:49:39.746 DEBUG:   * Vulnerability Rules for JS 9.6.0.17156 (securityjsfrontend)
00:49:39.746 DEBUG:   * COBOL Code Quality 5.0.0.5433 (cobol)
00:49:39.746 DEBUG:   * Vulnerability Rules for Python 9.6.0.17156 (securitypythonfrontend)
00:49:39.746 DEBUG:   * PHP Code Quality and Security 3.24.0.8949 (php)
00:49:39.746 DEBUG:   * ABAP Code Quality and Security 3.10.0.3628 (abap)
00:49:39.747 DEBUG:   * Configuration detection fot Code Quality and Security 1.2.0.267 (config)
00:49:39.747 DEBUG:   * Vulnerability Rules for PHP 9.6.0.17156 (securityphpfrontend)
00:49:41.122 DEBUG: GET 200 https://sonarcloud.io/api/server/version | time=1375ms
00:49:41.125 DEBUG: Updated analysis started with a difference of -1231 milliseconds
00:49:41.128 DEBUG: Started at Fri Aug 19 00:49:36 AEST 2022
00:49:41.144 INFO: Loaded core extensions: developer-scanner
00:49:41.155 DEBUG: Installed core extension: com.sonarsource.branch.DeveloperScannerCoreExtension@57adfab0
00:49:41.427 DEBUG: Could not detect any CI vendor
00:49:41.436 INFO: Load project settings for component key: 'ShopGoDev_schema-registry'
00:49:42.836 DEBUG: GET 200 https://sonarcloud.io/api/settings/values.protobuf?component=ShopGoDev_schema-registry | time=1400ms
00:49:42.838 INFO: Load project settings for component key: 'ShopGoDev_schema-registry' (done) | time=1402ms
00:49:42.841 INFO: Process project properties
00:49:42.845 DEBUG: Process project properties (done) | time=4ms
00:49:42.846 INFO: Execute project builders
00:49:42.846 DEBUG: Execute project builder: org.sonar.plugins.csharp.CSharpGlobalProtobufFileProcessor
00:49:42.847 DEBUG: Execute project builder: org.sonar.plugins.vbnet.VbNetGlobalProtobufFileProcessor
00:49:42.847 INFO: Execute project builders (done) | time=1ms
00:49:42.849 INFO: Project key: ShopGoDev_schema-registry
00:49:42.849 INFO: Base dir: /home/user/Projects/schema-registry
00:49:42.849 INFO: Working dir: /home/user/Projects/schema-registry/.scannerwork
00:49:42.849 DEBUG: Project global encoding: UTF-8, default locale: en
00:49:42.850 DEBUG: Creating module hierarchy
00:49:42.850 DEBUG:   Init module 'ShopGoDev_schema-registry'
00:49:42.850 DEBUG:     Base dir: /home/user/Projects/schema-registry
00:49:42.850 DEBUG:     Working dir: /home/user/Projects/schema-registry/.scannerwork
00:49:42.850 DEBUG:     Module global encoding: UTF-8, default locale: en
00:49:42.890 INFO: Load project branches
00:49:44.293 DEBUG: GET 200 https://sonarcloud.io/api/project_branches/list?project=ShopGoDev_schema-registry | time=1403ms
00:49:44.299 INFO: Load project branches (done) | time=1408ms
00:49:44.301 INFO: Check ALM binding of project 'ShopGoDev_schema-registry'
00:49:45.678 DEBUG: GET 200 https://sonarcloud.io/api/alm_integration/is_project_bound?project=ShopGoDev_schema-registry | time=1377ms
00:49:45.681 INFO: Detected project binding: BOUND
00:49:45.682 INFO: Check ALM binding of project 'ShopGoDev_schema-registry' (done) | time=1381ms
00:49:45.683 INFO: Load project pull requests
00:49:47.039 DEBUG: GET 200 https://sonarcloud.io/api/project_pull_requests/list?project=ShopGoDev_schema-registry | time=1355ms
00:49:47.043 INFO: Load project pull requests (done) | time=1360ms
00:49:47.044 INFO: Load branch configuration
00:49:47.045 INFO: Load branch configuration (done) | time=1ms
00:49:47.056 DEBUG: Available languages:
00:49:47.068 DEBUG:   * Terraform => "terraform"
00:49:47.068 DEBUG:   * CloudFormation => "cloudformation"
00:49:47.068 DEBUG:   * Kubernetes => "kubernetes"
00:49:47.068 DEBUG:   * PL/SQL => "plsql"
00:49:47.068 DEBUG:   * Scala => "scala"
00:49:47.068 DEBUG:   * C# => "cs"
00:49:47.068 DEBUG:   * Java => "java"
00:49:47.068 DEBUG:   * HTML => "web"
00:49:47.069 DEBUG:   * JSP => "jsp"
00:49:47.069 DEBUG:   * Flex => "flex"
00:49:47.069 DEBUG:   * XML => "xml"
00:49:47.069 DEBUG:   * Text => "text"
00:49:47.069 DEBUG:   * VB.NET => "vbnet"
00:49:47.069 DEBUG:   * Swift => "swift"
00:49:47.069 DEBUG:   * C => "c"
00:49:47.069 DEBUG:   * C++ => "cpp"
00:49:47.069 DEBUG:   * Objective-C => "objc"
00:49:47.069 DEBUG:   * Python => "py"
00:49:47.069 DEBUG:   * Go => "go"
00:49:47.069 DEBUG:   * Kotlin => "kotlin"
00:49:47.069 DEBUG:   * T-SQL => "tsql"
00:49:47.069 DEBUG:   * Apex => "apex"
00:49:47.069 DEBUG:   * JavaScript => "js"
00:49:47.069 DEBUG:   * TypeScript => "ts"
00:49:47.070 DEBUG:   * CSS => "css"
00:49:47.070 DEBUG:   * Ruby => "ruby"
00:49:47.070 DEBUG:   * COBOL => "cobol"
00:49:47.070 DEBUG:   * PHP => "php"
00:49:47.070 DEBUG:   * ABAP => "abap"
00:49:47.070 DEBUG:   * YAML => "yaml"
00:49:47.070 DEBUG:   * JSON => "json"
00:49:47.073 INFO: Load quality profiles
00:49:48.497 DEBUG: GET 200 https://sonarcloud.io/api/qualityprofiles/search.protobuf?projectKey=ShopGoDev_schema-registry&organization=shopgodev | time=1423ms
00:49:48.507 INFO: Load quality profiles (done) | time=1434ms
00:49:48.509 INFO: Load active rules
00:49:49.914 DEBUG: GET 200 https://sonarcloud.io/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYI5iBzCYiWOCbm_ZEh9&ps=500&p=1 | time=1404ms
00:49:50.211 DEBUG: GET 200 https://sonarcloud.io/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AX5BSqQ_neI8XLxfi7mZ&ps=500&p=1 | time=282ms
00:49:50.503 DEBUG: GET 200 https://sonarcloud.io/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AX5BSqQ_neI8XLxfi7mm&ps=500&p=1 | time=286ms
00:49:50.781 DEBUG: GET 200 https://sonarcloud.io/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AX5BSqQ_neI8XLxfi7mX&ps=500&p=1 | time=275ms
00:49:51.097 DEBUG: GET 200 https://sonarcloud.io/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AX5BSqQ_neI8XLxfi7mh&ps=500&p=1 | time=316ms
00:49:51.684 DEBUG: GET 200 https://sonarcloud.io/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AX5BSqQ_neI8XLxfi7mi&ps=500&p=1 | time=309ms
00:49:51.984 DEBUG: GET 200 https://sonarcloud.io/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AX5BSqQ_neI8XLxfi7mW&ps=500&p=1 | time=286ms
00:49:52.294 DEBUG: GET 200 https://sonarcloud.io/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AX5BSqQ_neI8XLxfi7mY&ps=500&p=1 | time=307ms
00:49:52.686 DEBUG: GET 200 https://sonarcloud.io/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AX5BSqQ_neI8XLxfi7mx&ps=500&p=1 | time=383ms
00:49:53.268 DEBUG: GET 200 https://sonarcloud.io/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AX5BSqQ_neI8XLxfi7mx&ps=500&p=2 | time=306ms
00:49:53.550 DEBUG: GET 200 https://sonarcloud.io/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AX5BSqQ_neI8XLxfi7md&ps=500&p=1 | time=280ms
00:49:53.835 DEBUG: GET 200 https://sonarcloud.io/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AX5BSqQ_neI8XLxfi7mV&ps=500&p=1 | time=283ms
00:49:54.126 DEBUG: GET 200 https://sonarcloud.io/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AX5BSqQ_neI8XLxfi7mT&ps=500&p=1 | time=288ms
00:49:54.406 DEBUG: GET 200 https://sonarcloud.io/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AX5BSqQ_neI8XLxfi7mn&ps=500&p=1 | time=279ms
00:49:54.683 DEBUG: GET 200 https://sonarcloud.io/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AX6LfYgkEtnFPnYRcbmR&ps=500&p=1 | time=277ms
00:49:54.983 DEBUG: GET 200 https://sonarcloud.io/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AX5BSqQ_neI8XLxfi7mw&ps=500&p=1 | time=299ms
00:49:55.280 DEBUG: GET 200 https://sonarcloud.io/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AX5BSqQ_neI8XLxfi7mp&ps=500&p=1 | time=291ms
00:49:55.590 DEBUG: GET 200 https://sonarcloud.io/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AX5BSqQ_neI8XLxfi7mf&ps=500&p=1 | time=308ms
00:49:55.872 DEBUG: GET 200 https://sonarcloud.io/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AX5BSqQ_neI8XLxfi7mo&ps=500&p=1 | time=277ms
00:49:56.240 DEBUG: GET 200 https://sonarcloud.io/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AX5BSqQ_neI8XLxfi7ma&ps=500&p=1 | time=368ms
00:49:56.570 DEBUG: GET 200 https://sonarcloud.io/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AX5BSqQ_neI8XLxfi7mt&ps=500&p=1 | time=313ms
00:49:56.865 DEBUG: GET 200 https://sonarcloud.io/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AX5BSqQ_neI8XLxfi7mr&ps=500&p=1 | time=289ms
00:49:57.160 DEBUG: GET 200 https://sonarcloud.io/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AX5BSqQ_neI8XLxfi7mc&ps=500&p=1 | time=295ms
00:49:57.456 DEBUG: GET 200 https://sonarcloud.io/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AX5BSqQ_neI8XLxfi7me&ps=500&p=1 | time=292ms
00:49:57.748 DEBUG: GET 200 https://sonarcloud.io/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AX5BSqQ_neI8XLxfi7mj&ps=500&p=1 | time=289ms
00:49:58.078 DEBUG: GET 200 https://sonarcloud.io/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AX5BSqQ_neI8XLxfi7my&ps=500&p=1 | time=327ms
00:49:58.386 DEBUG: GET 200 https://sonarcloud.io/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AX5BSqQ_neI8XLxfi7mS&ps=500&p=1 | time=297ms
00:49:58.697 DEBUG: GET 200 https://sonarcloud.io/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AX5BSqQ_neI8XLxfi7ms&ps=500&p=1 | time=307ms
00:49:59.023 DEBUG: GET 200 https://sonarcloud.io/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AX5BSqQ_neI8XLxfi7mq&ps=500&p=1 | time=319ms
00:49:59.322 DEBUG: GET 200 https://sonarcloud.io/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AX5BSqQ_neI8XLxfi7mk&ps=500&p=1 | time=296ms
00:49:59.659 DEBUG: GET 200 https://sonarcloud.io/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AX5BSqQ_neI8XLxfi7mv&ps=500&p=1 | time=333ms
00:49:59.989 DEBUG: GET 200 https://sonarcloud.io/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AX5BSqQ_neI8XLxfi7mu&ps=500&p=1 | time=322ms
00:50:00.007 INFO: Load active rules (done) | time=11498ms
00:50:00.030 INFO: Organization key: shopgodev
00:50:00.041 INFO: Load project repositories
00:50:01.477 DEBUG: GET 404 https://sonarcloud.io/batch/project.protobuf?key=ShopGoDev_schema-registry | time=1436ms
00:50:01.478 DEBUG: Project repository not available - continuing without it
00:50:01.478 INFO: Load project repositories (done) | time=1437ms
00:50:01.488 DEBUG: Declared extensions of language Terraform were converted to sonar.lang.patterns.terraform : **/*.tf
00:50:01.488 DEBUG: Declared extensions of language CloudFormation were converted to sonar.lang.patterns.cloudformation : 
00:50:01.488 DEBUG: Declared extensions of language Kubernetes were converted to sonar.lang.patterns.kubernetes : 
00:50:01.488 DEBUG: Declared extensions of language PL/SQL were converted to sonar.lang.patterns.plsql : **/*.sql,**/*.tab,**/*.pkb
00:50:01.488 DEBUG: Declared extensions of language Scala were converted to sonar.lang.patterns.scala : **/*.scala
00:50:01.488 DEBUG: Declared extensions of language C# were converted to sonar.lang.patterns.cs : **/*.cs
00:50:01.488 DEBUG: Declared extensions of language Java were converted to sonar.lang.patterns.java : **/*.java,**/*.jav
00:50:01.488 DEBUG: Declared extensions of language HTML were converted to sonar.lang.patterns.web : **/*.html,**/*.xhtml,**/*.cshtml,**/*.vbhtml,**/*.aspx,**/*.ascx,**/*.rhtml,**/*.erb,**/*.shtm,**/*.shtml,**/*.cmp,**/*.twig
00:50:01.489 DEBUG: Declared extensions of language JSP were converted to sonar.lang.patterns.jsp : **/*.jsp,**/*.jspf,**/*.jspx
00:50:01.489 DEBUG: Declared extensions of language Flex were converted to sonar.lang.patterns.flex : **/*.as
00:50:01.489 DEBUG: Declared extensions of language XML were converted to sonar.lang.patterns.xml : **/*.xml,**/*.xsd,**/*.xsl
00:50:01.489 DEBUG: Declared extensions of language Text were converted to sonar.lang.patterns.text : **/*.sonarshouldnotexistextension
00:50:01.489 DEBUG: Declared extensions of language VB.NET were converted to sonar.lang.patterns.vbnet : **/*.vb
00:50:01.489 DEBUG: Declared extensions of language Swift were converted to sonar.lang.patterns.swift : **/*.swift
00:50:01.489 DEBUG: Declared extensions of language C were converted to sonar.lang.patterns.c : **/*.c,**/*.h
00:50:01.490 DEBUG: Declared extensions of language C++ were converted to sonar.lang.patterns.cpp : **/*.cc,**/*.cpp,**/*.cxx,**/*.c++,**/*.hh,**/*.hpp,**/*.hxx,**/*.h++,**/*.ipp
00:50:01.490 DEBUG: Declared extensions of language Objective-C were converted to sonar.lang.patterns.objc : **/*.m
00:50:01.490 DEBUG: Declared extensions of language Python were converted to sonar.lang.patterns.py : **/*.py
00:50:01.490 DEBUG: Declared extensions of language Go were converted to sonar.lang.patterns.go : **/*.go
00:50:01.490 DEBUG: Declared extensions of language Kotlin were converted to sonar.lang.patterns.kotlin : **/*.kt
00:50:01.490 DEBUG: Declared extensions of language T-SQL were converted to sonar.lang.patterns.tsql : **/*.tsql
00:50:01.490 DEBUG: Declared extensions of language Apex were converted to sonar.lang.patterns.apex : **/*.cls,**/*.trigger
00:50:01.490 DEBUG: Declared extensions of language JavaScript were converted to sonar.lang.patterns.js : **/*.js,**/*.jsx,**/*.mjs,**/*.vue
00:50:01.490 DEBUG: Declared extensions of language TypeScript were converted to sonar.lang.patterns.ts : **/*.ts,**/*.tsx
00:50:01.491 DEBUG: Declared extensions of language CSS were converted to sonar.lang.patterns.css : **/*.css,**/*.less,**/*.scss
00:50:01.491 DEBUG: Declared extensions of language Ruby were converted to sonar.lang.patterns.ruby : **/*.rb
00:50:01.491 DEBUG: Declared extensions of language COBOL were converted to sonar.lang.patterns.cobol : 
00:50:01.491 DEBUG: Declared extensions of language PHP were converted to sonar.lang.patterns.php : **/*.php,**/*.php3,**/*.php4,**/*.php5,**/*.phtml,**/*.inc
00:50:01.491 DEBUG: Declared extensions of language ABAP were converted to sonar.lang.patterns.abap : **/*.abap,**/*.ab4,**/*.flow,**/*.asprog
00:50:01.491 DEBUG: Declared extensions of language YAML were converted to sonar.lang.patterns.yaml : **/*.yaml,**/*.yml
00:50:01.491 DEBUG: Declared extensions of language JSON were converted to sonar.lang.patterns.json : **/*.json
00:50:01.492 DEBUG: Will ignore generated code
00:50:01.492 DEBUG: Will ignore generated code
00:50:01.495 INFO: Indexing files...

So there is a 404 on this:

00:50:01.477 DEBUG: GET 404 https://sonarcloud.io/batch/project.protobuf?key=ShopGoDev_schema-registry | time=1436ms
00:50:01.478 DEBUG: Project repository not available - continuing without it

But what does it mean and why does it think it can continue only to fail later on?

Hi,

Thanks for the full log. I find it confusing, because there’s also this:

So I’ve flagged it for more expert attention.

 
Ann

Hello @dashmug , following my previous message (that i sent to you privately) we could verify that you don’t have Execute Analysis permission, causing the error you found. We want to improve this kind of error in the future.

Can i ask you to setup your user with Execute Analysis permission and try again, please?

This has been fixed now.

I accidentally removed the SONAR_TOKEN in my repository variables. And voila, it worked.

I believe it is as you said that I don’t have the right permission so the token that is generated by SonarCloud for me wouldn’t work.

By removing it in my repository variables, it used the token for my organization instead so it worked.

I wish the UI shouldn’t have suggested to use a new token if my user didn’t have the permission to execute analysis. That was a lot of wasted time.

2 Likes

Thank you for the feedback! We will evaluate and improve this UX.

Just to double check, your log entries contains a lot of 404 responses, but you should got as well the following at the end:

08:24:52.899 INFO: ------------------------------------------------------------------------
08:24:52.899 INFO: EXECUTION FAILURE
08:24:52.899 INFO: ------------------------------------------------------------------------
08:24:52.899 INFO: Total time: 22.878s
08:24:52.956 INFO: Final Memory: 44M/157M
08:24:52.956 INFO: ------------------------------------------------------------------------
08:24:52.956 ERROR: Error during SonarScanner execution
Project not found. Please check the 'sonar.projectKey' and 'sonar.organization' properties, the 'SONAR_TOKEN' environment variable, or contact the project administrator

Due to security reasons, we don’t explicitly tell that you don’t have permissions, but we give a bunch of information to check. Contacting your project administrator and checking the SONAR_TOKEN are the relevant ones regarding your issue. We will also evaluate this and improve if necessary.