kubeflow-kale / kale

Kubeflow’s superfood for Data Scientists
http://kubeflow-kale.github.io
Apache License 2.0
632 stars 128 forks source link

RPC Error message on Jupyter Notebook Server with Kubeflow-Kale Installed #383

Open pshah16 opened 3 years ago

pshah16 commented 3 years ago

When Kale is installed on Kubeflow Notebook Server, the RPC error shown below repeatedly and frequently (every few minutes) brings up a pop up box with a message. Kale is able to generate pipelines files when using Compile and Save button. The Kale functionality seems to be working. This repeated popup message makes it very inconvenient to work in the Notebook server environment with Kale installed on it.

Installed Kale with following Dockerfile:

ARG IMAGE_TYPE="cpu"
FROM gcr.io/kubeflow-images-public/tensorflow-1.14.0-notebook-${IMAGE_TYPE}:v0.7.0

USER root

# Install basic dependencies
RUN apt-get update && \
    apt-get install -y --no-install-recommends \
        ca-certificates bash-completion tar less \
        python-pip python-setuptools build-essential python-dev \
        python3-pip python3-wheel && \
    rm -rf /var/lib/apt/lists/*

ENV SHELL /bin/bash
COPY bashrc /etc/bash.bashrc
RUN echo "set background=dark" >> /etc/vim/vimrc.local

# Install latest KFP SDK & Kale & JupyterLab Extension
RUN pip3 install --upgrade pip && \
    # XXX: Install enum34==1.1.8 because other versions lead to errors during
    #  KFP installation
    pip3 install --upgrade "enum34==1.1.8" && \
    pip3 install --upgrade "jupyterlab>=2.0.0,<3.0.0" && \
    pip3 install --upgrade kubeflow-kale && \
    jupyter labextension install kubeflow-kale-labextension
RUN pip3 install --upgrade "jupyter-client==5.3.4"

RUN echo "jovyan ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers.d/jovyan
WORKDIR /home/jovyan
USER jovyan

CMD ["sh", "-c", \
     "jupyter lab --notebook-dir=/home/jovyan --ip=0.0.0.0 --no-browser \
      --allow-root --port=8888 --LabApp.token='' --LabApp.password='' \
      --LabApp.allow_origin='*' --LabApp.base_url=${NB_PREFIX}"]

Error Message

An RPC Error has occurred.

Here is the snapshot of the issue. KaleRPCError

Package Versions:

kubeflow-kale==0.7.0 Jupyterlab==2.3.2 kubernetes==10.0.1

gkdivya commented 2 years ago

Am getting the same error in the latest image where latest jupyter lab is also supported. when i run the widgets code..

Screenshot 2022-02-08 at 3 10 24 PM

Ref docker images link Till the version released in Jan 21, 770b0d2fcccb release-1.4-l0-release-1.4-rc8-7-g3d66e477d, the widgets.were not getting displayed basically latest jupyter lab was not supported.

But in the latest version- 41c42c372f24 Widgets are getting displayed, but am getting the above mentioned RPC error