I
Immich•2y ago
Minchaka

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
No description
No description
31 Replies
Minchaka
MinchakaOP•2y ago
I'm on 0.40.2 on the server dock
jrasm91
jrasm91•2y ago
Hmm. I wonder if you should figure out the problem with the restore. But if not. Does this work?
node dist/main admin-cli reset-admin-password
node dist/main admin-cli reset-admin-password
Minchaka
MinchakaOP•2y ago
No description
jrasm91
jrasm91•2y ago
Are you running this in the immich-server docker container?
Minchaka
MinchakaOP•2y ago
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.
jrasm91
jrasm91•2y ago
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
Minchaka
MinchakaOP•2y ago
ok thak you i'll take a look to this pr
jrasm91
jrasm91•2y ago
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
node /app/immich/server/dist/main admin-cli reset-admin-password
node /app/immich/server/dist/main admin-cli reset-admin-password
Minchaka
MinchakaOP•2y ago
that's working 🙂 thank you 🙂 humm my file are all blurry now ahah
Alex Tran
Alex Tran•2y ago
check your mount point
Minchaka
MinchakaOP•2y ago
ok ty blurry image are in database and it cant load full picture from mounts ?
Alex Tran
Alex Tran•2y ago
Correct, full picture are read from the file system so that if there is no file to be read, it will not rendered
jrasm91
jrasm91•2y ago
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.
Minchaka
MinchakaOP•2y ago
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 ?
Alex Tran
Alex Tran•2y ago
upload is relative path in the container
martabal
martabal•2y ago
Will be fixed in a couple of hours !
Alex Tran
Alex Tran•2y ago
ah this is AIO
martabal
martabal•2y ago
Our IMMICH_MEDIA_LOCATION is set to /photos 🤔
jrasm91
jrasm91•2y ago
Are you doing a restore from an similar installation? Or from a docker compose version?
Minchaka
MinchakaOP•2y ago
i was on a docker-compose template , and migrate it to cosmos ( https://github.com/azukaar/Cosmos-Server )
Alex Tran
Alex Tran•2y ago
:BO_yangho: my man you might have to ask the guys in Cosmo for help here
Minchaka
MinchakaOP•2y ago
it still docker compose install
martabal
martabal•2y ago
Well, we made a script when we moved from using ./upload to /photos
martabal
martabal•2y ago
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.
Minchaka
MinchakaOP•2y ago
how do i use it ?
martabal
martabal•2y ago
Do a backup of your database first
Minchaka
MinchakaOP•2y ago
i got one from the migration 🙂
jrasm91
jrasm91•2y ago
Restoring from a backup so probably not needed.
martabal
martabal•2y ago
execute apt-get update && apt-get install -y psycopg2-binary inside your docker and then execute the python script
Minchaka
MinchakaOP•2y ago
i can also do sql by myself no ? done in sql , work like a charm 🙂 thank you again
martabal
martabal•2y ago
Yes of course ! Perfect ! It's out, update your image and it should be fixed

Did you find this page helpful?