-
Notifications
You must be signed in to change notification settings - Fork 286
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
Cannot configure ports if 'transport' is 'tcp' #878
Comments
Hi @yves-surrel - it looks like you've identified a possible issue. I'm not familiar with I'm curious, assuming the cc: @martinRenou for possible insights |
Setting |
@yves-surrel - sorry about that, didn't realize that
Yes. There's an inherent race condition (primarily in local kernels) between the time that the ports are determined and actually used by the kernel (process) in which another application can use any of the ports, which leads to "port in use" failures starting the kernel. The Until the kernel determines the ports and conveys that back to the server, this issue will exist. (Note that some remote kernels have a "launcher" or "nanny" process that creates the ports and sends that information back to the launching server, thereby decreasing the window in which the race the condition can occur from seconds to milliseconds.) Regarding this "jupyter console" application, could you please describe how it's installed/configured? I figured it was the |
The console app/entry point is provided by https://github.com/jupyter/jupyter_console |
Actually, I replaced
by
in order not to break anything else and to be able to configure ports (starting with |
Thanks for the Looking at @martinRenou or @SylvainCorlay - is there a reason |
This addresses issue jupyter#878 and jupyter#955.
Changing the shell_port, iopub_port etc. in jupyter_console_config.py does not work, neither does using
jupyter console --iopub:xxxx
in the command line.After investigation, it comes from the
cache_ports
attribute ofKernelManager
:in `manager.py' and
in
async def pre_launch
inlocal_provisioner.py
.Maybe related to #492
Jupiter_client v 7.3.5
The text was updated successfully, but these errors were encountered: