RocketChat update aborts

Hi@all,

UCS test environment with 5.0.1 (current patch level). 1 x Master / 1 x Node. RocketChat is installed on the node. Today an update for RocketChat is displayed.

When trying to update it, there is an error:

root@com01:~# univention-upgrade --ignoreterm --ignoressh

Starting univention-upgrade. Current UCS version is 5.0-1 errata192

Checking for local repository:                          none
Checking for package updates:                           none
Checking for app updates:                               found

The following apps can be upgraded:

Rocket.Chat: Version 3.15.1 can be upgraded to 3.17.0

Starting app upgrade                                   
Do you want to upgrade Rocket.Chat [Y|n]? Y

Starting univention-upgrade. Current UCS version is 5.0-1 errata192

Checking for local repository:                          none
Checking for package updates:                           none
Checking for app updates:                               found

The following apps can be upgraded:

Rocket.Chat: Version 3.15.1 can be upgraded to 3.17.0
Starting univention-app upgrade at Fri Jan 21 13:59:31 2022...
Most of the output for App upgrades goes to /var/log/univention/appcenter.log

Starting app upgrade                                   Traceback in univention-upgrade:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/univention/updater/scripts/upgrade.py", line 430, in do_update
    update_available = performUpdate(options, checkForUpdates=options.check, silent=False)
  File "/usr/lib/python3/dist-packages/univention/updater/scripts/upgrade.py", line 139, in performUpdate
    if func(options, checkForUpdates, silent):
  File "/usr/lib/python3/dist-packages/univention/updater/scripts/upgrade.py", line 314, in do_app_updates
    pwdfile=options.pwdfile.name if options.pwdfile else None,
  File "/usr/lib/python3/dist-packages/univention/appcenter/actions/__init__.py", line 167, in call_safe
    return cls.call(**kwargs)
  File "/usr/lib/python3/dist-packages/univention/appcenter/actions/__init__.py", line 175, in call
    return obj.call_with_namespace(namespace)
  File "/usr/lib/python3/dist-packages/univention/appcenter/actions/__init__.py", line 181, in call_with_namespace
    result = self.main(namespace)
  File "/usr/lib/python3/dist-packages/univention/appcenter/actions/upgrade.py", line 75, in main
    for app in apps:
TypeError: 'App' object is not iterable

with best
sven

The topic is old I know.
Please try this approach: Problem: 'App' object is not iterable - Update from App fails
First update the App and then try to update the whole UCS again as you did.

Mastodon