Sonarqube Version Community - 8.9
Scanner version- 4.6.2
IIS Web server as reverse proxy.
Windows server version- 2019
After I restarted windows server. I am facing an issue with sonarqube . After clicking on a project and going to the measure tab I see “No Measures” but on localhost i can see the measures.I have tried to increse the url and Query string length in IIS web server. Also i have stop the sonarqube service and deleted the es7 directory and then start the service.Also I have tried to disable my firewall but no luck.After seeing some community queries .I have come to the point to raise an issue.Kindly help me to figure it out.I have attached some screenshots. I havent seen any error in my logs.Thank you everyone.
Solution: After trying all the tricks n tips available on our sonar community,google,stackoverflow. I just found that recently i have install dependency check plugin and other two third party plugin in sonarqube . After uninstalling all plugins and restarted the sonarqube service . I can now see the Measure Tab with bubble graph. Thanks to me.
Hi,
In case it helps, you were on the right track with increasing the allowed URL length. What removing those plugins did was shorten the list of metrics in your server & thus shorten the URL length for that request.
FWIW,
Ann
I want to use dependency check plugin.I installed it and analysed a project.After that i found that ISSUES where not there Measures where not there. So i deleted the es7 directory .Issues tab got solved but measures tab was not solved.Can you guide me a bit to get the dependency check plugin worked for me.
Hi,
The pages rendered, but didn’t show Dependency Check issues/measures?
Ann
dependency check plugin is working properly but Issues tab and the measure tab is not working.As shown in the Screenshot using dev tools i got 400 error.
Hi,
As I said earlier, I believe you were on the right track with the IIS URL length.
HTH,
Ann
But that didnt worked for me .Steps below i followed
- disable antivirus
- increase the URL length
3 restarted the IIS Server
Maybe increase it some more?
I tried MAX url= 300000 and max query string =300000
How long was the URL in the initial screenshot?
Around 2118 was the lenght earlier i used to count the url using a web tool.
And when you try that URL directly?
Measure tab is working in localhost:9000. After using the url directly i got this screen . I have attached the screenshot.
I used the long url in my localhost:9000 and i got the below error.
{“errors”:[{“msg”:“Insufficient privileges”}]}
Can you help me to solve the issue @ganncamp for url: https://sonarqubedemo.com/api/measures/component?additionalFields=period&component=[project-name]&metricKeys=new_technical_debt,blocker_violations,bugs,burned_budget,business_value,classes,code_smells,cognitive_complexity,comment_lines,comment_lines_density,branch_coverage,new_branch_coverage,conditions_to_cover,new_conditions_to_cover,confirmed_issues,coverage,new_coverage,critical_violations,critical_severity_vulns,complexity,directories,duplicated_blocks,new_duplicated_blocks,duplicated_files,duplicated_lines,duplicated_lines_density,new_duplicated_lines_density,new_duplicated_lines,effort_to_reach_maintainability_rating_a,false_positive_issues,files,functions,generated_lines,generated_ncloc,high_severity_vulns,info_violations,inherited_risk_score,violations,line_coverage,new_line_coverage,lines,ncloc,lines_to_cover,new_lines_to_cover,low_severity_vulns,sqale_rating,new_maintainability_rating,major_violations,medium_severity_vulns,minor_violations,new_blocker_violations,new_bugs,new_code_smells,new_critical_violations,new_info_violations,new_violations,new_lines,new_major_violations,new_minor_violations,new_security_hotspots,new_vulnerabilities,open_issues,projects,alert_status,reliability_rating,new_reliability_rating,reliability_remediation_effort,new_reliability_remediation_effort,reopened_issues,security_hotspots,security_hotspots_reviewed,new_security_hotspots_reviewed,security_rating,new_security_rating,security_remediation_effort,new_security_remediation_effort,security_review_rating,new_security_review_rating,skipped_tests,statements,team_size,sqale_index,sqale_debt_ratio,new_sqale_debt_ratio,total_dependencies,total_vulnerabilities,uncovered_conditions,new_uncovered_conditions,uncovered_lines,new_uncovered_lines,test_execution_time,test_errors,test_failures,test_success_density,tests,vulnerabilities,vulnerable_component_ratio,vulnerable_dependencies,wont_fix_issues
error: {“errors”:[{“msg”:“Insufficient privileges”}]}
Hi,
The privileges error when you call the URL directly is because you’re making an unauthenticated call for data on a project that requires authentication.
Regarding whether the measures page works or not, the fact that it works fine on localhost but not when you go through your network one again points the finger at your network. I don’t know what else to tell you.
Ann