tiburon-security / jupyterlab_scheduler

Jupyter Lab Plugin for scheduling recurring execution of files within the UI using Cron
MIT License
24 stars 18 forks source link

Installation done using dockerfile, getting "There was an error submitting job!" #21

Open shubhamkanwal opened 2 years ago

shubhamkanwal commented 2 years ago

Hi, i have setup on AWS EKS cluster where jupyterhub is running. I am using scipy docker image in the pod as mentioned in readme. Getting error while Scheduling , tried with bash, jupyter and python. The base image of scipy uses ubuntu as OS. Please help.

image

cxprograme commented 2 years ago

Has the problem been solved?

vivekbhide commented 2 years ago

same here.. followed all the steps but with updated dependencies versions and installing the plug in as a development mode but nothing worked.. continue to get this error with 404 POST /jupyterlab_scheduler/add?1663817302366 (172.18.34.202) 2.18ms error on jupyter server. Would really appreciate if someone can confirm/update the working changes

Dr10-TakeHiro commented 1 year ago

Same error occurs in my environment. However, everything works with following revised Dockerfile.

FROM jupyter/scipy-notebook:latest

# Switch to root user to install cron
USER root
RUN apt-get update && apt-get install --yes cron

# Switch back to Jupyter user
USER $NB_USER

RUN fix-permissions $CONDA_DIR && \
    fix-permissions /home/$NB_USER

# Set USER to the env variable jupyter uses for the default account
ENV USER=$NB_USER

RUN pip install jupyterlab_scheduler
RUN jupyter labextension install jupyterlab_scheduler

Since 404 error hints that a backend python server don't start, I wonder that the cause is a lack of python module.

Finally, don't forget to start cron daemon. We must start cron manually, because Jupyter images don't automatically start. (I spent some hours about this... Following command or my docker files(docker_jupyterlab_scheduler) may help you.)

docker exec -it -u root <container_id> service cron start