-
Notifications
You must be signed in to change notification settings - Fork 11
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
More failure to build #157
Comments
You do need to type in a password, yes. Am i missing something here? |
Yes several things actually:
Bottom line, this code is ill-advised. |
Here is what I did:
That last line is where I killed the sudo process - using sudo, btw - that had halted the provisioning. Also, because my sudo -H PR has not yet been merged into magao-x dev branch, the provisioning left root-owned files under /home/ubuntu:
I am fairly certain those files caused the eventual failure of the provisioning script:
|
|
If you’re worried that there is a problem with the install process, I recommend checking the build history here: https://github.com/magao-x/MagAOX/actions Currently, the scripted install is succeeding on Rocky Linux and Ubuntu in CI. (As you might guess, the currently failing “build image” task is to eventually produce a downloadable VM artifact so that you no longer have to run this install process yourself. Naturally, this is a little more complicated than just verifying that installation works, so stay tuned.) |
Also, depending on your use case, you may want to investigate the “container build”. The resulting image contains all the MagAO-X software dependencies. |
Then a workaround is required; see below:
|
I understand why maintaining a working [vm] build is at the bottom of your list of priorities. But it is consuming all my time and effort because [vm] is what I have to work with, to the point where I am not making any progress anywhere else. |
Thanks, that’s an interesting wrinkle. I would recommend commenting out the code in that case when you are running on a VM image from Canonical. If that combination of circumstances can be detected in the script, it can be omitted automatically. I am no longer recommending multipass to members of our team here because their canned images are not quite like a “real” install in various ways, and this is just the latest. For a more “flight-like” configuration, I would recommend setting up a standard Rocky Linux 9 VM with your favorite virtualization tool and following the normal install process. Then, perform provisioning using a MAGAOX_ROLE of |
If you want to save some time using multipass, i would recommend making a “snapshot” of a successful VM build to work from (when you have one). Our dependencies don’t change THAT much, except perhaps for MILK/CACAO, so it would be possible to “spruce up” a snapshot with the latest MagAO-X code by simply doing “git pull” and “make install”. I will revisit the “MagAO-X VM in a can” project soon; it was actually working for ARM hosts previously … but Rocky 9.4 released and things broke. |
I don't need "flight-like," I need a working system to fiddle around with processes and sockets and pipes, and I need something that spins up quickly without a lot of user intervention, and multipass provided that. Now I have to fiddle around with my "favorite virtualization tool" (I assume that means something like VirtualBox?) and do a lot of manual work. Do we have a procedure somewhere for "setting up a standate Roclky Linux 9 VM," or do I need to find to a Rocky installer ISO and sit through the from-scratch installer, or is there something further along? I see the CI install uses the root user (EUID is 0), so that explains why it is immune to, and useless for detecting, issues with sudo or root-owned files in random places. |
multipass launch is so fast that I snapshots are not much of a saving, and the only reason I don't get a later snapshot is that I am chasing dev's provision.sh so I need to start at square one. |
If the CI builds are supposed to be representative, then the provisioning command should be
and we can dispense with all of the sudos in the scripts under /setup/. |
Done. #155 |
This code:
https://github.com/magao-x/MagAOX/blob/dev/setup/provision.sh#L29
in /setup/proviion.sh
causes the build to freeze, waiting for the password to be passed to sudo.
The text was updated successfully, but these errors were encountered: