Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-62983

Agent failed to open a JVM Gateway

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Started by user unknown or anonymous
      Running as SYSTEM
      Building remotely on Agent (ki) in workspace /tmp/jenkins/workspace/demo
      Executed server : EC2
      Code Parser type : text
      Executed code output : 
      org.apache.zeppelin.interpreter.InterpreterException: org.apache.zeppelin.interpreter.InterpreterException: java.io.IOException: Fail to setup JVMGateway
      
      	at org.apache.zeppelin.interpreter.LazyOpenInterpreter.open(LazyOpenInterpreter.java:76)
      	at org.apache.zeppelin.interpreter.LazyOpenInterpreter.interpret(LazyOpenInterpreter.java:107)
      	at io.jenkins.plugins.ml.IPythonKernelInterpreter.interpretCode(IPythonKernelInterpreter.java:78)
      	at io.jenkins.plugins.ml.IPythonInterpreterManager.invokeInterpreter(IPythonInterpreterManager.java:90)
      	at io.jenkins.plugins.ml.IPythonBuilder$1.call(IPythonBuilder.java:101)
      	at io.jenkins.plugins.ml.IPythonBuilder$1.call(IPythonBuilder.java:89)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:212)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:54)
      	at hudson.remoting.Request$2.run(Request.java:369)
      	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      	at java.base/java.lang.Thread.run(Thread.java:834)
      	Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to Agent
      		at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1743)
      		at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357)
      		at hudson.remoting.Channel.call(Channel.java:957)
      		at io.jenkins.plugins.ml.IPythonBuilder.perform(IPythonBuilder.java:89)
      		at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:79)
      		at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      		at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
      		at hudson.model.Build$BuildExecution.build(Build.java:206)
      		at hudson.model.Build$BuildExecution.doRun(Build.java:163)
      		at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
      		at hudson.model.Run.execute(Run.java:1818)
      		at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      		at hudson.model.ResourceController.execute(ResourceController.java:97)
      		at hudson.model.Executor.run(Executor.java:429)
      Caused by: org.apache.zeppelin.interpreter.InterpreterException: java.io.IOException: Fail to setup JVMGateway
      
      	at org.apache.zeppelin.python.IPythonInterpreter.open(IPythonInterpreter.java:117)
      	at org.apache.zeppelin.interpreter.LazyOpenInterpreter.open(LazyOpenInterpreter.java:70)
      	... 13 more
      Caused by: java.io.IOException: Fail to setup JVMGateway
      
      	at org.apache.zeppelin.python.IPythonInterpreter.initPythonInterpreter(IPythonInterpreter.java:136)
      	at org.apache.zeppelin.python.IPythonInterpreter.open(IPythonInterpreter.java:114)
      	... 14 more
      ERROR: org.apache.zeppelin.interpreter.InterpreterException: java.io.IOException: Fail to setup JVMGateway
      
      Finished: FAILURE
      
      

        Attachments

          Issue Links

            Activity

            Hide
            kinow Bruno P. Kinoshita added a comment -

            Show
            kinow Bruno P. Kinoshita added a comment -
            Hide
            loghijiaha Loghi Perinpanayagam added a comment -

            Closing the issue as solution addressed in the comment.

            Show
            loghijiaha Loghi Perinpanayagam added a comment - Closing the issue as solution addressed in the comment.
            Hide
            loghijiaha Loghi Perinpanayagam added a comment -

            As we have a separate issue opened for windows, we can discuss JENKINS-63042 hereafter. And this is more related to an issue I faced while running an agent through the docker image. In Linux(Ubuntu), I resolved using this docker file.

            FROM jenkins/agent
            USER root
            # install pythonipip
            RUN apt-get update  && apt-get install -y \
                python-pip \
                python-backports.functools-lru-cache \
                && rm -rf /var/lib/apt/lists/*
                
            RUN pip install \
                jupyter \
                protobuf \
                grpcio
                
            USER jenkins
            

             Thus, I am closing this issue.

             

            Show
            loghijiaha Loghi Perinpanayagam added a comment - As we have a separate issue opened for windows, we can discuss JENKINS-63042 hereafter. And this is more related to an issue I faced while running an agent through the docker image. In Linux(Ubuntu), I resolved using this docker file. FROM jenkins/agent USER root # install pythonipip RUN apt-get update && apt-get install -y \ python-pip \ python-backports.functools-lru-cache \ && rm -rf / var /lib/apt/lists/* RUN pip install \ jupyter \ protobuf \ grpcio USER jenkins  Thus, I am closing this issue.  

              People

              Assignee:
              loghijiaha Loghi Perinpanayagam
              Reporter:
              loghijiaha Loghi Perinpanayagam
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: