Jupyter Session getting Killed immediately after Getting Created

Hello there,

I want to add a jupyter notebook editor option apart from my Rstudio editor option for my workbench server.

I added a jupyter.conf inside my /etc/rstudio:

Here is what I have now in my jupyter.conf file.

jupyter-exe=/opt/python/3.7.7/bin/jupyter
labs-enabled=1
notebooks-enabled=1
notebook-version=5.2.2
session-cull-minutes=240
default-session-cluster=Kubernetes
default-session-container-image=rstudio/r-session-complete:centos7-2022.07.1-554.pro3

The session is started but gets killed immediately. I increased the cpu and memory but nothing seems to work.

The default container image in my launcher.kubernetes.profiles.conf currently is custom built image:

container-images=custom.us-east-1.amazonaws.com/rstudio-custom:latest
default-container-image=custom.us-east-1.amazonaws.com/rstudio-custom:latest

Do I need to rebuild the image?

I have a python 3.7.7 and I tried upgrading to 3.9.5 but I wasn’t able to upgrade it inside my opt/python/ (if that would cause any issue)

How can I fix this issue?

Thank you!