Unable to install Planka - migration container exits with error (exit 1) on fresh install

Hello,

I’m trying to install the Planka app, but it seems like a fresh installation is failing due to the migration service. This is not an upgrade — it’s a brand new install.

I’m wondering what I should do about this.

I’d also like to know whether the migration-related information on Market Apps “Planka“ has any impact on fresh installations.

The log is as follows:

Failed 'up' action for 'planka' app:  Network ix-planka_ix-internal-planka-net  Creating\n Network ix-planka_ix-internal-planka-net  Created\n Container ix-planka-permissions-1  Creating\n Container ix-planka-permissions-1  Created\n Container ix-planka-postgres_upgrade-1  Creating\n Container ix-planka-postgres_upgrade-1  Created\n Container ix-planka-postgres-1  Creating\n Container ix-planka-postgres-1  Created\n Container ix-planka-migration-1  Creating\n Container ix-planka-migration-1  Created\n Container ix-planka-planka-1  Creating\n Container ix-planka-planka-1  Created\n Container ix-planka-permissions-1  Starting\n Container ix-planka-permissions-1  Started\n Container ix-planka-permissions-1  Waiting\n Container ix-planka-permissions-1  Exited\n Container ix-planka-postgres_upgrade-1  Starting\n Container ix-planka-postgres_upgrade-1  Started\n Container ix-planka-postgres_upgrade-1  Waiting\n Container ix-planka-permissions-1  Waiting\n Container ix-planka-permissions-1  Exited\n Container ix-planka-postgres_upgrade-1  Exited\n Container ix-planka-postgres-1  Starting\n Container ix-planka-postgres-1  Started\n Container ix-planka-permissions-1  Waiting\n Container ix-planka-postgres-1  Waiting\n Container ix-planka-permissions-1  Exited\n Container ix-planka-postgres-1  Healthy\n Container ix-planka-migration-1  Starting\n Container ix-planka-migration-1  Started\n Container ix-planka-postgres-1  Waiting\n Container ix-planka-migration-1  Waiting\n Container ix-planka-permissions-1  Waiting\n Container ix-planka-permissions-1  Exited\n Container ix-planka-postgres-1  Healthy\n Container ix-planka-migration-1  service "migration" didn't complete successfully: exit 1\nservice "migration" didn't complete successfully: exit 1\n

Thank you :slight_smile:

I’m not sure why, but when I set the Data Storage path to Host Path, I get the error mentioned above. However, if I set it to ixVolume, the installation completes successfully.

Could anyone explain why Host Path doesn’t work in this case? Any advice would be greatly appreciated!

Did you set permissions for user netdata (UID 999) on the hostpaths? That’s needed for the postgres container, because postgres fails to run as any other user then uid 999. And since UID 999 in truenas is the buildin netdata user you have to give that one permission.

Like @LarsR said, usually if it will install on ixVolume but not on host paths it’s a permissions problem. Often this is a postgres issue. You can try assigning 999 or using the Automatic Permissions checkbox for the postgres host path. I’m not positive in this case with the migration error, but then again I’ve never installed Planka so I don’t have a lot to go on.

Planka | TrueNAS Apps Market says to select Remove Deprecated Storage but it looks like that won’t actually cause anything to happen until after the deprecation period. You’ll also need 568/Apps permissions on all the other datasets.