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

Don't let udev reload cause the installation to fail #187

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

marvin-te
Copy link
Contributor

This is more or less a follow up to my PR #128 from almost a year ago.

I encountered different occasions, where trying to reload the udev rules fails. Most package managers will cancel the whole installation when this happens, which is not always the right thing to do in such case.

This PR broadens the failure tolerance from "only OSTree-based systems don't need a udev reload" to "if it works, it works, if not, ¯\(ツ)/¯"

The reason behind this proposed change is this error when installing GoXLR Utility in my custom Vanilla OS image: https://github.com/marvin-te/vanillaos/actions/runs/10491093490/job/29059376736#step:10:1257

@FrostyCoolSlug
Copy link
Member

This may need to be applied to ci/distrib/DEBIAN as well, which is the post install script for Debian based systems.

@marvin-te
Copy link
Contributor Author

This may need to be applied to ci/distrib/DEBIAN as well, which is the post install script for Debian based systems.

I was just wondering, why my Vanilla OS image still doesn't want to build xD
Thank you :)

@marvin-te
Copy link
Contributor Author

https://github.com/marvin-te/vanillaos/actions/runs/10493124757/job/29066330762#step:10:1246

Works as expected (image build still fails, though because of another, unrelated package)

@FrostyCoolSlug
Copy link
Member

Thanks, have you done any install checks on RPM based distros with these changes? I'm not in a position where I can easily test the builds, and obviously want to avoid pushing something which isn't tested.

@marvin-te
Copy link
Contributor Author

Hi @FrostyCoolSlug, I understand. Sadly though I do not have a full RPM based system at hand either. I tried to install it inside a container in Vanilla OS, which worked fine. Since these don't have udev either, the error message introduced in this PR appeared as expected. Thus I could not check if the udev-reload itself still works, though. But I cannot see any reason why it shouldn't.

Hope this helps. If further testing is needed, I hope someone can try to install the .rpm from this PR on bare metal. A pre-built one can be found on the release page of my fork: goxlr-utility-1.1.2-1.x86_64.rpm

Full shell transcript from testing:

❯ apx subsystems new
 INFO  Choose a name:
fedora
 INFO  Available stacks:
1. arch-yay
2. texlive
3. alpine
4. arch
5. fedora
6. opensuse
7. ubuntu
8. vanilla-dev
9. vanilla
 INFO  Select a stack [1-9]:
5
▀  Creating subsystem 'fedora' with stack 'fedora'… (0s)Resolved "fedora" as an alias (/etc/containers/registries.conf.d/shortnames.conf)
Trying to pull registry.fedoraproject.org/fedora:latest...
 ▀ Creating subsystem 'fedora' with stack 'fedora'… (3s)Getting image source signatures
Copying blob 1f892f70a8cf done   | 
Copying config 847d9fd3f1 done   | 
▀  Creating subsystem 'fedora' with stack 'fedora'… (15s)Writing manifest to image destination
847d9fd3f1385bcae9c69930dd0c0341c69a720f29005c1671a6697a7254b7ee
▄  Creating subsystem 'fedora' with stack 'fedora'… (16s) [ OK ]
Distrobox 'apx-fedora' successfully created.
To enter, run:

apx fedora enter
 SUCCESS  Created subsystem 'fedora'.                                                                                                                                                
❯ apx fedora enter
Starting container...                   	 [ OK ]
Installing basic packages...            	 [ OK ]
Setting up devpts mounts...             	 [ OK ]
Setting up read-only mounts...          	 [ OK ]
Setting up read-write mounts...         	 [ OK ]
Setting up host's sockets integration...	 [ OK ]
Integrating host's themes, icons, fonts...	 [ OK ]
Setting up package manager exceptions...	 [ OK ]
Setting up rpm exceptions...            	 [ OK ]
Setting up distrobox profile...         	 [ OK ]
Setting up sudo...                      	 [ OK ]
Setting up user groups...               	 [ OK ]
Setting up kerberos integration...      	 [ OK ]
Setting up user's group list...         	 [ OK ]
Setting up existing user...             	 [ OK ]
Setting up user home...                 	 [ OK ]
Ensuring user's access...               	 [ OK ]

Container Setup Complete!
mate@apx-fedora:~$ wget https://github.com/marvin-te/goxlr-utility/releases/download/v1.1.2/goxlr-utility-1.1.2-1.x86_64.rpm
bash: wget: command not found
mate@apx-fedora:~$ sudo dnf install wget
Last metadata expiration check: 0:01:05 ago on Sun 25 Aug 2024 05:08:38 PM CEST.
Dependencies resolved.
=====================================================================================================================================================================================
 Package                                        Architecture                           Version                                         Repository                               Size
=====================================================================================================================================================================================
Installing:
 wget2-wget                                     x86_64                                 2.1.0-11.fc40                                   updates                                 9.1 k
Installing dependencies:
 gnutls-dane                                    x86_64                                 3.8.6-1.fc40                                    updates                                  39 k
 gpgme                                          x86_64                                 1.23.2-3.fc40                                   fedora                                  211 k
 protobuf-c                                     x86_64                                 1.5.0-3.fc40                                    fedora                                   32 k
 unbound-libs                                   x86_64                                 1.20.0-1.fc40                                   updates                                 536 k
 wget2                                          x86_64                                 2.1.0-11.fc40                                   updates                                 249 k
 wget2-libs                                     x86_64                                 2.1.0-11.fc40                                   updates                                 146 k
Installing weak dependencies:
 unbound-anchor                                 x86_64                                 1.20.0-1.fc40                                   updates                                  36 k

Transaction Summary
=====================================================================================================================================================================================
Install  8 Packages

Total download size: 1.2 M
Installed size: 3.3 M
Is this ok [y/N]: y
Downloading Packages:
(1/8): gnutls-dane-3.8.6-1.fc40.x86_64.rpm                                                                                                           304 kB/s |  39 kB     00:00    
(2/8): protobuf-c-1.5.0-3.fc40.x86_64.rpm                                                                                                            245 kB/s |  32 kB     00:00    
(3/8): unbound-anchor-1.20.0-1.fc40.x86_64.rpm                                                                                                       893 kB/s |  36 kB     00:00    
(4/8): gpgme-1.23.2-3.fc40.x86_64.rpm                                                                                                                967 kB/s | 211 kB     00:00    
(5/8): wget2-2.1.0-11.fc40.x86_64.rpm                                                                                                                2.1 MB/s | 249 kB     00:00    
(6/8): wget2-wget-2.1.0-11.fc40.x86_64.rpm                                                                                                           257 kB/s | 9.1 kB     00:00    
(7/8): unbound-libs-1.20.0-1.fc40.x86_64.rpm                                                                                                         1.9 MB/s | 536 kB     00:00    
(8/8): wget2-libs-2.1.0-11.fc40.x86_64.rpm                                                                                                           181 kB/s | 146 kB     00:00    
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                1.0 MB/s | 1.2 MB     00:01     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                             1/1 
  Installing       : gpgme-1.23.2-3.fc40.x86_64                                                                                                                                  1/8 
  Installing       : protobuf-c-1.5.0-3.fc40.x86_64                                                                                                                              2/8 
  Installing       : unbound-anchor-1.20.0-1.fc40.x86_64                                                                                                                         3/8 
  Running scriptlet: unbound-anchor-1.20.0-1.fc40.x86_64                                                                                                                         3/8 
  Running scriptlet: unbound-libs-1.20.0-1.fc40.x86_64                                                                                                                           4/8 
  Installing       : unbound-libs-1.20.0-1.fc40.x86_64                                                                                                                           4/8 
  Installing       : gnutls-dane-3.8.6-1.fc40.x86_64                                                                                                                             5/8 
  Installing       : wget2-libs-2.1.0-11.fc40.x86_64                                                                                                                             6/8 
  Installing       : wget2-2.1.0-11.fc40.x86_64                                                                                                                                  7/8 
  Installing       : wget2-wget-2.1.0-11.fc40.x86_64                                                                                                                             8/8 
  Running scriptlet: wget2-wget-2.1.0-11.fc40.x86_64                                                                                                                             8/8 

Installed:
  gnutls-dane-3.8.6-1.fc40.x86_64   gpgme-1.23.2-3.fc40.x86_64        protobuf-c-1.5.0-3.fc40.x86_64    unbound-anchor-1.20.0-1.fc40.x86_64   unbound-libs-1.20.0-1.fc40.x86_64  
  wget2-2.1.0-11.fc40.x86_64        wget2-libs-2.1.0-11.fc40.x86_64   wget2-wget-2.1.0-11.fc40.x86_64  

Complete!
mate@apx-fedora:~$ wget https://github.com/marvin-te/goxlr-utility/releases/download/v1.1.2/goxlr-utility-1.1.2-1.x86_64.rpm
goxlr-utility-1.1.2- 100% [==================================================================================================================================>]    9.33M    5.93MB/s
                          [Files: 1  Bytes: 9.33M [3.46MB/s] Redirects: 1  Todo: 0  Errors: 0                                                                 ]
mate@apx-fedora:~$ sudo dnf install goxlr-utility-1.1.2-1.x86_64.rpm 
Last metadata expiration check: 0:01:36 ago on Sun 25 Aug 2024 05:08:38 PM CEST.
Dependencies resolved.
=====================================================================================================================================================================================
 Package                                            Architecture                       Version                                        Repository                                Size
=====================================================================================================================================================================================
Installing:
 goxlr-utility                                      x86_64                             1.1.2-1                                        @commandline                             9.3 M
Installing dependencies:
 flac-libs                                          x86_64                             1.4.3-4.fc40                                   fedora                                   262 k
 gsm                                                x86_64                             1.0.22-6.fc40                                  fedora                                    36 k
 lame-libs                                          x86_64                             3.100-17.fc40                                  fedora                                   336 k
 libasyncns                                         x86_64                             0.8-28.fc40                                    fedora                                    30 k
 libogg                                             x86_64                             2:1.3.5-8.fc40                                 fedora                                    33 k
 libsndfile                                         x86_64                             1.2.2-2.fc40                                   fedora                                   212 k
 libvorbis                                          x86_64                             1:1.3.7-10.fc40                                fedora                                   187 k
 mpg123-libs                                        x86_64                             1.31.3-4.fc40                                  fedora                                   341 k
 opus                                               x86_64                             1.5.1-1.fc40                                   fedora                                   230 k
 pulseaudio-libs                                    x86_64                             16.1-7.fc40                                    fedora                                   695 k
 speech-dispatcher-libs                             x86_64                             0.11.5-5.fc40                                  updates                                   35 k

Transaction Summary
=====================================================================================================================================================================================
Install  12 Packages

Total size: 12 M
Total download size: 2.3 M
Installed size: 43 M
Is this ok [y/N]: y
Downloading Packages:
(1/11): gsm-1.0.22-6.fc40.x86_64.rpm                                                                                                                 305 kB/s |  36 kB     00:00    
(2/11): libasyncns-0.8-28.fc40.x86_64.rpm                                                                                                            631 kB/s |  30 kB     00:00    
(3/11): lame-libs-3.100-17.fc40.x86_64.rpm                                                                                                           1.4 MB/s | 336 kB     00:00    
(4/11): libogg-1.3.5-8.fc40.x86_64.rpm                                                                                                               502 kB/s |  33 kB     00:00    
(5/11): flac-libs-1.4.3-4.fc40.x86_64.rpm                                                                                                            1.1 MB/s | 262 kB     00:00    
(6/11): libvorbis-1.3.7-10.fc40.x86_64.rpm                                                                                                           1.9 MB/s | 187 kB     00:00    
(7/11): mpg123-libs-1.31.3-4.fc40.x86_64.rpm                                                                                                         2.9 MB/s | 341 kB     00:00    
(8/11): libsndfile-1.2.2-2.fc40.x86_64.rpm                                                                                                           1.4 MB/s | 212 kB     00:00    
(9/11): opus-1.5.1-1.fc40.x86_64.rpm                                                                                                                 1.6 MB/s | 230 kB     00:00    
(10/11): pulseaudio-libs-16.1-7.fc40.x86_64.rpm                                                                                                      4.4 MB/s | 695 kB     00:00    
(11/11): speech-dispatcher-libs-0.11.5-5.fc40.x86_64.rpm                                                                                             192 kB/s |  35 kB     00:00    
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                3.0 MB/s | 2.3 MB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                             1/1 
  Installing       : libogg-2:1.3.5-8.fc40.x86_64                                                                                                                               1/12 
  Installing       : flac-libs-1.4.3-4.fc40.x86_64                                                                                                                              2/12 
  Installing       : libvorbis-1:1.3.7-10.fc40.x86_64                                                                                                                           3/12 
  Installing       : speech-dispatcher-libs-0.11.5-5.fc40.x86_64                                                                                                                4/12 
  Installing       : opus-1.5.1-1.fc40.x86_64                                                                                                                                   5/12 
  Installing       : mpg123-libs-1.31.3-4.fc40.x86_64                                                                                                                           6/12 
  Installing       : libasyncns-0.8-28.fc40.x86_64                                                                                                                              7/12 
  Installing       : lame-libs-3.100-17.fc40.x86_64                                                                                                                             8/12 
  Installing       : gsm-1.0.22-6.fc40.x86_64                                                                                                                                   9/12 
  Installing       : libsndfile-1.2.2-2.fc40.x86_64                                                                                                                            10/12 
  Installing       : pulseaudio-libs-16.1-7.fc40.x86_64                                                                                                                        11/12 
  Installing       : goxlr-utility-1.1.2-1.x86_64                                                                                                                              12/12 
  Running scriptlet: goxlr-utility-1.1.2-1.x86_64                                                                                                                              12/12 
/var/tmp/rpm-tmp.AqOm8T: line 1: udevadm: command not found
Reloading udev failed. You might need to reboot after installation.
/var/tmp/rpm-tmp.AqOm8T: line 2: udevadm: command not found
Reloading udev failed. You might need to reboot after installation.


Installed:
  flac-libs-1.4.3-4.fc40.x86_64       goxlr-utility-1.1.2-1.x86_64                 gsm-1.0.22-6.fc40.x86_64          lame-libs-3.100-17.fc40.x86_64    libasyncns-0.8-28.fc40.x86_64 
  libogg-2:1.3.5-8.fc40.x86_64        libsndfile-1.2.2-2.fc40.x86_64               libvorbis-1:1.3.7-10.fc40.x86_64  mpg123-libs-1.31.3-4.fc40.x86_64  opus-1.5.1-1.fc40.x86_64      
  pulseaudio-libs-16.1-7.fc40.x86_64  speech-dispatcher-libs-0.11.5-5.fc40.x86_64 

Complete!
mate@apx-fedora:~$ goxlr-
goxlr-client    goxlr-daemon    goxlr-defaults  goxlr-launcher  
mate@apx-fedora:~$ goxlr-launcher 
15:10:38 [WARN] Unable to calculate timezone, using UTC for log timestamps
15:10:38 [INFO] Starting GoXLR Daemon v1.1.2
15:10:38 [INFO] System Locale: en_US
15:10:38 [INFO] Performing Platform Preflight...
15:10:38 [DEBUG] (1) goxlr_daemon: HTTP Bind Address: localhost
15:10:38 [INFO] Bound IPC Socket @ Name(UdSocketPath("/tmp/goxlr.socket"))
15:10:38 [DEBUG] (13) goxlr_daemon::servers::ipc_server: Running IPC Server..
15:10:38 [DEBUG] (15) goxlr_daemon::platform::linux::autostart: Found XDG AutoStart Path: "/home/mate/.config/autostart"
15:10:38 [DEBUG] (15) goxlr_daemon::primary_worker: Performing Firmware Version Check..
15:10:38 [INFO] Started GoXLR configuration interface at http://localhost:14564/
15:10:38 [INFO] Starting TTS Service..
      [[... further debug output truncated. goxlr-utility started up and was functional ...]]

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

Successfully merging this pull request may close these issues.

2 participants