Help migrating from Docker to LXC
I've been using immich via Docker, it's been working fine. Now that there is a community LXC version, I'd like to migrate my library
It doesn't seem to be trivial. I was able to restore one of the PSQL dumps/backups, but I also need to deal with the
upload
dir.
On my docker setup, I have both my library and my upload folder pointing to a NAS via SMB. Here's an excerpt of the docker-compose file:
Now back on the LXC, I tried to create a symlink from /mnt/photos/.immich/upload
to /opt/immich/upload
(the NAS is mounted on /mnt/photos
).Proxmox VE Helper-Scripts
Proxmox VE Helper-Scripts
The official website for the Proxmox VE Helper-Scripts (Community) Repository. Featuring over 300+ scripts to help you manage your Proxmox VE environment.
15 Replies
:wave: Hey @guilhermearaujo,
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.
Successfully submitted, a tag has been added to inform contributors. :white_check_mark:I did all that with the immich services (web and ml) stopped, and when I tried to start the web service, the logs showed this error:
What did I do wrong? is there any step missing?
is the folder empty or you already copied/moved your stuff?
if the folder is empty, Immich is expecting its control files there, since the database contains data (I understand you imported a dump already)
if is not empty, the permissions are wrong
I didn't have to copy move, I simple mounted the same NAS folder I was using with Docker
I guess maybe it could be permission then 🤔
This does not look right at all:
device: //${SMB_HOST}/photos/.immich
you are mounting a hidden file as a volume?Yes, that was sorta intentional, I just wanted to keep the immich files in the same share, but not mixed with the actual photos, so I created that directory. Then in the external libraries configs I set that dir to be ignored
I could have done it differently, for sure
why don't you try mounting that folder on the host instead so you can show us the mount point and the contents
the SMB is indeed mounted in the proxmox host, then I set it to be shared with the container:
pct set 201 -mp0 /mnt/photos,mp=/mnt/photos
got it. TBH we do not support either LXC or the helper scripts (it seems to have hardcoded paths using /opt which will make the migration quite hard as the immich DB uses hardcoded file paths currently )
/mnt/photos
contains all my pics + that .immich
dirso I would recommend to reach out to their team
okay, I'll try asking there. Just hope I don't need to start from scratch
and that they don't say "you should ask the immich guys" XD
Well, you could always go back to a VM like we recommend
sure, I did not get rid of my docker setup yet