[uyuni-users] Failure with server-migrator script
So, I'm attempting an upgrade to the latest version. I previously did "spacewalk-service stop", "zypper update", then rebooted and verified that things were working. Upon running server-migrator, I get the following error that the repo it is attempting to add is not valid. Indeed, if I follow that URL, it does not work. Is there an updated URL that I need to modify the script to point to? Repository priorities are without effect. All enabled repositories share the same priority. Retrieving repository 'Non-OSS Repository' metadata ..............................................................................................................................................................................................................................................................[done] Building repository 'Non-OSS Repository' cache ...................................................................................................................................................................................................................................................................[done] Retrieving repository 'Main Repository' metadata .................................................................................................................................................................................................................................................................[done] Building repository 'Main Repository' cache ......................................................................................................................................................................................................................................................................[done] Retrieving repository 'Main Update Repository' metadata ..........................................................................................................................................................................................................................................................[done] Building repository 'Main Update Repository' cache ...............................................................................................................................................................................................................................................................[done] Retrieving repository 'Update Repository (Non-Oss)' metadata .....................................................................................................................................................................................................................................................[done] Building repository 'Update Repository (Non-Oss)' cache ..........................................................................................................................................................................................................................................................[done] Retrieving repository 'Uyuni Server Stable' metadata ............................................................................................................................................................................................................................................................[error] Repository 'Uyuni Server Stable' is invalid. [uyuni-server-stable|https://download.opensuse.org/repositories/systemsmanagement:/Uyuni:/Stable/...] Valid metadata not found at specified URL History: - [uyuni-server-stable|https://download.opensuse.org/repositories/systemsmanagement:/Uyuni:/Stable/...] Repository type can't be determined. Please check if the URIs defined for this repository are pointing to a valid repository. Skipping repository 'Uyuni Server Stable' because of the above error. Some of the repositories have not been refreshed because of an error. error: package atftp is not installed error: package python-Cheetah is not installed error: package apache2-mod_wsgi is not installed error: package python-netaddr is not installed error: package pxe-default-image-opensuse42-3 is not installed Error building the cache: [uyuni-server-stable|https://download.opensuse.org/repositories/systemsmanagement:/Uyuni:/Stable/...] Valid metadata not found at specified URL History: - [uyuni-server-stable|https://download.opensuse.org/repositories/systemsmanagement:/Uyuni:/Stable/...] Repository type can't be determined. Warning: Skipping repository 'Uyuni Server Stable' because of the above error. Some of the repositories have not been refreshed because of an error. Loading repository data... Reading installed packages... Warning: You are about to do a distribution upgrade with all enabled repositories. Make sure these repositories are compatible before you continue. See 'man zypper' for more information about this command. Computing distribution upgrade... 14 Problems: Problem: problem with installed package apache-commons-cli-1.2-1.50.uyuni.noarch Problem: problem with installed package cobbler-3.0.0+git20190806.32c4bae0-12.1.uyuni.noarch Problem: problem with installed package concurrent-1.3.4-277.277.50.uyuni.noarch Problem: problem with installed package golang-github-prometheus-node_exporter-0.18.1-1.1.uyuni.x86_64 Problem: problem with installed package jcommon-1.0.16-0.9.50.uyuni.noarch Problem: problem with installed package jsch-0.1.55-1.50.uyuni.noarch Problem: problem with installed package libgsasl-lang-1.8.0-1.3.uyuni.noarch Problem: problem with installed package libgsasl7-1.8.0-1.3.uyuni.x86_64 Problem: problem with installed package libudns0-0.4-0.9.4.uyuni.x86_64 Problem: problem with installed package lucene-2.4.1-2.2.uyuni.noarch Problem: problem with installed package postgresql-jdbc-42.2.10-3.1.uyuni.noarch Problem: problem with installed package python3-psycopg2-2.8.4-2.2.uyuni.x86_64 Problem: problem with installed package python3-pygit2-0.26.0-3.2.uyuni.x86_64 Problem: problem with installed package tagsoup-1.2.1-3.50.uyuni.noarch Problem: problem with installed package apache-commons-cli-1.2-1.50.uyuni.noarch Solution 1: install apache-commons-cli-1.2-lp151.2.43.noarch (with vendor change) obs://build.opensuse.org/systemsmanagement:Uyuni --> openSUSE Solution 2: keep obsolete apache-commons-cli-1.2-1.50.uyuni.noarch Choose from above solutions by number or skip, retry or cancel [1/2/s/r/c/d/?] (c): c update-alternatives: using /usr/share/java/servletapi5-5.0.18.jar to provide /usr/share/java/servlet.jar (servlet) in manual mode Schema upgrade: [susemanager-schema-4.1.8-1.2.uyuni] -> [susemanager-schema-4.1.8-1.2.uyuni] Searching for upgrade path to: [susemanager-schema-4.1.8-1] Searching for upgrade path to: [susemanager-schema-4.1.8] Your database schema already matches the schema package version [susemanager-schema-4.1.8-1.2.uyuni]. ls: cannot access '/var/lib/cobbler/config/*.d': No such file or directory mv: cannot stat '/srv/www/cobbler/ks_mirror': No such file or directory awk: fatal: cannot open file `/etc/cobbler/settings.old' for reading (No such file or directory) =================================================================== Reboot the machine for the new version now! =================================================================== uyuni-opensuse01:~ -- Allen Beddingfield Systems Engineer Office of Information Technology The University of Alabama Office 205-348-2251 allen@ua.edu -- To unsubscribe, e-mail: uyuni-users+unsubscribe@opensuse.org To contact the owner, e-mail: uyuni-users+owner@opensuse.org
You want repos such as https://download.opensuse.org/repositories/systemsmanagement:/Uyuni:/Stable/... Which recipe did you follow? Maybe, we must fix the documentation somewhere. -- Karl Eichwalder -- To unsubscribe, e-mail: uyuni-users+unsubscribe@opensuse.org To contact the owner, e-mail: uyuni-users+owner@opensuse.org
I used the procedure from: https://www.uyuni-project.org/uyuni-docs/uyuni/upgrade/server-major-upgrade-... Which is: zypper ref;zypper up susemanager /usr/lib/susemanager/bin/server-migrator.sh /usr/lib/susemanager/bin/pg-migrate-10-to-12.sh It seems that server-migrator.sh tries to add: https://download.opensuse.org/repositories/systemsmanagement:/Uyuni:/Stable/... Instead of: https://download.opensuse.org/repositories/systemsmanagement:/Uyuni:/Stable/... It is also attempting to add the 15.1 instead of 15.2 repos. Should there be an updated version of this file that I somehow haven't gotten? I assume I could just edit it and add the correct repos, otherwise. "zypper lu" shows no updates available. Allen B. -- Allen Beddingfield Systems Engineer Office of Information Technology The University of Alabama Office 205-348-2251 allen@ua.edu ________________________________________ From: Karl Eichwalder <ke@suse.de> Sent: Wednesday, October 14, 2020 10:41 AM To: Beddingfield, Allen Cc: uyuni-users@opensuse.org Subject: [EXTERNAL] Re: [uyuni-users] Failure with server-migrator script You want repos such as https://download.opensuse.org/repositories/systemsmanagement:/Uyuni:/Stable/... Which recipe did you follow? Maybe, we must fix the documentation somewhere. -- Karl Eichwalder -- To unsubscribe, e-mail: uyuni-users+unsubscribe@opensuse.org To contact the owner, e-mail: uyuni-users+owner@opensuse.org -- To unsubscribe, e-mail: uyuni-users+unsubscribe@opensuse.org To contact the owner, e-mail: uyuni-users+owner@opensuse.org
On miércoles, 14 de octubre de 2020 19:09:41 (CEST) Beddingfield, Allen wrote:
I used the procedure from: https://www.uyuni-project.org/uyuni-docs/uyuni/upgrade/server-major-upgrade-> uyuni.html Which is: zypper ref;zypper up susemanager /usr/lib/susemanager/bin/server-migrator.sh /usr/lib/susemanager/bin/pg-migrate-10-to-12.sh
It seems that server-migrator.sh tries to add: https://download.opensuse.org/repositories/systemsmanagement:/Uyuni:/Stable/ images/repo/Uyuni-Server-4.0-POOL-x86_64-Media1/ Instead of: https://download.opensuse.org/repositories/systemsmanagement:/Uyuni:/Stable/ images/repo/Uyuni-Server-POOL-x86_64-Media1/ It is also attempting to add the 15.1 instead of 15.2 repos. Should there be an updated version of this file that I somehow haven't gotten? I assume I could just edit it and add the correct repos, otherwise. "zypper lu" shows no updates available.
This signals that your `server-migrator.sh` script is outdated. The `zypper up susemanager`should get an update for it. What's the Uyuni version you are trying to migrate from? Looks to me it's a really old one. Did you get any errors running `zypper ref;zypper up susemanager`?
Allen B. -- Allen Beddingfield Systems Engineer Office of Information Technology The University of Alabama Office 205-348-2251 allen@ua.edu
________________________________________ From: Karl Eichwalder <ke@suse.de> Sent: Wednesday, October 14, 2020 10:41 AM To: Beddingfield, Allen Cc: uyuni-users@opensuse.org Subject: [EXTERNAL] Re: [uyuni-users] Failure with server-migrator script
You want repos such as https://download.opensuse.org/repositories/systemsmanagement:/Uyuni:/Stable/ images/repo/Uyuni-Server-POOL-x86_64-Media1/
Which recipe did you follow? Maybe, we must fix the documentation somewhere.
-- Karl Eichwalder -- To unsubscribe, e-mail: uyuni-users+unsubscribe@opensuse.org To contact the owner, e-mail: uyuni-users+owner@opensuse.org
-- Julio González Gil Release Engineer, SUSE Manager and Uyuni jgonzalez@suse.com
participants (3)
-
Beddingfield, Allen
-
Julio González Gil
-
Karl Eichwalder