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
WebPacker compilation failed #5836
Comments
@daegalus I usually see this if you run out of memory during the build process (how much ram does your machine have?) If it is a RAM issue, you can get around it by creating a swapfile on disk: sudo fallocate -l 1G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile See this blog post for a better explanation on the swapfile |
@astronaut-wannabe Thanks for the tip, that actually helped me in my installation process. |
I'm seeing this issue on a machine with 22GB RAM free. Not sure why this is happening. |
Thank you for this. Had this problem with the Glitch fork, thought I was doing something wrong or had messed up a config somewhere, but it was a RAM issue all along. Added some RAM to my VPS, added some swap just in case, and it worked perfectly. For others using Glitch it needs more RAM to compile due to having two interface options, as it says in the docs. What this means in a practical sense is you need more than 2GB RAM to build it. I doubled mine to 4GB and it compiled without a hitch. |
I am following the Docker instructions and I keep hitting this problem, no matter how many times I restart the process. I even did the standalone setup too, and that failed at this exact problem. Standalone was run with RAILS_ENV=production. This is on a fresh install. Am I missing some steps?
The text was updated successfully, but these errors were encountered: