Seeing this error, trying to get to the bottom of it.
Unsure if this Host Path ACLs note is applicable because, I see no ACL Options section or a Force Flag anywhere in the plex app settings ( Name: plex, App Version: 1.41.1.9057, Chart Version:2.0.15, Catalog:TrueNAS, Train: charts)
Host Path ACLs Users with applications installed on 24.04 using host path volume mounts and ACL Entries defined in the app configuration screen must go to the app edit screen and set the Force Flag checkbox under ACL Options before updating to 24.10. This ensures the app fully migrates and doesn’t encounter issues when the mount point has existing data.
Clarification on this, does the poolname here mean just the pool or should it be the dataset path, i.e. should poolname=tank or poolname=tank/plainroot/ix-applications
In the event of a migration failure, configuration data for applications that do not automatically migrate is retained in the ixapplications dataset. You can re-initiate migration of previously-installed Kubernetes apps to Docker at any time after upgrading to Electric Eel. From a shell session enter midclt call -job k8s_to_docker.migrate poolname , where poolname is the name of the applications pool.
[2024/11/09 01:11:49] (DEBUG) app_migrations.migrate():241 - ‘plex’ app failed to migrate successfully: ‘Failed to migrate config: Failed to migrate config: Traceback (most recent call last):\n File “/mnt/.ix-apps/truenas_catalog/trains/stable/plex/1.0.28/migrations/migrate_from_kubernetes”, line 70, in \n print(yaml.dump(migrate(yaml.safe_load(f.read()))))\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File “/mnt/.ix-apps/truenas_catalog/trains/stable/plex/1.0.28/migrations/migrate_from_kubernetes”, line 20, in migrate\n for env in config[“plexConfig”].get(“additionalEnvs”, ):\n ~~~~~~^^^^^^^^^^^^^^\nKeyError: 'plexConfig'\n’
I’ve read that it’s an issue with not updating the app prior to doing the update. Is there a way to use the old config that’s still on the filesystem so I don’t have to reset it up?
Figured out how to fix it but it’s a bit of a pain if you’ve already started using Electric Eel in production.
Delete the Plex app in your 24.10 install
Go to Boot → then click “activate” on your old version (in this case 24.04.3)
Then reboot your NAS
Once back in the web portal go back to the Boot Environments menu you were just in
Delete the 24.10 boot environment
Go Apps and make sure that your Plex app is 100% up to date
Then go back and do the update once more
This will force the remigration from k8s to docker.
After the migration is complete again, to confirm go to shell under System → Shell
Run the command sudo less /var/log/app_migrations.log and it should all come back successful.
I have had the same issue, this procedure however did not work for me and the error message remained the same. Beloe are the steps I took to migrate plex manually:
I did not delete the plex app on 24.10 because for me the apps overview was completely empty after the upgrade
Selected 24.04 as a boot environment and restarted my NAS
Checked that plex was up to date in 24.04 and working without issues; also took screenshots of the “Edit” screen for plex from within the apps overview
Stopped the plex app from apps overview page
Started a shell session (ssh or from the system menu works)
Went to /mnt/app-pool/plex and created a backup of the folder inside (which contains all plex config but no media for playback)
Deleted 24.10 from boot environments and re-ran the upgrade to 24.10
Once upgraded to 24.10, I went to the apps overview and configured plex from scratch, making sure claim-token, and media mount paths (host path in my case) matched my old config exactly
Started plex and checked it was deployed OK and available (no further config done inside plex web app, though)
Stopped plex
Started a shell session
Checked which folders were created for plex by the new ix app system in /mnt/.ix-apps and located the new plex config files inside /mnt/.ix-apps/app_mounts/plex/config
Deleted the files inside /mnt/.ix-apps/app_mounts/plex/config/Library
Extracted my backup taken in step 6 to the Library folder I just cleared
Went to apps overview and started plex
After all this, plex started just fine, retaining all configuration including server registration.