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
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!
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
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.
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.
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 ?
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 ?
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
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 )
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 ..?????
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
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.
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
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!
Sorry about that. Will take care in future videos. For now, you can try out watching this video at 0.75x speed [RUclips feature to slow down the normal speed]
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.
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
Thank you for this brief and to-the-point tutorial
Your welcome!
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
Sorry to know about that. I will work on this feedback.
I also need to use headphones in my room. By the way, excellent work 🙏
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!
Welcome!
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
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
Amazing work and tutorial! Keep it up please! 🙏
Thanks! 🙂
Hi, without database(SQL) can we analyse project and show coverage in sonarqube dashboard?
Yes. Embedded DB is a default option.
To the point video, Thanks it was helpful.
You're welcome. Check SonarQube playlist for more such videos.
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
Well explained.. To the point.. Keep up the good work
Thanks!
great video, i can able to setup successfully without any error. Thanks
Glad to know that :)
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.
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.
short and sweet..
Thanks!
Thank you very much, you helped me a lot.
Most welcome!
why there is no wrapper.conf file in my downloaded sonrqube?
Thanks for this video
Your welcome!
Thank you!
You’re welcome. Checkout other videos on my channel. You may find it helpful.
Great explanation
Thank you!
Thanks a lot, it is a best help
Glad it helped!
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 ?
is very fast but the video was great .thank you!
You're welcome! Also, thanks for the feedback. Much appreciated.
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 ?
jdk needs to be installed as Sonar scanner requires Java
@@Engineerhoon if at 12:05 we select python. can we use SonarQube to analyse codes of Python as well?
@@RAMANKUMARGCEBIT Yes, you can!
is the oracle jre and openjdk same? i have dwld version 11 of OpenJDK, do i also need to install OracleJRE ?
The JDK includes the JRE. You do not have to download it separately
Thanks for this helpful video
Most welcome
I have already project is there how to set up sonarqube?
why code coverage 0.0%, can you share a video to achieve code coverage for gradle projects.
I have a separate video on this. Watch it here ruclips.net/video/zM2DOalHxHY/видео.html
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
thank u for the video, can i use it to analyse python codes?
Yes
Thank you brother🤗
Your welcome!
Thank you for the help
Welcome!
is it free? Can i use it to analyze javascript/typescript projects?
Yes, SonarQube supports analysis of JavaScript and TypeScript projects.
This is really helpful.
Thank you 😊
Git branch is not showing in sonarqube. I can see only master and develop branches in sonar. How can i see the branches in which i made changes ?
I guess that is available only with paid subscription
Very helpful tutorial
Glad it was helpful!
hi bro. i have one doubt. how to take backup and recovery of all the projects?
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.
Thank you for very nice video, I found an error on my terminal that Failled to start SonarQube, thanks
Check log files for the error
Code coverage is showing 0% at 13:52. How to fix this issue?
Please check the other video about code coverage in the SonarQube playlist.
Can Sonar be used to analyse python/pytest projects?
Yes. You can refer this link docs.sonarqube.org/latest/analysis/languages/python/
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 )
Please try following the official docs docs.sonarqube.org/latest/devops-platform-integration/bitbucket-integration/bitbucket-server-integration/
Hey, may I know what kind of terminal or how you can make that kind of terminal on Mac? Thanks
I am using iterm with a different theme.
@@Engineerhoon thanks bro
@@amirizwan6171 Welcome!
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 ..?????
Refer this stackoverflow.com/questions/37695712/sonnar-runner-error-sonar-runner-is-not-recognized-as-an-internal-or-external
how install in apple silicon ?
How to link java plain code with sonarqube for analyisis?
It should be either Gradle or Maven project so that sonarqube plugin can be added.
I have setup same as yours, but my code coverage is 0.I have almost 10 test cases
I have already made a video on that. Check out this video ruclips.net/video/zM2DOalHxHY/видео.html
@Engineerhooon wrapper.conf is now missing after extracting then how to set specific jdk ? help please
You need jdk 17 installed to run SonarQube. Use sonar.properties to update any requires properties.
@@Engineerhoon can you connect with me seperately on meet if you have time?..then ....help me...
@@saurabhmaurya6964 Yes we can discuss. Please reach out to me on LinkedIn : www.linkedin.com/in/sunny-shaw/
fir me its always giving error "You're not authorized to run analysis. Please contact the project administrator." However i provided all level access.
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
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.
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
How can we integrate to the branches in sonar cloud?
You can refer this doc docs.sonarqube.org/latest/branches/overview/
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!
Verify the credentials once if those are correct. Also, check other log files.
How to add security rules?
Bro will it work on Java 8("1.8.0_301")??
No, according to docs docs.sonarqube.org/latest/requirements/requirements/
hi bro, are there any versions of SonarQube can do on java 8. Thanks
You can use any stable version
@@Engineerhoon i try it on my mac but i can’t up my project into it :((((
@@ducnguyendinhtrung4745 Can you check logs? That might help you to resolve the issue.
i can't edit my wrapper.conf, it appears that is a read-only file
Try changing the permission. On which editor you are trying to edit?
ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
Could you please check logs file for exact error?
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.
Sorry about that. Will take care in future videos. For now, you can try out watching this video at 0.75x speed [RUclips feature to slow down the normal speed]
How can we download that report
can you analyze php projects?
I haven't tried it but you can follow the below document to analyze php projects
docs.sonarqube.org/latest/analysis/languages/php/
Can you help me to set sonarqube in https & how to pass ssl when scan report sent to sonare servers
Yes. Please DM on linkedIn
brother where can we get this vode snippet to run on sonar
Do you want configuration or the project?
@@Engineerhoon bro project code snippet, to run sonar on
@@virtualnerd8344 You can use any project. Try out the same Snake and ladder repo from my Github. Link is in the description.
@@Engineerhoon thank you brother
@@Engineerhoon bro there is no link in the description
Why everyone skips the postgresql part
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.
Hi
AIUTOOOOOO
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
Follow this post community.sonarsource.com/t/sonarqube-shuts-back-down/15853
Nice video, How can I contact you?
engineerhoon_2.0 my insta handle
Hi