Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filling /tmp results in a crash #623

Closed
barrucadu opened this issue Jul 17, 2015 · 1 comment
Closed

Filling /tmp results in a crash #623

barrucadu opened this issue Jul 17, 2015 · 1 comment

Comments

@barrucadu
Copy link

Progress: 102/122/tmp/stack12010/texmath-0.8.2.2/lib/mmldict/unicode.xml: hPutBuf: resource exhausted (No space left on device)

My VPS has 500MB of /tmp, which isn't very much when building Haskell packages. When /tmp is filled, stack terminates with something like the above. However, all the temporary files created by stack were then gone, cleaned up in the shutdown I assume. Running stack build then succeeded.

It would be nice if cleaning the temporary files was attempted first, something like this:

  1. stack fails to download or unpack something due to no space in /tmp
  2. Any files remaining for packages which have already been built and installed get deleted
  3. The action is retried. If there is still not enough space, stack notifies the user and exits.
>>>  stack --version
Version 0.1.2.0
@snoyberg
Copy link
Contributor

I disagree about this change. The same behavior can be achieved by calling stack build twice, and allows stack itself to give meaningful exit codes faster for systems where this kind of disk exhaustion is not expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants