-su: /home/sonar-runner-2.4/bin/sonar-runner.bat: Permission denied - sonarqube

I started working with sonarqube and getting stuck to get the code analyzed. Trying to add the properties of sonar in the source code file. By giving the following command
sonar-runner.bat
I am getting the error
-su: /home/sonar-runner-2.4/bin/sonar-runner.bat: Permission denied
Any help at the earliest is appreciated.

According to the error message and the name of your path, you seems to be using sonar-runner on Linux OS. In this case, you need to use sonar-runner without the bat extension.
Please note that you should use Sonar Scanner (https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner) which is the successor or Sonar Runner.

Related

Is there a better way to solve this jenkins problem

tried doing contnuous deployment and had the following error message after giving write permisions to tomcat directory

Trouble getting started with AWS Lambda locally

I'm trying to get a simple dotnet lambda up and running using the Rider AWS toolkit - starting with the SAM HelloWorld sample project, but in creating, I run into this error
java.util.concurrent.CompletionException: java.lang.RuntimeException: Could not execute `sam init`!: [Cloning from https://github.com/aws/aws-sam-cli-app-templates, Error: Unstable state when updating repo. Check that you have permissions to create/delete files in C:\Users\user_name\AppData\Roaming\AWS SAM directory or file an issue at https://github.com/aws/aws-sam-cli/issues]
I checked the permissions on that directory, and I should have full read/write. I'm not seeing anyone else running into this particular problem online. Is this indicative of any other steps I missed along the way?
The root cause is apparently a long filename issue. There is a workaround here: https://github.com/aws/aws-sam-cli/issues/3781#issuecomment-1081263942
What I did was:
Using regedit set HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem\LongPathsEnabled" to 1
With admin permissions, run git config --system core.longpaths true

When i run the Sonar-Scanner got Execution Failure in terminal or commandline

I want to generate reports through command line or from terminal NOT FROM BROWSER
NOTE:- I want to verify through typescript the code sonar-scanner
I have install sonarqube-8.5.1.38104 and sonar-scanner-4.5.0.2216-linux and react-app-sonarqube.
In react-app-sonarqube i have all files are there screenshot is
And here is my below screenshot which i have run from terminal
and
I’m new to sonar and i dont know to generate reports through terminal or command line
Please help me how can i solve and any link or commands
The failure is caused by problem with parsing the test-report.xml file. As you wrote in the comment this file is empty. Empty file is not a valid XML file.
If this file is:
generated by a tool - you have to check this tool configuration (it is broken)
added manually by you - you have to delete it

Permission Denied when executing liquibase command in Jenkins

I'm getting this permission denied error when I'm trying to execute a liquibase command as a shell command.
/tmp/jenkins976.sh: line 3: /home/ec2-user/liquibase/liquibase: Permission denied
I've given the necessary permissions to the liquibase executable.
This worked fine with a previous version of jenkins and started getting this error after upgrading jenkins.
Current Jenkins version: 2.168
Appreciate any help to resolve this issue.

Jenkins MSBuild plugin not working with cygwin on windows slave

I am trying to run msbuild on a slave with cygwin (the master is ubuntu)
I am getting the following error:
FATAL: /cygdrive/c/Windows/Microsoft.NET/Framework64/v4.0.30319/MSBuild.exe doesn't exist
The file does exist in the said location. (and I was case sensitive)
I have also installed the "cygpath" jenkins plugin, but I am still getting the same error
I also changed the path to C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe
but getting the same error (but with relevant path)
It seems that :
c:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\MSBuild.exe
does the trick

Resources