# HDF5 error occuring when using MAT package

**URL:** <https://discourse.julialang.org/t/hdf5-error-occuring-when-using-mat-package/68335>\
**Category:** General Usage\
**Tags:** hdf5, matlab\
**Created:** [September 17, 2021, 1:31pm UTC](https://discourse.julialang.org/t/hdf5-error-occuring-when-using-mat-package/68335 "2021-09-17T13:31:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![iamsuddhasattwa](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/iamsuddhasattwa/32/7441_2.png) [@iamsuddhasattwa](https://discourse.julialang.org/u/iamsuddhasattwa)\
**Post date:** [September 17, 2021, 1:31pm UTC](https://discourse.julialang.org/t/hdf5-error-occuring-when-using-mat-package/68335/1 "2021-09-17T13:31:29Z")

</div>

I am getting the following error when trying to use the MAT package. I have no clue about how to interpret it. Any help would be appreciated.

```julia
julia> file = matopen("t.mat", "w");
HDF5-DIAG: Error detected in HDF5 (1.12.0) thread 0:
  #000: H5F.c line 705 in H5Fcreate(): unable to create file
    major: File accessibility
    minor: Unable to open file
  #001: H5VLcallback.c line 3393 in H5VL_file_create(): file create failed
    major: Virtual Object Layer
    minor: Unable to create file
  #002: H5VLcallback.c line 3358 in H5VL__file_create(): file create failed
    major: Virtual Object Layer
    minor: Unable to create file
  #003: H5VLnative_file.c line 65 in H5VL__native_file_create(): unable to create file
    major: File accessibility
    minor: Unable to open file
  #004: H5Fint.c line 1568 in H5F_open(): unable to open file: name = 't.mat', tent_flags = 13
    major: File accessibility
    minor: Unable to open file
  #005: H5FD.c line 741 in H5FD_open(): open failed
    major: Virtual File Layer
    minor: Unable to initialize object
  #006: H5FDsec2.c line 346 in H5FD_sec2_open(): unable to open file: name = 't.mat', errno = 122, error message = 'Disk quota exceeded', flags = 13, o_flags = 242
    major: File accessibility
    minor: Unable to open file
ERROR: Error creating file t.mat
Stacktrace:
 [1] error(::String, ::String) at ./error.jl:42
 [2] h5f_create at /home/dass/.julia/packages/HDF5/cDXRT/src/api.jl:504 [inlined]
 [3] matopen(::String, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool) at /home/dass/.julia/packages/MAT/f523T/src/MAT_HDF5.jl:96
 [4] matopen(::String, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool) at /home/dass/.julia/packages/MAT/f523T/src/MAT.jl:42
 [5] matopen(::String, ::String; compress::Bool) at /home/dass/.julia/packages/MAT/f523T/src/MAT.jl:88
 [6] matopen(::String, ::String) at /home/dass/.julia/packages/MAT/f523T/src/MAT.jl:88
 [7] top-level scope at REPL[7]:1

```

---

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [September 17, 2021, 2:20pm UTC](https://discourse.julialang.org/t/hdf5-error-occuring-when-using-mat-package/68335/2 "2021-09-17T14:20:23Z")

</div>

> [@iamsuddhasattwa](#):
>
> `#006: H5FDsec2.c line 346 in H5FD_sec2_open(): unable to open file: name = 't.mat', errno = 122, error message = 'Disk quota exceeded', flags = 13, o_flags = 242`

This is your clue, I think.

---

<div class="post-metadata">

**Author:** ![iamsuddhasattwa](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/iamsuddhasattwa/32/7441_2.png) [@iamsuddhasattwa](https://discourse.julialang.org/u/iamsuddhasattwa)\
**Post date:** [September 17, 2021, 2:38pm UTC](https://discourse.julialang.org/t/hdf5-error-occuring-when-using-mat-package/68335/3 "2021-09-17T14:38:11Z")

</div>

> [@iamsuddhasattwa](#):
>
> `Disk quota exceeded`

Thank you for getting back to me ! I checked the disk space and “Disk quota exceeded” is indeed the reason.
