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

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启动

http://www.xdnf.cn/news/7008.html

相关文章:

  • LeetCode算 法 实 战 - - - 双 指 针 与 移 除 元 素、快 慢 指 针 与 删 除 有 序 数 组 中 的 重 复 项
  • 6.2.3+6.2.4十字链表、邻接多重表
  • Nginx配置与命令
  • 数据库中关于查询选课问题的解法
  • Appium自动化测试环境搭建及配置
  • [Linux]安装吧!我的软件包管理器!
  • 怎样免费开发部署自己的网站?
  • Spark 的运行模式(--master) 和 部署方式(--deploy-mode)
  • Linux进程信号(三)之信号产生2
  • Day29 类的装饰器
  • axios的基本使用
  • 网络安全利器:蜜罐技术详解
  • windows11 安装好后右键没有 git bash 命令
  • 【超详细】面试中问到事件循环(Event Loop)机制?
  • 【数据结构】树状数组
  • 基于 STM32 的汽车防盗报警系统设计与实现
  • FPR2100安装ASA镜像
  • 高效查询:位图、B+树
  • 聊一聊契约测试在接口测试中常见的应用场景
  • 互联网大厂Java面试场景:从缓存到容器化的技术问答
  • Spring源码主线全链路拆解:从启动到关闭的完整生命周期
  • 第四章:WebSocket 通信机制全解与客户端发包实录
  • 二十一、案例特训专题4【数据库篇】
  • Vue.js教学第五章:计算属性与侦听器详解
  • 02 K8s双主安装
  • Flink的时间问题
  • 14【高级指南】Django部署最佳实践:从开发到生产的全流程解析
  • JavaScript性能优化实战(12):大型应用性能优化实战案例
  • 机器学习09-正规方程
  • 【MySQL成神之路】MySQL常见命令汇总