XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • Docker version 19.03.6
      Ubuntu 20.04

      While I was setting up a user example on connecting a remote IPython server,  I am stuck on this.

      Docker file

      FROM ubuntu
      RUN apt-get update
      RUN apt-get install python3 -y
      RUN apt install python3-pip -y
      RUN apt install net-tools
      RUN apt-get update && \
          DEBIAN_FRONTEND=noninteractive \
          apt-get -y install default-jre-headless && \
          apt-get clean && \
          rm -rf /var/lib/apt/lists/*
      
      # Fix certificate issues
      RUN apt-get update && \
          apt-get install ca-certificates-java && \
          apt-get clean && \
          update-ca-certificates -f;
      
      RUN export JAVA_HOME
      RUN pip3 install --no-cache-dir ipython
      RUN pip3 install --no-cache-dir jupyter-client
      RUN pip3 install --no-cache-dir protobuf
      RUN pip3 install --no-cache-dir grpcio
      
      # Setup JAVA_HOME -- useful for docker commandline
      ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64/
      

      As I attached the screenshots below, I set up my docker and Jenkins and try to run python code. It has got threw these exception.

      SEVERE: Exception while executing runnable io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1MessagesAvailable@29fad4f4
      java.lang.NullPointerException
              at io.grpc.stub.ClientCalls$StreamObserverToCallListenerAdapter.onClose(ClientCalls.java:434)
              at io.grpc.PartialForwardingClientCallListener.onClose(PartialForwardingClientCallListener.java:39)
              at io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:23)
              at io.grpc.ForwardingClientCallListener$SimpleForwardingClientCallListener.onClose(ForwardingClientCallListener.java:40)
              at io.grpc.internal.CensusStatsModule$StatsClientInterceptor$1$1.onClose(CensusStatsModule.java:678)
              at io.grpc.PartialForwardingClientCallListener.onClose(PartialForwardingClientCallListener.java:39)
              at io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:23)
              at io.grpc.ForwardingClientCallListener$SimpleForwardingClientCallListener.onClose(ForwardingClientCallListener.java:40)
              at io.grpc.internal.CensusTracingModule$TracingClientInterceptor$1$1.onClose(CensusTracingModule.java:403)
              at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:459)
              at io.grpc.internal.ClientCallImpl.access$300(ClientCallImpl.java:63)
              at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.close(ClientCallImpl.java:546)
              at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.access$600(ClientCallImpl.java:467)
              at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1MessagesAvailable.runInContext(ClientCallImpl.java:531)
              at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
              at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
              at java.lang.Thread.run(Thread.java:748)
      
      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:77)
              at io.jenkins.plugins.ml.IPythonInterpreterManager.invokeInterpreter(IPythonInterpreterManager.java:90)
              at io.jenkins.plugins.ml.IPythonBuilder.perform(IPythonBuilder.java:98)
              at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
              at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
              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:1816)
              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
      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:77)
              at io.jenkins.plugins.ml.IPythonInterpreterManager.invokeInterpreter(IPythonInterpreterManager.java:90)
              at io.jenkins.plugins.ml.IPythonBuilder.perform(IPythonBuilder.java:98)
              at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
              at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
              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:1816)
              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
      
      
        • Jenkins is running in my localhost:8080

      Question :

      It is working for the localhost( 127.0.0.1 ). Am I missing anything to connect to the docker container from Jenkins? (I could ping the docker container's IP successfully)

      Any help would be great. Thanks in advance

        1. docker_ip.png
          71 kB
          Loghi Perinpanayagam
        2. docker_jenkins.png
          17 kB
          Loghi Perinpanayagam

            loghijiaha Loghi Perinpanayagam
            loghijiaha Loghi Perinpanayagam
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: