Missing Admin page

I seem to be missing the administrator panel in immich but I can see the storage and server stats (located at the bottom left via web). Any thoughts? Config is v1.41.1
47 Replies
bo0tzz
bo0tzz3y ago
Are you logged in with an admin account?
athornfam2
athornfam2OP3y ago
Very certain I am. Would be another useful feature request too while were talking it out. Under the username we should have an Admin/superuser/user title.
bo0tzz
bo0tzz3y ago
What's the output of http://server/api/user/me?
athornfam2
athornfam2OP3y ago
Hmm. Says false to isAdmin {"id":"65b17c0d-6e83-4388-b048-c279eede769b","email":"[email protected]","firstName":"Matthew","lastName":"Wolf","createdAt":"2022-11-19T00:42:13.692Z","profileImagePath":"","shouldChangePassword":false,"isAdmin":false,"deletedAt":null,"oauthId":""} Weird because that's the only account I would have used.
bo0tzz
bo0tzz3y ago
You can get a list of all the user emails on the instance with this command docker compose exec -it database psql -U postgres -d immich -c 'select email from users;' If you changed DB_USERNAME or DB_DATABASE_NAME then replace the postgres and immich values in that respectively
athornfam2
athornfam2OP3y ago
unknown shorthand flag: 'i' in -it
bo0tzz
bo0tzz3y ago
Should be OK to remove the -it flag. And maybe you need to add a dash to docker-compose
athornfam2
athornfam2OP3y ago
docker-compose exec database immich -U postgres -d immich -c 'select email from users;' ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running? The error I get attempting to run
bo0tzz
bo0tzz3y ago
Do normal docker commands work? Maybe try with sudo?
athornfam2
athornfam2OP3y ago
Okay, went sudo (duh on me) and re-ran the command docker-compose exec database psql -U postgres -d immich -c 'select email from users;' Traceback (most recent call last): File "/usr/bin/docker-compose", line 11, in <module> load_entry_point('docker-compose==1.25.0', 'console_scripts', 'docker-compose')() File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 72, in main command() File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 128, in perform_command handler(command, command_options) File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 522, in exec_command sys.exit(call_docker( File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 1498, in call_docker return subprocess.call(args, env=environment) File "/usr/lib/python3.8/subprocess.py", line 340, in call with Popen(*popenargs, **kwargs) as p: File "/usr/lib/python3.8/subprocess.py", line 858, in init self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.8/subprocess.py", line 1626, in _execute_child env_list.append(k + b'=' + os.fsencode(v)) File "/usr/lib/python3.8/os.py", line 806, in fsencode filename = fspath(filename) # Does type-checking of filename. TypeError: expected str, bytes or os.PathLike object, not NoneType
bo0tzz
bo0tzz3y ago
Uhhh How do you normally manage your docker stuff? Cause this looks pretty broken lol
athornfam2
athornfam2OP3y ago
I mean its been working for a while and I can access all my media/immich interface Just follow the update guide and that's all I do.
bo0tzz
bo0tzz3y ago
So you run the pull command and that works?
athornfam2
athornfam2OP3y ago
root@azr-its-cc-vm-immich:/immich-app# docker-compose pull && docker-compose up -d WARNING: The IMMICH_SERVER_URL variable is not set. Defaulting to a blank string. Pulling immich-web ... done Pulling redis ... done Pulling database ... done Pulling immich-machine-learning ... done Pulling immich-microservices ... done Pulling immich-server ... done Pulling immich-proxy ... done WARNING: The IMMICH_SERVER_URL variable is not set. Defaulting to a blank string. immich_postgres is up-to-date immich_redis is up-to-date immich-app_immich-web_1 is up-to-date immich-app_immich-machine-learning_1 is up-to-date immich-app_immich-server_1 is up-to-date immich-app_immich-microservices_1 is up-to-date immich_proxy is up-to-date Just ran ^
bo0tzz
bo0tzz3y ago
According to https://github.com/docker/compose/issues/7180 that error can be caused by incorrect entries in your .env file Can you give that a check?
athornfam2
athornfam2OP3y ago
I can I set the server url at the bottom in the env file but when doing so the server crashed. Commented the line out and the server works again root@azr-its-cc-vm-immich:/immich-app# docker-compose pull && docker-compose up -d Pulling immich-web ... done Pulling redis ... done Pulling database ... done Pulling immich-machine-learning ... done Pulling immich-microservices ... done Pulling immich-server ... done Pulling immich-proxy ... done Recreating immich-app_immich-web_1 ... Recreating immich-app_immich-web_1 ... done Recreating immich_postgres ... done Recreating immich-app_immich-microservices_1 ... done Recreating immich-app_immich-server_1 ... done Recreating immich-app_immich-machine-learning_1 ... done Recreating immich_proxy ... done root@azr-its-cc-vm-immich:/immich-app# nano .env root@azr-its-cc-vm-immich:/immich-app# docker-compose pull && docker-compose up -d WARNING: The IMMICH_SERVER_URL variable is not set. Defaulting to a blank string. Pulling immich-web ... done Pulling redis ... done Pulling database ... done Pulling immich-machine-learning ... done Pulling immich-microservices ... done Pulling immich-server ... done Pulling immich-proxy ... done WARNING: The IMMICH_SERVER_URL variable is not set. Defaulting to a blank string. immich_redis is up-to-date Recreating immich_postgres ... done Recreating immich-app_immich-web_1 ... done Recreating immich-app_immich-server_1 ... done Recreating immich-app_immich-machine-learning_1 ... done Recreating immich-app_immich-microservices_1 ... done
bo0tzz
bo0tzz3y ago
Can you redact sensitive values like the jwt secret and then paste the full env file here?
jrasm91
jrasm913y ago
Another option would be change the tag for the server image from release to 1335 and then try running the reset admin password command, which should print out the email for the admin user.
bo0tzz
bo0tzz3y ago
The PUBLIC_LOGIN_PAGE_MESSAGE is empty, can you comment that out and then try the docker-compose exec again?
athornfam2
athornfam2OP3y ago
still the same errors as before
jrasm91
jrasm913y ago
The issue is your account is not an admin, right? So either your installation doesn't have an admin, or you're logged in with a different account that isn't the admin. It seems like the easiest way to troubleshoot this is to view the database, but the "normal" docker commands to do that aren't working. So you can keep trying to figure out how to connect to the database and run the command or you could install a postgres UI to connect to it via the database port. Out of curiosity, where/how did you deploy immich?
athornfam2
athornfam2OP3y ago
Docker Compose [Recommended] | Immich
Docker Compose is the recommended method to run Immich in production. Below are the steps to deploy Immich with Docker Compose.
athornfam2
athornfam2OP3y ago
Those are the exact instructions I followed a handful of months ago
jrasm91
jrasm913y ago
And you aren't by chance using OAuth are you?
athornfam2
athornfam2OP3y ago
No I'm not using Oauth Pretty much a plain jane install
jrasm91
jrasm913y ago
Have you created multiple users on the instance, or just the one?
athornfam2
athornfam2OP3y ago
It should be just the one but I may have created an [email protected] account to use as a service account. I've tried all the passwords I would have used for that account but none have worked.
jrasm91
jrasm913y ago
If you look in the upload_location folder do you only see one uuid folder?
athornfam2
athornfam2OP3y ago
Yes, only one UID folder exists
jrasm91
jrasm913y ago
Although I suppose you could have created an admin account and never uploaded any pictures to it.
athornfam2
athornfam2OP3y ago
That would be true
jrasm91
jrasm913y ago
I'd probably try to spin up a postgres GUI to look in the database users table.
athornfam2
athornfam2OP3y ago
Guess i'll have to when I get some time.
jrasm91
jrasm913y ago
Or, like I said, you try running the container from this PR (https://github.com/immich-app/immich/pull/1335), which changes the reset-admin-password command to print the admin email address.
athornfam2
athornfam2OP3y ago
I'm headed out here so.. I'll see what I can dig up and post here Well whatever we were doing borked my install until the latest docker container came out. Whatver happened I kept getting login errors.
jrasm91
jrasm913y ago
You upgraded to the release that came out today?
athornfam2
athornfam2OP3y ago
Yes, I did Now I can get past the login screen
jrasm91
jrasm913y ago
Were you having issues with the login screen?
athornfam2
athornfam2OP3y ago
Not until we started to mess with the env and docker file commenting out the public message stopped immich from working. very odd behavior. Almost feel like its better to just burn the system and start from scratch I'm not really missing out on anything I would just have to build another Azure VM and upload all my photos on a 10 mbps pipe
jrasm91
jrasm913y ago
That's certainly an option. There's a new command now to list the users from the database. https://immich.app/docs/features/server-commands
Server Commands | Immich
The immich-server docker image comes preinstalled with an administrative CLI (immich) that supports the following commands:
jrasm91
jrasm913y ago
If everything is running the latest release tag, you should be able to use the command to find the admin account and reset the password if necessary
athornfam2
athornfam2OP3y ago
that worked. Although I had to change my docker image due to it creating.. only thing that didn't match the docks guess I did have a second account that was admin that I forgot to add to my password manager
jrasm91
jrasm913y ago
Which one and what did you change it to? Sweet, that's good news.
athornfam2
athornfam2OP3y ago
WARNING: The IMMICH_SERVER_URL variable is not set. Defaulting to a blank string. immich_redis is up-to-date immich_postgres is up-to-date Recreating immich-app_immich-web_1 ... done Recreating immich-app_immich-machine-learning_1 ... done Recreating immich-app_immich-microservices_1 ... done Recreating immich-app_immich-server_1 ... done Recreating immich_proxy ... done root@azr-its-cc-vm-immich:/immich-app# immich list-users immich: command not found root@azr-its-cc-vm-immich:/immich-app# docker exec -it immich_server sh Error: No such container: immich_server root@azr-its-cc-vm-immich:/immich-app# docker exec -it immich-server sh Error: No such container: immich-server root@azr-its-cc-vm-immich:/immich-app# docker exec -it immich-app_immich-server_1 sh That's a print out
jrasm91
jrasm913y ago
Oh yes The "immich_server" in the command when you connect to the container may be different depending on what your container is actually named. We've changed the docker compose file to give them all standard names now so in the future the command will more likely "just work", but your container name was obviously different. So you have your admin account again, the list users can worked, and you can see the administration page and settings now?
athornfam2
athornfam2OP3y ago
Yep all is working now in that aspect. Saved the new creds now thanks

Did you find this page helpful?