# SonarQube analysis without pushing the results to the SonarQube server

**URL:** <https://community.sonarsource.com/t/sonarqube-analysis-without-pushing-the-results-to-the-sonarqube-server/2944>\
**Category:** SonarQube Server / Community Build\
**Tags:** sonarqube\
**Created:** [September 27, 2018, 7:02pm UTC](https://community.sonarsource.com/t/sonarqube-analysis-without-pushing-the-results-to-the-sonarqube-server/2944 "2018-09-27T19:02:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Swapna\_Konuganti](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@Swapna\_Konuganti](https://community.sonarsource.com/u/Swapna_Konuganti)\
**Post date:** [September 27, 2018, 7:02pm UTC](https://community.sonarsource.com/t/sonarqube-analysis-without-pushing-the-results-to-the-sonarqube-server/2944/1 "2018-09-27T19:02:35Z")

</div>

- using 7.2.1 versions od SonarQube
- 

```
 at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75)
  at java.security.AccessController.doPrivileged(Native Method)
  at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69)
  at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50)
  at org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:102)
  at org.sonar.runner.api.Runner.execute(Runner.java:100)
  at org.sonar.ant.SonarTask.launchAnalysis(SonarTask.java:53)
  at org.sonar.ant.SonarTask.execute(SonarTask.java:48)
  at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
  at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
  at org.apache.tools.ant.Task.perform(Task.java:350)
  at org.apache.tools.ant.Target.execute(Target.java:449)
  at org.apache.tools.ant.Target.performTasks(Target.java:470)
  at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388)
  at org.apache.tools.ant.Project.executeTarget(Project.java:1361)
  at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
  at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
  at org.apache.tools.ant.Main.runBuild(Main.java:834)
  at org.apache.tools.ant.Main.startAnt(Main.java:223)
  at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284)
  at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101)

```

Caused by: You’re only authorized to execute a local (preview) SonarQube analysis without pushing the results to the SonarQube server. Please contact your SonarQube administrator.

Is there anysetup to fix this issue ?

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [September 28, 2018, 11:33am UTC](https://community.sonarsource.com/t/sonarqube-analysis-without-pushing-the-results-to-the-sonarqube-server/2944/2 "2018-09-28T11:33:26Z")

</div>

Hi,

This error means that analysis of your project is not open to `Anyone` (a special group meaning “anonymous”), so you must pass the [user token](https://docs.sonarqube.org/display/SONAR/User+Token) of a user who has analyze on the project.

&nbsp;  
Ann

---

<div class="post-metadata">

**Author:** ![Swapna\_Konuganti](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@Swapna\_Konuganti](https://community.sonarsource.com/u/Swapna_Konuganti)\
**Post date:** [October 9, 2018, 1:25pm UTC](https://community.sonarsource.com/t/sonarqube-analysis-without-pushing-the-results-to-the-sonarqube-server/2944/3 "2018-10-09T13:25:01Z")

</div>

Thank you!

I have created new Token(attached screenshot)… Do I need to include in “sonar-project.properties” fiel ? if so can you please provide me the line of code

 ![SonarQube](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/2X/7/7cb4b2518c48aa907a90180496c127eef61bd908.png)

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [October 9, 2018, 2:06pm UTC](https://community.sonarsource.com/t/sonarqube-analysis-without-pushing-the-results-to-the-sonarqube-server/2944/4 "2018-10-09T14:06:13Z")

</div>

Hi,

This should help: [https://docs.sonarqube.org/display/SONAR/User+Token](https://docs.sonarqube.org/display/SONAR/User+Token)

&nbsp;  
Ann

---

<div class="post-metadata">

**Author:** ![Swapna\_Konuganti](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@Swapna\_Konuganti](https://community.sonarsource.com/u/Swapna_Konuganti)\
**Post date:** [October 9, 2018, 3:22pm UTC](https://community.sonarsource.com/t/sonarqube-analysis-without-pushing-the-results-to-the-sonarqube-server/2944/5 "2018-10-09T15:22:33Z")

</div>

I have added, still getting same error

 ![SonarQube](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/2X/d/d25ea32715a694f3aaef991c7e29b7ddd4ba1332.png)

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [October 10, 2018, 6:10am UTC](https://community.sonarsource.com/t/sonarqube-analysis-without-pushing-the-results-to-the-sonarqube-server/2944/6 "2018-10-10T06:10:10Z")

</div>

Hi,

So first, I should have pointed out that in an earlier email you published your token value. You really want to throw that one away now and generate a new one.

Second, I don’t see any errors in that screenshot. What leaps to my eyes is

> `BUILD SUCCESSFUL`

Also, if you can in the future, copy/pasting the text of the console rather than a screenshot is really more user-friendly.

&nbsp;  
Ann
