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