I have trying to run SQ Community locally in port 9000. I’m using docker and everything is running fine since I can login into localhost:9000 successfully.
So, I created a new project to analyze a code in my PC (which is also git monitored).
I executed dotnet sonarscanner begin, dotnet build and dotnet sonarscanner end, just copied and pasted it from the tutorial directly to cmd and everything ran just fine as you can see here:
However, the toturial page in localhost:9000 says that: Is my analysis done? If your analysis is successful, this page will automatically refresh in a few moments.
But this never happens. The page never refreshes. Am I missing something?
The localhost:9000 is not reloading by itself. I tried to manuallyy refresh it but since the analysis was done but not “communicated” to the CLI, it was like nothing was done and I was asked to run the analysis again.
So, I’m kinda stuck and have to re-do this over and over:
if i understand it correctly i assume the following (which will not solve your troubles, but maybe help you better understand the flow)
you have a sq-server instance running at localhost:9000
you have started the sq-scanner process on the commandline (CLI)
What now happens is as follows (i hope i get it correct )
the CLI sq-scanner process performs the scan, creates an analysis result
the cli sq-scanner then tries to communicate (send) this result to the sq-server instance
i also realize that the dotnet scanning process seems to differ a bit from the java one or the plain cli scanner ( i am not used to “end” something in the CLI, for example)
so i guess you need help from someone who knows more about dotnet scanner
but maybe … if that is possible for you … it would help to attach a real logfile of the cli scan to this post
My 1st choice was to run it using the zip file, install JDK 17 etc, but it didn’t work. So, running it using docker worked, the localhost:9000 can be reached etc.
it really might help to attach the CLI scanner logfile. i think it is also mentioned as one of the “helping comments” when you create a posting … to not make screenshots of logs, but instead put logfile here
i currently expect the dotnet scanner to behave a little different than the others i know a bit better … but: i’d expect to see in the logs a link to the scan-result … or something else if that is not possible
so, could you add the logfiles? either way, i might not be the most helpful replier up from now, as dotnet is not my forté
maybe it is possible to enhance verbosity of logging, too? -v something?