# No space left on device

**URL:** <https://community.riskscape.org.nz/t/no-space-left-on-device/147>\
**Category:** Community\
**Created:** [12 September 2023 22:10 UTC](https://community.riskscape.org.nz/t/no-space-left-on-device/147 "2023-09-12T22:10:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JPowell](https://avatars.discourse-cdn.com/v4/letter/j/bbce88/32.png) [@JPowell](https://community.riskscape.org.nz/u/JPowell)\
**Post date:** [12 September 2023 22:10 UTC](https://community.riskscape.org.nz/t/no-space-left-on-device/147/1 "2023-09-12T22:10:04Z")

</div>

Riskscape has been failing to run and throwing a couple of errors: one that there is no space left on the device and another that a file could not be written to.

```auto
Problems found with 'pipeline-eval' pipeline
  - Execution of your data processing pipeline failed. The reasons for this follow:
    - Problems found with 'shapefile' format
      - java.io.IOException: No space left on device

```

```auto
Problems found with 'pipeline-eval' pipeline
  - Execution of your data processing pipeline failed. The reasons for this follow:
    - Could not write to dbf file

```

There is a large amount of space available on the drive that riskscape is running on

```auto
powellj@mahuika01 /nesi/nobackup/niwa03670 $ nn_storage_quota | grep -E 'nobackup_niwa03670|Quota'
Quota Location Available Used Use% State Inodes IUsed IUse% IState
nobackup_niwa03670 10T 416.3G 4.07% OK 1000000 494696 49.47% OK

```

---

<div class="post-metadata">

**Author:** ![JPowell](https://avatars.discourse-cdn.com/v4/letter/j/bbce88/32.png) [@JPowell](https://community.riskscape.org.nz/u/JPowell)\
**Post date:** [12 September 2023 22:10 UTC](https://community.riskscape.org.nz/t/no-space-left-on-device/147/2 "2023-09-12T22:10:41Z")

</div>

By default Riskscape will use the /tmp directory while it is running. I am using Slurm to launch Riskscape on a node with limited space in /tmp. The temp directory java uses can be changed by adding

```auto
export _JAVA_OPTIONS=-Djava.io.tmpdir=newtempdir

```

eg

```auto
export _JAVA_OPTIONS=-Djava.io.tmpdir=/nesi/nobackup/niwa03670/riskscapetmp

```

---

<div class="post-metadata">

**Author:** ![glennwalbran](https://avatars.discourse-cdn.com/v4/letter/g/bbe5ce/32.png) [@glennwalbran](https://community.riskscape.org.nz/u/glennwalbran)\
**Post date:** [12 September 2023 23:59 UTC](https://community.riskscape.org.nz/t/no-space-left-on-device/147/3 "2023-09-12T23:59:40Z")

</div>

Hi John

It seems that \_JAVA\_OPTIONS is a non standard environment variable that is used be some JVMs but not all.

To solve your problem now, I’d suggest you put the temp dir settings in a JVM\_OPTS variable. This is picked up by the riskscape start script and passed to the JVM.

And I’ll get the tips page updated.

Regards  
Glenn
