Apps upgrades no longer work

Description

When trying to update apps, I get an error message and the update fails (this affects all apps). Here is the output of the error:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/middlewared/job.py", line 515, in run
await self.future
File "/usr/lib/python3/dist-packages/middlewared/job.py", line 562, in __run_body
rv = await self.middleware.run_in_thread(self.method, *args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 593, in run_in_thread
return await self.run_in_executor(io_thread_pool_executor, method, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 590, in run_in_executor
return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/api/base/decorator.py", line 93, in wrapped
result = func(*args)
^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/plugins/apps/upgrade.py", line 123, in upgrade
new_values = self.middleware.call_sync(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 996, in call_sync
return self.run_coroutine(methodobj(*prepared_call.args))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1036, in run_coroutine
return fut.result()
^^^^^^^^^^^^
File "/usr/lib/python3.11/concurrent/futures/_base.py", line 449, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
File "/usr/lib/python3/dist-packages/middlewared/plugins/apps/schema_normalization.py", line 36, in normalize_and_validate_values
dict_obj = await self.middleware.call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 971, in call
return await self._call(
^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 686, in _call
return await methodobj(*prepared_call.args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/plugins/apps/schema_validation.py", line 44, in validate_values
await self.validate_question(
File "/usr/lib/python3/dist-packages/middlewared/plugins/apps/schema_validation.py", line 67, in validate_question
await self.validate_question(
File "/usr/lib/python3/dist-packages/middlewared/plugins/apps/schema_validation.py", line 87, in validate_question
await self.middleware.call(
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 971, in call
return await self._call(
^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 686, in _call
return await methodobj(*prepared_call.args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/plugins/apps/schema_validation.py", line 141, in validate_port_available_on_node
if value in await self.middleware.call('app.used_ports') or value in await self.middleware.call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 971, in call
return await self._call(
^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 686, in _call
return await methodobj(*prepared_call.args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/plugins/ports/ports.py", line 112, in ports_mapping
for attachment in filter(lambda entry: entry['namespace'] != whitelist_namespace, await self.get_in_use()):
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/plugins/ports/ports.py", line 51, in get_in_use
used_ports = await delegate.get_ports()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/plugins/virt/attachments.py", line 69, in get_ports
for instance_id, instance_ports in (await self.middleware.call('virt.instance.get_ports_mapping')).items():
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 971, in call
return await self._call(
^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 686, in _call
return await methodobj(*prepared_call.args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/plugins/virt/instance.py", line 556, in get_ports_mapping
for instance in await self.middleware.call('virt.instance.query', filters or []):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 971, in call
return await self._call(
^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 686, in _call
return await methodobj(*prepared_call.args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 174, in nf
return await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/plugins/virt/instance.py", line 133, in query
'netmask': int(address['netmask']),
^^^^^^^^^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: ''

Session ID: 44be969c-d9f9-f74b-6aec-7c9100c4d63a

Problem/Justification

None

Impact

None

Activity

Show:

Bug Clerk February 26, 2025 at 2:33 PM

This issue has now been closed. Comments made after this point may not be viewed by the TrueNAS Teams. Please open a new issue if you have found a problem or need to re-engage with the TrueNAS Engineering Teams.

Bug Clerk February 26, 2025 at 2:33 PM

This was already reported and should be resolved in RC.1. Let us know if it still happens after RC.1 is out. Thanks.

Michelle Johnson February 26, 2025 at 2:16 PM

Thank you for your reply, !

This ticket is now in the queue for review. An Engineering representative will update with further details or questions in the near future.

Sascha Picchiantano February 26, 2025 at 1:57 PM

Hello Michelle,

the error occurs on any app I try to update. Right now, updates for Plex, adguard-home and transmission are available, they all fail.

These apps were all installed before the update to the 25.04 beta and had no issues updating prior to the upgrade.

I did not enabled any ACLs in the wizard.

In the error message, I noticed errors related to a network interface that is no longer in use. I just deleted that network interface, and now everything is working! So the issue is fixed for me, but you might still want to let the devs know about this: When there are network interfaces that no longer correspond to a physical NIC, the updates fail.

Michelle Johnson February 26, 2025 at 1:48 PM

Thank you for your report, !

Which app(s) are you trying to update?

When you configured the apps, did you set up permissions using he install wizard Enable ACL option? If yes, did you select the Force Flag option?

Not Applicable
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Fix versions

Priority

More fields

Katalon Platform

Created February 26, 2025 at 12:37 PM
Updated February 26, 2025 at 2:33 PM
Resolved February 26, 2025 at 2:33 PM