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

Conda version error in running bootstrap.py #592

Closed
thatmushroom opened this issue Jun 27, 2020 · 4 comments
Closed

Conda version error in running bootstrap.py #592

thatmushroom opened this issue Jun 27, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@thatmushroom
Copy link

Bug description

I have a similar setup as referenced here (google cloud, following the instructions, using tljh for about a year, and with daily shutoffs), and am experiencing the same conda issue.
CondaUpgradeError_Issue517 (GCP)

After booting up the compute instance, tljh shows "Bad Gateway" when I go to the URL.

Manually running the bootstrap command below gives the following error:
curl https://tljh.jupyter.org/bootstrap.py \ | sudo python3 - \ --admin chris

subprocess.CalledProcessError: Command '['/opt/tljh/user/bin/python', '-m', 'conda', 'install', '-c', 'conda-forge' , '--json', '--prefix', '/opt/tljh/user', 'conda==4.5.8']' returned non-zero exit status 1.

Joining that command and running it gives this output:
"caused_by": "None", "error": "CondaUpgradeError: This environment has previously been operated on by a conda version that's newer\nth an the conda currently being used. A newer version of conda is required.\n target environment location: /opt/tljh/ user\n current conda version: 4.5.8\n minimum conda version: 4.7\n",

Probably unrelated, the curl command here returns an empty result:
curl https://tljh.jupyter.org/bootstrap.py \ | sudo python3 - \ --admin chris

@thatmushroom thatmushroom added the bug Something isn't working label Jun 27, 2020
@welcome
Copy link

welcome bot commented Jun 27, 2020

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@ikhoury
Copy link

ikhoury commented Jun 30, 2020

Regarding the curl command, you need to add a -L flag because https://tljh.jupyter.org/bootstrap.py redirects to https://raw.githubusercontent.com/jupyterhub/the-littlest-jupyterhub/master/bootstrap/bootstrap.py and by default curl doesn't follow redirects.

@JustinMaxwell
Copy link

JustinMaxwell commented Nov 21, 2020

I get a very similar error when trying to install on new EC2 instance:

Checking if TLJH is already installed...
TLJH already installed, upgrading...
Upgrading TLJH installer...
Upgraded pip
Setup tljh package
Starting TLJH installer...
Setting up admin users
Granting passwordless sudo to JupyterHub admins...
Setting up user environment...
Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/opt/tljh/hub/lib/python3.6/site-packages/tljh/installer.py", line 530, in <module>
    main()
  File "/opt/tljh/hub/lib/python3.6/site-packages/tljh/installer.py", line 502, in main
    ensure_user_environment(args.user_requirements_txt_url)
  File "/opt/tljh/hub/lib/python3.6/site-packages/tljh/installer.py", line 278, in ensure_user_environment
    'conda==' + conda_version
  File "/opt/tljh/hub/lib/python3.6/site-packages/tljh/conda.py", line 108, in ensure_conda_packages
    ] + packages).decode()
  File "/usr/lib/python3.6/subprocess.py", line 356, in check_output
    **kwargs).stdout
  File "/usr/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['/opt/tljh/user/bin/python', '-m', 'conda', 'install', '-c', 'conda-forge', '--json', '--prefix', '/opt/tljh/user', 'conda==4.8.1']' died with <Signals.SIGKILL: 9>.

@consideRatio
Copy link
Member

I note that #519 closed the referenced issue #517, and that the -L flag for curl solved another issue discussed. Then, we have also updated to use a modern version of conda/mamba recently. I'll go for a close of this issue as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants