I had a hardware failure and moved all disks into a new system. TrueNAS is running again.
But I also had a couple of apps running (pihole, seafile, immich). And they’re all gone from the apps view. Not even a hint that they existed (I can see the configuration are still on disk).
I’m not sure if this is connected to the move to the new system, but I don’t see a direct connection. I didn’t reinstall TrueNAS nor manually trigger any update or anything. As far as I can tell, the state of the system hasn’t changed except that it now runs on a different processor
I got this alert:
App(s) failed to migrate, please check /var/log/app_migrations.log for more details.
That file’s contents
[2025/01/15 13:57:50] (DEBUG) app_migrations.migrate():250 - Migration details for 'system-update--2025-01-15_12:45:47' backup on 'Data' pool
[2025/01/15 13:57:50] (DEBUG) app_migrations.migrate():256 - 'pihole' app failed to migrate successfully:
'Failed to migrate config: Failed to migrate config: Traceback (most recent call last):
File "/mnt/.ix-apps/truenas_catalog/trains/stable/pihole/1.2.6/migrations/migrate_from_kubernetes", line 62, in <module>
print(yaml.dump(migrate(yaml.safe_load(f.read()))))\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/.ix-apps/truenas_catalog/trains/stable/pihole/1.2.6/migrations/migrate_from_kubernetes", line 17, in migrate
dhcp_enabled = config["piholeNetwork"].get("dhcp", {}).get("enabled", False)
~~~~~~^^^^^^^^^^^^^^^^^
KeyError: \'piholeNetwork\'
'
Again, I don’t know what might have triggered this migration. But apparently it didn’t expect the previous app configuration.
TrueNAS version is ElectricEel-24.10.2.2
Previously installed version of the pihole app was 1.0.25
How can I get my apps up and running again?
I figured I could try editing the migration script, but it seems the expected config is quite far off from what I have, so I’m not sure if it’s much help.
I suppose could reinstall the apps? But how would I keep/restore the configuration?