24.10. Electric Eel WG Easy App migration failed

Hello,

I have upgraded a system to 24.10. but the migration from the App ‘WG Easy’ failed. It’s the only installed app. Manually running the migration script gives this error:

[{"name": "wg-easy", "error": "Failed to migrate config: Failed to migrate config: Traceback (most recent call last):\n  File \"/mnt/.ix-apps/truenas_catalog/trains/stable/wg-easy/1.0.21/migrations/migrate_from_kubernetes\", line 55, in <module>\n    print(yaml.dump(migrate(yaml.safe_load(f.read()))))\n                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/mnt/.ix-apps/truenas_catalog/trains/stable/wg-easy/1.0.21/migrations/migrate_from_kubernetes\", line 19, in migrate\n    \"external_host\": config[\"wgConfig\"][\"host\"],\n                     ~~~~~~^^^^^^^^^^^^\nKeyError: 'wgConfig'\n", "successfully_migrated": false}]

It seems to be a bug in the config? How can I fix this?

Looking forward for some hints on how to fix this.
Thank you!

Are there any more details in /var/log/app_lifecycle.log?

No, this file is empty.

Actually, this suggests that your version of WG Easy had not been updated for some time before attempting to migrate, which would have caused the migration to fail. You could either fresh install the app on 24.10 now that you’re here or possibly you could revert to a 24.04 boot environment, update the app to the latest version, then try to upgrade to 24.10 and migrate again. This might run into errors if some cruft is left in the .ix-apps dataset from the first migration attempt though.