Help us understand the problem. What is going on with this article?

"No space left on device"で Haskell (in NixOS) のビルドがコケた時の対処

More than 1 year has passed since last update.

環境

  • NixOS 17.09
  • Stack lts-10.0
  • GHC 8.2.2
  • intero 0.1.24

状況

lts-10.0 が出て GHC 8.2.2が使えるようになったということで軽く試してみようと
Emacs(intero)を立ち上げたところ Cabal のビルドで
"No space left on device"というメッセージが出てエラーになった
nix-collect-garbage -dnix-store --optimize 等を実行し
dfコマンド で見ても容量に余裕がありそうだがエラーが解消されなかった

原因

/run/user/1000 にマウントされているtmpfsの容量が足りていなかった(200Mになってた)
https://www.freedesktop.org/software/systemd/man/logind.conf.html
どうやらsystemdの機能によるものっぽい

解消

configuration.nix
  ...

  services.logind.extraConfig = "RuntimeDirectorySize=1024M";

  ...
 $ sudo nixos-rebuild switch
 $ sudo reboot

無事ビルド出来た

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした