password reset error
Hello ,
After a restore of my db on a new instance , i'm not able to login anymore .
So i was looking to reset user password
I tried immich reset-admin-password
and immich-admin resert-admin-password
but none of them worked as you can see on screenshot


31 Replies
I'm on 0.40.2 on the server dock
Hmm. I wonder if you should figure out the problem with the restore. But if not. Does this work?

Are you running this in the immich-server docker container?
i'm on this image : https://github.com/imagegenius/docker-immich/pkgs/container/immich
GitHub
Build software better, together
GitHub is where people build software. More than 100 million people use GitHub to discover, fork, and contribute to over 330 million projects.
You'd have to ask @martabal then. Not sure if something broke in the all in one image with recent changes.
Possibly related to https://github.com/immich-app/immich/pull/3503
ok thak you i'll take a look to this pr
Looks like this needs to be updated:
https://github.com/imagegenius/docker-immich/blob/main/root/usr/local/bin/immich-admin#L2
You should be able to reset it still though. These things are just aliases.
Can you try
that's working 🙂
thank you 🙂
humm my file are all blurry now ahah
check your mount point
ok ty
blurry image are in database and it cant load full picture from mounts ?
Correct, full picture are read from the file system
so that if there is no file to be read, it will not rendered
We store a hash to make previews like that load faster and then transition to the thumbnail, which is read from disk.
So yeah, the path in the database for the thumbnails probably mismatches what you have mounted now. Also, you may or may not be able to download/access the originals either.
In the database i got path like " upload/library/Thomas/2022/03/PXL_20220320_142738443.jpg "
immich look in a relative path , or it's /upload ?
upload is relative path in the container
Will be fixed in a couple of hours !
ah this is AIO
Our
IMMICH_MEDIA_LOCATION
is set to /photos
🤔Are you doing a restore from an similar installation? Or from a docker compose version?
i was on a docker-compose template , and migrate it to cosmos ( https://github.com/azukaar/Cosmos-Server )
:BO_yangho:
my man you might have to ask the guys in Cosmo for help here
it still docker compose install
Well, we made a script when we moved from using ./upload to /photos
GitHub
docker-immich/root/defaults/migrate.py at main · imagegenius/docker...
Monolithic (Single) Docker Container for Immich. Contribute to imagegenius/docker-immich development by creating an account on GitHub.
how do i use it ?
Do a backup of your database first
i got one from the migration 🙂
Restoring from a backup so probably not needed.
execute
apt-get update && apt-get install -y psycopg2-binary
inside your docker
and then execute the python scripti can also do sql by myself no ?
done in sql , work like a charm 🙂
thank you again
Yes of course !
Perfect !
It's out, update your image and it should be fixed