# Unexpected error while saving file in JupyterLab on ARE (Disk quota exceeded)

**URL:** <https://forum.access-hive.org.au/t/unexpected-error-while-saving-file-in-jupyterlab-on-are-disk-quota-exceeded/3714>\
**Category:** Technical\
**Tags:** are, jupyterlab\
**Created:** [25 September 2024 00:58 UTC](https://forum.access-hive.org.au/t/unexpected-error-while-saving-file-in-jupyterlab-on-are-disk-quota-exceeded/3714 "2024-09-25T00:58:00Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![aekiss](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/aekiss/32/46_2.png) [@aekiss](https://forum.access-hive.org.au/u/aekiss)\
**Post date:** [25 September 2024 00:58 UTC](https://forum.access-hive.org.au/t/unexpected-error-while-saving-file-in-jupyterlab-on-are-disk-quota-exceeded/3714/1 "2024-09-25T00:58:00Z")

</div>

I’m getting

```auto
File Save Error for timeseries-Copy1.ipynb
Unexpected error while saving file:
g/data/v45/aek156/notebooks/github/aekiss/access-eval-recipes/ocean/timeseries-Copy1.ipynb
[Errno 122] Disk quota exceeded

```

In JupyterLab on ARE, but there’s plenty of room in `g/data/v45` and in my home directory. Any suggestions? I guess I’m missing something obvious.

---

<div class="post-metadata">

**Author:** ![Paola-CMS](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/paola-cms/32/57_2.png) [@Paola-CMS](https://forum.access-hive.org.au/u/Paola-CMS)\
**Post date:** [25 September 2024 02:08 UTC](https://forum.access-hive.org.au/t/unexpected-error-while-saving-file-in-jupyterlab-on-are-disk-quota-exceeded/3714/2 "2024-09-25T02:08:21Z")

</div>

It looks like is trying to save it to ol01 project

---

<div class="post-metadata">

**Author:** ![aekiss](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/aekiss/32/46_2.png) [@aekiss](https://forum.access-hive.org.au/u/aekiss)\
**Post date:** [25 September 2024 04:26 UTC](https://forum.access-hive.org.au/t/unexpected-error-while-saving-file-in-jupyterlab-on-are-disk-quota-exceeded/3714/3 "2024-09-25T04:26:22Z")

</div>

Hi @Paola-CMS where did you see `ol01`?

I’m running on `ol01` and I’ve included `scratch/ol01+gdata/ol01` in the storage option.

---

<div class="post-metadata">

**Author:** ![Paola-CMS](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/paola-cms/32/57_2.png) [@Paola-CMS](https://forum.access-hive.org.au/u/Paola-CMS)\
**Post date:** [25 September 2024 04:46 UTC](https://forum.access-hive.org.au/t/unexpected-error-while-saving-file-in-jupyterlab-on-are-disk-quota-exceeded/3714/4 "2024-09-25T04:46:49Z")

</div>

I should have given you more details, sorry I was in a hurry, I just listed (ls -lt) the directory, and you can see that the file is there but with group ol01

---

<div class="post-metadata">

**Author:** ![aekiss](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/aekiss/32/46_2.png) [@aekiss](https://forum.access-hive.org.au/u/aekiss)\
**Post date:** [25 September 2024 05:41 UTC](https://forum.access-hive.org.au/t/unexpected-error-while-saving-file-in-jupyterlab-on-are-disk-quota-exceeded/3714/5 "2024-09-25T05:41:27Z")

</div>

OK thanks. That group is because I’m submitting under ol01.

I can duplicate files via the Jupyter file browser, or create them with the launcher, but when I save via the notebook menu or icon it creates zero-byte files with no content.

I wonder if File-\>Save Notebook first creates the empty file, then tries to write an auxiliary file (e.g. a temporary backup or log or something) somewhere that it can’t access, so it fails before proceeding to write the file’s contents.

---

<div class="post-metadata">

**Author:** ![Paola-CMS](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/paola-cms/32/57_2.png) [@Paola-CMS](https://forum.access-hive.org.au/u/Paola-CMS)\
**Post date:** [25 September 2024 05:46 UTC](https://forum.access-hive.org.au/t/unexpected-error-while-saving-file-in-jupyterlab-on-are-disk-quota-exceeded/3714/6 "2024-09-25T05:46:05Z")

</div>

Is it possible that ol01 doesn’t have any allocation on the disk that v45 is on? I mean /g/data3 ? As it’s trying to write on gdata3 as ol01 group.  
More recent gdata disks don’t allow to write with a different group, but /g/data3 is an older one.

---

<div class="post-metadata">

**Author:** ![aekiss](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/aekiss/32/46_2.png) [@aekiss](https://forum.access-hive.org.au/u/aekiss)\
**Post date:** [25 September 2024 06:00 UTC](https://forum.access-hive.org.au/t/unexpected-error-while-saving-file-in-jupyterlab-on-are-disk-quota-exceeded/3714/7 "2024-09-25T06:00:27Z")

</div>

I don’t think that’s it, since I can create and duplicate non-empty files via the launcher and file browser.

---

<div class="post-metadata">

**Author:** ![aekiss](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/aekiss/32/46_2.png) [@aekiss](https://forum.access-hive.org.au/u/aekiss)\
**Post date:** [25 September 2024 06:06 UTC](https://forum.access-hive.org.au/t/unexpected-error-while-saving-file-in-jupyterlab-on-are-disk-quota-exceeded/3714/8 "2024-09-25T06:06:38Z")

</div>

I can even write files to `/g/data/v45` from a jupyter script, but I can’t save the script itself.

---

<div class="post-metadata">

**Author:** ![anton](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/anton/32/1836_2.png) [@anton](https://forum.access-hive.org.au/u/anton)\
**Post date:** [25 September 2024 07:28 UTC](https://forum.access-hive.org.au/t/unexpected-error-while-saving-file-in-jupyterlab-on-are-disk-quota-exceeded/3714/9 "2024-09-25T07:28:52Z")

</div>

> [@aekiss](#):
>
> `[Errno 122] Disk quota exceeded`

Is it possible the `jobfs` is full ? In the past this has just crashed the kernel for me though (because some process was trying to spill memory to disk and failed).

---

<div class="post-metadata">

**Author:** ![aekiss](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/aekiss/32/46_2.png) [@aekiss](https://forum.access-hive.org.au/u/aekiss)\
**Post date:** [25 September 2024 08:30 UTC](https://forum.access-hive.org.au/t/unexpected-error-while-saving-file-in-jupyterlab-on-are-disk-quota-exceeded/3714/10 "2024-09-25T08:30:23Z")

</div>

hm, how would I check that?

---

<div class="post-metadata">

**Author:** ![anton](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/anton/32/1836_2.png) [@anton](https://forum.access-hive.org.au/u/anton)\
**Post date:** [25 September 2024 23:05 UTC](https://forum.access-hive.org.au/t/unexpected-error-while-saving-file-in-jupyterlab-on-are-disk-quota-exceeded/3714/11 "2024-09-25T23:05:56Z")

</div>

Once the session is finished you can see in the _Debug Log_ from the _My Interactive Sessions_ log. While its going, I would guess you can tell using the `message.log` file after you click on the _Session ID:_ link from the _My Interactive Sessions_ log or through a terminal using `qstat -f`.

---

<div class="post-metadata">

**Author:** ![aekiss](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/aekiss/32/46_2.png) [@aekiss](https://forum.access-hive.org.au/u/aekiss)\
**Post date:** [29 September 2024 23:26 UTC](https://forum.access-hive.org.au/t/unexpected-error-while-saving-file-in-jupyterlab-on-are-disk-quota-exceeded/3714/12 "2024-09-29T23:26:40Z")

</div>

Thanks, but doesn’t look like that’s it

```auto
   JobFS requested: 100.0MB JobFS used: 0B              

```

---

<div class="post-metadata">

**Author:** ![aekiss](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/aekiss/32/46_2.png) [@aekiss](https://forum.access-hive.org.au/u/aekiss)\
**Post date:** [3 October 2024 04:43 UTC](https://forum.access-hive.org.au/t/unexpected-error-while-saving-file-in-jupyterlab-on-are-disk-quota-exceeded/3714/13 "2024-10-03T04:43:40Z")

</div>

Solved with the help of Ben Menadue (NCI). As @Paola-CMS suggested, this is because the files are being written as group `ol01`, but since `ol01` resides on `gdata6`, it has only minimal disk allocation to `/g/data3/v45`.

The problem was fixed by moving to the parent directory and doing

```auto
find . -type d -exec chmod -c g+s {} +

```

which sets the setgid bit in all subdirectories, so that files will inherit the group of the parent directory `.` (`v45` in this case) rather than the group I’m running as (`ol01` in this case).
