No data/photos appearing in new immich setup through portainer on Asustor AS5404T
Ive trawled the internet looking for a solution to this but cannot find what Im doing wrong and Im hoping someone can help.
I have a photo library on the NAS ( Asustor AS5404T) that I would like to use but when I complete the Post installation steps no photos appear in the application. I assume that the DB_DATA_LOCATION needs to be where application data is stored and the UPLOAD_LOCATION should be the existing photo folder location and have set them as such but still no joy.
Ive never used Docker so Ive tried to keep it simple following the install steps in https://immich.app/docs/install/portainer using the default docker-compose.yaml and defined the .env file as required. I managed to get the stack deployed and the server container running, the other containers stay in "healthy" status.
I also notice if I edit the "Environment variables" file and update the stack I have to go through the Post installation steps of setting up the account again ( is this correct?) and the only option within the application appears to be to upload images, with no ability to point to a folder location in the UI.
Could anyone shed any light on why the photos are not being indexed by the application , if I am doing this completely wrong and How can I get the install fixed and functioning?
Help would be much appreciated
stack file: https://pastebin.com/1pdwdA96
and env set:
UPLOAD_LOCATION=/volume1/storage/Photos
DB_DATA_LOCATION=/volume1/storage/docker/immich
TZ=Europe/Munich
IMMICH_VERSION=release
DB_PASSWORD=123456789101112x
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
12 Replies
:wave: Hey @bob909,
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. :blue_square: verified I'm on the latest release(note that mobile app releases may take some time).
2. :blue_square: read applicable release notes.
3. :blue_square: reviewed the FAQs for known issues.
4. :blue_square: reviewed Github for known issues.
5. :blue_square: tried accessing Immich via local ip (without a custom reverse proxy).
6. :blue_square: uploaded the relevant information (see below).
7. :blue_square: 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.The UPLOAD_LOCATION must be set to an empty directory when you install. You can't point it at existing photos.
You either need to uplaod the folder via the cli or use an external library and point at your existing photos
What do you mean edit the environment variables?
Thanks! by "edit the environment variables " I mean, defining the .env file , which I assume I have to do ?.
Where would I learn how to use an external library to point at existing photos. I did see the https://immich.app/docs/features/libraries but its just way over my head as a noob.
If you change the DB_DATA_LOCATION env to a new value it's basically like starting entirely over
Thanks for this. I followed these steps literally however if I Enter /usr/src/app/external as the path and click Add, as per instructions I get a validation error but my external folder location /volume1/storage/Photos , still detects nothing when I scan and when I check jobs I see all zeros for Active jobs in Library.
Am I missing something very obvious?
How exactly did you add it in the compose @bob909 ? The way you said it it should be
- /volume1/storage/Photos:/usr/src/app/external:ro
Please keep in mind that docker needs to be able to read the volume/folderIm happy to admit that I feel way out of my depth trying to setup immich! Im at it 2 days, Ive no idea what Im doing, and its getting worse not better.ðŸ˜
should the .env file state: UPLOAD_LOCATION=//volume1/storage/Photos:/usr/src/app/external:ro Ive got this far but just cannot figure out HOW to get the application to index my photos folder on my NAS. It shouldnt be this hard , should it?
should the .env file state: UPLOAD_LOCATION=//volume1/storage/Photos:/usr/src/app/external:ro Ive got this far but just cannot figure out HOW to get the application to index my photos folder on my NAS. It shouldnt be this hard , should it?
You can’t mount a NAS like that in docker
You should mount it to a folder on the host, then use that to map into immich
You're also (trying to) mounting it as the internal library, not an external.
Please note the GREEN lines in the external library documentation, and that the ENV file and the docker-compose file are two different things.
Your compose should be something like this:
The env should probably be something like:
Don't put your external library inside of DB_DATA/UPLOAD Location or vice versa.
It is on the NAS itself unless I'm misunderstanding the post here
thanks all. Im really coming from a basic level of knowledge here . Can I define the external folder location ( preexisting on my NAS) in the docker-compose.yml file by placing
/volume1/storage/Photos:/usr/src/app/external:ro
under volumes
And that the left side of the colon is the host path, ) where the photos would be on your computer.) and the The right side is the container path.
Yes,but you can't place the external library inside of the upload location or vice versa. And you will need the upload location defined whether you use it or not