-
Notifications
You must be signed in to change notification settings - Fork 843
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
Internal error: unable to commit [ENOUGH] bytes of memory #4232
Comments
very wierd. |
No you’re right, unless run in verbose mode.
|
oke, we will investigate this. |
I don’t know if it helps but it also happens when running ‘stack ghc’ or just ‘stack’ in a new project for the first time when no ghc is installed. I encountered the very same error two months ago I believe and I’m pretty sure I solved it by temporarily upgrading my droplet with a few gb of memory. |
Can you add a swap file to your enviroment and try again to install stack. |
then it looks not a bug in stack but a problem with your digital ocean enviroment. |
I’m testing with Fedora 28 right now. (I was using Debian 9.) |
oke, hopefully with a swap file or more memory. I think that is more the problem then the distro. |
So it is normal for stack to consume more than 1G of memory for running ? I mean, of course the issue is the memory here since I solved it the issue by adding more. Update: yep, same error on Fedora with 1G of memory. |
can it be that the memory is too little on the updating the Hackage index cache, |
Can you paste a log where we can see where the memory is too little. |
Here it is: It seems related to Hackage’s index cache indeed. |
oke, that problem is well known and being solved in one of the next versions. |
No it’s fine you can close it. Thanks.
|
when I try to use stack build for regex-tdfa, I have the same memory issue in my Ubuntu 1G vm. |
General summary/comments (optional)
When running
stack ghci
for the first time and it tries to install it I get
Internal error: unable to commit [ENOUGH] bytes of memory
where ENOUGH is approx. a gigabyte. My server has only 1G of ram.BUT, after that, ghci runs fine and is indeed installed in
.stack
.I could use a swap file or just upgrade my server but I thought it wasn’t normal for stack to consume such an amount of memory.
Steps to reproduce
On a DigitalOcean 1G droplet:
stack ghci
Stack version
Method of installation
curl https://get.haskellstack.org | sh
The text was updated successfully, but these errors were encountered: