I
Immich•5d ago
anchovy

Moving thumbnail & upload location to external drive

34 Replies
Immich
Immich•5d ago
:wave: Hey @Tux, 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. :blue_square: 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:
bo0tzz
bo0tzz•5d ago
We're not psychic, what's actually going wrong? 😛
anchovy
anchovyOP•5d ago
I'm getting:
The THUMB_LOCATION variable is not set. Defaulting to a blank String. invalid spec: /mnt/Micron/Familjefoton/immich/thumbnails: empty section between colons
The THUMB_LOCATION variable is not set. Defaulting to a blank String. invalid spec: /mnt/Micron/Familjefoton/immich/thumbnails: empty section between colons
bo0tzz
bo0tzz•5d ago
You need to add it to your .env https://immich.app/docs/guides/custom-locations/
anchovy
anchovyOP•5d ago
oh so the custom path goes in the .env? and then just regular in docker compose?
anchovy
anchovyOP•5d ago
No description
anchovy
anchovyOP•5d ago
i dont get any errors anymore, it seems to work fine. but i cant access immich in my browser for some strange reason
anchovy
anchovyOP•5d ago
worked earlier
No description
anchovy
anchovyOP•5d ago
let me try restarting my pc
schuhbacca
schuhbacca•5d ago
Post the logs from the server container
anchovy
anchovyOP•5d ago
how do i do that? :FeelsThinkingMan:
schuhbacca
schuhbacca•5d ago
docker logs immich_server
anchovy
anchovyOP•5d ago
wait hold on
anchovy
anchovyOP•5d ago
schuhbacca
schuhbacca•5d ago
You need to move the folders from the origianl location to the new one you specify in the env It's cant' find the .immich files
anchovy
anchovyOP•5d ago
oh so the whole immich setup with env and docker compose
schuhbacca
schuhbacca•5d ago
Well, just the subfolders you are looking to break out into different areas
anchovy
anchovyOP•5d ago
how do you mean?
schuhbacca
schuhbacca•5d ago
What custom locations did you add to your compose/env
anchovy
anchovyOP•5d ago
# You can find documentation for all the supported env variables at https://immich.app/docs/install/environme>

# The location where your uploaded files are stored
UPLOAD_LOCATION=/mnt/Micron/Familjefoton/immich/upload
THUMB_LOCATION=/mnt/Micron/Familjefoton/immich/thumbnails
BACKUP_LOCATION=/mnt/Micron/Familjefoton/immich/backup

# The location where your database files are stored. Network shares are not supported for the database
DB_DATA_LOCATION=./postgres

# To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en>
# TZ=Etc/UTC

# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=release

# Connection secret for postgres. You should change it to a random password
# Please use only the characters `A-Za-z0-9`, without special characters or spaces
DB_PASSWORD=postgres

# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
# You can find documentation for all the supported env variables at https://immich.app/docs/install/environme>

# The location where your uploaded files are stored
UPLOAD_LOCATION=/mnt/Micron/Familjefoton/immich/upload
THUMB_LOCATION=/mnt/Micron/Familjefoton/immich/thumbnails
BACKUP_LOCATION=/mnt/Micron/Familjefoton/immich/backup

# The location where your database files are stored. Network shares are not supported for the database
DB_DATA_LOCATION=./postgres

# To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en>
# TZ=Etc/UTC

# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=release

# Connection secret for postgres. You should change it to a random password
# Please use only the characters `A-Za-z0-9`, without special characters or spaces
DB_PASSWORD=postgres

# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
docker compose:
services:
immich-server:
container_name: immich_server
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
# extends:
# file: hwaccel.transcoding.yml
# service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
volumes:
# Do not edit the next line. If you want to change the media storage location on your system, edit the >
- ${UPLOAD_LOCATION}:/usr/src/app/upload
- ${THUMB_LOCATION}:/usr/src/app/upload/thumbs
- ${BACKUP_LOCATION}:/usr/src/app/upload/backups
- /mnt/Micron/Familjefoton:/images
- /etc/localtime:/etc/localtime:ro
env_file:
- .env
ports:
- '2283:2283'
depends_on:
- redis
- database
restart: always
healthcheck:
disable: false
services:
immich-server:
container_name: immich_server
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
# extends:
# file: hwaccel.transcoding.yml
# service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
volumes:
# Do not edit the next line. If you want to change the media storage location on your system, edit the >
- ${UPLOAD_LOCATION}:/usr/src/app/upload
- ${THUMB_LOCATION}:/usr/src/app/upload/thumbs
- ${BACKUP_LOCATION}:/usr/src/app/upload/backups
- /mnt/Micron/Familjefoton:/images
- /etc/localtime:/etc/localtime:ro
env_file:
- .env
ports:
- '2283:2283'
depends_on:
- redis
- database
restart: always
healthcheck:
disable: false
schuhbacca
schuhbacca•5d ago
Have you moved folders around already? But basically you are just moving the thumbs and backup up one folder level out of upload?
anchovy
anchovyOP•5d ago
I followed this: https://immich.app/docs/guides/custom-locations/ i set custom locations in .env
schuhbacca
schuhbacca•5d ago
I know, but what was your compose / env before. You changed paths without moving the folders where those assets are EG. You moved the thumbs location in the env, but didn't move it on the file system
anchovy
anchovyOP•5d ago
how do i move them in the file system? :FeelsThinkingMan:
schuhbacca
schuhbacca•5d ago
I mean you will have a thumbs / backups folder inside your upload location. You move that to where you specified the new path in your env
anchovy
anchovyOP•5d ago
oh do i need to have the same path in my custom? so its matching
schuhbacca
schuhbacca•5d ago
Yes. The paths need to match between the FS and the env. Immich won't move the folders on the FS, you need to move them to match what's in your new env configuration.
anchovy
anchovyOP•5d ago
ahhh
schuhbacca
schuhbacca•5d ago
As background, immich creates a hidden .immich file in the root folders. That way if you change things in the env (Without moving the folders on the FS), it will fail to start
anchovy
anchovyOP•5d ago
ok so i changed it but it still wont ru
anchovy
anchovyOP•5d ago
anchovy
anchovyOP•5d ago
do i have to add encoded video and profile location? oh there is an encoded video folder i havent added in the env
anchovy
anchovyOP•5d ago
anchovy
anchovyOP•5d ago
wont start the server i saved my env and docker composed and deleted everything else booted it up again and now im back in i think it solved the issue thank you :D

Did you find this page helpful?