Portainer app upgrade error

After updating to 25.04.01 this morning, all apps I have running showed up as “Upgrade available”; which I’m pretty sure is due to the new “TrueNAS apps can get their own IP”. All apps updated successfully except Portainer. I get no log output in the lifecycle log; only in the running tasks page. I get this:

[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 <module>
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'

I do NOT have anything specified, nor is the “Tunnel” option enabled in the configuration of the app.

Not urgent, so I’m just running the last successful version (I think it’s 1.3.29).

Fix for this incoming here