Jupyterlab not connecting with config from docs #4785
-
Pretty much the title. I'm trying out coder and have gotten everything up and running smoothly in my k8s cluster however jupyterlab always returns '404 application not found'. The healthcheck icon states its healthy and I can ssh in and see it running on the proper path. Juypterlab terminal output
Pertinent Terraform locals {
jupyter_base_path = "/@${data.coder_workspace.me.owner}/${data.coder_workspace.me.name}/apps/jupyter/"
}
resource "coder_agent" "main" {
os = "linux"
arch = "amd64"
dir = "/home/coder"
startup_script = <<-EOF
#!/bin/bash
sudo apt update
# Install useful tools
sudo apt install -y fish tmux neovim
# Install dotfiles
var.dotfiles_uri != "" ? "coder dotfiles -y ${var.dotfiles_uri}" : null
# Install code-server
curl -fsSL https://code-server.dev/install.sh | sh
code-server --auth none --port 13337 &
# Install jupyterlab
pip3 install jupyterlab
$HOME/.local/bin/jupyter lab --ServerApp.base_url=${local.jupyter_base_path} --ServerApp.token='' --ip='*'
EOF
}
resource "coder_app" "code-server" {
agent_id = coder_agent.main.id
name = "code-server"
icon = "/icon/code.svg"
url = "http://localhost:13337?folder=/home/coder"
subdomain = false
healthcheck {
url = "http://localhost:13337/healthz"
interval = 3
threshold = 10
}
}
resource "coder_app" "jupyter" {
agent_id = coder_agent.main.id
name = "JupyterLab"
url = "http://localhost:8888${local.jupyter_base_path}"
icon = "/icon/jupyter.svg"
subdomain = false
healthcheck {
url = "http://localhost:8888${local.jupyter_base_path}"
interval = 5
threshold = 10
}
} |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hmm 🤔 Maybe @code-asher has an idea? Is there anything helpful in the console logs or the network tab? Just tossing out ideas to see how we can help you debug this faster. |
Beta Was this translation helpful? Give feedback.
-
Looks like the base path is actually
|
Beta Was this translation helpful? Give feedback.
Looks like the base path is actually
/apps/JupyterLab
(it seems to use the name) so I suppose that means the docs are wrong (maybe apps used to use the resource name in the base path?) So the base should be: