Faces only detected on newly added photos?
I just updated my Unraid Docker Compose config to use the Git Hub repositiory, from the old docker hub respository because I noticed facial recognition wasn't working. It is working now, but only on newly added photos. How do I trigger it to run on my existing library?
40 Replies
Try running the "missing" job from the admin panel
thanks, just realized my Oauth login is not an admin. Is there any way to make it so?
You would need to edit the user in the database
I was afraid of that. I was trying these steps to reset my admin password (before I remembered where I had saved it) https://documentation.immich.app/docs/administration/server-commands I could connect to the immich_server container CLI but none ofthe commands work
Server Commands | Immich
The immich-server docker image comes preinstalled with an administrative CLI (immich-admin) that supports the following commands:
sh: 2: immich-admin: not found
I think there's a bug there but not sure what the exact situation was again. Try going up a folder maybe?
cd ..
cd
ls -al
total 12
drwx------ 1 root root 70 Aug 17 03:59 .
drwxr-xr-x 1 root root 204 Aug 28 20:26 ..
-rw-r--r-- 1 root root 571 Apr 10 2021 .bashrc
drwx------ 1 root root 136 Jul 28 02:37 .gnupg
drwxr-xr-x 1 root root 68 Aug 26 23:33 .npm
-rw-r--r-- 1 root root 161 Jul 9 2019 .profile
-rw-r--r-- 1 root root 165 Aug 17 03:59 .wget-hsts
no /usr folder
Inside the container
I believe that is inside the container
Which image are you using?
docker compose for unraid
ghrc
ghcr.io/immich-app/immich-server?
š¤
yes
Not sure then
@jrasm91 do you remember how the bug with the admin cli went again?
There have been a few. One is you can't have arguments in the bin section in the package.json, one is it wasn't being linked properly, etc. You can always manually call the start.sh script. I think it is just
start.sh admin-cli reset-password
or whatever the command is.I think SH is already running
but no other commands work, I just get sh: not found

this is accessing the container CLI directly through the unraid interface, but I get the same behavior when I connect to it through the unraid host CLI via docker exec
trying to make my oauth user an admin
You're running cd with no arguments, which will take you to the user home directory, and the script doesn't exist there
thanks. I was able to navigate to /usr/src/app
i see start.sh listed but it says not found when I type it

start.sh admin-cli reset-password also says not found
You need to add
./
in front to run a script
./start.sh
thank you

still not figuring out the syntax to use
and also unclear how to edit the oauth user in the database to make them an admin
I think the idea is you could reset the admin password to just login and run the jobs with that account
I was able to log in as the admin user to run the jobs, but I would like to give my primary (oauth) user admin priviliges so that I don't have to switch accounts to perform admin functions in the future
The only way to do that is to run a sql update in the database
Thank you, any idea how I would do that? Would be nice if there were a check box in the user management tab when logged in to select "admin" next to any user you want to have that access
Yeah, we have some room for improvement to make the "admin" stuff more flexible.
Can you attach to the docker immich database/postgres container?
yes I can access the CLI for the postgres container
I think that should work
there is no issue having multiple admin users, correct?
There are quite a few places in the code we make sure only one admin exists. It may or may not cause issues.
It should be fine, but worts case you might not be able to update your profile/name or something like that.
ERROR: column "[email protected]" does not exist
I think I copied the wrong line. The email needs to be in single quotes. I made that mistake as well.
lol

that worked beautifully, thank you!
I went ahead and removed admin from the original just to be safe
Sweet