<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic The kernel appears to have died. It will restart automatically. in ArcGIS Notebooks Questions</title>
    <link>https://community.esri.com/t5/arcgis-notebooks-questions/the-kernel-appears-to-have-died-it-will-restart/m-p/1092631#M359</link>
    <description>&lt;P&gt;Hi guys!&lt;/P&gt;&lt;P&gt;In executing an ArcGIS Notebook Runtime Advanced we always getting the error message: "The kernel appears to have died. It will restart automatically." when we want to "from arcgis.gis import GIS".&lt;/P&gt;&lt;P&gt;It is confusing because when we try it with an Standard Runtime, it works properly. But in our case we need both python packages. arcgis and arcpy. The "import arcpy" command works properly in the Advanced Image.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Here are the details:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;System: &lt;U&gt;ArcGIS Enterprise 10.9&lt;/U&gt; with &lt;U&gt;ArcGIS Notebook Server 10.9&lt;/U&gt; on a &lt;U&gt;RedHat 7&lt;/U&gt; VM&lt;/P&gt;&lt;P&gt;What we have done in reverse engineering:&lt;/P&gt;&lt;P&gt;1. We connected to the container directly and execute the command (from arcgis.gis import GIS)&lt;/P&gt;&lt;P&gt;It's working. So we conclude from this there is no problem with container or the virtual machine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. We analyzed the log files of the WebSocket Connection, the container logs. There is only logged "The kernel has restarted". We find no entry - why the kernel has restarted...&lt;/P&gt;&lt;P&gt;3. We contacted Esri Support. Unfortunately they can't reproduce it.&lt;/P&gt;&lt;P&gt;And the most confusing matter is that all import commands are fine with Advanced and Standard Image 4.0 It occurs with Advanced Image 5.0. From here we need python 3.7.9 package for our use case.&lt;/P&gt;&lt;P&gt;Perhaps I'll find some further help here. Thank's for reading my issue.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Max (max.boecke@hereon.de)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Aug 2021 09:22:44 GMT</pubDate>
    <dc:creator>MaxBöcke</dc:creator>
    <dc:date>2021-08-26T09:22:44Z</dc:date>
    <item>
      <title>The kernel appears to have died. It will restart automatically.</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/the-kernel-appears-to-have-died-it-will-restart/m-p/1092631#M359</link>
      <description>&lt;P&gt;Hi guys!&lt;/P&gt;&lt;P&gt;In executing an ArcGIS Notebook Runtime Advanced we always getting the error message: "The kernel appears to have died. It will restart automatically." when we want to "from arcgis.gis import GIS".&lt;/P&gt;&lt;P&gt;It is confusing because when we try it with an Standard Runtime, it works properly. But in our case we need both python packages. arcgis and arcpy. The "import arcpy" command works properly in the Advanced Image.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Here are the details:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;System: &lt;U&gt;ArcGIS Enterprise 10.9&lt;/U&gt; with &lt;U&gt;ArcGIS Notebook Server 10.9&lt;/U&gt; on a &lt;U&gt;RedHat 7&lt;/U&gt; VM&lt;/P&gt;&lt;P&gt;What we have done in reverse engineering:&lt;/P&gt;&lt;P&gt;1. We connected to the container directly and execute the command (from arcgis.gis import GIS)&lt;/P&gt;&lt;P&gt;It's working. So we conclude from this there is no problem with container or the virtual machine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. We analyzed the log files of the WebSocket Connection, the container logs. There is only logged "The kernel has restarted". We find no entry - why the kernel has restarted...&lt;/P&gt;&lt;P&gt;3. We contacted Esri Support. Unfortunately they can't reproduce it.&lt;/P&gt;&lt;P&gt;And the most confusing matter is that all import commands are fine with Advanced and Standard Image 4.0 It occurs with Advanced Image 5.0. From here we need python 3.7.9 package for our use case.&lt;/P&gt;&lt;P&gt;Perhaps I'll find some further help here. Thank's for reading my issue.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Max (max.boecke@hereon.de)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 09:22:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/the-kernel-appears-to-have-died-it-will-restart/m-p/1092631#M359</guid>
      <dc:creator>MaxBöcke</dc:creator>
      <dc:date>2021-08-26T09:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: The kernel appears to have died. It will restart automatically.</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/the-kernel-appears-to-have-died-it-will-restart/m-p/1092759#M360</link>
      <description>&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;If you could share more information, would be helpful in troubleshooting the same. Please share details about the machine (hardware), Redhat version and docker version. Is this machine upgraded from 10.8.1?&lt;/P&gt;&lt;P&gt;If the 'log level' is not set to 'Debug', please update it (either from ArcGIS Notebook Server Manager or administrative API)&amp;nbsp;and then look for logs (reproducing the issue, pl. share it too).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also would like to know the details of system/properties set in the administrative API.&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;Shikhar Deep&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 16:12:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/the-kernel-appears-to-have-died-it-will-restart/m-p/1092759#M360</guid>
      <dc:creator>shikhar_deep</dc:creator>
      <dc:date>2021-08-26T16:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: The kernel appears to have died. It will restart automatically.</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/the-kernel-appears-to-have-died-it-will-restart/m-p/1093027#M361</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Shikhar Deep&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thx for your help.&lt;/P&gt;&lt;P&gt;I attach the relevant information.&lt;/P&gt;&lt;P&gt;1. Notebook Logging (Debug Mode as Image)&lt;/P&gt;&lt;P&gt;2. Container Logging (Debug mode - ASCII file) - At the end is the warning message that the kernel has been restarted &lt;/P&gt;&lt;P&gt;From here the further responses:&lt;/P&gt;&lt;P&gt;Yes, we made an update from 10.8.1 (Starting from 10.5 I guess). In 10.8.1 we had that issue now and then. If we bring the import packages in a certain order it works.&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g:&amp;nbsp;The following doesn't work (with advanced Image 4.0) - Kernel dies&lt;/P&gt;&lt;LI-CODE lang="c"&gt;from arcgis import GIS
import arcpy
import cartopy
import matplotlib&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g:&amp;nbsp;The following does work (with advanced Image 4.0) - All works fine&lt;/P&gt;&lt;LI-CODE lang="c"&gt;import cartopy
import matplotlib
import arcpy
from arcgis import GIS&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#000000"&gt;Nothing from the above mentioned works with the &lt;FONT color="#FF0000"&gt;Advanced 5.0&lt;/FONT&gt; image either.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#000000"&gt;&lt;U&gt;RedHat Version:&amp;nbsp;Red Hat Enterprise Linux Server release 7.9 (Maipo)&lt;/U&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Docker Version: 19.03.05&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markdown"&gt;Client: Docker Engine - Enterprise
 Version:           19.03.5
 API version:       1.40
 Go version:        go1.12.12
 Git commit:        2ee0c57608
 Built:             Wed Nov 13 07:36:51 2019
 OS/Arch:           linux/amd64
 Experimental:      false

Server: Docker Engine - Enterprise
 Engine:
  Version:          19.03.5
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.12.12
  Git commit:       2ee0c57608
  Built:            Wed Nov 13 07:35:18 2019
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.2.10
  GitCommit:        b34a5c8af56e510852c35414db4c1f4fa6172339
 runc:
  Version:          1.0.0-rc8+dev
  GitCommit:        3e425f80a8c931f88e6d94a8c831b9d5aa481657
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently I'm working on to move the Notebook Server application to a more powerful physical machine. I'll complete this test today afternoon. But I'm less confident with that, because the container on the active VM seems not to be th problem. Here the code for testing in the container directly:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;[user@something ~]$ docker container exec -it db8820330db14eba893eb41bc04f8350 bash
arcgis@df58ed46d19d:~$ python
Python 3.7.9 (default, Aug 31 2020, 12:42:55)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
&amp;gt;&amp;gt;&amp;gt; from arcgis.gis import GIS
&amp;gt;&amp;gt;&amp;gt; gis = GIS("home")
/opt/conda/lib/python3.7/site-packages/arcgis/gis/__init__.py:430: UserWarning: You are logged on as boecke with an administrator role, proceed with caution.
  self.users.me.username)
&amp;gt;&amp;gt;&amp;gt; import arcpy
Traceback (most recent call last):
  File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;
  File "/opt/conda/lib/python3.7/site-packages/arcpy/__init__.py", line 72, in &amp;lt;module&amp;gt;
    import _initagsenv
_initagsenv.error: WSLib: failed initializing arcpy. Check if environment was activated correctly.
&amp;gt;&amp;gt;&amp;gt; import arcgis
&amp;gt;&amp;gt;&amp;gt; import arcpy
Traceback (most recent call last):
  File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;
  File "/opt/conda/lib/python3.7/site-packages/arcpy/__init__.py", line 72, in &amp;lt;module&amp;gt;
    import _initagsenv
_initagsenv.error: WSLib: failed initializing arcpy. Check if environment was activated correctly.&lt;/LI-CODE&gt;&lt;P&gt;So now I am completely confused. In the Jupyter Notebook frontend the "import arcpy" statement seems to work, but not in the container environment. On the other side the "from arcgis.gis import GIS" statement doesn't work in Jupyter Frontend, but it works in the container...&lt;/P&gt;&lt;P&gt;I guess it is enough information.&lt;/P&gt;&lt;P&gt;Thx and greetings from Max&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 06:56:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/the-kernel-appears-to-have-died-it-will-restart/m-p/1093027#M361</guid>
      <dc:creator>MaxBöcke</dc:creator>
      <dc:date>2021-08-27T06:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: The kernel appears to have died. It will restart automatically.</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/the-kernel-appears-to-have-died-it-will-restart/m-p/1093060#M362</link>
      <description>&lt;P&gt;Sure, thanks Max&lt;/P&gt;&lt;P&gt;This information is helpful, will try to reproduce and find out more.&amp;nbsp;&lt;SPAN&gt;Also would like to know the details of system/properties set in the administrative API.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Shikhar Deep&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 11:49:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/the-kernel-appears-to-have-died-it-will-restart/m-p/1093060#M362</guid>
      <dc:creator>shikhar_deep</dc:creator>
      <dc:date>2021-08-27T11:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: The kernel appears to have died. It will restart automatically.</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/the-kernel-appears-to-have-died-it-will-restart/m-p/1093064#M363</link>
      <description>&lt;P&gt;Ah Ok. There was anything else &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I forget that.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Notebook Server System/Poperties:&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markdown"&gt;maxExecuteNotebookContainersPerNode :	5
dockerConnectionPort :	2375
maxContainersPerNode :	20
containersStartPort :	30001
diskSpaceThresholdGB :	5
idleNotebookThreshold :	1440
containerCreatedThreshold :	60
allowedCORSRequestHeaders :	x-ms-blob-type,x-ms-version,x-ms-client-request-id,content-type
webSocketSize :	16
containersStopPort :	31000
WebContextURL :	https://coastmap.hzg.de/notebook
allowHiddenFileDownloads :	false
dockerConnectionHost :	localhost&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Portal Properties:&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markdown"&gt;{
"WebContextURL":"https://coastmap.hzg.de/portal",
"disableSignup":true,
"privatePortalURL":"https://&amp;lt;servername&amp;gt;:7443/arcgis",
"httpProxyHost":"&amp;lt;PROXY&amp;gt;",
"httpsProxyHost":"&amp;lt;PROXY&amp;gt;",
"httpProxyPort":&amp;lt;PROXYPORT&amp;gt;,"httpsProxyPort":&amp;lt;PROXYPORT&amp;gt;,
"nonProxyHosts":"Server1|Server2|*.domain.de"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 12:05:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/the-kernel-appears-to-have-died-it-will-restart/m-p/1093064#M363</guid>
      <dc:creator>MaxBöcke</dc:creator>
      <dc:date>2021-08-27T12:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: The kernel appears to have died. It will restart automatically.</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/the-kernel-appears-to-have-died-it-will-restart/m-p/1093083#M364</link>
      <description>&lt;P&gt;I moved the Notebook Server to a physical machine. The same behaviour like described above.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 13:23:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/the-kernel-appears-to-have-died-it-will-restart/m-p/1093083#M364</guid>
      <dc:creator>MaxBöcke</dc:creator>
      <dc:date>2021-08-27T13:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: The kernel appears to have died. It will restart automatically.</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/the-kernel-appears-to-have-died-it-will-restart/m-p/1093142#M365</link>
      <description>&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;Could you please update the 'webSocketSize' in system/properties from 16 to 128 and try reproducing the issue?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shikhar Deep&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 15:27:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/the-kernel-appears-to-have-died-it-will-restart/m-p/1093142#M365</guid>
      <dc:creator>shikhar_deep</dc:creator>
      <dc:date>2021-08-27T15:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: The kernel appears to have died. It will restart automatically.</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/the-kernel-appears-to-have-died-it-will-restart/m-p/1093333#M366</link>
      <description>&lt;P&gt;I have tested it. The behaviour has not changed.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Aug 2021 09:04:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/the-kernel-appears-to-have-died-it-will-restart/m-p/1093333#M366</guid>
      <dc:creator>MaxBöcke</dc:creator>
      <dc:date>2021-08-28T09:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: The kernel appears to have died. It will restart automatically.</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/the-kernel-appears-to-have-died-it-will-restart/m-p/1094521#M368</link>
      <description>&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;Its not reproducible at our end too. I had a word with other teammates and to rule out further more possibilities need more information from you.&lt;/P&gt;&lt;P&gt;1. Could you lookup 'docker commit' to create an image out of a running container and share the container snapshot with us?&lt;BR /&gt;2. Please try printing LD_LIBRARY_PATH. (Either "echo $LD_LIBRARY_PATH" on the shell or os.environ["LD_LIBRARY_PATH"] in Python prompt)&lt;BR /&gt;3. Did you try it with a clean/new docker image?&lt;BR /&gt;4. Also please share info. about any other installed packages.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks &amp;amp; Regards&lt;BR /&gt;Shikhar Deep&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 17:06:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/the-kernel-appears-to-have-died-it-will-restart/m-p/1094521#M368</guid>
      <dc:creator>shikhar_deep</dc:creator>
      <dc:date>2021-09-01T17:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: The kernel appears to have died. It will restart automatically.</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/the-kernel-appears-to-have-died-it-will-restart/m-p/1097614#M378</link>
      <description>&lt;P&gt;Hi Shikhar&lt;/P&gt;&lt;P&gt;sorry for my late response. I am pretty busy.&lt;/P&gt;&lt;P&gt;Here are the results:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. Could you lookup 'docker commit' to create an image out of a running container and share the container snapshot with us?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Yes, of course. Could you send me an email adress. After that I'll provide you a download-link. The tar.gz file has nearly 5GB.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. Please try printing LD_LIBRARY_PATH. (Either "echo $LD_LIBRARY_PATH" on the shell or os.environ["LD_LIBRARY_PATH"] in Python prompt)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;'/home/arcgis/arcgis/server/framework/runtime/xvfb/Xvfb/lib64:/home/arcgis/arcgis/server/bin/wine/lib64:/home/arcgis/arcgis/server/bin/wine/lib64/wine:/home/arcgis/arcgis/server/framework/runtime/tomcat/bin:/home/arcgis/arcgis/server/lib:'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3. Did you try it with a clean/new docker image?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Do you mean a clear downloaded Advanced Image form myesri?&lt;U&gt; If yes&lt;/U&gt;, we set up a complete dedicated machine with ArcGIS Notebook Server with new docker images from esri. The have noticed the same behaviour on that (physical )machine. Currently we have a virtual machine in production.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;If no&lt;/U&gt;, what do you mean exactly?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4. Also please share info. about any other installed packages.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;See attached file - installed_packages.txt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What i would like to emphesize is that we had similar issues in 10.8.1. But if we have changed the order of the import packages it has basically worked in 10.8.1. After upgrade to 10.9 this workaround no longer works.&lt;/P&gt;&lt;P&gt;So I agree with you that something works incompatibly wrong with an already installed package on the machine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much and best regards&lt;/P&gt;&lt;P&gt;Max (max.boecke@hereon.de)&lt;/P&gt;</description>
      <pubDate>Tue, 14 Sep 2021 11:40:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/the-kernel-appears-to-have-died-it-will-restart/m-p/1097614#M378</guid>
      <dc:creator>MaxBöcke</dc:creator>
      <dc:date>2021-09-14T11:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: The kernel appears to have died. It will restart automatically.</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/the-kernel-appears-to-have-died-it-will-restart/m-p/1097643#M380</link>
      <description>&lt;P&gt;Hi Shikhar,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sorry for the late response: Here are the answers:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. Could you lookup 'docker commit' to create an image out of a running container and share the container snapshot with us?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Yes, of course. Could you provide an email address. After that I'll provide a download link to that address.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;2. Please try printing LD_LIBRARY_PATH. (Either "echo $LD_LIBRARY_PATH" on the shell or os.environ["LD_LIBRARY_PATH"] in Python prompt)&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;'/home/arcgis/arcgis/server/framework/runtime/xvfb/Xvfb/lib64:/home/arcgis/arcgis/server/bin/wine/lib64:/home/arcgis/arcgis/server/bin/wine/lib64/wine:/home/arcgis/arcgis/server/framework/runtime/tomcat/bin:/home/arcgis/arcgis/server/lib:'&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;3. Did you try it with a clean/new docker image?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Do you mean a clear downloaded Advanced Image form myesri?&lt;U&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;If yes&lt;/U&gt;, we set up a complete dedicated machine with ArcGIS Notebook Server with new docker images from esri. The have noticed the same behaviour on that (physical )machine. Currently we have a virtual machine in production.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;If no&lt;/U&gt;, what do you mean exactly?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;4. Also please share info. about any other installed packages.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- see attached file "installed_packages.txt"&lt;/P&gt;&lt;P&gt;Thank you very much for your help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 15:06:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/the-kernel-appears-to-have-died-it-will-restart/m-p/1097643#M380</guid>
      <dc:creator>MaxBöcke</dc:creator>
      <dc:date>2021-09-13T15:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: The kernel appears to have died. It will restart automatically.</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/the-kernel-appears-to-have-died-it-will-restart/m-p/1103034#M409</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;something happened to this case? Thanks a lot.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 12:52:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/the-kernel-appears-to-have-died-it-will-restart/m-p/1103034#M409</guid>
      <dc:creator>MaxBöcke</dc:creator>
      <dc:date>2021-09-29T12:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: The kernel appears to have died. It will restart automatically.</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/the-kernel-appears-to-have-died-it-will-restart/m-p/1119526#M445</link>
      <description>&lt;P&gt;Here is a link which describes exactly the same Log Message of this case but in another use case.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/ContinuumIO/docker-images/issues/171" target="_blank"&gt;https://github.com/ContinuumIO/docker-images/issues/171&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 14:14:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/the-kernel-appears-to-have-died-it-will-restart/m-p/1119526#M445</guid>
      <dc:creator>MaxBöcke</dc:creator>
      <dc:date>2021-11-23T14:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: The kernel appears to have died. It will restart automatically.</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/the-kernel-appears-to-have-died-it-will-restart/m-p/1123890#M456</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/105688"&gt;@MaxBöcke&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apologies for being late.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. For "docker commit', if you could share it privately via message would be helpful.&lt;/P&gt;&lt;P&gt;2. Could you also share the resources available of the system, disk space for docker, webSocketSize and Runtime Details (Version, Max memory &amp;amp; Shared Memory).&lt;/P&gt;&lt;P&gt;3. Ensure if the log level is set to 'DEBUG'. If not set it to 'DEBUG' and terminate the container and try reproducing the issue again and share the log details.&lt;/P&gt;&lt;P&gt;4. While reproducing the issue run the 'docker stats'. And observe if the 'Memory Usage' is not exceeding the 'Limit' in 'docker stats' details.&lt;/P&gt;&lt;P&gt;5. When this issue is being reproduced, are there any other notebooks (interactive/scheduled) too running or its the only one?&amp;nbsp;&lt;/P&gt;&lt;P&gt;6. And how long does it take to run into this issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Shikhar Deep&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Dec 2021 17:02:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/the-kernel-appears-to-have-died-it-will-restart/m-p/1123890#M456</guid>
      <dc:creator>shikhar_deep</dc:creator>
      <dc:date>2021-12-08T17:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: The kernel appears to have died. It will restart automatically.</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/the-kernel-appears-to-have-died-it-will-restart/m-p/1126213#M461</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/433772"&gt;@shikhar_deep&lt;/a&gt;&lt;/P&gt;&lt;P&gt;we stopped anlyzing this issue. In Version 10.7 and 10.8 we had successful tests. Not in 10.9. We guess there is an issue within the 10.9 advanced image. For example we imported the 10.9.1 Advanced Image as a custom image. The import functionality works apparently. But afterwards we had a lot of crashes by using arcpy.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The ressources for executing such notebooks a highly sufficient. 8 Cores, 32GB RAM. The analyzed platform performance is great.&lt;/P&gt;&lt;P&gt;I sent the 'docker commit' image link to you via private message.&lt;/P&gt;&lt;P&gt;Thanks a lot for your efforts.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 10:51:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/the-kernel-appears-to-have-died-it-will-restart/m-p/1126213#M461</guid>
      <dc:creator>MaxBöcke</dc:creator>
      <dc:date>2021-12-15T10:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: The kernel appears to have died. It will restart automatically.</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/the-kernel-appears-to-have-died-it-will-restart/m-p/1126284#M462</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/105688"&gt;@MaxBöcke&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Glad to know about&amp;nbsp; "import" working as expected in 10.9.1. I am curious if you still having crashes in 10.9.1 or in 10.9? If in 10.9.1, further more info would be helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Shikhar Deep&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 16:15:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/the-kernel-appears-to-have-died-it-will-restart/m-p/1126284#M462</guid>
      <dc:creator>shikhar_deep</dc:creator>
      <dc:date>2021-12-15T16:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: The kernel appears to have died. It will restart automatically.</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/the-kernel-appears-to-have-died-it-will-restart/m-p/1147474#M480</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/105688"&gt;@MaxBöcke&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think there is maybe some link to version of tensorflow library and CPU AVX support. Our customer has same problem after migration to ArcGIS Notebook 10.9.1. We tried to run "from arcgis.gis import GIS"&amp;nbsp; in python console inside their docker container and obtained error message"Illegal instruction (core dump)" and exactly same behavior&amp;nbsp; about the "Kernel ... died / Illegal instruction " with "import tensorflow". I was unable to simulate this problem on my machine, but recently I 'v tried another older machine with CPU that has not support for AVX instruction, and same problem appeared.&amp;nbsp; Just for test I tried in test docker container to uninstall tensorflow-gpu with conda, and "Kernel appears to have died.." was gone after arcgis.gis import.&amp;nbsp; Could you please run&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;!more /proc/cpuinfo | grep flags&amp;nbsp;&lt;/STRONG&gt; in your problematic notebook&amp;nbsp; to check if there is AVX listed?&amp;nbsp; It is somehow similar to &lt;A href="https://tech.amikelive.com/node-887/how-to-resolve-error-illegal-instruction-core-dumped-when-running-import-tensorflow-in-a-python-program/" target="_self"&gt;this&lt;/A&gt; problem.&amp;nbsp; I do not know how tensorflow is connected ArcGIS API for python, but&amp;nbsp; I will try to open support case with Esri for this problem, and I can let you know the result.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 12:09:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/the-kernel-appears-to-have-died-it-will-restart/m-p/1147474#M480</guid>
      <dc:creator>MartinKrál</dc:creator>
      <dc:date>2022-02-24T12:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: The kernel appears to have died. It will restart automatically.</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/the-kernel-appears-to-have-died-it-will-restart/m-p/1147559#M481</link>
      <description>&lt;P&gt;FYI:test on docker container without CPU AVX support&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 15:59:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/the-kernel-appears-to-have-died-it-will-restart/m-p/1147559#M481</guid>
      <dc:creator>MartinKrál</dc:creator>
      <dc:date>2022-02-24T15:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: The kernel appears to have died. It will restart automatically.</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/the-kernel-appears-to-have-died-it-will-restart/m-p/1147908#M483</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/176577"&gt;@MartinKrál&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;you made my day in this case. Your mentioned command "&lt;STRONG&gt;!more /proc/cpuinfo | grep flags&lt;/STRONG&gt;" responsed that we have a AVX supported CPU.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The followoing works for us:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import tensorflow
import arcpy
from arcgis.gis import GIS
gis = GIS("home")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Already in 10.8.1 we noticed there is a correlation in form of the order of the import packages. If you import a specific package first you can import another package successfully. If not, the kernel dies. If we omit "import tensorflow" the kernel dies.... I guess the above approach is a good workaround to live with. The uninstall tensorflow approach I'll keep in my mind.&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 10:05:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/the-kernel-appears-to-have-died-it-will-restart/m-p/1147908#M483</guid>
      <dc:creator>MaxBöcke</dc:creator>
      <dc:date>2022-02-25T10:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: The kernel appears to have died. It will restart automatically.</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/the-kernel-appears-to-have-died-it-will-restart/m-p/1147920#M484</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/105688"&gt;@MaxBöcke&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for this another piece of information.&lt;/P&gt;&lt;P&gt;Could you please also verify what tensorflow library is installed in your environement?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;!conda list | grep tensorflow&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In our 10.9.1 notebook environement without CPU's AVX support and 2.5.x tensorflow&amp;nbsp; there is unfrotunately no difference in order of those two imports, both returns "The Kernel appears to have died" &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MartinKrl_0-1645786193473.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/34984iD19A765E8C57070A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MartinKrl_0-1645786193473.png" alt="MartinKrl_0-1645786193473.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Uninstalling tensorflow I would not recomend as a solution:) It was just a kind of test in our test env., if there some connection between those two packages.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 10:53:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/the-kernel-appears-to-have-died-it-will-restart/m-p/1147920#M484</guid>
      <dc:creator>MartinKrál</dc:creator>
      <dc:date>2022-02-25T10:53:28Z</dc:date>
    </item>
  </channel>
</rss>

