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

install_prerequisites.py backgrounds itself on debian 12 and ubuntu 22.04 #188

Open
SwooshyCueb opened this issue Jul 25, 2023 · 6 comments

Comments

@SwooshyCueb
Copy link
Member

When running install_prerequisites.py on Debian 12, the process backgrounds itself, returning control to the shell. After calling fg, the script completes normally.

Here's a bit of the log leading up to the backgrounding:

INFO - running: curl -sSL https://get.rvm.io | sudo bash -s stable, unsafe_shell=True, check_rc=curl failed, retries=0
INFO -   stdout: Downloading https://github.com/rvm/rvm/archive/1.29.12.tar.gz
Downloading https://github.com/rvm/rvm/releases/download/1.29.12/1.29.12.tar.gz.asc
GPG verified '/usr/local/rvm/archives/rvm-1.29.12.tgz'
Creating group 'rvm'
Installing RVM to /usr/local/rvm/
Installation of RVM in /usr/local/rvm/ is almost complete:

  * First you need to add all users that will be using rvm to 'rvm' group,
    and logout - login again, anyone using rvm will be operating with `umask u=rwx,g=rwx,o=rx`.

  * To start using RVM you need to run `source /etc/profile.d/rvm.sh`
    in all your open shell windows, in rare cases you need to reopen all shell windows.
<warn>Thanks for installing RVM 🙏</warn>
Please consider donating to our open collective to help us maintain RVM.

👉  Donate: <code>https://opencollective.com/rvm/donate</code>
INFO -   stderr: gpg: Signature made Fri Jan 15 18:46:22 2021 UTC
gpg:                using RSA key 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
gpg: Good signature from "Piotr Kuczynski <piotr.kuczynski@gmail.com>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 7D2B AF1C F37B 13E2 069D  6956 105B D0E7 3949 9BDB
  * Please do NOT forget to add your users to the <code>rvm</code> group.
     The installer no longer auto-adds root or users to the rvm group. Admins must do this.
     Also, please note that group memberships are ONLY evaluated at login time.
     This means that users must log out then back in before group membership takes effect!
INFO - 
INFO - running: sudo -E su -c '/usr/local/rvm/bin/rvm reload && /usr/local/rvm/bin/rvm requirements run && /usr/local/rvm/bin/rvm install 3.1.2', unsafe_shell=True, check_rc=rvm ruby install failed, retries=0

[1]+  Stopped                 ./install_prerequisites.py

@korydraughn
Copy link
Contributor

Is that something we're doing on purpose? Or, is it happening as a result of something else?

@trel
Copy link
Member

trel commented Jul 25, 2023

hm, that's quite surprising (and new...)

@SwooshyCueb
Copy link
Member Author

Is that something we're doing on purpose? Or, is it happening as a result of something else?

It doesn't happen on Ubuntu 20.04, so I'm assuming it's not on purpose, at least not on our end

@SwooshyCueb SwooshyCueb changed the title install_prerequisites.py backgrounds itself on debian 12 install_prerequisites.py backgrounds itself on debian 12 and ubuntu 22.04 Aug 4, 2023
@SwooshyCueb
Copy link
Member Author

Looks like it happens on ubuntu 22.04 as well

@trel
Copy link
Member

trel commented Aug 4, 2023

so weird. did they swap in a new shell? did we find a cool bug?

@SwooshyCueb
Copy link
Member Author

Looks like /usr/bin/sh is still dash, so it's not a new shell.

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

No branches or pull requests

3 participants