Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
2
Help us understand the problem. What is going on with this article?
@emanon_was

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

More than 3 years have 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

無事ビルド出来た

2
Help us understand the problem. What is going on with this article?
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.
Sign Up
If you already have a Qiita account Login
2
Help us understand the problem. What is going on with this article?