-
-
Notifications
You must be signed in to change notification settings - Fork 491
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
Jupyter notebook can crash during startup if default port cannot be used #27715
Comments
comment:1
As it happens, the POSIX specification for bind() does not mention |
This comment has been minimized.
This comment has been minimized.
Upstream: Reported upstream. No feedback yet. |
comment:3
I confirmed that this is likely a bug in Cygwin. For now though it is easiest to workaround in the Notebook code. |
Commit: |
Branch: u/embray/ticket-27715 |
Author: Erik Bray |
comment:4
I'm okay, in this case, with just patching the package in Sage, since the patch is only needed (in some cases) on Cygwin, so it won't be needed by most other downstream packagers, etc. I will just note for the record that the issue could be worked around by monkey-patching, but this is probably easier in this case. New commits:
|
comment:5
I will also probably backport this to Sage 8.7 for Windows now that I have a mechanism for that. |
comment:6
Note possible slight conflict with #26919. |
comment:7
LGTM. |
Reviewer: Travis Scrimshaw |
Changed branch from u/embray/ticket-27715 to |
Per reports like this one, it seems there is some condition (I am not sure yet what) such that on Windows trying to bind to port 8888 results in a permission error, on which the notebook crashes:
The notebook already has some code to try other ports if the requested port fails:
However, in this case some reason users are getting
EPERM
instead ofEACCES
and that case is not handled in the above code.**Upstream PR: **https://github.com/jupyter/notebook/pull/4584/files
Upstream: Reported upstream. No feedback yet.
Component: notebook
Author: Erik Bray
Branch/Commit:
75bcf77
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/27715
The text was updated successfully, but these errors were encountered: