LoginSignup
1
2

More than 3 years have passed since last update.

EC2上でNo space left on device

Last updated at Posted at 2019-05-30

私の場合はEC2上でcomposer iを実行するとNo space left on deviceがでた。
空容量がないらしい。

解決

ディスクの容量を確認

$ df -h

ファイルシス   サイズ  使用  残り 使用% マウント位置
devtmpfs         476M     0  476M    0% /dev
tmpfs            493M     0  493M    0% /dev/shm
tmpfs            493M  784K  493M    1% /run
tmpfs            493M     0  493M    0% /sys/fs/cgroup
/dev/xvda1       8.0G  7.9G    0G   99% /
tmpfs             99M     0   99M    0% /run/user/0
tmpfs             99M     0   99M    0% /run/user/1000

確かにダメそう

/dev/xvda1       8.0G  7.9G    0G   99% /

/tmp内の不要ファイルを削除したら30%になり、エラーは解決できた。
(rubyのインストールを何度も失敗してゴミが大量にあった)

自分の環境だといらないファイルを削除したら解決したが、インスタンス再起動で解決するらしいです。
EC2 instance on Amazon and I am greeted with “No space left on the disk

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2