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

Jupyter notebook stop - permission denied #2937

Closed
ann-qin-lu opened this issue Oct 14, 2017 · 1 comment · Fixed by #3000
Closed

Jupyter notebook stop - permission denied #2937

ann-qin-lu opened this issue Oct 14, 2017 · 1 comment · Fixed by #3000

Comments

@ann-qin-lu
Copy link

Hi,
I just upgraded notebook to 5.2.0 and tried _jupyter notebook stop 8888_, but got:
os.kill(server['pid'], signal.SIGTERM)
PermissionError: [WinError 5] Access is denied

My system is win10
I tried to run the cmd in admi mode, but still not worked.

Appreciate any helps.
Thanks!

@takluyver
Copy link
Member

I think that feature may be written in a way that doesn't work at all on Windows. Sorry, most of the core developers use Linux & Mac systems.

We should change it to try requesting a shutdown using the shutdown HTTP endpoint first, and only resort to signals if it hasn't shut down in a few seconds.

takluyver added a commit to takluyver/notebook that referenced this issue Oct 31, 2017
Signals don't work on Windows. This tries the HTTP shutdown request first.
On Unix, it will try SIGTERM after 5 seconds, and SIGKILL after another 5, if the
server didn't already exit.

Closes jupytergh-2937
@minrk minrk added this to the Reference milestone Sep 13, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants