Can't Shut Down Immich Docker Container

I have been struggling for some time now to get my immich server back up and running. What seems the be the problem currently is that immich is not using the correct directory. I was previously using a mounting location that has since changed. Upon updating the the .env file with the new mounting location I would like to now restart the immich docker container but I continuously get errors and permission denied responses from the terminal. I aM the root user and there is no other users on this machine. I have tried docker-compose down as a non su and as su and neither of them work. All that aside, after I have updated the .env file with the new mounting location is immich supposed to automatically switch live or do I have to shut it down and restart? Really would appreciate some one on one help cause frankly I am at my wits end and need a helping hand. Thank you for your time!
No description
25 Replies
Alex Tran
Alex Tran•3y ago
Please follow this step to remove and reinstall docker on your machine https://docs.docker.com/engine/install/ubuntu/
Docker Documentation
Install Docker Engine on Ubuntu
Instructions for installing Docker Engine on Ubuntu
Alex Tran
Alex Tran•3y ago
After that follow the post installation step
Alex Tran
Alex Tran•3y ago
Alex Tran
Alex Tran•3y ago
Then restart your Vm/Computer finally try a fresh Immich instance
adriano.zoino1
adriano.zoino1OP•3y ago
Hi Alex, thanks for responding to my ticket. Unfortunately I have followed the steps provided and I believe I am getting the same errors. I have included the time stamp just to show its not the same picture as before and I am indeed following the steps given.
adriano.zoino1
adriano.zoino1OP•3y ago
No description
adriano.zoino1
adriano.zoino1OP•3y ago
This is after the "restart your Vm/Computer" step you gave hope that provides some insight to keep troublshooting
Alex Tran
Alex Tran•3y ago
have you tried just docker composer instead of docker-compose? If you use the new installation the compose binary is included Did the command help?
adriano.zoino1
adriano.zoino1OP•3y ago
Hi Alex, apologies for the late reply unfortunately they did not seem to make a difference adriano@adriano-MS-7846:~/Documents/immich-app$ docker composer docker: 'composer' is not a docker command. See 'docker --help' seems it doesn't register as a command unless I am doing something incorrect
adriano.zoino1
adriano.zoino1OP•3y ago
I have created a doc with some imsages of me following the steps you have given me and the outputs I hope this is not a huge waste of your time but I really appreciate the help you have been giving me
Alex Tran
Alex Tran•3y ago
I've read through your pdf Let's try something else is there any other application that you run that use docker? Can you try to run that instead or maybe docker compose is even better
Alex Tran
Alex Tran•3y ago
Docker Community Forums
Can not stop Docker Container: permission denied Error
So even when I create a container outside docker-compose and try to stop or kill it it results in the same error. Meaning I can not stop or kill any container. Using docker inspect I found the PID the container was using. Killing this process as root using kill -9 did not work. Eventually I started consulting the docker service and found the li...
Alex Tran
Alex Tran•3y ago
Gist
Fix permission denied when execute stop or kill docker containers o...
Fix permission denied when execute stop or kill docker containers on Ubuntu - fix-permission-docker-kill.sh
Alex Tran
Alex Tran•3y ago
Please try this
adriano.zoino1
adriano.zoino1OP•3y ago
Hi Alex, great news! That seemed to have worked so thank you very much for all the help. Now if you remember in my doc I said if I were to go the route of completely starting over what that would mean for my current user accounts and their respective directories When I attempted to log into my server on the web it said the whole "since you are the first user on this create an admin account" so I assume that means it started all over, so I created a new admin account with the same user credentials But I see none of my photos in my account since I suppose immich doesn't know where to look to find mine or cant bind and old users data with a new one idk Wondering how you think I should proceed
Alex Tran
Alex Tran•3y ago
Correct, if you start over and doesn't map the same volume, directory that you used before Immich doesn't know the older information maybe just create a brand new instance and reupload the file would be the easiest?
adriano.zoino1
adriano.zoino1OP•3y ago
gotcha so if I make new accounts, upload some photos to remake new directories, and then drag over all the image files to that new directory from my old one that should work right? Or does the files have to be uploaded through immich like can I copy the contents from the directory on the server itself
Alex Tran
Alex Tran•3y ago
It has to be uploaded through Immich
adriano.zoino1
adriano.zoino1OP•3y ago
understood
Alex Tran
Alex Tran•3y ago
the application doesn't have the ability to scan the directory yet
adriano.zoino1
adriano.zoino1OP•3y ago
copy that, alright so I got some data to move but other than that I think we are back up and running thanks so much Alec Alex* I really appreciate the help
Alex Tran
Alex Tran•3y ago
No problem my friend I am glad we get this figured out 😄 remember, Google is your best friend hehe Ahem... *Google Search"
adriano.zoino1
adriano.zoino1OP•3y ago
Very true, I tend to get a little nervous with this stuff so I reach out rather quickly but I will try to remeber that for next time thanks!

Did you find this page helpful?