-
I recently upgraded to v1.102.3 and undertook the steps to remove pgdata and add location etc:
I had already setup immich_db_dumper and had plenty of backups. However when I go to restore the backup, when I start Immich it just brings me to the Admin Registration page "Since you are the first user on the system, you will be assigned as the Admin and are responsible for administrative tasks, and additional users will be created by you." I have restored the backup by undertaking the following:
Can anyone suggest how to restore? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 7 replies
-
Hi @conorlap , did you fix it? I have the same issue. Thanks! |
Beta Was this translation helpful? Give feedback.
-
I had the same issue. My current workaround is to copy the DB DUMP into the container and run the commands inside the container. |
Beta Was this translation helpful? Give feedback.
-
I'm having the same issue. The restore went well by every indication. There were logs listing various tables etc being updated in the DB, and nothing that looked like an error. The database directory looks to be about the right size (2.6G) but when I join the postgres container and run some database queries (for example, some of them found here: https://immich.app/docs/guides/database-queries/ ) they all return nothing - zero rows. So by all indications the DB is completely empty - at least, any tables with relevant information are empty. All the databases and tables look to be there - just all are empty. This is checking after restoring the DB and then running immich the first time. So (as a guess) for some reason Immich didn't realize there was anything in the database and so initialized everything again. |
Beta Was this translation helpful? Give feedback.
-
OK, I think the problem with restoring the DB files is as simple as, the database name (immich) needs to be specified in the psql command. At least - after making this change I was able to import the DB with no apparent errors, and then start immich and log in. This is the line I successfully used - note the addition of -d immich
Now I am having different problems - errors trying to view photos & various pages. I believe this is due to mismatches between the Immich version of my saved DBs and the current version, but we'll see. I have been traveling and so haven't had time to keep up with recent Immich upgrades - then some of the DB backups failed so I'm using one a few days older than the very latest. Altogether I'm not really sure which Immich version I was running on that day. |
Beta Was this translation helpful? Give feedback.
-
Glad it worked! For future reference, the issue here is using an outdated version of the backup script. Note the addition of POSTGRES_CLUSTER here: https://immich.app/docs/administration/backup-and-restore/ |
Beta Was this translation helpful? Give feedback.
OK, I think the problem with restoring the DB files is as simple as, the database name (immich) needs to be specified in the psql command. At least - after making this change I was able to import the DB with no apparent errors, and then start immich and log in.
This is the line I successfully used - note the addition of -d immich
Now I am having different pr…