当前位置: 首页 > news >正文

jupyter启动出现OSError: [Errno 28] No space left on device

问题

(datasetclu) zhouy24@RL-DSlab:~/zhouy24Files/dataAnyl$ jupyter notebook_   _          _      _| | | |_ __  __| |__ _| |_ ___| |_| | '_ \/ _` / _` |  _/ -_)\___/| .__/\__,_\__,_|\__\___||_|Read the migration plan to Notebook 7 to learn about the new features and the actions to take if you are using extensions.https://jupyter-notebook.readthedocs.io/en/latest/migrate_to_notebook7.htmlPlease note that updating to Notebook 7 might break some of your extensions.Both `sys_prefix` and `user` level settings are read-only, cannot auto-migrate `disabledExtensions` to `lockedExtensions`
[W 10:45:14.775 NotebookApp] Error loading server extension jupyterlabTraceback (most recent call last):File "/home/zhouy24/miniconda3/envs/datasetclu/lib/python3.8/site-packages/notebook/notebookapp.py", line 2050, in init_server_extensionsfunc(self)File "/home/zhouy24/miniconda3/envs/datasetclu/lib/python3.8/site-packages/jupyterlab/serverextension.py", line 71, in load_jupyter_server_extensionextension.initialize()File "/home/zhouy24/miniconda3/envs/datasetclu/lib/python3.8/site-packages/jupyterlab/labapp.py", line 921, in initializesuper().initialize()File "/home/zhouy24/miniconda3/envs/datasetclu/lib/python3.8/site-packages/jupyter_server/extension/application.py", line 437, in initializeself._prepare_handlers()File "/home/zhouy24/miniconda3/envs/datasetclu/lib/python3.8/site-packages/jupyter_server/extension/application.py", line 327, in _prepare_handlersself.initialize_handlers()File "/home/zhouy24/miniconda3/envs/datasetclu/lib/python3.8/site-packages/jupyterlab/labapp.py", line 735, in initialize_handlerspage_config["token"] = self.serverapp.identity_provider.tokenAttributeError: 'NotebookApp' object has no attribute 'identity_provider'
[I 10:45:14.778 NotebookApp] Serving notebooks from local directory: /data/zhouy24Files/dataAnyl
[I 10:45:14.778 NotebookApp] Jupyter Notebook 6.5.7 is running at:
[I 10:45:14.778 NotebookApp] http://localhost:8888/?token=b61fc68b05004f1c8177f6fe31f6098ecda9bad5983e7751
[I 10:45:14.778 NotebookApp]  or http://127.0.0.1:8888/?token=b61fc68b05004f1c8177f6fe31f6098ecda9bad5983e7751
[I 10:45:14.778 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[E 10:45:14.807 NotebookApp] Failed to write server-info to /home/zhouy24/.local/share/jupyter/runtime/nbserver-84542.json: [Errno 28] No space left on device
OSError: [Errno 28] No space left on deviceDuring handling of the above exception, another exception occurred:Traceback (most recent call last):File "/home/zhouy24/miniconda3/envs/datasetclu/bin/jupyter-notebook", line 10, in <module>sys.exit(main())File "/home/zhouy24/miniconda3/envs/datasetclu/lib/python3.8/site-packages/jupyter_core/application.py", line 283, in launch_instancesuper().launch_instance(argv=argv, **kwargs)File "/home/zhouy24/miniconda3/envs/datasetclu/lib/python3.8/site-packages/traitlets/config/application.py", line 1075, in launch_instanceapp.start()File "/home/zhouy24/miniconda3/envs/datasetclu/lib/python3.8/site-packages/notebook/notebookapp.py", line 2358, in startself.write_browser_open_file()File "/home/zhouy24/miniconda3/envs/datasetclu/lib/python3.8/site-packages/notebook/notebookapp.py", line 2262, in write_browser_open_fileself._write_browser_open_file(open_url, f)
OSError: [Errno 28] No space left on device

解决

1.cd 到home目录下
在这里插入图片描述

2.查看磁盘空间情况:df -h .
(datasetclu) zhouy24@RL-DSlab:/home$ df -h .
Filesystem Size Used Avail Use% Mounted on
/dev/nvme0n1p3 1.9T 1.8T 0 100% /

3.可以看到avail为0

4.可以排序查看各个占用情况
(datasetclu) zhouy24@RL-DSlab:/home$ du -h --max-depth=1 /home/zhouy24 | sort -hr
58G /home/zhouy24
51G /home/zhouy24/miniconda3
7.1G /home/zhouy24/.cache
158M /home/zhouy24/.vscode-server
83M /home/zhouy24/nltk_data
18M /home/zhouy24/.mujoco
1.2M /home/zhouy24/.ipython
272K /home/zhouy24/.local
200K /home/zhouy24/.dotnet
32K /home/zhouy24/.config
24K /home/zhouy24/.ssh
12K /home/zhouy24/.conda
8.0K /home/zhouy24/.nv
8.0K /home/zhouy24/.jupyter
8.0K /home/zhouy24/.gnupg

5.清理磁盘
(datasetclu) zhouy24@RL-DSlab:/home$ conda clean -a
Will remove 549 (2.26 GB) tarball(s).
Proceed ([y]/n)? y

Will remove 1 index cache(s).
Proceed ([y]/n)? y

Will remove 136 (5.49 GB) package(s).
Proceed ([y]/n)? y

There are no tempfile(s) to remove.
There are no logfile(s) to remove.

6.重新查看情况
(datasetclu) zhouy24@RL-DSlab:/home$ du -h --max-depth=1 /home/zhouy24 | sort -hr
50G /home/zhouy24
42G /home/zhouy24/miniconda3
7.1G /home/zhouy24/.cache
158M /home/zhouy24/.vscode-server
83M /home/zhouy24/nltk_data
18M /home/zhouy24/.mujoco
1.2M /home/zhouy24/.ipython
272K /home/zhouy24/.local
200K /home/zhouy24/.dotnet
32K /home/zhouy24/.config
24K /home/zhouy24/.ssh
12K /home/zhouy24/.conda
8.0K /home/zhouy24/.nv
8.0K /home/zhouy24/.jupyter
8.0K /home/zhouy24/.gnupg

7.现在avail 有 8.3G了
(datasetclu) zhouy24@RL-DSlab:/home$ df -h .
Filesystem Size Used Avail Use% Mounted on
/dev/nvme0n1p3 1.9T 1.8T 8.3G 100% /

8.jupyter notebook启动

相关文章:

  • atcoder C - ~
  • 文件IO之标准IO
  • Binary Prediction with a Rainfall Dataset-(回归+特征工程+xgb)
  • 入门OpenTelemetry——应用自动埋点
  • ColorAid —— 一个面向设计师的色盲模拟工具开发记
  • 多模态大语言模型arxiv论文略读(八十)
  • Git多人协作
  • SOLID 面对象设计的五大基本原则
  • Denoising Score Matching with Langevin Dynamics
  • 2_Spring【IOC容器中获取组件Bean】
  • 中级统计师-统计学基础知识-第四章 假设检验
  • 企业内部风险管理:人性化与技术并重
  • 浅谈迷宫类问题中的BFS和DFS
  • ctf 基础
  • [ctfshow web入门] web119
  • 软件设计师CISC与RISC考点分析——求三连
  • 算法加训之最短路 上(dijkstra算法)
  • <前端小白> 前端网页知识点总结
  • 10.13 LangChain工具调用实战:@tool装饰器+小样本提示,日处理10w+调用秘籍
  • 3Dmax中用RayFire实现破碎动画效果
  • 十年牢狱倒计时,一名服刑人员的期待与惶恐
  • 新任重庆市垫江县委副书记刘振已任县政府党组书记
  • 以军证实空袭也门多个港口
  • 美联储官员:美国经济增速可能放缓,现行关税政策仍将导致物价上涨
  • 上百家单位展示AI+教育的实践与成果,上海教育博览会开幕
  • 梅花奖在上海|话剧《主角》:艺术与人生的交错