Latest updates today of frigate and portainer fail

Error:

[EFAULT] Failed to execute ‘ip_port_migration’ migration: Traceback (most recent call last): File “/mnt/.ix-apps/app_configs/portainer/versions/1.4.0/migrations/ip_port_migration”, line 29, in print(yaml.dump(migrate(yaml.safe_load(f.read())))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/mnt/.ix-apps/app_configs/portainer/versions/1.4.0/migrations/ip_port_migration”, line 15, in migrate “port_number”: values[“network”][“tunnel_port”], ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^ KeyError: ‘tunnel_port’

[EFAULT] Failed to execute ‘ip_port_migration’ migration: Traceback (most recent call last): File “/mnt/.ix-apps/app_configs/frigate/versions/1.2.0/migrations/ip_port_migration”, line 51, in print(yaml.dump(migrate(yaml.safe_load(f.read())))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/mnt/.ix-apps/app_configs/frigate/versions/1.2.0/migrations/ip_port_migration”, line 16, in migrate “bind_mode”: “published” if values[“network”][“enable_no_auth”] else “”, ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^ KeyError: ‘enable_no_auth’

2 Likes

I am getting the same behaviour. Hopefully it is addressed soon :slight_smile:

1 Like

My Log from todays Portainer update fail:

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 622, 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 619, 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 101, in wrapped
result = func(*args)
^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/middlewared/plugins/apps/upgrade.py”, line 121, in upgrade
config = self.upgrade_values(app, upgrade_version)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/middlewared/plugins/apps/upgrade.py”, line 279, in upgrade_values
raise CallError(f’Failed to execute {migration_file_basename!r} migration: {stderr.decode()}')
middlewared.service_exception.CallError: [EFAULT] Failed to execute ‘ip_port_migration’ migration: Traceback (most recent call last):
File “/mnt/.ix-apps/app_configs/portainer/versions/1.4.0/migrations/ip_port_migration”, line 29, in
print(yaml.dump(migrate(yaml.safe_load(f.read()))))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/mnt/.ix-apps/app_configs/portainer/versions/1.4.0/migrations/ip_port_migration”, line 15, in migrate
“port_number”: values[“network”][“tunnel_port”],
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
KeyError: ‘tunnel_port’

Just wanted to +1 this issue.

The workaround I found was to explicitly set a Tunnel value for Portainer

network:
  tunnel_port: 9000 

Set it to a random open port and the migration should work

Thanks for that, bit of a noob here, where do I put those settings?

1 Like

Go to the app and click edit and find the section called Network. There’s going to be a check box and then an input box for the port number and then save.

Thanks, I have changed the ports, but no luck…

Check “Tunnel”, fill with a random port on “Tunnel port”, Update app

@Emo awesome, thank you!

Fixes incoming here

Nice :slight_smile:

The latest updates of portainer and frigate are working.
Thank you.