-
Notifications
You must be signed in to change notification settings - Fork 346
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
Memory restrictions caused failure TLJH install failure on AWS EC2 #518
Comments
Hey @charlesfarr! I've seen a similar error in our integration tests when we were not ensuring a minimum of 1GB of RAM (ref: #479). Also, checkout the Installing on Amazon Web Services guide as it's more specific to your use case than the guide to install on your own server. Hope this helps. |
Hi, the read the docs states this "The AWS free tier is fully capable of running a minimal littlest Jupyterhub for testing purposes.", but to me it seems that the 1 GB free tier instance on AWS (t2.micro) is not sufficient, or is at best "barely sufficient", to install tljh, and the installation is likely to fail in unpredictable ways. Installing from User Data results in a hang in "Setting up user environment...". Installing from a terminal with "curl https://raw.githubusercontent.com/jupyterhub/the-littlest-jupyterhub/master/bootstrap/bootstrap.py | sudo -E python3 - --admin " resulted in
with subsequent attempts getting further:
where the log file ends in:
and further attempts eventually succeeded, after long hang times with "top" showing kswapd0 dominating the CPU, and "free" showing only 60 MB free. Cheers, Tim |
This guide needs to be updated to match the current reality... especially since it's a step-by-step guide that tends to attract people unfamiliar with the systems. I ended up here after unsuccessfully following this guide several times. I would at least change this bit and stop recommending the micro tier as something for new users to try!
|
Hi all. We rely on community contributions to help us keep the docs up to date, since not everyone has access to an AWS account for testing. If you're able to open a PR with the correct instructions that would help us a lot! |
I am encountering the same error . AWS Free-tier - Ubuntu 20.04.1 LTS . When giving user data during create Instance the install hangs . System log during "hang" shows
After a while stopped the EC2 instance and this updated the system log with the error message
Since earlier comment said multiple re-tries succeeded , manually tried to run curl -L https://tljh.jupyter.org/bootstrap.py | sudo -E python3 - --admin
Even if the minimum configuration is not known (sorry cannot upgrade and test) , at least can you remove the "The AWS free tier is fully capable of running a minimal littlest Jupyterhub for testing purposes." which seems incorrect from multiple user updates. @twrobinson how were you able to get this working , even after multiple attempts still running into this issue. Any pointers to possibly install without extensions (stripped down version?) without the webpack/npm? |
Might be worth looking at replacing conda with mamba to see if that reduces the memory requirement? |
with t3-small , the system works fine. But, after you create the instance, we had to write |
We have recently updated the memory requirements described in the documentation, as well as made updates that reduces the memory footprint. Since this issue relates to memory it seems, I'll go for a close. |
I have tried multiple times to install TLJH on an AWS EC2 instance, failing every time. The process has thrown a number of different errors, but the most common appears to be with conda installation.
Error logs
I was following the guide to install on your own server and had run the following:
which failed, Ubuntu suggest I run the following:
which succeeded, so I re-ran the following:
which succeeded, so I ran the TLJH install:
which threw the above error.
Any and all help is appreciated!
The text was updated successfully, but these errors were encountered: