uyuni-project / uyuni

Source code for Uyuni
https://www.uyuni-project.org/
GNU General Public License v2.0
433 stars 181 forks source link

upgrade to v2024.07, salt-secrets-config.service failt to start #9105

Open StefanSa opened 3 months ago

StefanSa commented 3 months ago

Problem description

Hi there, After updating from v2024.05 to v2024.07, the salt-secrets-config.service no longer starts.

systemctl status salt-secrets-config.service
× salt-secrets-config.service - Configures secrets between salt-master and other services
     Loaded: loaded (/usr/lib/systemd/system/salt-secrets-config.service; static)
    Drop-In: /usr/lib/systemd/system/salt-secrets-config.service.d
             └─override.conf
     Active: failed (Result: exit-code) since Thu 2024-07-25 13:19:00 CEST; 1min 51s ago
    Process: 902 ExecStart=/usr/bin/salt-secrets-config.py (code=exited, status=1/FAILURE)
   Main PID: 902 (code=exited, status=1/FAILURE)

Jul 25 13:18:59 uni-01 systemd[1]: Starting Configures secrets between salt-master and other services...
Jul 25 13:19:00 uni-01 salt-secrets-config.py[902]: Traceback (most recent call last):
Jul 25 13:19:00 uni-01 salt-secrets-config.py[902]:   File "/usr/bin/salt-secrets-config.py", line 15, in <module>
Jul 25 13:19:00 uni-01 salt-secrets-config.py[902]:     from spacewalk.common.rhnConfig import cfg_component
Jul 25 13:19:00 uni-01 salt-secrets-config.py[902]: ImportError: cannot import name 'cfg_component'
Jul 25 13:19:00 uni-01 systemd[1]: salt-secrets-config.service: Main process exited, code=exited, status=1/FAILURE
Jul 25 13:19:00 uni-01 systemd[1]: salt-secrets-config.service: Failed with result 'exit-code'.
Jul 25 13:19:00 uni-01 systemd[1]: Failed to start Configures secrets between salt-master and other services.

a zypper up spacewalk-backend-server give this here:

Repository-Daten werden geladen...
Installierte Pakete werden gelesen...
Paketabhängigkeiten werden aufgelöst...

Problem: 1: das installierte spacewalk-backend-config-files-common-5.0.5-230900.2.5.uyuni3.noarch erfordert 'spacewalk-backend-server = 5.0.5-230900.2.5.uyuni3', aber diese Anforderung kann nicht bereitgestellt werden
Gelöschte Anbieter: spacewalk-backend-server-5.0.5-230900.2.5.uyuni3.noarch

 Lösung 1: Folgende Aktionen werden ausgeführt:
  Deinstallation von spacewalk-backend-config-files-common-5.0.5-230900.2.5.uyuni3.noarch
  Deinstallation von spacewalk-backend-config-files-5.0.5-230900.2.5.uyuni3.noarch
  Deinstallation von spacewalk-backend-config-files-tool-5.0.5-230900.2.5.uyuni3.noarch
 Lösung 2: spacewalk-backend-server-5.0.6-230900.1.4.uyuni3.noarch nicht installieren
 Lösung 3: spacewalk-backend-config-files-common-5.0.5-230900.2.5.uyuni3.noarch durch Ignorieren einiger Abhängigkeiten brechen

i have restored the snapshot from this VM, currently v2024.05 is working correctly again.

any help here Stefan

Steps to reproduce

zypper ref && zypper up

Uyuni version

zypper info Uyuni-Server-release
Repository-Daten werden geladen...
Installierte Pakete werden gelesen...

Informationen zu Paket Uyuni-Server-release:
--------------------------------------------
Repository         : Uyuni Server Stable
Name               : Uyuni-Server-release
Version            : 2024.05-230900.217.1.uyuni3
Arch               : x86_64
Anbieter           : obs://build.opensuse.org/systemsmanagement:Uyuni
Support Level      : Stufe 3
Installierte Größe : 1,4 KiB
Installiert        : Ja
Status             : veraltet (Version 2024.03-230900.214.6.uyuni3 installiert)
Quellpaket         : Uyuni-Server-release-2024.05-230900.217.1.uyuni3.src
Zusammenfassung    : Uyuni Server
Beschreibung       :
    Uyuni lets you efficiently manage physical, virtual,
    and cloud-based Linux systems. It provides automated and cost-effective
    configuration and software management, asset management, and system
    provisioning.

Uyuni proxy version (if used)

No response

Useful logs

No response

Additional information

No response

ZsBT commented 3 months ago

Same problem here. Version:

Repository     : uyuni-server-stable
Name           : Uyuni-Server-release
Version        : 2024.07-230900.219.1.uyuni3
Arch           : x86_64
Vendor         : obs://build.opensuse.org/systemsmanagement:Uyuni
hsh-it commented 3 months ago

Same here uyuni:~ # spacewalk-service stop

e startShutting down spacewalk services...
Done.

uyuni:~ # zypper ref

Repository 'Update repository of openSUSE Backports' is up to date.
Repository 'Non-OSS Repository' is up to date.
Repository 'Haupt-Repository' is up to date.
Repository 'Update repository with updates from SUSE Linux Enterprise 15' is up to date.
Repository 'Quell-Repository' is up to date.
Repository 'Hauptaktualisierungs-Repository' is up to date.
Repository 'Aktualisierungs-Repository (Nicht-Open-Source-Software)' is up to date.
Repository 'Project used to release critical patches between releases (openSUSE_Leap_15.4)' is up to date.
Repository 'uyuni-server-stable' is up to date.
Repository 'Zabbix Official Repository' is up to date.
All repositories have been refreshed.

uyuni:~ # zypper up

Loading repository data...
Reading installed packages...

The following 13 package updates will NOT be installed:
  byte-buddy cobbler spacewalk-backend spacewalk-backend-app spacewalk-backend-iss spacewalk-backend-iss-export spacewalk-backend-package-push-server spacewalk-backend-server
  spacewalk-backend-sql spacewalk-backend-sql-postgresql spacewalk-backend-tools spacewalk-backend-xml-export-libs spacewalk-backend-xmlrpc
Nothing to do.

uyuni:~ # zypper install Uyuni-Server-release

Loading repository data...
Reading installed packages...
'Uyuni-Server-release' is already installed.
No update candidate for 'Uyuni-Server-release-2024.07-230900.219.1.uyuni3.x86_64'. The highest available version is already installed.
Resolving package dependencies...
Nothing to do.

uyuni:~ # spacewalk-service start

Starting spacewalk services...
  Checking DB schema and running DB schema upgrade if needed. This may take a while.
  Call the following command to see progress: journalctl -f -u uyuni-check-database.service
○ uyuni-check-database.service - Uyuni check database
     Loaded: loaded (/usr/lib/systemd/system/uyuni-check-database.service; static)
     Active: inactive (dead) since Fri 2024-07-26 08:43:18 CEST; 12s ago
    Process: 21152 ExecStart=/usr/sbin/spacewalk-startup-helper check-database (code=exited, status=0/SUCCESS)
   Main PID: 21152 (code=exited, status=0/SUCCESS)

Jul 26 08:40:22 uyuni spacewalk-startup-helper[21254]: Searching for start path:  [uyuni-reportdb-schema-5.0.5-230900]
Jul 26 08:40:22 uyuni spacewalk-startup-helper[21254]: Searching for start path:  [uyuni-reportdb-schema-5.0.5]
Jul 26 08:40:22 uyuni spacewalk-startup-helper[21254]: The path: [uyuni-reportdb-schema-5.0.5] -> [uyuni-reportdb-schema-5.0.6]
Jul 26 08:40:22 uyuni spacewalk-startup-helper[21254]: Planning to run schema upgrade with dir '/var/log/spacewalk/reportdb-schema-upgrade/schema-from-20240726-084022'
Jul 26 08:40:22 uyuni spacewalk-startup-helper[21254]: Executing spacewalk-sql, the log is in [/var/log/spacewalk/reportdb-schema-upgrade/schema-from-20240726-084022-to-uyuni-reportdb-schema-5.0.6.log].
Jul 26 08:40:26 uyuni spacewalk-startup-helper[21254]: [289B blob data]
Jul 26 08:40:26 uyuni spacewalk-startup-helper[21254]: The database schema was upgraded to version [uyuni-reportdb-schema-5.0.6-230900.1.8.uyuni3].
Jul 26 08:40:27 uyuni systemd[1]: Finished Uyuni check database.
Jul 26 08:43:18 uyuni systemd[1]: uyuni-check-database.service: Deactivated successfully.
Jul 26 08:43:18 uyuni systemd[1]: Stopped Uyuni check database.
Jul 26 08:43:30 uyuni systemd[1]: Starting Uyuni check database...
FAILED
uyuni:~ #

uyuni:~ # journalctl -xe

░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ An ExecStart= process belonging to unit salt-secrets-config.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
Jul 26 08:41:14 uyuni systemd[1]: salt-secrets-config.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The unit salt-secrets-config.service has entered the 'failed' state with result 'exit-code'.
Jul 26 08:41:14 uyuni systemd[1]: Failed to start Configures secrets between salt-master and other services.
░░ Subject: A start job for unit salt-secrets-config.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit salt-secrets-config.service has finished with a failure.
░░
░░ The job identifier is 711809 and the job result is failed.
Jul 26 08:41:14 uyuni systemd[1]: Dependency failed for Spacewalk.
░░ Subject: A start job for unit spacewalk.target has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit spacewalk.target has finished with a failure.
░░
░░ The job identifier is 711683 and the job result is dependency.

uyuni:~ # spacewalk-service status

○ mgr-check-payg.service - Check and install PAYG billing service.
     Loaded: loaded (/usr/lib/systemd/system/mgr-check-payg.service; static)
     Active: inactive (dead)
  Condition: start condition failed at Fri 2024-07-26 08:49:25 CEST; 2min 49s ago
             └─ ConditionEnvironment=ISPAYG=1 was not met

● uyuni-update-config.service - Uyuni update config
     Loaded: loaded (/usr/lib/systemd/system/uyuni-update-config.service; static)
     Active: active (exited) since Fri 2024-07-26 08:49:36 CEST; 2min 38s ago
    Process: 1607 ExecStart=/usr/sbin/uyuni-update-config (code=exited, status=0/SUCCESS)
   Main PID: 1607 (code=exited, status=0/SUCCESS)

● uyuni-check-database.service - Uyuni check database
     Loaded: loaded (/usr/lib/systemd/system/uyuni-check-database.service; static)
     Active: active (exited) since Fri 2024-07-26 08:50:04 CEST; 2min 10s ago
    Process: 1619 ExecStart=/usr/sbin/spacewalk-startup-helper check-database (code=exited, status=0/SUCCESS)
   Main PID: 1619 (code=exited, status=0/SUCCESS)

● tomcat.service - Apache Tomcat Web Application Container
     Loaded: loaded (/usr/lib/systemd/system/tomcat.service; enabled; vendor preset: disabled)
    Drop-In: /usr/lib/systemd/system/tomcat.service.d
             └─override.conf
     Active: active (running) since Fri 2024-07-26 08:50:04 CEST; 2min 10s ago
   Main PID: 1902 (java)
      Tasks: 127 (limit: 576)
     CGroup: /system.slice/tomcat.service
             └─ 1902 /usr/lib64/jvm/jre/bin/java -Djavax.sql.DataSource.Factory=org.apache.commons.dbcp.BasicDataSourceFactory -ea -Xms256m -Xmx1G -Djava.awt.headless=true -Dorg.xml.sax.driver=c…

● spacewalk-wait-for-tomcat.service - Spacewalk wait for tomcat
     Loaded: loaded (/usr/lib/systemd/system/spacewalk-wait-for-tomcat.service; static)
     Active: active (exited) since Fri 2024-07-26 08:50:36 CEST; 1min 38s ago
    Process: 1903 ExecStart=/usr/sbin/spacewalk-startup-helper wait-for-tomcat (code=exited, status=0/SUCCESS)
   Main PID: 1903 (code=exited, status=0/SUCCESS)

● salt-master.service - The Salt Master Server
     Loaded: loaded (/usr/lib/systemd/system/salt-master.service; enabled; vendor preset: disabled)
    Drop-In: /usr/lib/systemd/system/salt-master.service.d
             └─override.conf
     Active: active (running) since Fri 2024-07-26 08:50:04 CEST; 2min 10s ago
       Docs: man:salt-master(1)
             file:///usr/share/doc/salt/html/contents.html
             https://docs.saltproject.io/en/latest/contents.html
   Main PID: 1896 (salt-master)
      Tasks: 55
     CGroup: /system.slice/salt-master.service
             ├─ 1896 /usr/bin/python3 /usr/bin/salt-master
             ├─ 2175 /usr/bin/python3 /usr/bin/salt-master
             ├─ 2176 /usr/bin/python3 /usr/bin/salt-master
             ├─ 2182 /usr/bin/python3 /usr/bin/salt-master
             ├─ 2183 /usr/bin/python3 /usr/bin/salt-master
             ├─ 2184 /usr/bin/python3 /usr/bin/salt-master
             ├─ 2185 /usr/bin/python3 /usr/bin/salt-master
             ├─ 2186 /usr/bin/python3 /usr/bin/salt-master
             ├─ 2187 /usr/bin/python3 /usr/bin/salt-master
             ├─ 2188 /usr/bin/python3 /usr/bin/salt-master
             ├─ 2189 /usr/bin/python3 /usr/bin/salt-master
             ├─ 2190 /usr/bin/python3 /usr/bin/salt-master
             ├─ 2191 /usr/bin/python3 /usr/bin/salt-master
             ├─ 2192 /usr/bin/python3 /usr/bin/salt-master
             ├─ 2193 /usr/bin/python3 /usr/bin/salt-master
             ├─ 2196 /usr/bin/python3 /usr/bin/salt-master
             └─ 2197 /usr/bin/python3 /usr/bin/salt-master

● salt-api.service - The Salt API
     Loaded: loaded (/usr/lib/systemd/system/salt-api.service; enabled; vendor preset: disabled)
    Drop-In: /usr/lib/systemd/system/salt-api.service.d
             └─override.conf
     Active: active (running) since Fri 2024-07-26 08:50:04 CEST; 2min 10s ago
       Docs: man:salt-api(1)
             file:///usr/share/doc/salt/html/contents.html
             https://docs.saltproject.io/en/latest/contents.html
   Main PID: 1895 (salt-api)
      Tasks: 104 (limit: 4915)
     CGroup: /system.slice/salt-api.service
             ├─ 1895 /usr/bin/python3 /usr/bin/salt-api
             └─ 2012 /usr/bin/python3 /usr/bin/salt-api

● spacewalk-wait-for-salt.service - Make sure that salt is started before httpd
     Loaded: loaded (/usr/lib/systemd/system/spacewalk-wait-for-salt.service; static)
     Active: active (exited) since Fri 2024-07-26 08:50:04 CEST; 2min 10s ago
    Process: 1897 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
   Main PID: 1897 (code=exited, status=0/SUCCESS)

● apache2.service - The Apache Webserver
     Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled; vendor preset: disabled)
    Drop-In: /usr/lib/systemd/system/apache2.service.d
             └─override.conf
     Active: active (running) since Fri 2024-07-26 08:50:37 CEST; 1min 37s ago
   Main PID: 7985 (httpd-prefork)
     Status: "Processing requests..."
      Tasks: 15
     CGroup: /system.slice/apache2.service
             ├─  7985 /usr/sbin/httpd-prefork -DSYSCONFIG -DSSL -DISSUSE -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "Include /etc/apache2/sysconfig.d//…
             ├─  8489 /usr/sbin/httpd-prefork -DSYSCONFIG -DSSL -DISSUSE -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "Include /etc/apache2/sysconfig.d//…
             ├─  8490 /usr/sbin/httpd-prefork -DSYSCONFIG -DSSL -DISSUSE -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "Include /etc/apache2/sysconfig.d//…
             ├─  8491 /usr/sbin/httpd-prefork -DSYSCONFIG -DSSL -DISSUSE -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "Include /etc/apache2/sysconfig.d//…
             ├─  8492 /usr/sbin/httpd-prefork -DSYSCONFIG -DSSL -DISSUSE -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "Include /etc/apache2/sysconfig.d//…
             ├─  8493 /usr/sbin/httpd-prefork -DSYSCONFIG -DSSL -DISSUSE -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "Include /etc/apache2/sysconfig.d//…
             ├─  8723 /usr/sbin/httpd-prefork -DSYSCONFIG -DSSL -DISSUSE -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "Include /etc/apache2/sysconfig.d//…
             ├─ 12932 /usr/sbin/httpd-prefork -DSYSCONFIG -DSSL -DISSUSE -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "Include /etc/apache2/sysconfig.d//…
             ├─ 16234 /usr/sbin/httpd-prefork -DSYSCONFIG -DSSL -DISSUSE -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "Include /etc/apache2/sysconfig.d//…
             ├─ 16236 /usr/sbin/httpd-prefork -DSYSCONFIG -DSSL -DISSUSE -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "Include /etc/apache2/sysconfig.d//…
             ├─ 16237 /usr/sbin/httpd-prefork -DSYSCONFIG -DSSL -DISSUSE -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "Include /etc/apache2/sysconfig.d//…
             ├─ 16238 /usr/sbin/httpd-prefork -DSYSCONFIG -DSSL -DISSUSE -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "Include /etc/apache2/sysconfig.d//…
             ├─ 16239 /usr/sbin/httpd-prefork -DSYSCONFIG -DSSL -DISSUSE -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "Include /etc/apache2/sysconfig.d//…
             ├─ 16240 /usr/sbin/httpd-prefork -DSYSCONFIG -DSSL -DISSUSE -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "Include /etc/apache2/sysconfig.d//…
             └─ 16241 /usr/sbin/httpd-prefork -DSYSCONFIG -DSSL -DISSUSE -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "Include /etc/apache2/sysconfig.d//…

● rhn-search.service - Spacewalk search engine
     Loaded: loaded (/usr/lib/systemd/system/rhn-search.service; enabled; vendor preset: disabled)
    Drop-In: /usr/lib/systemd/system/rhn-search.service.d
             └─override.conf
     Active: active (running) since Fri 2024-07-26 08:50:37 CEST; 1min 37s ago
   Main PID: 8476 (rhn-search)
      Tasks: 83 (limit: 4915)
     CGroup: /system.slice/rhn-search.service
             ├─ 8476 /bin/sh /usr/sbin/rhn-search
             └─ 8494 /usr/bin/java -Djava.library.path=/usr/lib:/usr/lib64:/usr/lib/gcj/postgresql-jdbc:/usr/lib64/gcj/postgresql-jdbc -classpath "/usr/share/rhn/search/lib/*:/usr/share/rhn/clas…

● cobblerd.service - Cobbler Helper Daemon
     Loaded: loaded (/usr/lib/systemd/system/cobblerd.service; enabled; vendor preset: disabled)
     Active: active (running) since Fri 2024-07-26 08:50:12 CEST; 2min 2s ago
   Main PID: 1893 (cobblerd)
      Tasks: 1 (limit: 4915)
     CGroup: /system.slice/cobblerd.service
             └─ 1893 /usr/bin/python3.6 -s /usr/bin/cobblerd -F

● taskomatic.service - Taskomatic
     Loaded: loaded (/usr/lib/systemd/system/taskomatic.service; enabled; vendor preset: disabled)
    Drop-In: /usr/lib/systemd/system/taskomatic.service.d
             └─override.conf
     Active: active (running) since Fri 2024-07-26 08:50:37 CEST; 1min 37s ago
   Main PID: 8481 (taskomatic)
      Tasks: 152 (limit: 4915)
     CGroup: /system.slice/taskomatic.service
             ├─ 8481 /bin/sh /usr/sbin/taskomatic
             └─ 8525 /usr/bin/java -Djava.library.path=/usr/lib:/usr/lib64 -classpath "/usr/share/rhn/classes:/usr/share/rhn/lib/spacewalk-asm.jar:/usr/share/rhn/lib/rhn.jar:/usr/share/rhn/lib/j…

● spacewalk-wait-for-taskomatic.service - Spacewalk wait for taskomatic
     Loaded: loaded (/usr/lib/systemd/system/spacewalk-wait-for-taskomatic.service; static)
     Active: active (exited) since Fri 2024-07-26 08:50:40 CEST; 1min 34s ago
    Process: 8487 ExecStart=/usr/sbin/spacewalk-startup-helper wait-for-taskomatic (code=exited, status=0/SUCCESS)
   Main PID: 8487 (code=exited, status=0/SUCCESS)

× salt-secrets-config.service - Configures secrets between salt-master and other services
     Loaded: loaded (/usr/lib/systemd/system/salt-secrets-config.service; static)
    Drop-In: /usr/lib/systemd/system/salt-secrets-config.service.d
             └─override.conf
     Active: failed (Result: exit-code) since Fri 2024-07-26 08:49:28 CEST; 2min 45s ago
    Process: 915 ExecStart=/usr/bin/salt-secrets-config.py (code=exited, status=1/FAILURE)
   Main PID: 915 (code=exited, status=1/FAILURE)

● mgr-websockify.service - TCP to WebSocket proxy
     Loaded: loaded (/usr/lib/systemd/system/mgr-websockify.service; static)
     Active: active (running) since Fri 2024-07-26 08:50:04 CEST; 2min 10s ago
    Process: 1894 ExecStartPre=/usr/bin/sh -c grep secret_key /etc/rhn/rhn.conf | tr -d ' ' | cut -f2 -d '=' | perl -ne 's/([0-9a-f]{2})/print chr hex $1/gie' > /etc/rhn/websockify.key (code=exited, status=0/SUCCESS)
   Main PID: 1904 (websockify)
      Tasks: 8 (limit: 4915)
     CGroup: /system.slice/mgr-websockify.service
             └─ 1904 /usr/bin/python3 /usr/bin/websockify --token-plugin JWTTokenApi --token-source /etc/rhn/websockify.key localhost:8050

● cobbler-refresh-mkloaders.service - Refresh Cobbler bootloaders
     Loaded: loaded (/usr/lib/systemd/system/cobbler-refresh-mkloaders.service; static)
    Drop-In: /usr/lib/systemd/system/cobbler-refresh-mkloaders.service.d
             └─override.conf
     Active: active (exited) since Fri 2024-07-26 08:50:40 CEST; 1min 34s ago
    Process: 8482 ExecStart=/usr/bin/cobbler mkloaders (code=exited, status=0/SUCCESS)
   Main PID: 8482 (code=exited, status=0/SUCCESS)
○ spacewalk.target - Spacewalk
     Loaded: loaded (/usr/lib/systemd/system/spacewalk.target; enabled; vendor preset: disabled)
     Active: inactive (dead)
uyuni:~ #

uyuni:~ # zypper info Uyuni-Server-release

Loading repository data...
Reading installed packages...

Information for package Uyuni-Server-release:
---------------------------------------------
Repository     : uyuni-server-stable
Name           : Uyuni-Server-release
Version        : 2024.07-230900.219.1.uyuni3
Arch           : x86_64
Vendor         : obs://build.opensuse.org/systemsmanagement:Uyuni
Support Level  : Level 3
Installed Size : 1.4 KiB
Installed      : Yes
Status         : up-to-date
Source package : Uyuni-Server-release-2024.07-230900.219.1.uyuni3.src
Upstream URL   : https://www.uyuni-project.org/
Summary        : Uyuni Server
Description    :
    Uyuni lets you efficiently manage physical, virtual,
    and cloud-based Linux systems. It provides automated and cost-effective
    configuration and software management, asset management, and system
    provisioning.
digdilem commented 3 months ago

Same here. Can the dev team look at this as a matter of priority please?

This seems to be breaking repo syncs also

Am concerned that this is supposed to be the last traditional release, so is there a plan to release another non-broken update?

● salt-secrets-config.service loaded failed failed Configures secrets between salt-master and oth

And cfg_component mentioned in daily repo sync failure error:

Command '[/usr/bin/spacewalk-repo-sync, --channel, debian-12-amd64-uyuni-client, --type, deb, --non-interactive]' exited with error code 1: Traceback (most recent call last):
  File "/usr/bin/spacewalk-repo-sync", line 32, in 
    from spacewalk.satellite_tools.syncLib import initEMAIL_LOG
  File "/usr/lib/python3.6/site-packages/spacewalk/satellite_tools/syncLib.py", line 33, in 
    from spacewalk.common.rhnLog import log_time, log_clean
  File "/usr/lib/python3.6/site-packages/spacewalk/common/rhnLog.py", line 41, in 
    from uyuni.common.context_managers import cfg_component
  File "/usr/lib/python3.6/site-packages/uyuni/common/context_managers.py", line 8, in 
    from spacewalk.common.rhnConfig import cfg_component
ImportError: cannot import name 'cfg_component'
digdilem commented 3 months ago

Update: From elsewhere in the issues, forcing the upgrade of a held-back package seems to allow this service to start, and fixes the repo issue. Hopefully the upgrade will be fixed, so the last traditional release isn't left broken.

zypper install spacewalk-backend-server

StefanSa commented 3 months ago

@digdilem did you also have three suggested solutions like me from zypper, if so which one did you take?

digdilem commented 3 months ago

@StefanSa

Yes - I chose the 1st one when prompted after that.

A "zypper up" shows several packages that won't install, which leads to this issue and it seems to be affecting quite a few or all people with this upgrade. I saw a deb in one of the issues recommend this.

After doing the above, most of the conflicts will be resolved - but there are two packages left, including cobbler. Don't be tempted to repeat this on cobbler too, as then cobbler breaks. (I had to roll back to a snapshot)

Everything seems to be working now - at least that service starts, and repo syncing is working again, but It's not a great solution and I hope the devs come out with another fixed traditional release soon.

StefanSa commented 3 months ago

@juliogonzalez @mcalmer Can either of you help here. thanks you for your time and uyuni.

rjmateus commented 3 months ago

we will have a look. And this is not the last RPM based version that we will be releasing. You should expect two more, 2024.08 and 2024.09.

digdilem commented 3 months ago

Thanks for the correction, that's reassuring to know.

deneb-alpha commented 3 months ago

hi all, I can confirm that the zypper solution to drop:

rjmateus commented 3 months ago

My comment was wrong. We will have one more version with both RPM and container support (2024.08), and the full switch to container only will be done on 2024.09. Sorry for the confusion.

stdevel commented 3 months ago

hi all, I can confirm that the zypper solution to drop:

* `spacewalk-backend-config-files-common`

* `spacewalk-backend-config-files`

* `spacewalk-backend-config-files-tool`
  for the moment is the right to use.

Also worked fine for one of my servers upgrading from 2024.03 to 2024.07 - thanks for pointing out.

hsh-it commented 3 months ago

Also worked fine for one of my servers upgrading from 2024.03 to 2024.07 - thanks for pointing out.

Danke für das Feedback

hsh-it commented 2 months ago

hi all, I can confirm that the zypper solution to drop:

* `spacewalk-backend-config-files-common`

* `spacewalk-backend-config-files`

* `spacewalk-backend-config-files-tool`
  for the moment is the right to use.

Also worked fine for one of my servers upgrading from 2024.03 to 2024.07 - thanks for pointing out.

spacewalk-backend-config-files-common
If 'spacewalk-backend-config-files-common' is not a typo you can use command-not-found to lookup the package that contains it, like this:
    cnf spacewalk-backend-config-files-common

seems not working. i was trying to update uyuni server but it did not work. Maybe it is better to try migrate to container version before update ?

 spacewalk-
spacewalk-cfg-get                   spacewalk-diskcheck                 spacewalk-remove-channel            spacewalk-setup                     spacewalk-sync-setup
spacewalk-clone-by-date             spacewalk-fips-tool                 spacewalk-repo-sync                 spacewalk-setup-cobbler             spacewalk-update-signatures
spacewalk-common-channels           spacewalk-hostname-rename           spacewalk-report                    spacewalk-setup-httpd
spacewalk-data-fsck                 spacewalk-make-mount-points         spacewalk-schema-upgrade            spacewalk-sql
spacewalk-debug                     spacewalk-manage-channel-lifecycle  spacewalk-service                   spacewalk-startup-helper

I was following this: https://github.com/uyuni-project/uyuni/issues/9105#issuecomment-2252086603

But i cant update it

Migrating seems stucking too:

uyuni-container:/home/uyuni # mgradm migrate podman uyuni.domain
If 'mgradm' is not a typo you can use command-not-found to lookup the package that contains it, like this:
    cnf mgradm
wizonet commented 1 month ago

Just updated from 2024.05 to 2024.08 - running in the same issue. Uyuni is not working an the webservice acces is dead (404)...

I have now been successful with the following procedure:

snapper rollback to a version before the update.

zypper ref zypper up

After updating and before reboot: systemctl start uyuni-check-database.service spacewalk-service start

reboot

zypper install spacewalk-backend-server -> Option 1

zypper in spacewalk-java -> Option 1 -> Overwrite jar files: yes (default is no)

zypper in Uyuni-Server-release

Now uyuni works - but there are some more updates:

uyuni:~ # zypper up Loading repository data... Reading installed packages...

The following 19 package updates will NOT be installed: apache-commons-ognl classmate cobbler concurrentlinkedhashmap-lru dom4j glassfish-activation-api glassfish-fastinfoset glassfish-jaxb-api glassfish-jaxb-runtime glassfish-jaxb-txw2 guava istack-commons-runtime jandex mybatis objectweb-asm reprepro stax-ex xmlstreambuffer xsom Nothing to do.

I will not install any of these packages for the time being...

umrubi1 commented 1 month ago

Just updated from 2024.05 to 2024.08 - running in the same issue. Uyuni is not working an the webservice acces is dead (404)...

Had a similar issue with 2024.05 to 2024.08 and have tested a bit (with VM snapshots, of course). Webservice came up but salt-secrets was "red". I had this points:

$ zypper ref $ zypper up --allow-vendor-change

After updating and before reboot: $ systemctl start uyuni-check-database.service $ spacewalk-service start $ spacewalk-service status (RED)

reboot

$ spacewalk-service status (RED) $ spacewalk-service stop $ zypper install spacewalk-backend-server -> Option 1

Checking for file conflicts: ...........................................................
( 1/15) Removing: spacewalk-backend-applet-5.0.4-230900.1.3.uyuni3.noarch ..............
( 2/15) Removing: spacewalk-backend-config-files-5.0.4-230900.1.3.uyuni3.noarch ........
( 3/15) Removing: spacewalk-backend-config-files-tool-5.0.4-230900.1.3.uyuni3.noarch ...
( 4/15) Removing: spacewalk-backend-config-files-common-5.0.4-230900.1.3.uyuni3.noarch .
( 5/15) Installing: spacewalk-backend-5.0.9-230900.1.5.uyuni3.noarch ...................
( 6/15) Installing: spacewalk-backend-sql-postgresql-5.0.9-230900.1.5.uyuni3.noarch ....
( 7/15) Installing: spacewalk-backend-sql-5.0.9-230900.1.5.uyuni3.noarch ...............
"wsgi" already present
( 8/15) Installing: spacewalk-backend-server-5.0.9-230900.1.5.uyuni3.noarch ............
( 9/15) Installing: spacewalk-backend-xml-export-libs-5.0.9-230900.1.5.uyuni3.noarch ...
(10/15) Installing: spacewalk-backend-package-push-server-5.0.9-230900.1.5.uyuni3.noarch
(11/15) Installing: spacewalk-backend-iss-5.0.9-230900.1.5.uyuni3.noarch ...............
(12/15) Installing: spacewalk-backend-xmlrpc-5.0.9-230900.1.5.uyuni3.noarch ............
(13/15) Installing: spacewalk-backend-iss-export-5.0.9-230900.1.5.uyuni3.noarch ........
(14/15) Installing: spacewalk-backend-app-5.0.9-230900.1.5.uyuni3.noarch ...............
(15/15) Installing: spacewalk-backend-tools-5.0.9-230900.1.5.uyuni3.noarch .............

$ zypper up Loading repository data... Reading installed packages...

The following package update will NOT be installed: cobbler Nothing to do.

$ spacewalk-service status (Green)