I welcome everyone! An error of this nature. All services and servers have the plugin nginx of dehydrated. It generates automatic ssl certificates every 3 months for any subdomain, port, etc. This is very convenient, but for some reason, redirecting jhub does not work. The main page is loaded, after I carry out authorization and after creating the server I get an nginx 404 error. I have multi-master set up.
I tried to use a proxy inside the config, just set it to true, but it doesn’t help.
To understand what it looks like. It redirects first to domain.com/hub
log in and after authorization, I create a server, it jumps to domain.com/user/nickname - error 404 nginx
How to make it stay on /hub?
I think the problem is this.
It did not help, moreover, in the local one it also fell off by IP, and in some places it duplicates /hub/hub
yes, I have no way to put it in the root of the server, I can only redirect to some subdomain or port
- display_name: "default"
description: "1 GPU, 6 cores and 32GB RAM. The <code>nvaitc/ai-lab</code> image provides TensorFlow, PyTorch and various data science packages, VS Code and a virtual desktop. nn_utils and ballfish included"
kubespawner_override:
image: domain.com:5555/default/jhub-nn_utils:latest
extra_resource_limits:
nvidia.com/gpu: "1"
- display_name: "Iii - updated torch, no tf available"
# <- default one"
description: "1 GPU, 6 cores and 32GB RAM. The <code>nvaitc/ai-lab</code> image provides TensorFlow, PyTorch and various data science packages, VS Code and a virtual desktop. nn_utils and ballfish included"
kubespawner_override:
image: domain.com:5555/default/jhub-nn_utils:upd
extra_resource_limits:
nvidia.com/gpu: "1"
kubernetes is configured through several masters, they all duplicate information through nfs and work inside the network through different IP addresses. I set one of these addresses in nginx and the jhub port that he gave me. Inside the kubernetes itself, the proxy is not configured.
My nginx logs:
administrator@domain:/etc/nginx/sites-enabled$ sudo less /var/log/nginx/jupyterhub_access.log
10.0.70.2 - - [05/Apr/2022:10:41:45 +0000] “GET /hub/ HTTP/2.0” 302 0 “-” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36”
10.0.70.2 - - [05/Apr/2022:10:41:45 +0000] “GET /hub/spawn HTTP/2.0” 200 3163 “-” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36”
10.0.70.2 - - [05/Apr/2022:10:41:49 +0000] “POST /hub/spawn HTTP/2.0” 302 0 “https://domain.com/hub/spawn” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36”
10.0.70.2 - - [05/Apr/2022:10:41:49 +0000] “GET /hub/spawn-pending/admin HTTP/2.0” 200 2944 “https://domain.com/hub/spawn” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36”
10.0.70.2 - - [05/Apr/2022:10:41:56 +0000] “GET /hub/api/users/admin/server/progress HTTP/2.0” 200 9127 “https://domain.com/hub/spawn-pending/admin” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36”
10.0.70.2 - - [05/Apr/2022:10:41:56 +0000] “GET /hub/spawn-pending/admin HTTP/2.0” 302 0 “https://domain.com/hub/spawn-pending/admin” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36”