I
Immich•2y ago
gabemcg

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
bo0tzz
bo0tzz•2y ago
Try running the "missing" job from the admin panel
gabemcg
gabemcgOP•2y ago
thanks, just realized my Oauth login is not an admin. Is there any way to make it so?
bo0tzz
bo0tzz•2y ago
You would need to edit the user in the database
gabemcg
gabemcgOP•2y ago
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:
gabemcg
gabemcgOP•2y ago
sh: 2: immich-admin: not found
bo0tzz
bo0tzz•2y ago
I think there's a bug there but not sure what the exact situation was again. Try going up a folder maybe? cd ..
gabemcg
gabemcgOP•2y ago
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
bo0tzz
bo0tzz•2y ago
Inside the container
gabemcg
gabemcgOP•2y ago
I believe that is inside the container
bo0tzz
bo0tzz•2y ago
Which image are you using?
gabemcg
gabemcgOP•2y ago
docker compose for unraid ghrc
bo0tzz
bo0tzz•2y ago
ghcr.io/immich-app/immich-server? šŸ¤”
gabemcg
gabemcgOP•2y ago
yes
bo0tzz
bo0tzz•2y ago
Not sure then @jrasm91 do you remember how the bug with the admin cli went again?
jrasm91
jrasm91•2y ago
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.
gabemcg
gabemcgOP•2y ago
I think SH is already running but no other commands work, I just get sh: not found
gabemcg
gabemcgOP•2y ago
No description
gabemcg
gabemcgOP•2y ago
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
bo0tzz
bo0tzz•2y ago
You're running cd with no arguments, which will take you to the user home directory, and the script doesn't exist there
gabemcg
gabemcgOP•2y ago
thanks. I was able to navigate to /usr/src/app i see start.sh listed but it says not found when I type it
gabemcg
gabemcgOP•2y ago
No description
gabemcg
gabemcgOP•2y ago
start.sh admin-cli reset-password also says not found
bo0tzz
bo0tzz•2y ago
You need to add ./ in front to run a script ./start.sh
gabemcg
gabemcgOP•2y ago
thank you
gabemcg
gabemcgOP•2y ago
No description
gabemcg
gabemcgOP•2y ago
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
jrasm91
jrasm91•2y ago
I think the idea is you could reset the admin password to just login and run the jobs with that account
gabemcg
gabemcgOP•2y ago
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
jrasm91
jrasm91•2y ago
The only way to do that is to run a sql update in the database
gabemcg
gabemcgOP•2y ago
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
jrasm91
jrasm91•2y ago
Yeah, we have some room for improvement to make the "admin" stuff more flexible. Can you attach to the docker immich database/postgres container?
gabemcg
gabemcgOP•2y ago
yes I can access the CLI for the postgres container
jrasm91
jrasm91•2y ago
// connect
psql -U postgres -d immich

// list users
select * from "users";

// add admin to a user
update "users" set "isAdmin"=true where "email"='[email protected]';

// remove admin from a user
update "users" set "isAdmin"=false where "email"='[email protected]';
// connect
psql -U postgres -d immich

// list users
select * from "users";

// add admin to a user
update "users" set "isAdmin"=true where "email"='[email protected]';

// remove admin from a user
update "users" set "isAdmin"=false where "email"='[email protected]';
I think that should work
gabemcg
gabemcgOP•2y ago
there is no issue having multiple admin users, correct?
jrasm91
jrasm91•2y ago
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.
gabemcg
gabemcgOP•2y ago
ERROR: column "[email protected]" does not exist
jrasm91
jrasm91•2y ago
I think I copied the wrong line. The email needs to be in single quotes. I made that mistake as well.
jrasm91
jrasm91•2y ago
lol
No description
gabemcg
gabemcgOP•2y ago
that worked beautifully, thank you! I went ahead and removed admin from the original just to be safe
jrasm91
jrasm91•2y ago
Sweet

Did you find this page helpful?