Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

413 request entity too large with Ingress proxy #3274

Closed
WhiteCat6142 opened this issue Nov 27, 2023 · 2 comments
Closed

413 request entity too large with Ingress proxy #3274

WhiteCat6142 opened this issue Nov 27, 2023 · 2 comments
Labels

Comments

@WhiteCat6142
Copy link

Bug description

Using ingress mode, I got 413 when I save a file (not so large).
I found that wrong ingress proxy configuration causes this problem.

** I already found a solution but I think it should be reported and fixed***

https://z2jh.jupyter.org/en/latest/administrator/advanced.html

https://stackoverflow.com/questions/64759983/nginx-ingress-returns-413-entity-too-large

How to reproduce

  1. Launch JupyterHub for Kubernetes with ingress.
  2. Go to pages
  3. Save a file

Expected behaviour

Saved a file successfully.

Actual behaviour

Got 413 request entity too large with Ingress proxy.

Your personal set up

  • OS:
    ubuntu 20.20
  • Kubernetes:
    microk8s: v1.26.11
  • Version(s):
    JupyterHub with Kubernetes: 3.0.3
    Jupyterlab: 4.0.8

Solution

Change JupyterHub Ingress configuration.

kind: Ingress
apiVersion: networking.k8s.io/v1
metadata:
  name: jupyterhub
metadata:
  annotations:
    kubernetes.io/ingress.class: nginx
    nginx.ingress.kubernetes.io/proxy-body-size: "700m"
Copy link

welcome bot commented Nov 27, 2023

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@manics
Copy link
Member

manics commented Nov 27, 2023

Hi! This has to be configured by the JupyterHub/K8s admin. We can't make it a default in Z2JH because there are multiple ingress providers, the parameter could by set by the K8s admin and we wouldn't want to hard-code an override, and it depends on what you as the JupyterHub admin want to set as the maximum size.

If you think the docs could be improved though please open a pull request. Thanks!

@manics manics closed this as completed Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants