-
Notifications
You must be signed in to change notification settings - Fork 39.9k
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
File name too long #129372
Comments
There are no sig labels on this issue. Please add an appropriate label by using one of the following commands:
Please see the group list for a listing of the SIGs, working groups, and committees available. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/remove-kind bug You could reframe this as a bug report @antonio-tg but right now the level of detail is not there to allow someone to reproduce it and then work on it. |
Dear @sftim I just added some new information, hoping it will be sufficient. |
The "file name too long" error you're encountering is generally a kernel limitation related to PATH_MAX, which is typically 4096 bytes.
|
The provided path contains so many repeated path segments. 🤔 |
We can replace long notebook names with a hash or truncate them that ensures the name remains unique but significantly shorter. |
I think a simple Python function can do the job. |
def shorten_name(name):
return hashlib.sha256(name.encode('utf-8')).hexdigest()[:16]
short_name = shorten_name(long_name) |
What happened?
Hi guys,
I need your help with something really weird. I have JupyterHub in an Openshift production environment and one of my users created a notebook with a really long name. Everything was fine, until the next day when he failed to initialize his pod due to this error:
So if you can help me with this, I would really appreciate it.
What did you expect to happen?
Start as usual
How can we reproduce it (as minimally and precisely as possible)?
Create a file with a very long name
Anything else we need to know?
No response
Kubernetes version
Cloud provider
ARO ~ Azure Rethad Openshift
OS version
The text was updated successfully, but these errors were encountered: