infra-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Lambertus (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (INFRA-15923) Permission denied to run JVM(latest1.9) on Jenkins machine ubuntu-1
Date Sat, 27 Jan 2018 22:12:00 GMT

    [ https://issues.apache.org/jira/browse/INFRA-15923?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16342342#comment-16342342
] 

Chris Lambertus edited comment on INFRA-15923 at 1/27/18 10:11 PM:
-------------------------------------------------------------------

I'm guessing the problem is the carriage return between JAVA_HOME and /bin/java

on ubuntu-1:

cml@pietas:~$ /home/jenkins/tools/java/latest1.9/bin/java -version
java version "9.0.1"

Try using echo -en $JAVA_HOME rather than just echo -e to suppress the newline. On Windows,
it would be echo | set /p=%JAVA_HOME%


was (Author: cml):
I'm guessing the problem is the carriage return between JAVA_HOME and /bin/java

on ubuntu-1:

cml@pietas:~$ /home/jenkins/tools/java/latest1.9/bin/java -version
java version "9.0.1"

Try using echo -en $JAVA_HOME rather than just echo -e to suppress the newline. On Windows,
it would be echo | set /p=%JAVA_HOME

> Permission denied to run JVM(latest1.9) on Jenkins machine ubuntu-1
> -------------------------------------------------------------------
>
>                 Key: INFRA-15923
>                 URL: https://issues.apache.org/jira/browse/INFRA-15923
>             Project: Infrastructure
>          Issue Type: Bug
>          Components: Jenkins
>            Reporter: Tibor Digana
>            Priority: Critical
>
> I am running job, see logs [1], with Java 9. Our project runs ordinal function "withMaven"
and the build forks execution in another JVM with Java 9.
> The problem is that the forked JVM does not have permissions to run:
> [linux-jdk9-maven3.5.x] /bin/sh: 1: /home/jenkins/tools/java/latest1.9: Permission denied
> [linux-jdk9-maven3.5.x] /bin/sh: 2: /bin/java: not found
> [1]:
> https://builds.apache.org/view/M-R/view/Maven/job/maven-surefire-pipeline/job/SUREFIRE-1463/57/console



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message