Page 1 of 1

RPM install detected

Posted: Tue Oct 22, 2024 12:55 pm
by Foist2024
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

Re: RPM install detected

Posted: Tue Oct 22, 2024 3:26 pm
by gwesterman
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!

Re: RPM install detected

Posted: Tue Oct 22, 2024 3:39 pm
by Foist2024
I've done both the manual cli process and the GUI, got the same result with both.

Re: RPM install detected

Posted: Wed Oct 23, 2024 1:50 pm
by bbahn
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.

Re: RPM install detected

Posted: Thu Oct 24, 2024 11:44 am
by bbahn
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:

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'
Note that these may vary slightly based on your own system.

Re: RPM install detected

Posted: Thu Oct 24, 2024 1:57 pm
by cnorell
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