问答交流

平台——在当前单元格或上一个单元格中执行代码时 Kernel 崩溃

由bqlf38ns创建,最终由small_q 被浏览 38 用户

运行时提示崩溃,日志如下,怎么处理啊

AIStudio (1.76.1, bigquant.com, server-distro)
Jupyter Extension Version: 2023.2.1200692131.
Python Extension Version: 2022.18.2.
Workspace folder /home/aiuser/work
info 18:30:26.724: LSP Notebooks experiment is enabled
info 18:30:27.468: Starting Jupyter Session startUsingPythonInterpreter, .jvsc74a57bd0916dbcbb3f70747c44a77c7bcd40155683ae19c65e1c03b4aa3499c5328201f1./bin/python3./bin/python3.-m#ipykernel_launcher (Python Path: , EnvType: Unknown, EnvName: '', Version: 3.8.12 (default, Dec 11 2022, 18:02:23) 
[GCC 7.3.1 20180303 (Red Hat 7.3.1-5)]) for '/home/aiuser/work/可视化空白策略-20230913174707.ipynb' (disableUI=true)
warn 18:30:28.784: Failed to get activated env vars with python /bin/python3 in 1316ms
warn 18:30:28.784: Failed to get activated env vars with python /bin/python3 in 1312ms
warn 18:30:28.784: Failed to get activated env vars with python /bin/python3 in 1294ms
warn 18:30:28.784: Failed to get activated env vars with python /bin/python3 in 1292ms
info 18:30:28.964: Process Execution: > /bin/python3 -c "import site;print("USER_BASE_VALUE");print(site.USER_SITE);print("USER_BASE_VALUE");"
> /bin/python3 -c "import site;print("USER_BASE_VALUE");print(site.USER_SITE);print("USER_BASE_VALUE");"
info 18:30:29.375: Process Execution: > /bin/python3 -m pip list
> /bin/python3 -m pip list
info 18:30:29.395: Process Execution: > /bin/python3 -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
> /bin/python3 -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
info 18:30:29.559: Process Execution: > /bin/python3 -m ipykernel_launcher --ip=127.0.0.1 --stdin=9003 --control=9001 --hb=9000 --Session.signature_scheme="hmac-sha256" --Session.key=b"cf127759-b5b0-4429-932a-36699f59a711" --shell=9002 --transport="tcp" --iopub=9004 --f=/home/aiuser/.local/share/jupyter/runtime/kernel-v2-539EucWylaA4aIT.json
> /bin/python3 -m ipykernel_launcher --ip=127.0.0.1 --stdin=9003 --control=9001 --hb=9000 --Session.signature_scheme="hmac-sha256" --Session.key=b"cf127759-b5b0-4429-932a-36699f59a711" --shell=9002 --transport="tcp" --iopub=9004 --f=/home/aiuser/.local/share/jupyter/runtime/kernel-v2-539EucWylaA4aIT.json
info 18:30:29.559: Process Execution: cwd: ~/work
cwd: ~/work
info 18:30:32.474: ipykernel version & path 6.22.0, /usr/local/python3/lib/python3.8/site-packages/ipykernel/__init__.py for /bin/python3
warn 18:30:35.473: StdErr from Kernel Process /usr/local/python3/lib/python3.8/site-packages/traitlets/traitlets.py:2548: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5.
  warn(

warn 18:30:35.479: StdErr from Kernel Process /usr/local/python3/lib/python3.8/site-packages/traitlets/traitlets.py:2499: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use 'cf127759-b5b0-4429-932a-36699f59a711' instead of 'b"cf127759-b5b0-4429-932a-36699f59a711"'.
  warn(

warn 18:30:38.532: StdErr from Kernel Process kj/filesystem-disk-unix.c++:1703: warning: PWD environment variable doesn't match current directory; pwd = /run/s6/legacy-services/aistudio

warn 18:30:38.670: Didn't get response for requestKernelInfo after 3054ms.
info 18:30:38.673: Started Kernel Python 3.8.12 (pid: 679)
info 18:30:39.333: Dispose Kernel '/home/aiuser/work/可视化空白策略-20230913174707.ipynb' associated with '/home/aiuser/work/可视化空白策略-20230913174707.ipynb'
info 18:30:41.333: Dispose Kernel process 679.
info 18:30:41.951: Starting Jupyter Session startUsingPythonInterpreter, .jvsc74a57bd0916dbcbb3f70747c44a77c7bcd40155683ae19c65e1c03b4aa3499c5328201f1./bin/python3./bin/python3.-m#ipykernel_launcher (Python Path: , EnvType: Unknown, EnvName: '', Version: 3.8.12 (default, Dec 11 2022, 18:02:23) 
[GCC 7.3.1 20180303 (Red Hat 7.3.1-5)]) for '/home/aiuser/work/可视化AI策略-20230820080304.ipynb' (disableUI=true)
warn 18:30:43.135: Failed to get activated env vars with python /bin/python3 in 1178ms
info 18:30:43.160: Process Execution: > /bin/python3 -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
> /bin/python3 -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
warn 18:30:43.164: Failed to get activated env vars with python /bin/python3 in 1201ms
warn 18:30:43.164: Failed to get activated env vars with python /bin/python3 in 1201ms
info 18:30:43.195: Process Execution: > /bin/python3 -m ipykernel_launcher --ip=127.0.0.1 --stdin=9003 --control=9001 --hb=9000 --Session.signature_scheme="hmac-sha256" --Session.key=b"c794da9c-4dde-42a6-aed5-2a29351e9570" --shell=9002 --transport="tcp" --iopub=9004 --f=/home/aiuser/.local/share/jupyter/runtime/kernel-v2-539HLUPkpmTJsfD.json
> /bin/python3 -m ipykernel_launcher --ip=127.0.0.1 --stdin=9003 --control=9001 --hb=9000 --Session.signature_scheme="hmac-sha256" --Session.key=b"c794da9c-4dde-42a6-aed5-2a29351e9570" --shell=9002 --transport="tcp" --iopub=9004 --f=/home/aiuser/.local/share/jupyter/runtime/kernel-v2-539HLUPkpmTJsfD.json
info 18:30:43.195: Process Execution: cwd: ~/work
cwd: ~/work
info 18:30:44.066: ipykernel version & path 6.22.0, /usr/local/python3/lib/python3.8/site-packages/ipykernel/__init__.py for /bin/python3
warn 18:30:45.132: StdErr from Kernel Process /usr/local/python3/lib/python3.8/site-packages/traitlets/traitlets.py:2548: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5.
  warn(

warn 18:30:45.133: StdErr from Kernel Process /usr/local/python3/lib/python3.8/site-packages/traitlets/traitlets.py:2499: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use 'c794da9c-4dde-42a6-aed5-2a29351e9570' instead of 'b"c794da9c-4dde-42a6-aed5-2a29351e9570"'.
  warn(

warn 18:30:47.350: StdErr from Kernel Process kj/filesystem-disk-unix.c++:1703: warning: PWD environment variable doesn't match current directory; pwd = /run/s6/legacy-services/aistudio

info 18:30:47.569: Starting Jupyter Session startUsingPythonInterpreter, .jvsc74a57bd0916dbcbb3f70747c44a77c7bcd40155683ae19c65e1c03b4aa3499c5328201f1./bin/python3./bin/python3.-m#ipykernel_launcher (Python Path: , EnvType: Unknown, EnvName: '', Version: 3.8.12 (default, Dec 11 2022, 18:02:23) 
[GCC 7.3.1 20180303 (Red Hat 7.3.1-5)]) for '/home/aiuser/work/可视化空白策略-20230820080605.ipynb' (disableUI=true)
info 18:30:48.468: Started Kernel Python 3.8.12 (pid: 789)
warn 18:30:48.498: Failed to get activated env vars with python /bin/python3 in 925ms
warn 18:30:48.498: Failed to get activated env vars with python /bin/python3 in 918ms
warn 18:30:48.498: Failed to get activated env vars with python /bin/python3 in 918ms
info 18:30:48.563: Process Execution: > /bin/python3 -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
> /bin/python3 -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
info 18:30:48.597: Process Execution: > /bin/python3 -m ipykernel_launcher --ip=127.0.0.1 --stdin=9008 --control=9006 --hb=9005 --Session.signature_scheme="hmac-sha256" --Session.key=b"516ae26c-eeb4-4235-b93a-8bea265117fd" --shell=9007 --transport="tcp" --iopub=9009 --f=/home/aiuser/.local/share/jupyter/runtime/kernel-v2-539tpl005LR4eO2.json
> /bin/python3 -m ipykernel_launcher --ip=127.0.0.1 --stdin=9008 --control=9006 --hb=9005 --Session.signature_scheme="hmac-sha256" --Session.key=b"516ae26c-eeb4-4235-b93a-8bea265117fd" --shell=9007 --transport="tcp" --iopub=9009 --f=/home/aiuser/.local/share/jupyter/runtime/kernel-v2-539tpl005LR4eO2.json
info 18:30:48.597: Process Execution: cwd: ~/work
cwd: ~/work
info 18:30:50.170: ipykernel version & path 6.22.0, /usr/local/python3/lib/python3.8/site-packages/ipykernel/__init__.py for /bin/python3
warn 18:30:52.709: StdErr from Kernel Process /usr/local/python3/lib/python3.8/site-packages/traitlets/traitlets.py:2548: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5.
  warn(

warn 18:30:52.711: StdErr from Kernel Process /usr/local/python3/lib/python3.8/site-packages/traitlets/traitlets.py:2499: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '516ae26c-eeb4-4235-b93a-8bea265117fd' instead of 'b"516ae26c-eeb4-4235-b93a-8bea265117fd"'.
  warn(

warn 18:30:52.788: Failed to get activated env vars with python /bin/python3 in 193ms
info 18:30:52.823: Process Execution: > /bin/python3 ~/.local/share/aistudio/extensions/ms-toolsai.jupyter-2023.2.1200692131/pythonFiles/printJupyterDataDir.py
> /bin/python3 ~/.local/share/aistudio/extensions/ms-toolsai.jupyter-2023.2.1200692131/pythonFiles/printJupyterDataDir.py
warn 18:30:55.035: StdErr from Kernel Process kj/filesystem-disk-unix.c++:1703: warning: PWD environment variable doesn't match current directory; pwd = /run/s6/legacy-services/aistudio

info 18:30:55.779: Started Kernel Python 3.8.12 (pid: 848)
info 18:40:24.436: Cancel all remaining cells true || Error || undefined
info 18:55:09.688: Cancel all remaining cells true || Error || undefined
error 18:58:38.650: Disposing session as kernel process died ExitCode: undefined, Reason: /usr/local/python3/lib/python3.8/site-packages/traitlets/traitlets.py:2548: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5.
  warn(
/usr/local/python3/lib/python3.8/site-packages/traitlets/traitlets.py:2499: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '516ae26c-eeb4-4235-b93a-8bea265117fd' instead of 'b"516ae26c-eeb4-4235-b93a-8bea265117fd"'.
  warn(
kj/filesystem-disk-unix.c++:1703: warning: PWD environment variable doesn't match current directory; pwd = /run/s6/legacy-services/aistudio

info 18:58:38.651: Dispose Kernel process 848.
error 18:58:38.652: Raw kernel process exited code: undefined
error 18:58:38.665: Error in waiting for cell to complete [Error: Canceled future for execute_request message before replies were done
	at t.KernelShellFutureHandler.dispose (/opt/aistudio/extensions/ms-toolsai.jupyter-2023.2.1200692131/out/extension.node.js:2:33213)
	at /opt/aistudio/extensions/ms-toolsai.jupyter-2023.2.1200692131/out/extension.node.js:2:52265
	at Map.forEach (<anonymous>)
	at y._clearKernelState (/opt/aistudio/extensions/ms-toolsai.jupyter-2023.2.1200692131/out/extension.node.js:2:52250)
	at y.dispose (/opt/aistudio/extensions/ms-toolsai.jupyter-2023.2.1200692131/out/extension.node.js:2:45732)
	at /opt/aistudio/extensions/ms-toolsai.jupyter-2023.2.1200692131/out/extension.node.js:17:127079
	at ee (/opt/aistudio/extensions/ms-toolsai.jupyter-2023.2.1200692131/out/extension.node.js:2:1552543)
	at dh.dispose (/opt/aistudio/extensions/ms-toolsai.jupyter-2023.2.1200692131/out/extension.node.js:17:127055)
	at hh.dispose (/opt/aistudio/extensions/ms-toolsai.jupyter-2023.2.1200692131/out/extension.node.js:17:134354)
	at processTicksAndRejections (node:internal/process/task_queues:96:5)]
warn 18:58:38.666: Cell completed with errors {
  message: 'Canceled future for execute_request message before replies were done'
}
info 18:58:38.676: Cancel all remaining cells true || Error || undefined

\

标签

AIStudio
评论
  • 需要这样检查下:
  • 1)是否是系统后台不稳定,你可以重新运行一下,看是否还存在
  • 2)是否自己的资源规格太低,比如内存超限了。
{link}