ERROR: exec: /usr/bin/java/bin/java: cannot execute: Not a directory

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

ERROR: exec: /usr/bin/java/bin/java: cannot execute: Not a directory

Jagadeesh YENNE
Hi All,

While I am running sonar-scanner job, I am getting below error, could someone suggest me how to proceed on it.
[MFT-Frontend-CI-Dev-UpdatedNode] $ /bin/bash /tmp/jenkins1683394883835788984.sh Running Sonar > market-forecaster-frontend@0.0.0 sonar /mnt/block_device/jenkins1/workspace/MFT-Frontend/MFT-Frontend-CI-Dev-UpdatedNode/mft-frontend > sonar-scanner /mnt/block_device/jenkins1/workspace/MFT-Frontend/MFT-Frontend-CI-Dev-UpdatedNode/mft-frontend/node_modules/sonar-scanner/bin/sonar-scanner: line 59: /usr/bin/java/bin/java: Not a directory /mnt/block_device/jenkins1/workspace/MFT-Frontend/MFT-Frontend-CI-Dev-UpdatedNode/mft-frontend/node_modules/sonar-scanner/bin/sonar-scanner: line 59: exec: /usr/bin/java/bin/java: cannot execute: Not a directory npm ERR! code ELIFECYCLE npm ERR! errno 126 npm ERR! market-forecaster-frontend@0.0.0 sonar: `sonar-scanner` npm ERR! Exit status 126 npm ERR! npm ERR! Failed at the market-forecaster-frontend@0.0.0 sonar script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /mnt/block_device/jenkins1/.npm/_logs/2020-06-05T18_00_28_687Z-debug.log Build step 'Execute shell' marked build as failure Finished: FAILURE

Regards,
Jagadeesh

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f590f5dc-69ab-4267-a163-3a3d87480be0o%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: ERROR: exec: /usr/bin/java/bin/java: cannot execute: Not a directory

Antonio Gomez
Hello,
In global tools configuration check in JDK instalations if java path is correct.
Check also $PATH from user that run this jobs

El mar., 16 jun. 2020 a las 19:41, Jagadeesh YENNE (<[hidden email]>) escribió:
Hi All,

While I am running sonar-scanner job, I am getting below error, could someone suggest me how to proceed on it.
[MFT-Frontend-CI-Dev-UpdatedNode] $ /bin/bash /tmp/jenkins1683394883835788984.sh Running Sonar > market-forecaster-frontend@0.0.0 sonar /mnt/block_device/jenkins1/workspace/MFT-Frontend/MFT-Frontend-CI-Dev-UpdatedNode/mft-frontend > sonar-scanner /mnt/block_device/jenkins1/workspace/MFT-Frontend/MFT-Frontend-CI-Dev-UpdatedNode/mft-frontend/node_modules/sonar-scanner/bin/sonar-scanner: line 59: /usr/bin/java/bin/java: Not a directory /mnt/block_device/jenkins1/workspace/MFT-Frontend/MFT-Frontend-CI-Dev-UpdatedNode/mft-frontend/node_modules/sonar-scanner/bin/sonar-scanner: line 59: exec: /usr/bin/java/bin/java: cannot execute: Not a directory npm ERR! code ELIFECYCLE npm ERR! errno 126 npm ERR! market-forecaster-frontend@0.0.0 sonar: `sonar-scanner` npm ERR! Exit status 126 npm ERR! npm ERR! Failed at the market-forecaster-frontend@0.0.0 sonar script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /mnt/block_device/jenkins1/.npm/_logs/2020-06-05T18_00_28_687Z-debug.log Build step 'Execute shell' marked build as failure Finished: FAILURE

Regards,
Jagadeesh

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f590f5dc-69ab-4267-a163-3a3d87480be0o%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CACr-XEnFjWZAbBxD8v6ZgbQ2c6RbzQqxnbtVcbJ4_D%2B-kR1vBQ%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: ERROR: exec: /usr/bin/java/bin/java: cannot execute: Not a directory

Jagadeesh Yenne-2
Our slave nodes are being used by 2(old & new) master servers, Jenkins job is successful when we trigger the build from old server (with jenkins user ) but failed with new jenkins master (with jenkins1 user)

I have checked java path and the user path both looks good.

The below query is another query
======================
We are trying to upgrade our production jenkins server but afraid of if something goes wrong, could you suggest the best way to do this.

Regards,
Jagadeesh


On Wednesday, June 17, 2020 at 12:12:23 PM UTC+5:30, Antonio Gomez wrote:
Hello,
In global tools configuration check in JDK instalations if java path is correct.
Check also $PATH from user that run this jobs

El mar., 16 jun. 2020 a las 19:41, Jagadeesh YENNE (<<a href="javascript:" target="_blank" gdf-obfuscated-mailto="SgPYotWtBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">yennek...@...>) escribió:
Hi All,

While I am running sonar-scanner job, I am getting below error, could someone suggest me how to proceed on it.
[MFT-Frontend-CI-Dev-UpdatedNode] $ /bin/bash /tmp/jenkins1683394883835788984.sh Running Sonar > market-forecaster-frontend@0.0.0 sonar /mnt/block_device/jenkins1/workspace/MFT-Frontend/MFT-Frontend-CI-Dev-UpdatedNode/mft-frontend > sonar-scanner /mnt/block_device/jenkins1/workspace/MFT-Frontend/MFT-Frontend-CI-Dev-UpdatedNode/mft-frontend/node_modules/sonar-scanner/bin/sonar-scanner: line 59: /usr/bin/java/bin/java: Not a directory /mnt/block_device/jenkins1/workspace/MFT-Frontend/MFT-Frontend-CI-Dev-UpdatedNode/mft-frontend/node_modules/sonar-scanner/bin/sonar-scanner: line 59: exec: /usr/bin/java/bin/java: cannot execute: Not a directory npm ERR! code ELIFECYCLE npm ERR! errno 126 npm ERR! market-forecaster-frontend@0.0.0 sonar: `sonar-scanner` npm ERR! Exit status 126 npm ERR! npm ERR! Failed at the market-forecaster-frontend@0.0.0 sonar script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /mnt/block_device/jenkins1/.npm/_logs/2020-06-05T18_00_28_687Z-debug.log Build step 'Execute shell' marked build as failure Finished: FAILURE

Regards,
Jagadeesh

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="SgPYotWtBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkins...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/f590f5dc-69ab-4267-a163-3a3d87480be0o%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/f590f5dc-69ab-4267-a163-3a3d87480be0o%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/f590f5dc-69ab-4267-a163-3a3d87480be0o%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/f590f5dc-69ab-4267-a163-3a3d87480be0o%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f783521f-25e1-4de5-a9f9-65d94a23197eo%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: ERROR: exec: /usr/bin/java/bin/java: cannot execute: Not a directory

chencho m-a
In reply to this post by Jagadeesh YENNE
The error says that java is not a directory. Maybe you have your classpath pointing to binary instead of the directory

El martes, 16 de junio de 2020, 19:41:01 (UTC+2), Jagadeesh YENNE escribió:
Hi All,

While I am running sonar-scanner job, I am getting below error, could someone suggest me how to proceed on it.
[MFT-Frontend-CI-Dev-UpdatedNode] $ /bin/bash /tmp/jenkins1683394883835788984.sh Running Sonar > market-forecaster-frontend@0.0.0 sonar /mnt/block_device/jenkins1/workspace/MFT-Frontend/MFT-Frontend-CI-Dev-UpdatedNode/mft-frontend > sonar-scanner /mnt/block_device/jenkins1/workspace/MFT-Frontend/MFT-Frontend-CI-Dev-UpdatedNode/mft-frontend/node_modules/sonar-scanner/bin/sonar-scanner: line 59: /usr/bin/java/bin/java: Not a directory /mnt/block_device/jenkins1/workspace/MFT-Frontend/MFT-Frontend-CI-Dev-UpdatedNode/mft-frontend/node_modules/sonar-scanner/bin/sonar-scanner: line 59: exec: /usr/bin/java/bin/java: cannot execute: Not a directory npm ERR! code ELIFECYCLE npm ERR! errno 126 npm ERR! market-forecaster-frontend@0.0.0 sonar: `sonar-scanner` npm ERR! Exit status 126 npm ERR! npm ERR! Failed at the market-forecaster-frontend@0.0.0 sonar script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /mnt/block_device/jenkins1/.npm/_logs/2020-06-05T18_00_28_687Z-debug.log Build step 'Execute shell' marked build as failure Finished: FAILURE

Regards,
Jagadeesh

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/738ac41f-1515-4e1c-9876-f3a662ded949o%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: ERROR: exec: /usr/bin/java/bin/java: cannot execute: Not a directory

Dirk Heinrichs-3
In reply to this post by Jagadeesh YENNE
Am Dienstag, den 16.06.2020, 07:35 -0700 schrieb Jagadeesh YENNE:

/mnt/block_device/jenkins1/workspace/MFT-Frontend/MFT-Frontend-CI-Dev-UpdatedNode/mft-frontend/node_modules/sonar-scanner/bin/sonar-scanner: line 59: /usr/bin/java/bin/java: Not a directory
/mnt/block_device/jenkins1/workspace/MFT-Frontend/MFT-Frontend-CI-Dev-UpdatedNode/mft-frontend/node_modules/sonar-scanner/bin/sonar-scanner: line 59: exec: /usr/bin/java/bin/java: cannot execute: Not a directory

Maybe your $JAVA_HOME is wrong? To verify, add an "execute shell" step to your job which executes an "echo $JAVA_HOME" command.

HTH...

Dirk
-- 
Dirk Heinrichs
Senior Systems Engineer, Delivery Pipeline
OpenText ™ Discovery | Recommind
Phone: +49 2226 15966 18
Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
Vertretungsberechtigte Geschäftsführer Gordon Davies, Madhu Ranganathan, Christian Waida, Registergericht Amtsgericht Bonn, Registernummer HRB 10646
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht gestattet.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/8f9da5c3c3524a806255d12c0a2a4c36d8e6db6e.camel%40opentext.com.

signature.asc (235 bytes) Download Attachment