I
Immichβ€’5mo ago
Weathon

Migrating from Windows Docker -> Linux Docker

So i just got my Beelink and want to move my Immich instance. I understand that backup & restore is the way to go. My setup is this: Beelink Mini S 13 with a 500 GB SSD and Ubuntu 24.04 installed + an extra 2 TB M2 SSD. The currently problem is that i get the following error when starting the immich_server:
(HTTP code 500) server error - Mounts denied: The path /media/joshua/Data/immich-app/postgres is not shared from the host and is not known to Docker. You can configure shared paths from Docker -> Preferences... -> Resources -> File Sharing. See https://docs.docker.com/ for more info.
(HTTP code 500) server error - Mounts denied: The path /media/joshua/Data/immich-app/postgres is not shared from the host and is not known to Docker. You can configure shared paths from Docker -> Preferences... -> Resources -> File Sharing. See https://docs.docker.com/ for more info.
46 Replies
Immich
Immichβ€’5mo ago
:wave: Hey @Weathon, Thanks for reaching out to us. Please carefully read this message and follow the recommended actions. This will help us be more effective in our support effort and leave more time for building Immich :immich:. References - Container Logs: docker compose logs docs - Container Status: docker ps -a docs - Reverse Proxy: https://immich.app/docs/administration/reverse-proxy - Code Formatting https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline#h_01GY0DAKGXDEHE263BCAYEGFJA Checklist I have... 1. :ballot_box_with_check: verified I'm on the latest release(note that mobile app releases may take some time). 2. :ballot_box_with_check: read applicable release notes. 3. :ballot_box_with_check: reviewed the FAQs for known issues. 4. :ballot_box_with_check: reviewed Github for known issues. 5. :ballot_box_with_check: tried accessing Immich via local ip (without a custom reverse proxy). 6. :ballot_box_with_check: uploaded the relevant information (see below). 7. :ballot_box_with_check: tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable (an item can be marked as "complete" by reacting with the appropriate number) Information In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider: - Your docker-compose.yml and .env files. - Logs from all the containers and their status (see above). - All the troubleshooting steps you've tried so far. - Any recent changes you've made to Immich or your system. - Details about your system (both software/OS and hardware). - Details about your storage (filesystems, type of disks, output of commands like fdisk -l and df -h). - The version of the Immich server, mobile app, and other relevant pieces. - Any other information that you think might be relevant. Please paste files and logs with proper code formatting, and especially avoid blurry screenshots. Without the right information we can't work out what the problem is. Help us help you ;) If this ticket can be closed you can use the /close command, and re-open it later if needed.
Weathon
WeathonOPβ€’5mo ago
You can ignore the 'FastSSD1TB' it's just an external drive
Weathon
WeathonOPβ€’5mo ago
Immich
Immichβ€’5mo ago
Successfully submitted, a tag has been added to inform contributors. :white_check_mark:
Weathon
WeathonOPβ€’5mo ago
My current suspicion is that i somehow mounted my second, internal SSD (nvme0n1) somehow wrong? I never did much with linux so this is brand new to me.
Mraedis
Mraedisβ€’5mo ago
I think you might have snap docker
Weathon
WeathonOPβ€’5mo ago
What's snap docker? πŸ˜„
Mraedis
Mraedisβ€’5mo ago
something terrible
Weathon
WeathonOPβ€’5mo ago
I installed docker desktop
Mraedis
Mraedisβ€’5mo ago
oh phfew let me put my kid to bed and I'll be right there
Weathon
WeathonOPβ€’5mo ago
thank you!
Mraedis
Mraedisβ€’5mo ago
Can check with sudo systemctl status snap.docker.dockerd.service
Weathon
WeathonOPβ€’5mo ago
Unit snap.docker.dockerd.service could not be found.
Weathon
WeathonOPβ€’5mo ago
https://docs.docker.com/desktop/setup/install/linux/ubuntu/ This is what i followed/installed today
Docker Documentation
Ubuntu
Learn how to install, launch and upgrade Docker Desktop on Ubuntu. This quick guide will cover prerequisites, installation methods, and more.
bo0tzz
bo0tzzβ€’5mo ago
Docker desktop runs inside a VM You probably don't want that, and it's also the reason for the error you're getting
Mraedis
Mraedisβ€’5mo ago
First time I heard of that
Weathon
WeathonOPβ€’5mo ago
oh gosh
Mraedis
Mraedisβ€’5mo ago
But yes that would explain that
bo0tzz
bo0tzzβ€’5mo ago
Docker Documentation
Ubuntu
Jumpstart your client-side server applications with Docker Engine on Ubuntu. This guide details prerequisites and multiple methods to install Docker Engine on Ubuntu.
Weathon
WeathonOPβ€’5mo ago
I actually wanted to start with that.. and eeverywhere it's stated docker desktop is eassier, also comes with compose.. πŸ˜„ I'm gonna install the proper docker then and try again. Will report back. Thank you
bo0tzz
bo0tzzβ€’5mo ago
it's stated docker desktop is eassier
whoever is saying this is wrong >.<
Weathon
WeathonOPβ€’5mo ago
"Docker Engine comes bundled with Docker Desktop for Linux. This is the easiest and quickest way to get started." From your link πŸ˜„ i think that line sold me on installing docker desktop instead But well maybe they are not wrong.. its the quickest way to get started.. πŸ˜„
bo0tzz
bo0tzzβ€’5mo ago
You want the second option the apt repo
Mraedis
Mraedisβ€’5mo ago
It's the quickest way to get started for sure And then 5 steps later you run face first into the wall πŸ‘€
Weathon
WeathonOPβ€’5mo ago
i installed via apt repo, and the docker hello works However afterwards i installed docker compose plugin like this: https://docs.docker.com/compose/install/linux/#install-using-the-repository and when i run docker compose up -d now i get this
unable to get image 'docker.io/redis:6.2-alpine@sha256:eaba718fecd1196d88533de7ba49bf903ad33664a92debb24660a922ecd9cac8': Cannot connect to the Docker daemon at unix:///home/joshua/.docker/desktop/docker.sock. Is the docker daemon running?
unable to get image 'docker.io/redis:6.2-alpine@sha256:eaba718fecd1196d88533de7ba49bf903ad33664a92debb24660a922ecd9cac8': Cannot connect to the Docker daemon at unix:///home/joshua/.docker/desktop/docker.sock. Is the docker daemon running?
checked with sudo service --status-all and docker appears to be running (also the docker hello works..) - so i guess something off with the compose?
Mraedis
Mraedisβ€’5mo ago
No the compose is fine The docker service is looking for your docker desktop socket Honestly I'd start with a simple reboot before we try any funky fixes
Weathon
WeathonOPβ€’5mo ago
I think i tried already, but to be sure i try again also just went through this and didnt help: https://superuser.com/a/1784928
Mraedis
Mraedisβ€’5mo ago
Removed /home/<user>/.docker
Try that first πŸ˜› So just rm -rf /home/joshua/.docker then try docker context ls
Weathon
WeathonOPβ€’5mo ago
NAME DESCRIPTION DOCKER ENDPOINT ERROR default * Current DOCKER_HOST based configuration unix:///var/run/docker.sock
Mraedis
Mraedisβ€’5mo ago
right now it should work I think
Weathon
WeathonOPβ€’5mo ago
docker compose required a sudo but now it's pulling! Thx!
Mraedis
Mraedisβ€’5mo ago
if it required sudo it should now all run under sudo so be aware that any future commands need 'sudo' sudo = root containers If you don't use sudo it will look for 'your' containers, which won't be there of course
Weathon
WeathonOPβ€’5mo ago
one more thing - i noticed that the 'Data' folder only appears once i click it in ubuntu desktop - so it looks like the drive is only mounted once i initiate it? it's an internal ssd, not connected via usb makes sense, that's fine. thx
Mraedis
Mraedisβ€’5mo ago
and something a lot of people seem to miss && = stitch two commands together if you need sudo, you need to sudo both sides of the &&
Weathon
WeathonOPβ€’5mo ago
still needs sudo twice i assume? +
Mraedis
Mraedisβ€’5mo ago
so docker compose pull && docker compose up -d sudo-fied -> sudo docker compose pull && sudo docker compose up -d I don't really understand here
...
nvme0n1 259:0 0 1.8T 0 disk
β”œβ”€nvme0n1p1 259:1 0 16M 0 part
└─nvme0n1p2 259:2 0 1.8T 0 part /media/joshua/Data
...
nvme0n1 259:0 0 1.8T 0 disk
β”œβ”€nvme0n1p1 259:1 0 16M 0 part
└─nvme0n1p2 259:2 0 1.8T 0 part /media/joshua/Data
Your folder is right there, at /media/joshua/Data
Weathon
WeathonOPβ€’5mo ago
So when i reboot the device, the Data drive is not there when i navigate there with the terminal
Mraedis
Mraedisβ€’5mo ago
ah right, you need to put it in fstab
Weathon
WeathonOPβ€’5mo ago
But once i open the Data folder via ubuntu desktop, it also apppears in the terminal ah to make it permanent
Mraedis
Mraedisβ€’5mo ago
yes
Weathon
WeathonOPβ€’5mo ago
will look that up, thx
Mraedis
Mraedisβ€’5mo ago
Ask Ubuntu
17.10: How to auto mount drives on startup?
Every time I log in, I need to go to disks and mount all my partitions manually. How can I make it automatic?
Mraedis
Mraedisβ€’5mo ago
This is old but probably still relevant I knew there had to a be a GUI option for this
Weathon
WeathonOPβ€’5mo ago
found it in the UI thx! (Disks, select partition, cogwheel, change mount options, mount on boot) Just wanted to give an update: everything seems to work now and i'm trying to copy over all the files (unfortunately the beelink seems to completely freeze sometimes when copying lots of files.. no idea if it continues doing sth or not, but thats a whole different issue) Giving up for today. No idea why this is happening, it's just a standard ubuntu installation..no special hw, nothing.. I guess that mini pc already doesn't like me πŸ€·β€β™‚οΈ Of course i couldn't give up πŸ˜„ I just started completely from scratch, fresh ubuntu, no idea what caused it to freeze all the time but everything works fine now, 'migration complete'! πŸ™‚ Thanks for the help! is there a way to close this helpdesk ticket or do we just let it idle?
Mraedis
Mraedisβ€’5mo ago
you can /close
Immich
Immichβ€’5mo ago
This thread has been closed. To re-open, use the button below.

Did you find this page helpful?