Immich server exiting with password fail error after upgrade and storage configuration change

Dear all,
I am on TrueNas community version 25.04.2.3.I am running immich as an app for my family for almost 18 months. I recently upgraded Immich from app version 1.98.1 to app version 2.0. As the support for old storage configuration no more available , I followed the steps provided at hxxps://docs.immich.app/install/truenas/#migration-from-old-storage-configuration while keeping the old datasets. I basically copied the db from old configuration to another dataset in same hierarchy and added external volumes.

Now, If I try to start the app the immich server is exiting with error "PostgresError: password authentication failed for user "immich", stack: PostgresError: password authentication failed for user "immich"

While upgrading I noticed that the old version was running under user and group 0. In the new version I have tried running under both 0 and 568.

Here is the current metadata

Could you please guide on what can I do to salvage the app.

The postgres dataset in particular needs to have full permissions for user:group 999:999 (netdata:docker) or to use the automatic permissions checkbox