# No Space Left on Device for qiime feature-classifier

**URL:** https://forum.qiime2.org/t/no-space-left-on-device-for-qiime-feature-classifier/2122
**Category:** User Support
**Tags:** feature-classifier
**Created:** [December 6, 2017, 10:21pm UTC](https://forum.qiime2.org/t/no-space-left-on-device-for-qiime-feature-classifier/2122 "2017-12-06T22:21:42Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![mwang87](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/m/f04885/32.png) [@mwang87](https://forum.qiime2.org/u/mwang87)
#### Post date: [December 6, 2017, 10:21pm UTC](https://forum.qiime2.org/t/no-space-left-on-device-for-qiime-feature-classifier/2122/1 "2017-12-06T22:21:43Z")

</div>

I am running qiime feature-classifier on a computer with plenty of hard disk space however I get this error:

Traceback (most recent call last):  
File "/local\_tools/conda/miniconda3/envs/qiime2-2017.11/lib/python3.5/tarfile.py", line 2158, in makefile  
copyfileobj(source, target, tarinfo.size, ReadError)  
File "/local\_tools/conda/miniconda3/envs/qiime2-2017.11/lib/python3.5/tarfile.py", line 244, in copyfileobj  
dst.write(buf)  
OSError: [Errno 28] No space left on device

This desktop is a 32 core 256GB machine with 1TB free of hard disk space.

I am using this command:

source /local\_tools/conda/miniconda3/bin/activate qiime2-2017.11  
qiime feature-classifier classify-sklearn --i-classifier silva-119-99-nb-classifier.qza --i-reads --o-classification --p-n-jobs 1

This classifier is from qiime2 website.

I suspect from the command line that qiime2 is attempting to put a temporary file somewhere that I do not control and that space has no space.

Any help would be appreciated.

--Ming

---

<div class="post-metadata">

### Author: ![thermokarst](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@thermokarst](https://forum.qiime2.org/u/thermokarst)
#### Post date: [December 6, 2017, 10:26pm UTC](https://forum.qiime2.org/t/no-space-left-on-device-for-qiime-feature-classifier/2122/3 "2017-12-06T22:26:20Z")

</div>

Hi @mwang87!

> [@mwang87](#):
>
> I suspect from the command line that qiime2 is attempting to put a temporary file somewhere that I do not control and that space has no space.

I think you're right! QIIME 2 will use the temp dir wherever python tell it to go, that is in the `TMPDIR` environment variable, usually.

What does it say when you run:

```bash
$ echo $TMPDIR

```

?

If you have a better location, you can override it by setting that environment variable yourself before running QIIME 2 commands. Keep me posted! 🦖

---

<div class="post-metadata">

### Author: ![mwang87](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/m/f04885/32.png) [@mwang87](https://forum.qiime2.org/u/mwang87)
#### Post date: [December 15, 2017, 10:29pm UTC](https://forum.qiime2.org/t/no-space-left-on-device-for-qiime-feature-classifier/2122/5 "2017-12-15T22:29:09Z")

</div>

Thanks! That worked!

---

<div class="post-metadata">

### Author: ![thermokarst](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@thermokarst](https://forum.qiime2.org/u/thermokarst)
#### Post date: [December 27, 2017, 3:25pm UTC](https://forum.qiime2.org/t/no-space-left-on-device-for-qiime-feature-classifier/2122/6 "2017-12-27T15:25:26Z")

</div>

An off-topic reply has been split into a new topic: [No disk space left when using Docker](https://forum.qiime2.org/t/no-disk-space-left-when-using-docker/2341)

Please keep replies on-topic in the future.

---

<div class="post-metadata">

### Author: ![system](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/3X/2/1/21af5fe23cb6f4579467c66a9ed94e55274ca7bd.svg) [@system](https://forum.qiime2.org/u/system)
#### Post date: [January 27, 2018, 9:25pm UTC](https://forum.qiime2.org/t/no-space-left-on-device-for-qiime-feature-classifier/2122/7 "2018-01-27T21:25:29Z")

</div>

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
