<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Diego A. Carrasco Gubernatis | Personal Website (Posts about quick-guides)</title><link>https://diegocarrasco.com/</link><description></description><atom:link href="https://diegocarrasco.com/categories/quick-guides.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><copyright>Contents © 2026 &lt;a href="mailto:hi@diegocarrasco.com"&gt;Diego Carrasco G.&lt;/a&gt; </copyright><lastBuildDate>Sat, 11 Apr 2026 08:03:45 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Fixed: When using Jupyter on WSL2 on Windows 11 I get "Kernel won't start", and throws "Permissions assignment failed for secure file" error</title><link>https://diegocarrasco.com/fixed-when-using-jupyter-on-wsl2-on-windows-11-i-get-kernel-wont-start-and-throws-permissions-assignment-failed-for-secure-file-error/</link><dc:creator>Diego Carrasco G.</dc:creator><description>&lt;section id="error"&gt;
&lt;h2&gt;Error&lt;/h2&gt;
&lt;div class="code"&gt;&lt;pre class="code bash"&gt;&lt;a id="rest_code_3ae4bcc6f3fb4584b4cf1c74c5ec2455-1" name="rest_code_3ae4bcc6f3fb4584b4cf1c74c5ec2455-1" href="https://diegocarrasco.com/fixed-when-using-jupyter-on-wsl2-on-windows-11-i-get-kernel-wont-start-and-throws-permissions-assignment-failed-for-secure-file-error/#rest_code_3ae4bcc6f3fb4584b4cf1c74c5ec2455-1"&gt;&lt;/a&gt;Kernel&lt;span class="w"&gt; &lt;/span&gt;won&lt;span class="err"&gt;'&lt;/span&gt;t&lt;span class="w"&gt; &lt;/span&gt;start,&lt;span class="w"&gt; &lt;/span&gt;throws&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Permissions assignment failed for secure file"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;error
&lt;/pre&gt;&lt;/div&gt;
&lt;/section&gt;
&lt;section id="error-in-wsl2-on-windows-11"&gt;
&lt;h2&gt;Error in WSL2 on Windows 11&lt;/h2&gt;
&lt;div class="code"&gt;&lt;pre class="code bash"&gt;&lt;a id="rest_code_1253223d67a94ecd99ad45b34f3bf487-1" name="rest_code_1253223d67a94ecd99ad45b34f3bf487-1" href="https://diegocarrasco.com/fixed-when-using-jupyter-on-wsl2-on-windows-11-i-get-kernel-wont-start-and-throws-permissions-assignment-failed-for-secure-file-error/#rest_code_1253223d67a94ecd99ad45b34f3bf487-1"&gt;&lt;/a&gt;RuntimeError:&lt;span class="w"&gt; &lt;/span&gt;Permissions&lt;span class="w"&gt; &lt;/span&gt;assignment&lt;span class="w"&gt; &lt;/span&gt;failed&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;for&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;secure&lt;span class="w"&gt; &lt;/span&gt;file:&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s1"&gt;'/home/d-carrasco/.local/share/jupyter/runtime/jpserver-12836.json'&lt;/span&gt;.&lt;span class="w"&gt; &lt;/span&gt;Got&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s1"&gt;'0o677'&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;instead&lt;span class="w"&gt; &lt;/span&gt;of&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s1"&gt;'0o0600'&lt;/span&gt;.
&lt;/pre&gt;&lt;/div&gt;
&lt;/section&gt;
&lt;section id="how-to-fix"&gt;
&lt;h2&gt;How to fix&lt;/h2&gt;
&lt;ol class="arabic simple"&gt;
&lt;li&gt;&lt;p&gt;Terminate your Notebook server.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Run &lt;code&gt;export JUPYTER_RUNTIME_DIR=/tmp&lt;/code&gt; on your WSL2 terminal.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Start Notebook server as you normally do. (Note that this assumes you're not already setting the runtime directory in some other fashion).&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;(source: &lt;a class="reference external" href="https://github.com/jupyter/notebook/issues/5058#issuecomment-554687632"&gt;https://github.com/jupyter/notebook/issues/5058#issuecomment-554687632&lt;/a&gt;)&lt;/p&gt;
&lt;/section&gt;
&lt;section id="reference"&gt;
&lt;h2&gt;Reference&lt;/h2&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;&lt;a class="reference external" href="https://github.com/jupyter/notebook/issues/5058"&gt;https://github.com/jupyter/notebook/issues/5058&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;</description><category>command-line</category><category>dev</category><category>howto</category><category>python</category><category>quick-guides</category><category>Windows 11</category><category>WSL2</category><guid>https://diegocarrasco.com/fixed-when-using-jupyter-on-wsl2-on-windows-11-i-get-kernel-wont-start-and-throws-permissions-assignment-failed-for-secure-file-error/</guid><pubDate>Thu, 10 Nov 2022 13:00:00 GMT</pubDate></item></channel></rss>