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
Failed to start the kernel paths.py 'SetFileSecurity', 'Access is denied.' #6057
Comments
I believe this issue is due to there being a mounted, or non-native, Windows filesystem in play here. This is based on the traceback that shows some modules (namely, notebook) installed in When a kernel is started, Jupyter writes the kernel's connection information to a file that is protected using native platform permissions. Windows can be a bit finicky about this and I suspect these "dual modes" are interfering with the
Should you not get moving forward, please provide the output of |
Hi @kevin-bates Solution-1 Solutions-2 Do let me know If I should share logs for community's correct understanding because I may be not targeting the correct issue |
Hi @shreyansh-vaghela |
Describe the bug
Failed to start the kernel
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Kernel should start normally and python notebook file should execute without any issue
Screenshots
screenshor#1
screenshot#2
Desktop (please complete the following information):
Additional context
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\tornado\web.py", line 1704, in _execute
result = await result
File "C:\Anaconda\lib\site-packages\tornado\gen.py", line 769, in run
yielded = self.gen.throw(*exc_info) # type: ignore
File "\india.eclerx.com\ctrxdata\ARRDATA\Shreyansh.Vaghela\Application Data\Python\Python37\site-packages\notebook\services\sessions\handlers.py", line 72, in post
type=mtype))
File "C:\Anaconda\lib\site-packages\tornado\gen.py", line 762, in run
value = future.result()
File "C:\Anaconda\lib\site-packages\tornado\gen.py", line 769, in run
yielded = self.gen.throw(*exc_info) # type: ignore
File "\india.eclerx.com\ctrxdata\ARRDATA\Shreyansh.Vaghela\Application Data\Python\Python37\site-packages\notebook\services\sessions\sessionmanager.py", line 98, in create_session
kernel_id = yield self.start_kernel_for_session(session_id, path, name, type, kernel_name)
File "C:\Anaconda\lib\site-packages\tornado\gen.py", line 762, in run
value = future.result()
File "C:\Anaconda\lib\site-packages\tornado\gen.py", line 769, in run
yielded = self.gen.throw(*exc_info) # type: ignore
File "\india.eclerx.com\ctrxdata\ARRDATA\Shreyansh.Vaghela\Application Data\Python\Python37\site-packages\notebook\services\sessions\sessionmanager.py", line 111, in start_kernel_for_session
self.kernel_manager.start_kernel(path=kernel_path, kernel_name=kernel_name)
File "C:\Anaconda\lib\site-packages\tornado\gen.py", line 762, in run
value = future.result()
File "\india.eclerx.com\ctrxdata\ARRDATA\Shreyansh.Vaghela\Application Data\Python\Python37\site-packages\notebook\services\kernels\kernelmanager.py", line 176, in start_kernel
kernel_id = await maybe_future(self.pinned_superclass.start_kernel(self, **kwargs))
File "C:\Anaconda\lib\site-packages\jupyter_client\multikernelmanager.py", line 110, in start_kernel
km.start_kernel(**kwargs)
File "C:\Anaconda\lib\site-packages\jupyter_client\manager.py", line 240, in start_kernel
self.write_connection_file()
File "C:\Anaconda\lib\site-packages\jupyter_client\connect.py", line 476, in write_connection_file
kernel_name=self.kernel_name
File "C:\Anaconda\lib\site-packages\jupyter_client\connect.py", line 141, in write_connection_file
with secure_write(fname) as f:
File "C:\Anaconda\lib\contextlib.py", line 112, in enter
return next(self.gen)
File "C:\Anaconda\lib\site-packages\jupyter_core\paths.py", line 424, in secure_write
win32_restrict_file_to_user(fname)
File "C:\Anaconda\lib\site-packages\jupyter_core\paths.py", line 375, in win32_restrict_file_to_user
win32security.SetFileSecurity(fname, win32security.DACL_SECURITY_INFORMATION, sd)
pywintypes.error: (5, 'SetFileSecurity', 'Access is denied.')
The text was updated successfully, but these errors were encountered: