# Embedded JRE 17 is lacking permissions to execute programs

**URL:** <https://community.sonarsource.com/t/embedded-jre-17-is-lacking-permissions-to-execute-programs/96820>\
**Category:** SonarQube Cloud\
**Created:** [August 3, 2023, 1:48pm UTC](https://community.sonarsource.com/t/embedded-jre-17-is-lacking-permissions-to-execute-programs/96820 "2023-08-03T13:48:54Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gilthoniel](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/gilthoniel/32/47910_2.png) [@Gilthoniel](https://community.sonarsource.com/u/Gilthoniel)\
**Post date:** [August 3, 2023, 1:48pm UTC](https://community.sonarsource.com/t/embedded-jre-17-is-lacking-permissions-to-execute-programs/96820/1 "2023-08-03T13:48:54Z")

</div>

Hi,

We have recently upgraded sonar-scanner cli to the latest release 5.0.0. Before anything, please note that we are downloading the binary to run it into a Jenkins instance. This was working until we recently upgraded to the latest release 5.0.0 that now embeds the JDK 17.

While running the analysis, we get this error:

```auto
13:24:26 ERROR: Unable to parse file: ****. 
13:24:26 ERROR: Cannot parse ' ****': Cannot run program "**** /sonar-go-to-slang-linux-amd64": error=13, Permission denied

```

After some investigation, we found out that the reason was the lack of execute permission for `sonar-scanner/jre/lib/jspawnhelper`. After adding a `chmod +x` for this executable in our pipeline, things got resolved and the analysis are running fine again.

I’m not very clear if our setup is too specific and we are the only ones hit by this but that will at least be documented somewhere if needed.

Bests

---

<div class="post-metadata">

**Author:** ![ZoranIlievski](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/zoranilievski/32/47955_2.png) [@ZoranIlievski](https://community.sonarsource.com/u/ZoranIlievski)\
**Post date:** [August 4, 2023, 5:34am UTC](https://community.sonarsource.com/t/embedded-jre-17-is-lacking-permissions-to-execute-programs/96820/3 "2023-08-04T05:34:53Z")

</div>

Hey Gilthoniel

Thank you for raising this issue.

I experienced the same issue when upgrading the scanner to 5.0.0 to use JDK 17.  
In our case we are downloading it in an AWS CodeBuild project before running the scanner.

It all worked fine before the upgrade. The problem is for a golang project.

I upgraded the scanner for another node.js project and it ran the scan successfully, however also noted problems with permissions.

```auto
ERROR: Error when running: 'node -v'. Is Node.js available during analysis?
org.sonar.plugins.javascript.nodejs.NodeCommandException: Error when running: 'node -v'. Is Node.js available during analysis?
    at org.sonar.plugins.javascript.nodejs.NodeCommand.start(NodeCommand.java:85)
    at org.sonar.plugins.javascript.nodejs.NodeCommandBuilderImpl.getVersion(NodeCommandBuilderImpl.java:217)
    at org.sonar.plugins.javascript.nodejs.NodeCommandBuilderImpl.checkNodeCompatibility(NodeCommandBuilderImpl.java:173)
    at org.sonar.plugins.javascript.nodejs.NodeCommandBuilderImpl.build(NodeCommandBuilderImpl.java:146)
    at org.sonar.plugins.javascript.eslint.EslintBridgeServerImpl.initNodeCommand(EslintBridgeServerImpl.java:254)
    at org.sonar.plugins.javascript.eslint.EslintBridgeServerImpl.startServer(EslintBridgeServerImpl.java:182)
    at org.sonar.plugins.javascript.eslint.EslintBridgeServerImpl.startServerLazily(EslintBridgeServerImpl.java:294)
    at org.sonar.plugins.javascript.eslint.AbstractEslintSensor.execute(AbstractEslintSensor.java:73)
    at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:62)
    at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:75)
    at org.sonar.scanner.sensor.ModuleSensorsExecutor.lambda$execute$1(ModuleSensorsExecutor.java:48)
    at org.sonar.scanner.sensor.ModuleSensorsExecutor.withModuleStrategy(ModuleSensorsExecutor.java:66)
    at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:48)
    at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:64)
    at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
    at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
    at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:468)
    at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:464)
    at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:420)
    at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
    at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
    at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:128)
    at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
    at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
    at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:57)
    at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:51)
    at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.base/java.lang.reflect.Method.invoke(Unknown Source)
    at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
    at jdk.proxy1/jdk.proxy1.$Proxy0.execute(Unknown Source)
    at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
    at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
    at org.sonarsource.scanner.cli.Main.execute(Main.java:126)
    at org.sonarsource.scanner.cli.Main.execute(Main.java:81)
    at org.sonarsource.scanner.cli.Main.main(Main.java:62)
Caused by: java.io.IOException: Cannot run program "node": error=13, Permission denied
    at java.base/java.lang.ProcessBuilder.start(Unknown Source)
    at java.base/java.lang.ProcessBuilder.start(Unknown Source)
    at org.sonar.plugins.javascript.nodejs.ProcessWrapperImpl.startProcess(ProcessWrapperImpl.java:43)
    at org.sonar.plugins.javascript.nodejs.NodeCommand.start(NodeCommand.java:82)
    ... 37 common frames omitted
Caused by: java.io.IOException: error=13, Permission denied
    at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
    at java.base/java.lang.ProcessImpl.<init>(Unknown Source)
    at java.base/java.lang.ProcessImpl.start(Unknown Source)
    ... 41 common frames omitted

```

Hopefully this can be resolved without needing to change executable permissions.

---

<div class="post-metadata">

**Author:** ![xavi](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/xavi/32/40316_2.png) [@xavi](https://community.sonarsource.com/u/xavi)\
**Post date:** [August 4, 2023, 10:33am UTC](https://community.sonarsource.com/t/embedded-jre-17-is-lacking-permissions-to-execute-programs/96820/4 "2023-08-04T10:33:34Z")

</div>

The same happens to us after upgrading Sonar Scanner from 4.7.0.2747 to 5.0.0.2966 in a Bitbucket Pipelines environment. After seeing this warning message on the scanner report, we decided to update the scanner version.

> **Warning**
> 
> - The version of Java (11.0.14.1) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17. Read more

However, the new version 5.0.0 fails:

```auto
ERROR: Error during SonarScanner execution
java.lang.IllegalStateException: java.io.IOException: Cannot run program "/opt/atlassian/pipelines/agent/build/.scannerwork/.sonartmp/7494877700764160272/subprocess" (in directory "/opt/atlassian/pipelines/agent/build/Src/QLPRLib/build"): error=13, Permission denied
	at com.sonar.cpp.driver.ProcessExecutor.execute(ProcessExecutor.java:73)

```

---

<div class="post-metadata">

**Author:** ![jrouwe](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/jrouwe/32/47976_2.png) [@jrouwe](https://community.sonarsource.com/u/jrouwe)\
**Post date:** [August 4, 2023, 10:51am UTC](https://community.sonarsource.com/t/embedded-jre-17-is-lacking-permissions-to-execute-programs/96820/5 "2023-08-04T10:51:25Z")

</div>

I seem to be running into the same issue using a Github Action:

```auto
ERROR: Error during SonarScanner execution
java.lang.IllegalStateException: java.io.IOException: Cannot run program "/home/runner/work/JoltPhysics/JoltPhysics/.scannerwork/.sonartmp/10092508975637522239/subprocess" (in directory "/home/runner/work/JoltPhysics/JoltPhysics/Build/Linux_ReleaseCoverage"): error=13, Permission denied
INFO: ------------------------------------------------------------------------
	at com.sonar.cpp.driver.ProcessExecutor.execute(ProcessExecutor.java:73)
	at com.sonar.cpp.driver.ProcessExecutor.execute(ProcessExecutor.java:44)
	at com.sonar.cpp.analyzer.ClangDriver.runCompiler(ClangDriver.java:874)
	at com.sonar.cpp.analyzer.ClangDriver.lambda$probeCompiler$12(ClangDriver.java:944)
	at java.base/java.util.HashMap.computeIfAbsent(Unknown Source)
	at com.sonar.cpp.analyzer.ClangDriver.probeCompiler(ClangDriver.java:944)
	at com.sonar.cpp.analyzer.ClangDriver.onCapture(ClangDriver.java:601)
	at com.sonar.cpp.analyzer.CompilerDrivers.onCapture(CompilerDrivers.java:36)

```

Yesterday it started warning that I should switch to JRE 17 and today it started failing without any configuration changes. I tried upgrading to SonarSource/sonarcloud-github-c-cpp@v2 but that doesn’t make a difference.

Github workflow is located [here](https://github.com/jrouwe/JoltPhysics/blob/master/.github/workflows/sonar-cloud.yml). I think it is pretty much a copy of what is suggested [for the action](https://github.com/SonarSource/sonarcloud-github-c-cpp).

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [August 4, 2023, 11:56am UTC](https://community.sonarsource.com/t/embedded-jre-17-is-lacking-permissions-to-execute-programs/96820/6 "2023-08-04T11:56:45Z")

</div>

Hi all,

Thanks for your reports.

Which OSes are you experiencing this on?

&nbsp;  
Thx,  
Ann

---

<div class="post-metadata">

**Author:** ![Colin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/colin/32/55255_2.png) [@Colin](https://community.sonarsource.com/u/Colin)\
**Post date:** [August 4, 2023, 12:17pm UTC](https://community.sonarsource.com/t/embedded-jre-17-is-lacking-permissions-to-execute-programs/96820/7 "2023-08-04T12:17:55Z")

</div>

Hey everyone.

We’ll take a decision by the end of today about whether or not to rollback the GitHub Action (to use the old version of the scanner), or to roll-forward, perhaps with the [suggested change in this PR](https://github.com/SonarSource/sonar-scanner-cli/pull/152).

You can also, of course, revert to the previous version of the Scanner / GitHub action and put up with the warning about Java 17 in your analysis.

Thank you for the reports. It is still helpful if you can tell us what OS you are experiencing this on.

---

<div class="post-metadata">

**Author:** ![Gilthoniel](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/gilthoniel/32/47910_2.png) [@Gilthoniel](https://community.sonarsource.com/u/Gilthoniel)\
**Post date:** [August 4, 2023, 12:21pm UTC](https://community.sonarsource.com/t/embedded-jre-17-is-lacking-permissions-to-execute-programs/96820/8 "2023-08-04T12:21:26Z")

</div>

Thank you for the feedback.

We’re running on CentOS Stream 8 on our side.

---

<div class="post-metadata">

**Author:** ![jrouwe](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/jrouwe/32/47976_2.png) [@jrouwe](https://community.sonarsource.com/u/jrouwe)\
**Post date:** [August 4, 2023, 12:44pm UTC](https://community.sonarsource.com/t/embedded-jre-17-is-lacking-permissions-to-execute-programs/96820/9 "2023-08-04T12:44:29Z")

</div>

Thanks for looking into this!

I’m running on Ubuntu 22.04.

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [August 4, 2023, 3:44pm UTC](https://community.sonarsource.com/t/embedded-jre-17-is-lacking-permissions-to-execute-programs/96820/10 "2023-08-04T15:44:14Z")

</div>

Hi all,

Thanks for your patience. We’re planning to put out a patch release of the scanner today. We’ll update here once it’s released.

&nbsp;  
Thx,  
Ann

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [August 4, 2023, 8:11pm UTC](https://community.sonarsource.com/t/embedded-jre-17-is-lacking-permissions-to-execute-programs/96820/12 "2023-08-04T20:11:26Z")

</div>

Hi again,

The final step of the release is running now. This should be available in the next few minutes.

&nbsp;  
Ann

---

<div class="post-metadata">

**Author:** ![BaboonOnTree](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/baboonontree/32/22850_2.png) [@BaboonOnTree](https://community.sonarsource.com/u/BaboonOnTree)\
**Post date:** [August 22, 2023, 8:28am UTC](https://community.sonarsource.com/t/embedded-jre-17-is-lacking-permissions-to-execute-programs/96820/13 "2023-08-22T08:28:30Z")

</div>

Hi,

I’m still getting this error on 5.0.1.3006-linux:

UPDATE: I also forgot to set execute permission on `jspawnhelper` - unfortunately it can be a common problem when using Sonar Scanner from Ant, because Ant `unzip` task does not preserve permissions. Therefore, when unzipped, no files in Sonar Scanner are executable.

```auto
[exec] ERROR: Error when running: 'node -v'. Is Node.js available during analysis?
     [exec] org.sonar.plugins.javascript.nodejs.NodeCommandException: Error when running: 'node -v'. Is Node.js available during analysis?
     [exec] at org.sonar.plugins.javascript.nodejs.NodeCommand.start(NodeCommand.java:85)
     [exec] at org.sonar.plugins.javascript.nodejs.NodeCommandBuilderImpl.getVersion(NodeCommandBuilderImpl.java:217)
     [exec] at org.sonar.plugins.javascript.nodejs.NodeCommandBuilderImpl.checkNodeCompatibility(NodeCommandBuilderImpl.java:173)
     [exec] at org.sonar.plugins.javascript.nodejs.NodeCommandBuilderImpl.build(NodeCommandBuilderImpl.java:146)
     [exec] at org.sonar.plugins.javascript.eslint.EslintBridgeServerImpl.initNodeCommand(EslintBridgeServerImpl.java:252)
     [exec] at org.sonar.plugins.javascript.eslint.EslintBridgeServerImpl.startServer(EslintBridgeServerImpl.java:180)
     [exec] at org.sonar.plugins.javascript.eslint.EslintBridgeServerImpl.startServerLazily(EslintBridgeServerImpl.java:292)
     [exec] at org.sonar.plugins.javascript.eslint.AbstractEslintSensor.execute(AbstractEslintSensor.java:74)
     [exec] at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:64)
     [exec] at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:88)
     [exec] at org.sonar.scanner.sensor.ModuleSensorsExecutor.lambda$execute$1(ModuleSensorsExecutor.java:61)
     [exec] at org.sonar.scanner.sensor.ModuleSensorsExecutor.withModuleStrategy(ModuleSensorsExecutor.java:79)
     [exec] at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:61)
     [exec] at org.sonar.scanner.scan.SpringModuleScanContainer.doAfterStart(SpringModuleScanContainer.java:82)
     [exec] at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:188)
     [exec] at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:167)
     [exec] at org.sonar.scanner.scan.SpringProjectScanContainer.scan(SpringProjectScanContainer.java:403)
     [exec] at org.sonar.scanner.scan.SpringProjectScanContainer.scanRecursively(SpringProjectScanContainer.java:399)
     [exec] at org.sonar.scanner.scan.SpringProjectScanContainer.doAfterStart(SpringProjectScanContainer.java:368)
     [exec] at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:188)
     [exec] at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:167)
     [exec] at org.sonar.scanner.bootstrap.SpringGlobalContainer.doAfterStart(SpringGlobalContainer.java:137)
     [exec] at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:188)
     [exec] at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:167)
     [exec] at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:71)
     [exec] at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:65)
     [exec] at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
     [exec] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [exec] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     [exec] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     [exec] at java.base/java.lang.reflect.Method.invoke(Unknown Source)
     [exec] at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
     [exec] at jdk.proxy1/jdk.proxy1.$Proxy0.execute(Unknown Source)
     [exec] at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
     [exec] at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
     [exec] at org.sonarsource.scanner.cli.Main.execute(Main.java:126)
     [exec] at org.sonarsource.scanner.cli.Main.execute(Main.java:81)
     [exec] at org.sonarsource.scanner.cli.Main.main(Main.java:62)
     [exec] Caused by: java.io.IOException: Cannot run program "node": error=13, Permission denied
     [exec] at java.base/java.lang.ProcessBuilder.start(Unknown Source)
     [exec] at java.base/java.lang.ProcessBuilder.start(Unknown Source)
     [exec] at org.sonar.plugins.javascript.nodejs.ProcessWrapperImpl.startProcess(ProcessWrapperImpl.java:43)
     [exec] at org.sonar.plugins.javascript.nodejs.NodeCommand.start(NodeCommand.java:82)
     [exec] ... 37 common frames omitted
     [exec] Caused by: java.io.IOException: error=13, Permission denied
     [exec] at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
     [exec] at java.base/java.lang.ProcessImpl.<init>(Unknown Source)
     [exec] at java.base/java.lang.ProcessImpl.start(Unknown Source)
     [exec] ... 41 common frames omitted

```

```auto
$ which node
/snap/bin/node
$ node -v
v16.20.1

```

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [August 22, 2023, 1:51pm UTC](https://community.sonarsource.com/t/embedded-jre-17-is-lacking-permissions-to-execute-programs/96820/14 "2023-08-22T13:51:28Z")

</div>

Hi @BaboonOnTree,

Thanks for the update.

FYI, we’ll be deprecating the SonarScanner for Ant soon. Your best bet is to switch to an `exec` of the SonarScanner CLI.

&nbsp;  
Ann

---

<div class="post-metadata">

**Author:** ![BaboonOnTree](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/baboonontree/32/22850_2.png) [@BaboonOnTree](https://community.sonarsource.com/u/BaboonOnTree)\
**Post date:** [August 23, 2023, 8:41am UTC](https://community.sonarsource.com/t/embedded-jre-17-is-lacking-permissions-to-execute-programs/96820/15 "2023-08-23T08:41:22Z")

</div>

@ganncamp you got me wrong - I didn’t use SonarScanner for Ant. I used a standalone version by fetching, unzipping and executing it from the Ant script. The problem is that when you unzip in the Ant script, as you would usually do for standalone SonarScanner, the Ant "unzip` task does not preserve file permissions and no extracted file can be executed. I think you should maybe document that somewhere because whoever using Ant migrates to standalone SonarScanner might get frustrated by such problems.

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [August 23, 2023, 11:26am UTC](https://community.sonarsource.com/t/embedded-jre-17-is-lacking-permissions-to-execute-programs/96820/16 "2023-08-23T11:26:59Z")

</div>

Hi,

I would expect the scanner to just be installed on the build agent rather than downloaded each time…

&nbsp;  
Ann

---

<div class="post-metadata">

**Author:** ![Ashwin\_S\_Rao](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ashwin_s_rao/32/48609_2.png) [@Ashwin\_S\_Rao](https://community.sonarsource.com/u/Ashwin_S_Rao)\
**Post date:** [August 26, 2023, 3:17am UTC](https://community.sonarsource.com/t/embedded-jre-17-is-lacking-permissions-to-execute-programs/96820/19 "2023-08-26T03:17:29Z")

</div>

Hello Ann,  
+1 on this same problem with the exact same sonar scanner 5.0.1.3006. So I integrated sonar scanner with Jenkins by manually downloading the zip file and unzipping into the Jenkins folder on my Ubuntu. Initially I faced problem with my JAVA and so I gave 775 permissions but cannot fix the node problem, strangely though **sh ‘node -v’** works perfectly fine in earlier step within the Jenkins pipeline, but why does it fail later??

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [August 28, 2023, 1:18pm UTC](https://community.sonarsource.com/t/embedded-jre-17-is-lacking-permissions-to-execute-programs/96820/20 "2023-08-28T13:18:08Z")

</div>

Hi @Ashwin_S_Rao,

Since 5.0.1 should have fixed the permissions problem, I suspect you have something different going on. Can you start a new thread with all your details, please?

It would be good to include your full Jenkins job log, redacted as necessary.

&nbsp;  
Ann

---

<div class="post-metadata">

**Author:** ![Ashwin\_S\_Rao](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ashwin_s_rao/32/48609_2.png) [@Ashwin\_S\_Rao](https://community.sonarsource.com/u/Ashwin_S_Rao)\
**Post date:** [August 28, 2023, 3:12pm UTC](https://community.sonarsource.com/t/embedded-jre-17-is-lacking-permissions-to-execute-programs/96820/21 "2023-08-28T15:12:21Z")

</div>

Sure Ann I have created this new issue [SONAR Scanner 5.0.1.3006 failing with node permission issue - SonarQube - Sonar Community (sonarsource.com)](https://community.sonarsource.com/t/sonar-scanner-5-0-1-3006-failing-with-node-permission-issue/98186)
