UbuntuでNo space left on deviceエラーが出たときの対処メモ

現象

Linux版Unreal Engine4で、CARLAというカーシミュレータをパッケージ化する際、以下のエラーによりクックが失敗する現象に遭遇しました。

 LogDirectoryWatcher: Error: inotify_add_watch cannot watch folder /home/USERNAME/carla/Unreal/CarlaUE4/Plugins/Carla/Content/ (errno = 28, No space left on device)

環境

Ubuntu 16.04
Unreal Engine4 4.18

解決策

こちらを参考にします。 unix.stackexchange.com

早速、cat /proc/sys/fs/inotify/max_user_watchesを打つと、

8192

となっているので、これを適当に大きな値に変えます。

sudo sysctl fs.inotify.max_user_watches=524288 

その後、無事にパッケージ化に成功しました。