Sonarqube setup from scratch and Code analysis | [Latest 2024]

Поділитися
Вставка
  • Опубліковано 24 січ 2025

КОМЕНТАРІ • 131

  • @georgesmith9178
    @georgesmith9178 2 роки тому +2

    Thank you for this brief and to-the-point tutorial

  • @elenafartukova1656
    @elenafartukova1656 Рік тому +2

    It's exactly what I was looking for! but it's not the 1st time for your videos that the volume of the sound is not high enough ( I live close to the airport and it's hard to hear you properly when the plane is passing even if I'm using my headset). Other authors have a higher volume for their videos, so this issue could stop me from watching yours if I foresee a busy scheduled for the airport

    • @Engineerhoon
      @Engineerhoon  Рік тому

      Sorry to know about that. I will work on this feedback.

    • @crickopedia8438
      @crickopedia8438 Рік тому

      I also need to use headphones in my room. By the way, excellent work 🙏

  • @techytantra
    @techytantra 2 роки тому +2

    Code coverage is showing 0% at 13:52. How to fix this issue?

    • @Engineerhoon
      @Engineerhoon  Рік тому

      Please check the other video about code coverage in the SonarQube playlist.

  • @RAMANKUMARGCEBIT
    @RAMANKUMARGCEBIT 2 роки тому +1

    thank u for the video. i have a que: at 1:07, its mentioned that java should be installed. so, even if we want to run SonarQube to test/maintain codes written in Python or other languages, we can use it ?

    • @Engineerhoon
      @Engineerhoon  2 роки тому

      jdk needs to be installed as Sonar scanner requires Java

    • @RAMANKUMARGCEBIT
      @RAMANKUMARGCEBIT 2 роки тому

      ​@@Engineerhoon if at 12:05 we select python. can we use SonarQube to analyse codes of Python as well?

    • @digitizeo
      @digitizeo 2 роки тому

      @@RAMANKUMARGCEBIT Yes, you can!

  • @alphaman3765
    @alphaman3765 Рік тому +1

    I tried to run sonarqube,its telling in the terminal that it started.But the problem is when I tries to open sonarqube in port 9000 , its not working

  • @mayurborse9765
    @mayurborse9765 Рік тому +1

    why there is no wrapper.conf file in my downloaded sonrqube?

  • @gauravchauhan-en9kc
    @gauravchauhan-en9kc 2 роки тому

    For me, Below error is coming.
    Error : 2022.07.20 20:46:38 ERROR app[][o.s.a.p.ManagedProcessHandler] Failed to launch process [ElasticSearch]
    java.lang.IllegalStateException: Could not delete Elasticsearch temporary conf directory
    Please help.

    • @Engineerhoon
      @Engineerhoon  2 роки тому

      According to the below link, it suggests to re-download the Sonarqube for the mentioned issue..
      community.sonarsource.com/t/cannot-start-sonarqube-8-9-es-not-starting/49522

  • @ThatFirstRep
    @ThatFirstRep 2 роки тому +1

    Amazing work and tutorial! Keep it up please! 🙏

  • @divyad8087
    @divyad8087 Рік тому +2

    Hi, without database(SQL) can we analyse project and show coverage in sonarqube dashboard?

  • @GauravGupta-vo4ii
    @GauravGupta-vo4ii Рік тому

    To the point video, Thanks it was helpful.

    • @Engineerhoon
      @Engineerhoon  Рік тому

      You're welcome. Check SonarQube playlist for more such videos.

  • @princesahoo3704
    @princesahoo3704 Рік тому

    When we are testing using sonarqube, In intelijidea through sonarlint plugin it shows the issues. While in the sonarqube dashboard the issues are not reported like it shows 0 bugs ,0 vulnerabilities and 0 debt ,0 security hotspots,0 code smells not in new code abd also in overall source code.
    How to solve this issue ?

  • @Johnello1
    @Johnello1 11 місяців тому

    Hello sir! Thanks for this amazing tutorial! A quick quesiton for you and for everyone that can help me with this asnwer - can this be used for Wordpress plugins as well? (they are written in PHP mostly and some JS libraries etc). I am curious to hear from you guys if you know any tutorial for this, or if it's even possible.. cheers

  • @dhruvsinghkushwah5919
    @dhruvsinghkushwah5919 2 роки тому

    Loved it. And everything ran perfectly fine for me. I have a mac m1 btw so had to follow a different set of steps. And plus I was using docker so used an argument to indicate that I want to use Linux on an arm architecture
    Thanks a lot!

    • @Engineerhoon
      @Engineerhoon  2 роки тому

      Welcome!

    • @ochoax2628
      @ochoax2628 Рік тому

      Hi Bro, do you have any tutorial for installing Sonarqube in mac M1?. I'm currently on it but I haven't found any video to install the app on MAC M1

  • @ronakpathak1866
    @ronakpathak1866 2 роки тому

    Well explained.. To the point.. Keep up the good work

  • @kunalbagwe6091
    @kunalbagwe6091 2 роки тому

    Hello,
    I have one question here, I am executing a docker instance of Sonar and I need to change default branch from master to dev for all projects.
    How that has to be configured, please help.
    Thanks in Advance

  • @anoopkathait-t8o
    @anoopkathait-t8o 6 місяців тому

    Thanks for this video

  • @josephtsibiya6396
    @josephtsibiya6396 2 роки тому +1

    Thank you very much, you helped me a lot.

  • @amirizwan6171
    @amirizwan6171 2 роки тому +1

    Hey, may I know what kind of terminal or how you can make that kind of terminal on Mac? Thanks

  • @ArturoDevA
    @ArturoDevA 2 роки тому +1

    how install in apple silicon ?

  • @knownisdropunknownisocean.9282
    @knownisdropunknownisocean.9282 2 роки тому +1

    short and sweet..

  • @vinodkumarrdeekonda3135
    @vinodkumarrdeekonda3135 2 роки тому

    great video, i can able to setup successfully without any error. Thanks

  • @markdarwinvillarta3768
    @markdarwinvillarta3768 Рік тому

    Amazing tutorial, pls tell me how to backup current sonarqube setup or backup its current instance/database if incase my server got f* out so that I can restore it.

    • @Engineerhoon
      @Engineerhoon  Рік тому

      Backing up your SonarQube setup, including its instance and database, is crucial to ensure you can restore your code analysis environment in case of server issues or data loss. Here are the steps to backup and restore SonarQube:
      Backup SonarQube Instance:
      Stop SonarQube Server: Before taking any backups, stop the SonarQube server to ensure data consistency.
      Backup SonarQube Home Directory: The SONARQUBE_HOME directory contains configuration files, plugins, and other settings specific to your SonarQube instance. Create a copy of this directory as your backup. The location of this directory can vary based on your installation method but is often found in /opt/sonarqube or C:\SonarQube.
      Database Backup: If you're using an external database (e.g., PostgreSQL, MySQL, or Oracle), you should regularly back up your database separately. The method for doing this will depend on the specific database system you're using. Consult your database documentation for instructions on how to perform backups.
      Restore SonarQube Instance:
      To restore your SonarQube instance, follow these steps:
      Install SonarQube: Install a fresh instance of SonarQube on a new server or environment if your previous one is no longer accessible. Ensure that the SonarQube version matches the one you backed up.
      Stop SonarQube Server: Stop the newly installed SonarQube server.
      Restore SonarQube Home Directory: Replace the SONARQUBE_HOME directory in the new installation with the backup copy from your old server. This will bring back your previous configurations and plugins.
      Database Restore: If you backed up your database separately, restore it to the new database server. Follow the instructions provided by your specific database system for restoring a backup.
      Update Configuration: Check and update the sonar.properties file in your SONARQUBE_HOME/conf directory if necessary. Ensure that the database connection settings and any other configurations are correctly set up for the new environment.
      Start SonarQube Server: Start the SonarQube server in the new environment.
      Verify: Access the SonarQube web interface and verify that your projects, settings, and data are restored correctly.

  • @saurabhmaurya6964
    @saurabhmaurya6964 Рік тому

    @Engineerhooon wrapper.conf is now missing after extracting then how to set specific jdk ? help please

    • @Engineerhoon
      @Engineerhoon  Рік тому

      You need jdk 17 installed to run SonarQube. Use sonar.properties to update any requires properties.

    • @saurabhmaurya6964
      @saurabhmaurya6964 Рік тому +1

      @@Engineerhoon can you connect with me seperately on meet if you have time?..then ....help me...

    • @Engineerhoon
      @Engineerhoon  Рік тому

      @@saurabhmaurya6964 Yes we can discuss. Please reach out to me on LinkedIn : www.linkedin.com/in/sunny-shaw/

  • @himabinduj3805
    @himabinduj3805 2 роки тому +1

    why code coverage 0.0%, can you share a video to achieve code coverage for gradle projects.

    • @Engineerhoon
      @Engineerhoon  2 роки тому

      I have a separate video on this. Watch it here ua-cam.com/video/zM2DOalHxHY/v-deo.html

  • @RAMANKUMARGCEBIT
    @RAMANKUMARGCEBIT 2 роки тому

    is the oracle jre and openjdk same? i have dwld version 11 of OpenJDK, do i also need to install OracleJRE ?

    • @Engineerhoon
      @Engineerhoon  2 роки тому

      The JDK includes the JRE. You do not have to download it separately

  • @justasj5628
    @justasj5628 2 місяці тому

    Thank you!

    • @Engineerhoon
      @Engineerhoon  2 місяці тому

      You’re welcome. Checkout other videos on my channel. You may find it helpful.

  • @KhuviJais
    @KhuviJais Рік тому

    Great explanation

  • @tejav143
    @tejav143 3 роки тому +1

    How can we integrate to the branches in sonar cloud?

    • @Engineerhoon
      @Engineerhoon  3 роки тому +1

      You can refer this doc docs.sonarqube.org/latest/branches/overview/

  • @affanahamed9660
    @affanahamed9660 2 роки тому

    Hey, bro your videos are great can u make the same sonarqube download and set up the video for the windows platform. and what to do if we get the error ' .bat ' command not found in the internal or external commands ..?????

    • @Engineerhoon
      @Engineerhoon  2 роки тому

      Refer this stackoverflow.com/questions/37695712/sonnar-runner-error-sonar-runner-is-not-recognized-as-an-internal-or-external

  • @mahendrareddy4557
    @mahendrareddy4557 Рік тому

    I have already project is there how to set up sonarqube?

  • @ParagOak
    @ParagOak Рік тому

    Hi , I’m new to this. I need help. I’m able to run sonar with docker but while adding bitbucket repo it showing Workspace ID validation error. And as per bitbucket this is low priority issue.
    Can you help to setup bitbucket with sonar?
    ( I want to scan angular project through sonar )

    • @Engineerhoon
      @Engineerhoon  Рік тому

      Please try following the official docs docs.sonarqube.org/latest/devops-platform-integration/bitbucket-integration/bitbucket-server-integration/

  • @nooruldeenqader6061
    @nooruldeenqader6061 2 роки тому

    Thanks a lot, it is a best help

  • @rutujamhatre5486
    @rutujamhatre5486 3 роки тому

    Whenever I am trying to add postgresql credentials in sonar.properties file, getting authentication error in the frontend.
    In logs, getting only one warning: To change the default administrator credentials-which i've already changed.
    Pls help!

    • @Engineerhoon
      @Engineerhoon  3 роки тому +1

      Verify the credentials once if those are correct. Also, check other log files.

  • @lalitcdac
    @lalitcdac 3 роки тому +1

    Can Sonar be used to analyse python/pytest projects?

    • @Engineerhoon
      @Engineerhoon  3 роки тому +1

      Yes. You can refer this link docs.sonarqube.org/latest/analysis/languages/python/

  • @salmahassan8689
    @salmahassan8689 2 роки тому

    Thanks for this helpful video

  • @narendrakumariitb
    @narendrakumariitb 2 роки тому

    Thank you brother🤗

  • @ducnguyendinhtrung4745
    @ducnguyendinhtrung4745 3 роки тому +1

    hi bro, are there any versions of SonarQube can do on java 8. Thanks

    • @Engineerhoon
      @Engineerhoon  3 роки тому +2

      You can use any stable version

    • @ducnguyendinhtrung4745
      @ducnguyendinhtrung4745 3 роки тому

      @@Engineerhoon i try it on my mac but i can’t up my project into it :((((

    • @Engineerhoon
      @Engineerhoon  3 роки тому

      @@ducnguyendinhtrung4745 Can you check logs? That might help you to resolve the issue.

  • @dilipgowda2916
    @dilipgowda2916 3 роки тому +1

    I have setup same as yours, but my code coverage is 0.I have almost 10 test cases

    • @Engineerhoon
      @Engineerhoon  3 роки тому

      I have already made a video on that. Check out this video ua-cam.com/video/zM2DOalHxHY/v-deo.html

  • @RAMANKUMARGCEBIT
    @RAMANKUMARGCEBIT 2 роки тому

    thank u for the video, can i use it to analyse python codes?

  • @oladimejijames9554
    @oladimejijames9554 3 роки тому

    i can't edit my wrapper.conf, it appears that is a read-only file

    • @Engineerhoon
      @Engineerhoon  3 роки тому

      Try changing the permission. On which editor you are trying to edit?

  • @bilalchandio1
    @bilalchandio1 Рік тому

    How to link java plain code with sonarqube for analyisis?

    • @Engineerhoon
      @Engineerhoon  Рік тому

      It should be either Gradle or Maven project so that sonarqube plugin can be added.

  • @sandeepmathu8861
    @sandeepmathu8861 Рік тому

    hi bro. i have one doubt. how to take backup and recovery of all the projects?

    • @Engineerhoon
      @Engineerhoon  Рік тому

      Backup of projects from where? If you want to backup project's analysis report then getting a DB backup where reports are persisted can be enough.

  • @preet5472
    @preet5472 Рік тому

    Can you help me to set sonarqube in https & how to pass ssl when scan report sent to sonare servers

  • @amritanshusatapathy9149
    @amritanshusatapathy9149 Рік тому

    How to add security rules?

  • @parthapaul1249
    @parthapaul1249 3 роки тому

    Bro will it work on Java 8("1.8.0_301")??

    • @Engineerhoon
      @Engineerhoon  3 роки тому

      No, according to docs docs.sonarqube.org/latest/requirements/requirements/

  • @manasnaik6904
    @manasnaik6904 2 роки тому

    fir me its always giving error "You're not authorized to run analysis. Please contact the project administrator." However i provided all level access.

    • @Engineerhoon
      @Engineerhoon  2 роки тому +1

      Could you please follow what is suggested in the below link
      community.sonarsource.com/t/error-youre-not-authorized-to-run-analysis-please-contact-the-project-administrator/11979/5

  • @arnaudfrancktaptuekuate5367
    @arnaudfrancktaptuekuate5367 2 роки тому

    is very fast but the video was great .thank you!

    • @Engineerhoon
      @Engineerhoon  2 роки тому

      You're welcome! Also, thanks for the feedback. Much appreciated.

  • @ghury1
    @ghury1 2 роки тому +1

    is it free? Can i use it to analyze javascript/typescript projects?

    • @Engineerhoon
      @Engineerhoon  2 роки тому

      Yes, SonarQube supports analysis of JavaScript and TypeScript projects.

  • @claudiozimmermannjunior9118
    @claudiozimmermannjunior9118 2 роки тому

    Thank you for the help

  • @SudhanshuSrivastavaIndia
    @SudhanshuSrivastavaIndia 3 роки тому

    This is really helpful.

  • @virtualnerd8344
    @virtualnerd8344 3 роки тому

    brother where can we get this vode snippet to run on sonar

    • @Engineerhoon
      @Engineerhoon  3 роки тому +1

      Do you want configuration or the project?

    • @virtualnerd8344
      @virtualnerd8344 3 роки тому

      @@Engineerhoon bro project code snippet, to run sonar on

    • @Engineerhoon
      @Engineerhoon  3 роки тому +1

      @@virtualnerd8344 You can use any project. Try out the same Snake and ladder repo from my Github. Link is in the description.

    • @virtualnerd8344
      @virtualnerd8344 3 роки тому

      @@Engineerhoon thank you brother

    • @virtualnerd8344
      @virtualnerd8344 3 роки тому

      @@Engineerhoon bro there is no link in the description

  • @AnilKumar-ei8uy
    @AnilKumar-ei8uy 2 роки тому

    How can we download that report

  • @ahmedelsabagh6990
    @ahmedelsabagh6990 2 роки тому

    Very helpful tutorial

  • @neverStopLearning3
    @neverStopLearning3 3 роки тому

    Thank you for very nice video, I found an error on my terminal that Failled to start SonarQube, thanks

  • @naglaaly2143
    @naglaaly2143 2 роки тому

    can you analyze php projects?

    • @Engineerhoon
      @Engineerhoon  2 роки тому

      I haven't tried it but you can follow the below document to analyze php projects
      docs.sonarqube.org/latest/analysis/languages/php/

  • @krishnataninki3391
    @krishnataninki3391 2 роки тому

    ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.

    • @Engineerhoon
      @Engineerhoon  2 роки тому

      Could you please check logs file for exact error?

  • @SridharA-kq4xw
    @SridharA-kq4xw Рік тому +1

    HI: Please speak with proper guidance not that much speed and commands need to be clear for learners.If you are that speed how can we grab it.

    • @Engineerhoon
      @Engineerhoon  Рік тому

      Sorry about that. Will take care in future videos. For now, you can try out watching this video at 0.75x speed [UA-cam feature to slow down the normal speed]

  • @blueberrydiw8340
    @blueberrydiw8340 3 роки тому

    Why everyone skips the postgresql part

    • @Engineerhoon
      @Engineerhoon  3 роки тому

      Hi, Setting up a Postgress server is a different topic. I have mentioned the Postgress configuration required for Sonarqube at timestamp 6:51.
      For the Postgress setup using docker compose, you can refer to this bit.ly/3CiJVf0 or you can refer to other resources on internet. Hope this helps.

  • @jayakataboina1522
    @jayakataboina1522 3 роки тому +1

    Hi

  • @lucacaracciolo2060
    @lucacaracciolo2060 8 місяців тому

    AIUTOOOOOO

  • @v.sreesairam9488
    @v.sreesairam9488 6 місяців тому

    Hello sir I am getting issue like this what to do for this??
    java.io.IOException: Cannot create directory '/var/sonarqube/data'.
    at org.apache.commons.io.FileUtils.mkdirs(FileUtils.java:2361)
    at org.apache.commons.io.FileUtils.forceMkdir(FileUtils.java:1429)
    at org.sonar.application.AppFileSystem.createDirectory(AppFileSystem.java:80)
    at org.sonar.application.AppFileSystem.reset(AppFileSystem.java:59)
    at org.sonar.application.App.start(App.java:53)
    at org.sonar.application.App.main(App.java:81)
    I have tried everymethod but not able to rectify this

    • @Engineerhoon
      @Engineerhoon  6 місяців тому

      Follow this post community.sonarsource.com/t/sonarqube-shuts-back-down/15853

  • @OscarDiaz-sk8jy
    @OscarDiaz-sk8jy 7 місяців тому

    Nice video, How can I contact you?

    • @Engineerhoon
      @Engineerhoon  7 місяців тому

      engineerhoon_2.0 my insta handle

  • @jayakataboina1522
    @jayakataboina1522 3 роки тому

    Hi