No space left on device (os error 28)

Hi folks, I’m sorry if this is too basic but I am not able to figure it out.
I have installed endeavourOS a few days ago. I have only installed a few packages like brave, discord, chrome, notion, nodejs, vscode, rust etc.
I have been trying to install anchor to set up my solana dev environment but it keeps throwing the error similar to this and aborts the compilation:

error: failed to write `/tmp/cargo-installgrqJdw/release/.fingerprint/subtle-f7584ac21deaa2e3/invoked.timestamp`

Caused by:
  No space left on device (os error 28)
error: failed to compile `anchor-cli v0.30.1 (https://github.com/coral-xyz/anchor?tag=v0.30.1#e6d7dafe)`, intermediate artifacts can be found at `/tmp/cargo-installgrqJdw`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
Error: Failed to install 0.30.1, is it a valid version?

From what I understood looking at similar issues, this has something to do with /tmp being full and it use used all of the 3.6G which had been allotted.

$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/nvme0n1p2  459G   22G  414G   5% /
devtmpfs        4.0M     0  4.0M   0% /dev
tmpfs           3.6G  310M  3.3G   9% /dev/shm
efivarfs        148K   95K   49K  67% /sys/firmware/efi/efivars
tmpfs           1.5G  1.8M  1.5G   1% /run
tmpfs           1.0M     0  1.0M   0% /run/credentials/systemd-journald.service
tmpfs           1.0M     0  1.0M   0% /run/credentials/systemd-udev-load-credentials.service
tmpfs           1.0M     0  1.0M   0% /run/credentials/systemd-sysctl.service
tmpfs           1.0M     0  1.0M   0% /run/credentials/systemd-tmpfiles-setup-dev-early.service
tmpfs           1.0M     0  1.0M   0% /run/credentials/systemd-sysusers.service
tmpfs           1.0M     0  1.0M   0% /run/credentials/systemd-tmpfiles-setup-dev.service
tmpfs           1.0M     0  1.0M   0% /run/credentials/systemd-vconsole-setup.service
tmpfs           3.6G  3.6G     0 100% /tmp
/dev/nvme0n1p1 1022M  296K 1022M   1% /boot/efi
tmpfs           1.0M     0  1.0M   0% /run/credentials/systemd-tmpfiles-setup.service
tmpfs           728M   84K  727M   1% /run/user/1000

I am not able to share error log either:

$ inxi -Fxxc0z | eos-sendlog
cat: write error: No space left on device
eos-sendlog-helper: error: No input!

$ journalctl -k -b -0 | eos-sendlog
cat: write error: No space left on device
eos-sendlog-helper: error: No input!

Can anyone enlighten me on what’s wrong and how should I fix it?
I haven’t tried any of the commands mentioned on the forums yet because the issues may not be exactly the same so I don’t want to break my system, just being a little cautious.

/tmp is full. Try rebooting, that will clear /tmp

uhmm… it worked. thanks.

1 Like

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