QNAP Setup Guide
I am attempting to setup Immich on my TS-435xeu but running into some trouble. Does anyone have some resources to start reading through that I can use as a guide with setup?
35 Replies
:wave: Hey @Cook13s,
Thanks for reaching out to us. Please follow the recommended actions below; 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 compose ps
docs
- Reverse Proxy: https://immich.app/docs/administration/reverse-proxy
Checklist
1. :ballot_box_with_check: I have verified I'm on the latest release(note that mobile app releases may take some time).
2. :ballot_box_with_check: I have read applicable release notes.
3. :ballot_box_with_check: I have reviewed the FAQs for known issues.
4. :ballot_box_with_check: I have reviewed Github for known issues.
5. :ballot_box_with_check: I have tried accessing Immich via local ip (without a custom reverse proxy).
6. :ballot_box_with_check: I have uploaded the relevant logs, docker compose, and .env files using the buttons below or the /upload
command.
7. :ballot_box_with_check: I have 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)
If this ticket can be closed you can use the /close
command, and re-open it later if needed.I'm reading some mixed results between what is on the dockerr compose recommendations, tried the regular .yaml but it seems to be bugging out with the microservice portion, and I don't know why. I also tried a modified yaml with the env parameters attached but not getting any progress out of that either
Also, because this is container station, access to the container install location is locked off thus cannot upload the .env file
Any suggestions are welcome, please and thanks.
I’m going to attempt to do this via ssh at seems like that’s where to start. Container station still needs to be installed and report back if I am able to progress further than when I started.
Container root folder and application sub-folder need to have write access given to non-admin users so you can dump the .env file in later during validation creation.. haven’t tested this yet
Worked, but immich is loaded but I don't get this upload_location structure, I put in my share/"share_folder"/Photos path where test pictures are contained but it doesn't seem to be working
@Cook13s uploaded
@Cook13s uploaded
Successfully submitted, a tag has been added to inform contributors. :white_check_mark:
Hi @Cook13s , I'm running Immich on a QNAP TS-464 within Portainer. I had no issues so far.
Well you’re using portainer, I was avoiding adding an additional layer to it but I managed to figure it out on Container Station
Appreciate the response anyway
You're welcome
Are you using Immich-cli, by any chance?
Yes, I run the cli within the server container with a cron job by running
docker exec
from the host system
On the QNAP crontab:
*/2 * * * * /share/CE_CACHEDEV1_DATA/.qpkg/container-station/bin/docker exec immich_server /mnt/scripts/flock-patrick.sh >/dev/null 2>&1
And the script which is mounted to the container:
And the import script:
However, I just ran into the issue that the cli within the server image was not up to date and I had to update it manuallyHmmm that makes sense
Mine for some reason won’t keep alive, I ran that exact docker command in the documentation, but as soon as it’s done installing just seems to end itself. Immich command has no proper response.
Nice, so to be clear, you’re not utilizing npm method? Just docker with the cron job
Which command are you referring to?
Oh the default one they provided on the docs page
Exactly, because immich-cli comes pre-installed within the server container. I just had to use
npm update @immich/cli
to get the latest versionBut replaced my path to /share/nasVolName/ShareFolderName:/import -e urlParam=whatever -e apiKey=whatever
Oh okay, so you are using npm
I hadn't to until today
But it comes pre-installed as well
Gotcha, that’s probably what I was missing, it said you didn’t have to if you used the docker method but maybe in my case, I probably had to anyway
One more thing, are you installing the image for Immich-cli and container inside of the application that contains Immich or using a completely separate app/container for it?
I noticed mine didn’t populate into container station if I did this via ssh
Unlike Immich which populated all 5 containers under one app
I'm not installing immich-cli at all. It's already part of the
immich_server
container.
Ohhhh
I see what you mean
Didn’t realize that. Okay, I’ll mess around with that later. But I appreciate the guidance and insight
Hi,
Sorry for the necropost revive. How did you turn this on exactly? I’m not too familiar with cron job. So it sounds like you put the script somewhere in the file directory in a text file then ran it.. is the command in the first set of code?
Hello. I'm looking to buy a qnap ts 646 with 8gb, and set it up with immich. How's your experience with yours? after googled some users say that immich it's too much for some qnap machine. Thank you!
Well it works but it’s a tad slow on the initial library complete import (40K images) took like a week or so
But otherwise after that daily upload works great
I only see issues with doing imports via qnap upload to a single library
I wish you could create a shared album that would populate your own library pictures in it but also your partners pictures. Note it as part of an shared album. Rather than having to move to a specific part of the Immich site to get to it
If anyone here knows how to do the cron command in qnap, might be helpful to get that last piece working for me and anyone else looking to do this
On QNAP you can create new cronjobs by doing a
vi /etc/config/crontab
followed by crontab /etc/config/crontab && /etc/init.d/crond.sh restart
.
You can place the script called by the cronjob wherever you like. I just haven't access to the concrete command. Hope this helps you anyway.
On my 464 with also 8GB I'm hosting 10k photos and 700 videos. The initial import took approx 1 day. After that, I don't see anything that could be faster. Search by specific terms takes maybe 4-5 seconds. I would go with the qnap again.
I also do have the Coral AI accelerator module. However, it's not yet supported by Immich.Aha. Thank you!
Ill go for it. 😂
Ah that’s the piece I refer to, “what do I put in the script?”
This
Ah I see now, I misunderstood that as the cron command
Thank you
@Cook13s @haggis I'm running into some QNAP set up problems too. Do you guys have any experience using ContainerStation's Container and installing https://hub.docker.com/r/altran1502/immich-server ? It seems like it might be the easiest, but perhaps not recommended.... ?
I had to use ssh to pull the image
I didn’t use the images that are provided in the GUI
I'm using Portainer and there I just pasted the docker-compose.yaml from the docs + modified the volume mounts according to my folder structure
Thanks @haggis - do you recommend using portainer over ContainerStation? I've read it plays a bit better for .env files?
If so, do you have any guidance for how I might install portainer?
Much thanks in advance:)
I added the repository of myqnap to the AppCenter and then installed it from there: https://www.myqnap.org/product/portainer/
QoolBox
MyQNAP
Portainer - MyQNAP
It’s a simple management UI for Docker based on Container Station. Portainer is a lightweight management UI which allows you to easily manage your different Docker environments (Docker hosts or Swarm clusters). Portainer is meant to be as simple to deploy as it is to use. It consists of a single container that can run […]
Thx I ended up going cmdline route via SSH