venv-salt-minion failing to install as part of bootstrap script
Hi, We're trying to bootstrap an ubuntu 20.04 server with the same bootstrap script that we've used on many other servers. However on this server the package install is failing in the post-install script. ... FINISHED --2022-05-06 19:08:52-- Total wall clock time: 0.007s Downloaded: 1 files, 1.1K in 0s (223 MB/s) Reading package lists... Done Building dependency tree Reading state information... Done gnupg is already the newest version (2.2.19-3ubuntu2.1). 0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up venv-salt-minion (3002.2-47.3.uyuni) ... dpkg: error processing package venv-salt-minion (--configure): installed venv-salt-minion package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: venv-salt-minion E: Sub-process /usr/bin/dpkg returned an error code (1) OK ... Looks like it's trying to do something with dpkg so perhaps there's a missing or conflicting dependency. With Uyuni's cross-platform build, I haven't been able to figure out what that post-install script is to figure out what it might be trying to do. Any suggestions? Thanks, Paul-Andre
Hi Paul-Andre. Most probably root cause is related to selinux. Try to rename semanage before running the bootstrap and rename it back after installation. The root cause that bash script is failing on failing one of the commands inside it on Debian based distros. Will fix it in next releases. Thanks for the notification. Victor On Sat, 2022-05-07 at 02:40 +0000, Paul-Andre Panon wrote:
Hi, We’re trying to bootstrap an ubuntu 20.04 server with the same bootstrap script that we’ve used on many other servers. However on this server the package install is failing in the post-install script.
… FINISHED --2022-05-06 19:08:52-- Total wall clock time: 0.007s Downloaded: 1 files, 1.1K in 0s (223 MB/s) Reading package lists... Done Building dependency tree Reading state information... Done gnupg is already the newest version (2.2.19-3ubuntu2.1). 0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up venv-salt-minion (3002.2-47.3.uyuni) ... dpkg: error processing package venv-salt-minion (--configure): installed venv-salt-minion package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: venv-salt-minion E: Sub-process /usr/bin/dpkg returned an error code (1) OK … Looks like it’s trying to do something with dpkg so perhaps there’s a missing or conflicting dependency. With Uyuni’s cross-platform build, I haven’t been able to figure out what that post-install script is to figure out what it might be trying to do. Any suggestions?
Thanks,
Paul-Andre
Ubuntu 20.04, being Debian-based, doesn't normally use SELinux in the default install. However I'm not familiar with the history of these systems so it's theoretically possible that it was turned on on only this system for some reason. I will investigate that possibility. Thank you.
Get Outlook for Androidhttps://aka.ms/AAb9ysg
________________________________
From: Victor Zhestkov via Uyuni Users
Hi,
We’re trying to bootstrap an ubuntu 20.04 server with the same bootstrap script that we’ve used on many other servers. However on this server the package install is failing in the post-install script.
… FINISHED --2022-05-06 19:08:52-- Total wall clock time: 0.007s Downloaded: 1 files, 1.1K in 0s (223 MB/s) Reading package lists... Done Building dependency tree Reading state information... Done gnupg is already the newest version (2.2.19-3ubuntu2.1). 0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up venv-salt-minion (3002.2-47.3.uyuni) ... dpkg: error processing package venv-salt-minion (--configure): installed venv-salt-minion package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: venv-salt-minion E: Sub-process /usr/bin/dpkg returned an error code (1) OK … Looks like it’s trying to do something with dpkg so perhaps there’s a missing or conflicting dependency. With Uyuni’s cross-platform build, I haven’t been able to figure out what that post-install script is to figure out what it might be trying to do. Any suggestions?
Thanks,
Paul-Andre
That said, any chance you could point me at the script that is actually being run in post install so I can investigate what else might be failing if it's not SELinux?
Get Outlook for Androidhttps://aka.ms/AAb9ysg
________________________________
From: Victor Zhestkov via Uyuni Users
Hi,
We’re trying to bootstrap an ubuntu 20.04 server with the same bootstrap script that we’ve used on many other servers. However on this server the package install is failing in the post-install script.
… FINISHED --2022-05-06 19:08:52-- Total wall clock time: 0.007s Downloaded: 1 files, 1.1K in 0s (223 MB/s) Reading package lists... Done Building dependency tree Reading state information... Done gnupg is already the newest version (2.2.19-3ubuntu2.1). 0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up venv-salt-minion (3002.2-47.3.uyuni) ... dpkg: error processing package venv-salt-minion (--configure): installed venv-salt-minion package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: venv-salt-minion E: Sub-process /usr/bin/dpkg returned an error code (1) OK … Looks like it’s trying to do something with dpkg so perhaps there’s a missing or conflicting dependency. With Uyuni’s cross-platform build, I haven’t been able to figure out what that post-install script is to figure out what it might be trying to do. Any suggestions?
Thanks,
Paul-Andre
Hi Paul-Andre.
The script is inside the package, on installing it's expanding from the package, don't remember exact path on the system. But I've already checked it and it seems it can only fail in case of presence `semanage` on the system while selinux is not configured.
Try to check if `which semanage` returns the path to the binary, if so, rename it temporary or remove the package it's shipped with.
Victor
________________________________
From: Paul-Andre Panon
Hi,
We’re trying to bootstrap an ubuntu 20.04 server with the same bootstrap script that we’ve used on many other servers. However on this server the package install is failing in the post-install script.
… FINISHED --2022-05-06 19:08:52-- Total wall clock time: 0.007s Downloaded: 1 files, 1.1K in 0s (223 MB/s) Reading package lists... Done Building dependency tree Reading state information... Done gnupg is already the newest version (2.2.19-3ubuntu2.1). 0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up venv-salt-minion (3002.2-47.3.uyuni) ... dpkg: error processing package venv-salt-minion (--configure): installed venv-salt-minion package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: venv-salt-minion E: Sub-process /usr/bin/dpkg returned an error code (1) OK … Looks like it’s trying to do something with dpkg so perhaps there’s a missing or conflicting dependency. With Uyuni’s cross-platform build, I haven’t been able to figure out what that post-install script is to figure out what it might be trying to do. Any suggestions?
Thanks,
Paul-Andre
semanage is not found in the system path, including after a sudo su - to ensure all sbin directories are included in the search.
From: Victor Zhestkov via Uyuni Users
Hi,
We're trying to bootstrap an ubuntu 20.04 server with the same bootstrap script that we've used on many other servers. However on this server the package install is failing in the post-install script.
... FINISHED --2022-05-06 19:08:52-- Total wall clock time: 0.007s Downloaded: 1 files, 1.1K in 0s (223 MB/s) Reading package lists... Done Building dependency tree Reading state information... Done gnupg is already the newest version (2.2.19-3ubuntu2.1). 0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up venv-salt-minion (3002.2-47.3.uyuni) ... dpkg: error processing package venv-salt-minion (--configure): installed venv-salt-minion package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: venv-salt-minion E: Sub-process /usr/bin/dpkg returned an error code (1) OK ... Looks like it's trying to do something with dpkg so perhaps there's a missing or conflicting dependency. With Uyuni's cross-platform build, I haven't been able to figure out what that post-install script is to figure out what it might be trying to do. Any suggestions?
Thanks,
Paul-Andre
Hi Paul-Andre. It's really interesting. Try to check if there is a file on the system: /var/lib/dpkg/info/venv- salt-minion.postinst If it's present, try to run it the following way: bash -e -x /var/lib/dpkg/info/venv-salt-minion.postinst ; echo $? Send me the output, please. If the file is not present, you can get it with dpkg-deb from the package: dpkg-deb -e venv-salt-minion_3002.2-47.3.uyuni_amd64.deb Use -x to extract the files. -e extracts the control files including postinstall script. Victor On Mon, 2022-05-09 at 18:06 +0000, Paul-Andre Panon wrote:
semanage is not found in the system path, including after a sudo su – to ensure all sbin directories are included in the search. From: Victor Zhestkov via Uyuni Users
Sent: Sunday, May 8, 2022 12:51 PM To: General discussion related to the openSUSE Uyuni project Cc: Victor Zhestkov Subject: Re: venv-salt-minion failing to install as part of bootstrap script Hi Paul-Andre. The script is inside the package, on installing it's expanding from the package, don't remember exact path on the system. But I've already checked it and it seems it can only fail in case of presence `semanage` on the system while selinux is not configured. Try to check if `which semanage` returns the path to the binary, if so, rename it temporary or remove the package it's shipped with. Victor From: Paul-Andre Panon
Sent: Sunday, May 8, 2022 10:26:28 PM To: General discussion related to the openSUSE Uyuni project Subject: Re: venv-salt-minion failing to install as part of bootstrap script That said, any chance you could point me at the script that is actually being run in post install so I can investigate what else might be failing if it's not SELinux? Get Outlook for Android From: Victor Zhestkov via Uyuni Users
Sent: Saturday, May 7, 2022 9:43:41 AM To: users@lists.uyuni-project.org Cc: Victor Zhestkov Subject: Re: venv-salt-minion failing to install as part of bootstrap script Hi Paul-Andre. Most probably root cause is related to selinux. Try to rename semanage before running the bootstrap and rename it back after installation. The root cause that bash script is failing on failing one of the commands inside it on Debian based distros.
Will fix it in next releases. Thanks for the notification.
Victor
On Sat, 2022-05-07 at 02:40 +0000, Paul-Andre Panon wrote:
Hi, We’re trying to bootstrap an ubuntu 20.04 server with the same bootstrap script that we’ve used on many other servers. However on this server the package install is failing in the post-install script.
… FINISHED --2022-05-06 19:08:52-- Total wall clock time: 0.007s Downloaded: 1 files, 1.1K in 0s (223 MB/s) Reading package lists... Done Building dependency tree Reading state information... Done gnupg is already the newest version (2.2.19-3ubuntu2.1). 0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up venv-salt-minion (3002.2-47.3.uyuni) ... dpkg: error processing package venv-salt-minion (--configure): installed venv-salt-minion package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: venv-salt-minion E: Sub-process /usr/bin/dpkg returned an error code (1) OK … Looks like it’s trying to do something with dpkg so perhaps there’s a missing or conflicting dependency. With Uyuni’s cross-platform build, I haven’t been able to figure out what that post-install script is to figure out what it might be trying to do. Any suggestions?
Thanks,
Paul-Andre
participants (2)
-
Paul-Andre Panon
-
Victor Zhestkov