#docker immich-server Restarting loop forever
1 messages · Page 1 of 1 (latest)
:wave: Hey @trim blade,
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
.
References
- Container Logs:
docker compose logsdocs - Container Status:
docker ps -adocs - 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...
- :blue_square: verified I'm on the latest release(note that mobile app releases may take some time).
- :blue_square: read applicable release notes.
- :blue_square: reviewed the FAQs for known issues.
- :blue_square: reviewed Github for known issues.
- :blue_square: tried accessing Immich via local ip (without a custom reverse proxy).
- :blue_square: uploaded the relevant information (see below).
- :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 -landdf -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.
Did you read the log message and check out the link that's in it?
idfk whats going on
Error: Failed to read: "<UPLOAD_LOCATION>/encoded-video/.immich (/data/encoded-video/.immich) - Please see https://docs.immich.app/administration/system-integrity#folder-checks for more information."
the website doesnt tell me how to fix it
only how to ignore it
It tells you what causes it, it's up to you to connect that to what's going on with your system/what may have changed recently etc
where even is "/data"
It got force restarted, had no choice
so how do I fix it
What did? And why? Did it seem to have any other effects?
my server
and no
What sort of system is this, what are your files stored on, etc?
server
ssd
and hard drive
theres no other issues
immich is the only thing with a problem
power outage
We need more detail than "server" and "hard drive". What sort of OS, what file system, etc etc
Also please post your compose file and .env
linux mint 21.3
5.15.0-170-generic
EXT4
the compose file is straight from the website
You can find documentation for all the supported env variables at https://docs.immich.app/install/environment-variables
The location where your uploaded files are stored
UPLOAD_LOCATION=/home/hitesh/1tb/media
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.wikipedia.org/wiki/List_of_tz_database_time_zones#List
TZ=Etc/UTC
The Immich version to use. You can pin this to a specific version like "v2.1.0"
IMMICH_VERSION=v2
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
WARNING: To install Immich, follow our guide: https://docs.immich.app/install/docker-compose
Make sure to use the docker-compose.yml of the current release:
https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml
The compose file on main may not be compatible with the latest release.
name: immich
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 value of UPLOAD_LOCATION in the .env file
- ${UPLOAD_LOCATION}:/data
- /etc/localtime:/etc/localtime:ro
env_file:
- .env
ports:
- '2283:2283'
depends_on:
- redis
- database
restart: always
healthcheck:
disable: false
redis:
container_name: immich_redis
image: docker.io/valkey/valkey:9@sha256:546304417feac0874c3dd576e0952c6bb8f06bb4093ea0c9ca303c73cf458f63
healthcheck:
test: redis-cli ping || exit 1
restart: always
database:
container_name: immich_postgres
image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:bcf63357191b76a916ae5eb93464d65c07511da41e3bf7a8416db519b40b1c23
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME}
POSTGRES_INITDB_ARGS: '--data-checksums'
# Uncomment the DB_STORAGE_TYPE: 'HDD' var if your database isn't stored on SSDs
# DB_STORAGE_TYPE: 'HDD'
volumes:
# Do not edit the next line. If you want to change the database storage location on your system, edit the value of DB_DATA_LOCATION in the .env file
- ${DB_DATA_LOCATION}:/var/lib/postgresql/data
shm_size: 128mb
restart: always
healthcheck:
disable: false
volumes:
model-cache:
What's the output of mount?
UPLOAD_LOCATION=/home/hitesh/1tb/media
This reads to me like it's probably a separate disk, but it's not mounted
it worked perfectly fine an hour ago
nothing changed
what the fuck
why did my fstab change itself