Errno 28 no space left on device linux

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Errno 28] No space left on device #5816

[Errno 28] No space left on device #5816

auto-locked Outdated issues that have been locked by automation resolution: no action When the resolution is to not do anything type: support User Support

Comments

Environment
an virtual environment of python3 is created by anaconda.

Description

I want to install tensorflow in my linux server, when i type

pip install tensorflow-gpu 
 Cache entry deserialization failed, entry ignored Downloading https://files.pythonhosted.org/packages/3f/c3/000755084b5e7b5a11df1b9166a54936075ec280b7a615cecce42973fc8b/tensorflow_gpu-1.10.1-cp36-cp36m-manylinux1_x86_64.whl (253.2MB) 99% |############################### | 250.9MB 15.9MB/s eta 0:00:01**Could not install packages due to an EnvironmentError: [Errno 28] No space left on device** 

I use df -h find that the /tmp does not have enough space .

so i change the command with —build as follows:
pip install tensorflow-gpu —build /data/vincents/

However, it gaves the same error:OSError:

Collecting tensorflow-gpu Cache entry deserialization failed, entry ignored Downloading https://files.pythonhosted.org/packages/3f/c3/000755084b5e7b5a11df1b9166a54936075ec280b7a615cecce42973fc8b/tensorflow_gpu-1.10.1-cp36-cp36m-manylinux1_x86_64.whl (253.2MB) 99% |############################### | 250.9MB 54.3MB/s eta 0:00:01Could not install packages due to an EnvironmentError: [Errno 28] No space left on device 

This is means the —build option in pip didn’t specify the /data/vincents/ as the unpacked path.

The text was updated successfully, but these errors were encountered:

@daa thanks . I can install tf with your code !! I dont know why use this «TMPDIR=/data/vincents/» ?

pip downloads files to temporary directory, environment variable TMPDIR specifies that directory, also pip puts files into cache thus —cache-dir specification, —no-cache-dir should work too. —build specifies directory where wheel will be built, so its specification is also useful.

root@host:/tmp# curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py root@host:/tmp# python3 get-pip.py Collecting pip Using cached https://files.pythonhosted.org/packages/5f/25/e52d3f31441505a5f3af41213346e5b6c221c9e086a166f3703d2ddaf940/pip-18.0-py2.py3-none-any.whl Collecting setuptools Using cached https://files.pythonhosted.org/packages/96/06/c8ee69628191285ddddffb277bd5abdf769166e7a14b867c2a172f0175b1/setuptools-40.4.3-py2.py3-none-any.whl Collecting wheel Using cached https://files.pythonhosted.org/packages/fc/e9/05316a1eec70c2bfc1c823a259546475bd7636ba6d27ec80575da523bc34/wheel-0.32.1-py2.py3-none-any.whl Installing collected packages: pip, setuptools, wheel Could not install packages due to an EnvironmentError: [Errno 28] No space left on device: '/usr/local/lib/python3.5/dist-packages/pip' root@host:/tmp# df -h Filesystem Size Used Avail Use% Mounted on /dev/xvda1 7.8G 6.1G 1.4G 83% / . root@host:/tmp# python3 -V Python 3.5.2 root@host:/tmp# cat /etc/issue Ubuntu 16.04.2 LTS \n \l

@lega911: this does not look like the same issue, as you have plenty of free space in /tmp . What about in /usr/local/lib/python3.5/ ?

Читайте также:  Using same in linux

@benoit-pierre
I have only 1 mounted partition (/) (base configuration of ubuntu),
so /usr/ and other places have 1.4Gb free

Indeed, then something really weird is happening, as pip’s wheel only weight 1.3M, and decompress to about 4M.

on Ubuntu 16.04.5 works well with the same python
on Ubuntu 16.04.2 this bug, there is no problem with free space (I can add and remove 100Mb files), no problems with access, because it’s root

so it can be a bug in some library pip relied on (which was fixed in last version)

Well, pip vendors its own dependencies, so aside from a bug in Python. I don’t see any related update to Python 3.5 in the changelogs for 16.04.3, 16.04.4, or 16.04.5.

I have the same problems on Arch linux:

$ "/usr/bin/virtualenv2" "-p" "/usr/bin/python2.7" "--system-site-packages" "/home/drogus/tmp/yaourt-tmp-drogus/aur-servo-git/src/servo/python/_virtualenv" Running virtualenv with interpreter /usr/bin/python2.7 New python executable in /home/drogus/tmp/yaourt-tmp-drogus/aur-servo-git/src/servo/python/_virtualenv/bin/python2.7 Not overwriting existing python script /home/drogus/tmp/yaourt-tmp-drogus/aur-servo-git/src/servo/python/_virtualenv/bin/python (you must use /home/drogus/tmp/yaourt-tmp-drogus/aur-servo-git/src/servo/python/_virtualenv/bin/python2.7) Installing setuptools, pip, wheel. Complete output from command /home/drogus/tmp/yao. ualenv/bin/python2.7 - setuptools pip wheel: Looking in links: /usr/lib/python2.7/site-packages, /usr/lib/python2.7/site-packages/virtualenv_support Collecting setuptools Using cached https://files.pythonhosted.org/packages/37/06/754589caf971b0d2d48f151c2586f62902d93dc908e2fd9b9b9f6aa3c9dd/setuptools-40.6.3-py2.py3-none-any.whl Collecting pip Using cached https://files.pythonhosted.org/packages/c2/d7/90f34cb0d83a6c5631cf71dfe64cc1054598c843a92b400e55675cc2ac37/pip-18.1-py2.py3-none-any.whl Could not install packages due to an EnvironmentError: [Errno 28] No space left on device ---------------------------------------- . Installing setuptools, pip, wheel. done. Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/virtualenv.py", line 2343, in main() File "/usr/lib/python2.7/site-packages/virtualenv.py", line 712, in main symlink=options.symlink) File "/usr/lib/python2.7/site-packages/virtualenv.py", line 947, in create_environment download=download, File "/usr/lib/python2.7/site-packages/virtualenv.py", line 904, in install_wheel call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT) File "/usr/lib/python2.7/site-packages/virtualenv.py", line 796, in call_subprocess % (cmd_desc, proc.returncode)) OSError: Command /home/drogus/tmp/yao. ualenv/bin/python2.7 - setuptools pip wheel failed with error code 1 

Let me know if you need any more details (I don’t use python in general, so I have no idea what else might be of use)

Читайте также:  Есть ли смысл ставить линукс

You need to check inodes: df -i , it can be 100% usage.

I don’t think that’s the case:

$ df -i | grep Main /dev/mapper/MainVolumeGroup-root 5431296 657587 4773709 13% / /dev/mapper/MainVolumeGroup-home 21430272 569579 20860693 3% /home $ df -h | grep Main /dev/mapper/MainVolumeGroup-root 82G 52G 27G 67% / /dev/mapper/MainVolumeGroup-home 321G 72G 233G 24% /home $ "/usr/bin/virtualenv2" "-p" "/usr/bin/python2.7" "--system-site-packages" "/home/drogus/tmp/yaourt-tmp-drogus/aur-servo-git/src/servo/python/_virtualenv" Running virtualenv with interpreter /usr/bin/python2.7 Running virtualenv with interpreter /usr/bin/python2.7 New python executable in /home/drogus/tmp/yaourt-tmp-drogus/aur-servo-git/src/servo/python/_virtualenv/bin/python2.7 Not overwriting existing python script /home/drogus/tmp/yaourt-tmp-drogus/aur-servo-git/src/servo/python/_virtualenv/bin/python (you must use /home/drogus/tmp/yaourt-tmp-drogus/aur-servo-git/src/servo/python/_virtualenv/bin/python2.7) Installing setuptools, pip, wheel. Complete output from command /home/drogus/tmp/yao. ualenv/bin/python2.7 - setuptools pip wheel: Looking in links: /usr/lib/python2.7/site-packages, /usr/lib/python2.7/site-packages/virtualenv_support Collecting setuptools Using cached https://files.pythonhosted.org/packages/37/06/754589caf971b0d2d48f151c2586f62902d93dc908e2fd9b9b9f6aa3c9dd/setuptools-40.6.3-py2.py3-none-any.whl Collecting pip Using cached https://files.pythonhosted.org/packages/c2/d7/90f34cb0d83a6c5631cf71dfe64cc1054598c843a92b400e55675cc2ac37/pip-18.1-py2.py3-none-any.whl Could not install packages due to an EnvironmentError: [Errno 28] No space left on device ---------------------------------------- . Installing setuptools, pip, wheel. done. Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/virtualenv.py", line 2343, in main() File "/usr/lib/python2.7/site-packages/virtualenv.py", line 712, in main symlink=options.symlink) File "/usr/lib/python2.7/site-packages/virtualenv.py", line 947, in create_environment download=download, File "/usr/lib/python2.7/site-packages/virtualenv.py", line 904, in install_wheel call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT) File "/usr/lib/python2.7/site-packages/virtualenv.py", line 796, in call_subprocess % (cmd_desc, proc.returncode)) OSError: Command /home/drogus/tmp/yao. ualenv/bin/python2.7 - setuptools pip wheel failed with error code 1 zsh: command not found: Running 

Maybe I thought about another case, probably this one I solved just starting my script inside of the docker with fresh ubuntu.

Ok, sorry for that, but it seems that my problem was a legitimate case. The problem appeared when I was installing some stuff using yaourt on Arch and I’ve set its temp directories to the path in my home dir. Despite that it seems that something related to virtualenv needed to write to the /tmp directory and I haven’t noticed that my /tmp is a tmpfs and not shared with the main partition (I only recently got back to Linux after a long break, so I didn’t even realize that it’s done in this way now). In any case, after clearing the /tmp dir it works correctly

Читайте также:  Удаление директории в linux через терминал

I get the same error

C:\WINDOWS\system32>pip3 list
Package Version

astor 0.8.0
numpy 1.17.0
opencv-python 4.1.0.25
pip 19.2.1
setuptools 40.8.0
six 1.12.0
wheel 0.33.4

C:\WINDOWS\system32>pip3 install —upgrade tensorflow
Collecting tensorflow
Using cached https://files.pythonhosted.org/packages/f7/08/25e47a53692c2e0dcd2211a493ddfe9007a5cd92e175d6dffa6169a0b392/tensorflow-1.14.0-cp37-cp37m-win_amd64.whl
ERROR: Could not install packages due to an EnvironmentError: [Errno 28] No space left on device

Hi @MrBermudez. Please check whether any of your drives are full or close to full. On Windows you should be able to get this info by running wmic logicaldisk get size,freespace,caption in the command prompt. The easiest thing to do is make enough space in the drive that has your temp directory ( echo %TEMP% to see it), your target virtual environment, and your cache directory (should be %LOCALAPPDATA% ).

Источник

No space left on device- Ubuntu Issues

enter image description here

I am getting this error «OSError: [Errno 28] No space left on device» when I am writing files in a directory. I am downloading images programmatically from different sources and creating directories according to day wise. Its working well on windows though. While checking inodes I got this I tried different solution like deleting the deleting the junk file and tmp folder but still no success. What could be the issue?

DO NOT post images of code, data, error messages, etc. — copy or type the text into the question. How to Ask But your question is off topic anyway. What topics can I ask about here?

1 Answer 1

inodes don’t directly correlate with disk usage. Better use df -h to actually see, if your drive is full.

But as you get the error: Yep, it’s full. Up to the brim.

You probably have some data some where that uses all that precious storage. Check your home directory with du -hs * | sort -h . This can take a moment, but it will show you the size of all files and directories in the current workdir (and sort it too).

Also directories to check would be /opt , /var and /tmp . Don’t randomly delete stuff in /var though, if you don’t know what you are doing.

I’ve listed /tmp here too, because you don’t have listed it as a mount of the type tmpfs . You should fix that probably.

Источник

Оцените статью
Adblock
detector