Comments (4)
Hi Miriam,
I tried connecting with Sonarqube 7.5 using authentication and it worked. At the bottom of this answer are the steps I made, however, looking at the stacktrace, that doesn't seem related to Authorization but to network access. If you pass localhost
as environment variable, the Quboo Docker container will try to find Sonarqube in its own container, but that's not what you want.
In case it's a Connection issue
If you installed Sonarqube in the host and Quboo is running with Docker, what you want is access from the Quboo container to the host. See https://docs.docker.com/docker-for-windows/networking/#known-limitations-use-cases-and-workarounds
Basically, it should be fine if you're using Docker 18 or above to replace localhost
by host.docker.internal
.
In case it's the token
- Create a token in Sonarqube (for an account with access to users and issues)
- Passed this token as an environment variable to Quboo (e.g. via
.env
file existing in the same folder as thedocker-compose
file). This is the step you might be doing wrong, if the environment variable has a typo or is misconfigured you might get those 401 codes.
SONAR_TOKEN=3da17bb876d3599147ad6e9d15cf26afe4318961
Let me know if any of these solutions work for you. I'll update the docs for the case you're trying to run.
from code-quality-game.
Dear Moses,
thank you very much for your help! It was indeed the localhost setting in my config file that caused the issue - I replaced it with the constant that you suggested and the qube answered to the request of quboo.
quboo-backend_1 | 2019-01-14 08:19:05.646 INFO 1 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup
quboo-backend_1 | 2019-01-14 08:19:05.707 INFO 1 --- [ main] s.a.ScheduledAnnotationBeanPostProcessor : No TaskScheduler/ScheduledExecutorService bean found for scheduled processing
quboo-backend_1 | 2019-01-14 08:19:05.731 TRACE 1 --- [pool-1-thread-1] c.t.d.m.u.service.SonarUsersRetriever : Retrieving users, page 1
quboo-backend_1 | 2019-01-14 08:19:05.813 TRACE 1 --- [pool-1-thread-1] c.t.d.m.u.service.SonarUsersRetriever : URI: http://host.docker.internal:9000/api/users/search?p=1&ps=500
quboo-backend_1 | 2019-01-14 08:19:05.855 INFO 1 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path ''
quboo-backend_1 | 2019-01-14 08:19:05.876 INFO 1 --- [ main] c.t.devgame.Application : Started Application in 14.935 seconds (JVM running for 17.015)
quboo-backend_1 | 2019-01-14 08:19:07.219 INFO 1 --- [pool-1-thread-1] c.t.d.m.u.service.SonarUsersRetriever : Adding new user: USR1@SOMECOMPANY
quboo-backend_1 | 2019-01-14 08:19:07.314 INFO 1 --- [pool-1-thread-1] c.t.d.m.u.service.SonarUsersRetriever : Adding new user: USR2@SOMECOMPANY
quboo-backend_1 | 2019-01-14 08:19:07.325 INFO 1 --- [pool-1-thread-1] c.t.d.m.u.service.SonarUsersRetriever : Adding new user: USR3@SOMECOMPANY
quboo-backend_1 | 2019-01-14 08:19:07.341 INFO 1 --- [pool-1-thread-1] c.t.d.m.u.service.SonarUsersRetriever : Adding new user: USR4@SOMECOMPANY
However, I still can't see any users in my quboo-gui despite the backend saying that it has added 227 users to the database.
Maybe you could give me another advice why this is the case?
Regards,
Miriam
from code-quality-game.
I think what you're seeing now is due to the fact that you didn't add users to teams. Navigate to the Organizer, make sure you can see non-assigned players (by checking the checkbox), create one or more teams and assign players to them. Hope that helps.
from code-quality-game.
It did indeed! Works like a charm - thank you very much.
from code-quality-game.
Related Issues (12)
- Fails to start HOT 1
- quboo web client has default localhost:8080 config HOT 4
- Question - Reseting statistics is a bit unclear HOT 7
- sonar run error HOT 1
- some closed issues have no closeDate HOT 2
- Get issues URL format HOT 2
- Suggestion - Adding manual badges HOT 1
- Suggestion - Increased score in a fixed period of time
- Suggestion - Add non-existent Sonar players
- Suggestion - Add Level to user
- Can't start frontend project HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from code-quality-game.