Hello,
I have a situation. I am attempting to migrate from an old 5.9.3, CentOS 7 install. I setup a new install running Ubuntu 22 (64bit), I manually installed 5.9.3 using the .tar files in the documentation, restored a backup from my CentOS 7 install, ran the migration repair script, updated to 5.10, then 5.11, then 2024R1. Now when I try to update 2024R1 to any of the newer patches I get an RPM install detected error. I don't recall ever doing an RPM install and Ubuntu doesn't seem to support RPM. How can I do updates going forward? If my original CentOS 7 install was RPM (I don't recall if it was, sorry) how was I able to get through all those version updates but now can go no further? Help!
Thanks
RPM install detected
-
- Posts: 195
- Joined: Wed Aug 23, 2023 11:29 am
Re: RPM install detected
Hi @Foist2024,
Are you upgrading via the GUI or via the command line? If you are using the former, try using the latter and let us know if that works or not. If not, let us know and we can try some other troubleshooting steps.
Thank you!
Are you upgrading via the GUI or via the command line? If you are using the former, try using the latter and let us know if that works or not. If not, let us know and we can try some other troubleshooting steps.
Thank you!
Re: RPM install detected
I've done both the manual cli process and the GUI, got the same result with both.
Re: RPM install detected
Hello @Foist2024,
A quick glance at the upgrade script show that for that error to occur, your $distro variable is set to the wrong OS. I believe your "distro" variable in your xi-sys.cfg needs to be updated to "Ubuntu". There are several other variables that need to be updated as well.
A quick glance at the upgrade script show that for that error to occur, your $distro variable is set to the wrong OS. I believe your "distro" variable in your xi-sys.cfg needs to be updated to "Ubuntu". There are several other variables that need to be updated as well.
Actively advancing awesome answers with ardent alliteration, aptly addressing all ambiguities. Amplify your acumen and avail our amicable assistance. Eagerly awaiting your astute assessments of our advice.
Re: RPM install detected
I just ran an XI install on Ubuntu 22.04 and I believe that these are what should be updated in your xi-sys.cfg:
Note that these may vary slightly based on your own system.
Code: Select all
distro='Ubuntu'
version='22.04'
ver='22'
arch='x86_64'
apacheuser='www-data'
apachegroup='www-data'
httpdconf='/etc/apache2/apache2.conf'
httpdconfdir='/etc/apache2/conf-enabled'
httpdroot='/var/www/html'
httpd='apache2'
...
phpini='/etc/php/8.1/apache2/php.ini'
phpconfd='/etc/php/8.1/apache2/conf.d'
phpconfdcli='/etc/php/8.1/cli/conf.d'
Actively advancing awesome answers with ardent alliteration, aptly addressing all ambiguities. Amplify your acumen and avail our amicable assistance. Eagerly awaiting your astute assessments of our advice.
Re: RPM install detected
Foist2024,
To add some additional context, we started noticing a trend of users migrating systems to distributions other than what XI was initially installed on. Since we have to conditionally do things from time to time based on the distribution XI is running on. If this changes any time other than on install, things are liable to break. In other words, we put in a guard rail and it seems like you hit it for better or worse.
Most likely - you can change the variables @bbahner mentioned and everything will be fine. That said, I can't make a guarantee. As always, ensure you have backups in case something goes awry.
Best Regards,
Cory Norell
To add some additional context, we started noticing a trend of users migrating systems to distributions other than what XI was initially installed on. Since we have to conditionally do things from time to time based on the distribution XI is running on. If this changes any time other than on install, things are liable to break. In other words, we put in a guard rail and it seems like you hit it for better or worse.
Most likely - you can change the variables @bbahner mentioned and everything will be fine. That said, I can't make a guarantee. As always, ensure you have backups in case something goes awry.
Best Regards,
Cory Norell
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.