Open viniciusdc opened 6 days ago
@aktech do you have any idea about what might be going on here?
This is due to the latest release of PyJWT being incompatible with older version, which broke the authentication and hence infinite login loop. See: https://github.com/nebari-dev/jhub-apps/pull/510#issuecomment-2482826642
It was fixed last week here: https://github.com/nebari-dev/jhub-apps/pull/532
I'll create new release for jhub-apps now, to tackle this in nebari, this would also require a new release of docker images.
Thanks @marcelovilla @aktech!
The new release is out now (had to iron out some UI bugs): https://pypi.org/project/jhub-apps/2024.11.1/ PR for docker image update: https://github.com/nebari-dev/nebari-docker-images/pull/189
The above PR is merged and can be used by referencing the image tags to main
in any deployment. I attested that the above error was fixed, but I didn't review all changes in jhub-apps while doing so. Overall, the new release addressed the issue of the main code.
As for the previous release, I think the best course of action is to just re-tag the 2024.9.1
docker images with the 2024.11.1
as well, since if we re-build now cherrying picking the fix we will include the bump 2024.8.1 -> 2024.11.1
of jhub-apps in the hotfix, which in my opinion is not good.
I just moved the nebari-jupyterhub:2024.11.1
tag from sha256:9a4d16eb8acbebaa320d09935b2380d56ae295f7965a92924981f66aae83a4ee
to sha256:ad840d1d69bfceb8424f22fc1978d554d00daed0ffef3a73e9b927367da6d5dc
(original 2024.9.1
) this should completely address the issue for the 2024.11.1
deployments.
Describe the bug
@marcelovilla found an issue with the latest release (
2024.11.1
). When users visit/hub
, they get stuck in a loop of failed requests:https://github.com/user-attachments/assets/7ab1c099-4598-44ba-aa40-fca059fdf196
Examining the browser’s console logs reveals that all requests to
services/japps/user
andservices/japps/spawner-profiles
are returning401 Unauthenticated
errors.After a quick debugging, the error seems to originate from the current docker images, relabeling and pushing new Docker images from the previous release should resolve the issue for that version. -- It’s possible that the
build-and-push
action targeted the wrong branch during the build process.We observed the same behavior on both GCP and AWS deployments using the
2024.11.1
images. I was also able to reproduce the issue on a local deployment frommain
, which means that the problem isn’t limited to this release and might be related to the update ofjhub-apps
to2024.10.1
.Required actions:
2024.9.1
docker image as2024.11.1
(this might be a manual process)Expected behavior
user should be able to access the /hub pages successfully when using jhub-appsUser
OS and architecture in which you are running Nebari
Linux
How to Reproduce the problem?
Deploy nebari on local using
2024.11.1
ormain
, since this is likely a problem with the images, just using the current image in any recent release of nebari might also trigger the problem.Command output
No response
Versions and dependencies used.
No response
Compute environment
None
Integrations
No response
Anything else?
After checking the git history for the Docker images and the Nebari source code, the only significant change was upgrading
jupyterlab
from version4.2.5
to4.2.6
.To see the differences between the image versions, I used diffoci with this command:
The same diff reported the same version of
jhub-apps
in both images, so I am not entirely sure how the deployment ended up in such state.Also, the actual build logs for both images corroborate the above:
2024.11.1
2024.9.1