[BUG] Usage of reset-password-admin #474

Closed
opened 2026-02-04 20:42:52 +03:00 by OVERLORD · 5 comments
Owner

Originally created by @ghost on GitHub (Dec 8, 2022).

Describe the bug
I'm trying to find a way to reset the admin password without nuking the docker volume. I found this #928 commit that was merged and can find the .js file under /usr/src/app/dist/apps/cli/src/commands called reset-admin-password.command.js. However, I don't know how to call it. It's probably simple to do but I have no idea how.

For info, I used the following command to enter the immich-server:release image:
docker exec -it 0ac7cd4011fd sh

Originally created by @ghost on GitHub (Dec 8, 2022). <!-- Note: Please search to see if an issue already exists for the bug you encountered. --> **Describe the bug** I'm trying to find a way to reset the admin password without nuking the docker volume. I found this #928 commit that was merged and can find the .js file under `/usr/src/app/dist/apps/cli/src/commands` called `reset-admin-password.command.js`. However, I don't know how to call it. It's probably simple to do but I have no idea how. For info, I used the following command to enter the immich-server:release image: `docker exec -it 0ac7cd4011fd sh`
Author
Owner

@jrasm91 commented on GitHub (Dec 8, 2022):

I believe it's just "immich reset-admin-password"

@jrasm91 commented on GitHub (Dec 8, 2022): I believe it's just "immich reset-admin-password"
Author
Owner

@ghost commented on GitHub (Dec 8, 2022):

There's no executable called immich in any of the docker images:

/usr/src/app # which immich
/usr/src/app # immich
sh: immich: not found
/usr/src/app # 

Here are the images running:

CONTAINER ID   IMAGE                                        COMMAND                  CREATED       STATUS       PORTS                                       NAMES
f95d1097e34e   altran1502/immich-proxy:release              "/docker-entrypoint.…"   3 hours ago   Up 3 hours   0.0.0.0:2283->8080/tcp, :::2283->8080/tcp   immich_proxy
0ac7cd4011fd   altran1502/immich-server:release             "/bin/sh ./start-ser…"   3 hours ago   Up 3 hours   3001/tcp                                    immich-immich-server-1
548a8fd57f85   altran1502/immich-server:release             "/bin/sh ./start-mic…"   3 hours ago   Up 3 hours   3001/tcp                                    immich-immich-microservices-1
17a3b11f0198   altran1502/immich-machine-learning:release   "/bin/sh ./entrypoin…"   3 hours ago   Up 3 hours                                               immich-immich-machine-learning-1
a538d7a16830   postgres:14                                  "docker-entrypoint.s…"   3 hours ago   Up 3 hours   5432/tcp                                    immich_postgres
13cd2c2c21ab   altran1502/immich-web:release                "/bin/sh ./entrypoin…"   3 hours ago   Up 3 hours   3000/tcp                                    immich-immich-web-1
c460671955ec   redis:6.2                                    "docker-entrypoint.s…"   3 hours ago   Up 3 hours   6379/tcp                                    immich_redis
@ghost commented on GitHub (Dec 8, 2022): There's no executable called `immich` in any of the docker images: ``` /usr/src/app # which immich /usr/src/app # immich sh: immich: not found /usr/src/app # ``` Here are the images running: ``` CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES f95d1097e34e altran1502/immich-proxy:release "/docker-entrypoint.…" 3 hours ago Up 3 hours 0.0.0.0:2283->8080/tcp, :::2283->8080/tcp immich_proxy 0ac7cd4011fd altran1502/immich-server:release "/bin/sh ./start-ser…" 3 hours ago Up 3 hours 3001/tcp immich-immich-server-1 548a8fd57f85 altran1502/immich-server:release "/bin/sh ./start-mic…" 3 hours ago Up 3 hours 3001/tcp immich-immich-microservices-1 17a3b11f0198 altran1502/immich-machine-learning:release "/bin/sh ./entrypoin…" 3 hours ago Up 3 hours immich-immich-machine-learning-1 a538d7a16830 postgres:14 "docker-entrypoint.s…" 3 hours ago Up 3 hours 5432/tcp immich_postgres 13cd2c2c21ab altran1502/immich-web:release "/bin/sh ./entrypoin…" 3 hours ago Up 3 hours 3000/tcp immich-immich-web-1 c460671955ec redis:6.2 "docker-entrypoint.s…" 3 hours ago Up 3 hours 6379/tcp immich_redis ```
Author
Owner

@jrasm91 commented on GitHub (Dec 8, 2022):

It should work on the immich-server, but you might have to run "npm link" first.

@jrasm91 commented on GitHub (Dec 8, 2022): It should work on the immich-server, but you might have to run "npm link" first.
Author
Owner

@jrasm91 commented on GitHub (Dec 8, 2022):

Basically, there should be a bin folder with a script that launches the file you mentioned in the OP using node. It's supposed to be accessible via "immich" though.

@jrasm91 commented on GitHub (Dec 8, 2022): Basically, there should be a bin folder with a script that launches the file you mentioned in the OP using node. It's supposed to be accessible via "immich" though.
Author
Owner

@ghost commented on GitHub (Dec 8, 2022):

Yup, the npm link then immich reset-admin-password worked! Thanks for your help.

@ghost commented on GitHub (Dec 8, 2022): Yup, the `npm link` then `immich reset-admin-password` worked! Thanks for your help.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#474