You're not authorized to analyze this project or the project doesn't exist on SonarQube

Hi guys i’m having this problem in my first sonarqube implementation:
ERROR You’re not authorized to analyze this project or the project doesn’t exist on SonarQube and you’re not authorized to create it. Please contact an administrator.

I’m using an azure devops repository on cloud and a local sonarqube server(exposed for azure devops) this is my .yaml:

trigger:
branches:
include:

  • ‘dev’
    pool:
    vmImage: ubuntu-latest

variables:
SONARQUBE_SERVICE: ‘sonarqube-server’
SONARQUBE_PROJECT_KEY: ‘test_op_api’
SONARQUBE_PROJECT_NAME: ‘test_op_api’

steps:

  • checkout: self

  • task: SonarQubePrepare@7
    displayName: ‘Ejecutar analisis’
    inputs:
    SonarQube: $(SONARQUBE_SERVICE)
    scannerMode: ‘CLI’
    configMode: ‘manual’
    cliProjectKey: $(SONARQUBE_PROJECT_KEY)
    cliProjectName: $(SONARQUBE_PROJECT_NAME)
    extraProperties: |
    sonar.sources=src
    sonar.language=java
    sonar.java.binaries=target/classes
    sonar.sourceEncoding=UTF-8

  • script: mvn -X clean verify
    displayName: ‘Compilar Proyecto.’

  • task: SonarQubeAnalyze@7
    displayName: ‘Analisis.’

  • task: SonarQubePublish@7
    displayName: ‘Publicar resultados.’
    inputs:
    pollingTimeoutSec: ‘300’

I’ve seen other posts and tried everything. I have my azure devops plugin installed, my projectkey and name are ok, my firewall is supposed to be ok, my token and user permissons have all permissons, as well on project permissons. I’ve set my PAT. My token is correct. Here are my logs:

logs.txt (30.9 KB)

Thanks in advance.

Edit: For more information i’m using SonarQube Server Developer Edition 2025.5

Hi,

Welcome to the community, and thanks for leading with the analysis log!

This analysis is failing at the report upload step. If you truly didn’t have permissions, it would fail much earlier. I suspect your proxy/firewall/“helpful”-network-fixture is blocking the upload, and returning an error code (403?) that the analyzer is interpreting as not having project permissions.

You should talk to your network folks.

 
HTH,
Ann