# Cannot install packages - \`no space left on device (ENOSPC)\`

**URL:** <https://discourse.julialang.org/t/cannot-install-packages-no-space-left-on-device-enospc/66665>\
**Category:** General Usage\
**Created:** [August 19, 2021, 12:08pm UTC](https://discourse.julialang.org/t/cannot-install-packages-no-space-left-on-device-enospc/66665 "2021-08-19T12:08:16Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sim/32/22207_2.png) [@sim](https://discourse.julialang.org/u/sim)\
**Post date:** [August 19, 2021, 12:08pm UTC](https://discourse.julialang.org/t/cannot-install-packages-no-space-left-on-device-enospc/66665/1 "2021-08-19T12:08:16Z")

</div>

Hello, I recently installed Julia 1.6.2 on my remote machine, added julia to PATH, it works.  
Then I wanted to add some packages (like `Plots`, `Makie`, `Flux`, `Franklin`), and everytime I do

```julia
add PackageName

```

I get the following:

> (@v1.6) pkg\> add Franklin  
> Resolving package versions…  
> ERROR: Error when installing package NodeJS:  
> IOError: mkdir(“/users/data/myname/.julia/packages/NodeJS”; mode=0o777): no space left on device (ENOSPC)  
> Stacktrace:  
> [1] uv\_error  
> @ ./libuv.jl:97 [inlined]  
> [2] mkdir(path::String; mode::UInt16)  
> @ Base.Filesystem ./file.jl:179  
> [3] mkpath(path::String; mode::UInt16)  
> @ Base.Filesystem ./file.jl:230  
> [4] mkpath(path::String; mode::UInt16)  
> @ Base.Filesystem ./file.jl:228  
> [5] mkpath  
> @ ./file.jl:225 [inlined]  
> [6] install\_archive(urls::Vector{Pair{String, Bool}}, hash::Base.SHA1, version\_path::String; io::Base.TTY)  
> @ Pkg.Operations /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Operations.jl:619  
> [7] macro expansion  
> @ /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Operations.jl:786 [inlined]  
> [8] (::Pkg.Operations.var"#63#67"{Bool, Pkg.Types.Context, Dict{Base.UUID, Vector{String}}, Channel{Any}, Channel{Tuple{Pkg.Types.PackageSpec, String}}})()  
> @ Pkg.Operations ./task.jl:411

It’s not always NodeJS, for instance when installing Plots I get a

> Error when installing package Xorg\_libxkbfile\_jll

I have space on the disk. Any ideas on this problem ?

---

<div class="post-metadata">

**Author:** ![ess3sq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ess3sq/32/26834_2.png) [@ess3sq](https://discourse.julialang.org/u/ess3sq)\
**Post date:** [August 19, 2021, 7:43pm UTC](https://discourse.julialang.org/t/cannot-install-packages-no-space-left-on-device-enospc/66665/2 "2021-08-19T19:43:46Z")

</div>

Foolish question, but: Are you sure you’re not trying to install it on a partition or subdisk ? If not, is the drive maybe mounted as read only?

---

<div class="post-metadata">

**Author:** ![sim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sim/32/22207_2.png) [@sim](https://discourse.julialang.org/u/sim)\
**Post date:** [August 20, 2021, 8:57am UTC](https://discourse.julialang.org/t/cannot-install-packages-no-space-left-on-device-enospc/66665/3 "2021-08-20T08:57:35Z")

</div>

I am trying to install it on a remote ssh server. I have access to the `/users/data/myname/` directory on which I put the julia-1.6.2 directory, whose permissions are `drwxr-xr-x`.

---

<div class="post-metadata">

**Author:** ![johnh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnh/32/3615_2.png) [@johnh](https://discourse.julialang.org/u/johnh)\
**Post date:** [August 20, 2021, 9:15am UTC](https://discourse.julialang.org/t/cannot-install-packages-no-space-left-on-device-enospc/66665/4 "2021-08-20T09:15:20Z")

</div>

Are there quotas in place on that filesystem?

---

<div class="post-metadata">

**Author:** ![sim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sim/32/22207_2.png) [@sim](https://discourse.julialang.org/u/sim)\
**Post date:** [August 20, 2021, 9:16am UTC](https://discourse.julialang.org/t/cannot-install-packages-no-space-left-on-device-enospc/66665/5 "2021-08-20T09:16:54Z")

</div>

I don’t exactly know. I work on various projects on this machine with Python3 and many packages, and I never had this problem.  
How can I tell if there are quotas ?

---

<div class="post-metadata">

**Author:** ![johnh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnh/32/3615_2.png) [@johnh](https://discourse.julialang.org/u/johnh)\
**Post date:** [August 20, 2021, 9:24am UTC](https://discourse.julialang.org/t/cannot-install-packages-no-space-left-on-device-enospc/66665/6 "2021-08-20T09:24:00Z")

</div>

Try just running quota  
I see the problem is with libuv - maybe this is specific to Nodejs/libuv

What happens when you do this by hand  
mkdir /users/data/myname/.julia/packages/NodeJS

---

<div class="post-metadata">

**Author:** ![sim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sim/32/22207_2.png) [@sim](https://discourse.julialang.org/u/sim)\
**Post date:** [August 20, 2021, 9:38am UTC](https://discourse.julialang.org/t/cannot-install-packages-no-space-left-on-device-enospc/66665/7 "2021-08-20T09:38:36Z")

</div>

Ok I’m quite confused : I just discovered that I had an experiment running and a bug caused some files to be not deleted - that was what took all the place.

That being said, I still cannot install the packages, I get

> Unable to automatically install ‘assets’ from ‘/users/data/coste/.julia/packages/Makie/xbI6d/Artifacts.toml’

Shall I open another topic ?
