cant change the UPLOAD_LOCATION to a new one and i cant find the old

hi after i have setup my immich server i have notice that the UPLOAD_LOCATION is not the one i have coose i have notice that i have left the . but when i delete it i encounter this error and the server keep rebooting any idea? [Nest] 7 - 05/15/2025, 6:09:31 PM ERROR [Microservices:StorageService] Failed to read upload/encoded-video/.immich: Error: ENOENT: no such file or directory, open 'upload/encoded-video/.immich' microservices worker error: Error: Failed to read "<UPLOAD_LOCATION>/encoded-video/.immich - Please see https://immich.app/docs/administration/system-integrity#folder-checks for more information.", stack: Error: Failed to read "<UPLOAD_LOCATION>/encoded-video/.immich - Please see https://immich.app/docs/administration/system-integrity#folder-checks for more information." at StorageService.verifyReadAccess (/usr/src/app/dist/services/storage.service.js:84:19) at async /usr/src/app/dist/services/storage.service.js:38:21 at async /usr/src/app/dist/repositories/database.repository.js:250:27 at async /usr/src/app/node_modules/kysely/dist/cjs/kysely.js:535:20 at async DefaultConnectionProvider.provideConnection (/usr/src/app/node_modules/kysely/dist/cjs/driver/default-connection-provider.js:12:20) at async /usr/src/app/dist/repositories/database.repository.js:247:13 [Nest] 17 - 05/15/2025, 6:09:31 PM LOG [Api:EventRepository] Initialized websocket server microservices worker exited with code 1 Killing api process Initializing Immich v1.132.3
36 Replies
Immich
Immich4w ago
:wave: Hey @tntsimo, 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:
tntsimo
tntsimoOP4w ago
i have tried to make a fresh one but keep rebooting, the problem could be that the hdd is not the same one that immich portainer is running? i want to use a dedicated hdd for the photo
schuhbacca
schuhbacca4w ago
So you can't find the original upload location?
tntsimo
tntsimoOP4w ago
yes
schuhbacca
schuhbacca4w ago
Then you will probably just want to start over and delete your database
tntsimo
tntsimoOP4w ago
i have tried
schuhbacca
schuhbacca4w ago
If you delete the postgres folder it will be as if starting from new
tntsimo
tntsimoOP4w ago
do i use this command to find it? find . -type f -name "*.jpgv"
schuhbacca
schuhbacca4w ago
No, the postgres folder is seperate from the upload location. It's location is specified in your env
tntsimo
tntsimoOP4w ago
it is not there i have written /opt/portainer
schuhbacca
schuhbacca4w ago
Can you post your compose and env. If it's trying to to read the .immich files, it has an existing postgres install somewhere
tntsimo
tntsimoOP4w ago
of WARNING: To install Immich, follow our guide: https://immich.app/docs/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}:/usr/src/app/upload - /etc/localtime:/etc/localtime:ro env_file: - stack.env ports: - '2283:2283' depends_on: - redis - database restart: always healthcheck: disable: false immich-machine-learning: container_name: immich_machine_learning # For hardware acceleration, add one of -[armnn, cuda, rocm, openvino, rknn] to the image tag. # Example tag: ${IMMICH_VERSION:-release}-cuda image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release} # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration # file: hwaccel.ml.yml # service: cpu # set to one of [armnn, cuda, rocm, openvino, openvino-wsl, rknn] for accelerated inference - use the -wsl version for WSL2 where applicable volumes: - model-cache:/cache env_file: - stack.env restart: always healthcheck: disable: false redis: container_name: immich_redis image: docker.io/valkey/valkey:8-bookworm@sha256:ff21bc0f8194dc9c105b769aeabf9585fea6a8ed649c0781caeac5cb3c247884 healthcheck: test: redis-cli ping exit 1 restart: always database: container_name: immich_postgres image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:739cdd626151ff1f796dc95a6591b55a714f341c737e27f045019ceabf8e8c52 environment: POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_USER: ${DB_USERNAME} POSTGRES_DB: ${DB_DATABASE_NAME} POSTGRES_INITDB_ARGS: '--data-checksums' 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 healthcheck: test: >- pg_isready --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" exit 1; Chksum="$$(psql --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" --tuples-only --no-align --command='SELECT COALESCE(SUM(checksum_failures), 0) FROM pg_stat_database')"; echo "checksum failure count is $$Chksum"; [ "$$Chksum" = '0' ] || exit 1 interval: 5m start_interval: 30s start_period: 5m command: >- postgres -c shared_preload_libraries=vectors.so -c 'search_path="$$user", public, vectors' -c logging_collector=on -c max_wal_size=2GB -c shared_buffers=512MB -c wal_compression=on restart: always volumes: model-cache: ------------------------------------------ UPLOAD_LOCATION=/media/simone/FOTO NUOVO/immich DB_DATA_LOCATION=/opt/portainer DB_PASSWORD=postgres DB_USERNAME=postgres DB_DATABASE_NAME=immich
schuhbacca
schuhbacca4w ago
And an ls -l /opt/portainer/ produces?
tntsimo
tntsimoOP4w ago
No description
schuhbacca
schuhbacca4w ago
sudo it
tntsimo
tntsimoOP4w ago
No description
tntsimo
tntsimoOP4w ago
i forgor
schuhbacca
schuhbacca4w ago
I would change that db location. That's wherre portainer is installed so it's bad idea. The db was probably failing to write to that directory, so hard to say where it actually went Down the stack. Change the db directory env to something else and bring it up again
tntsimo
tntsimoOP4w ago
ok i do the same one where i want to store the photos?
schuhbacca
schuhbacca4w ago
Yes just have a top level folder like immich then under have immich/pgdata/ and immich/photos or something
tntsimo
tntsimoOP4w ago
I think It Is working
No description
schuhbacca
schuhbacca4w ago
Sure that works Bring stack down, change two env variables, and bring back up
tntsimo
tntsimoOP4w ago
No wayyyy Omgggg That whas dumb Thx So One last question If i have 2 hdd ad i want tò make a backup of the photos i use immich or Ubuntu to Copy the files in the other hdd? Or a raid?
tntsimo
tntsimoOP4w ago
Do i Just drag and drop my poto on the upload folder?
No description
Immich
Immich4w ago
https://immich.app/docs/administration/backup-and-restore So when people say "x is not a backup tool" what they are actually saying is "you probably don't actually want a single point in time copy of your data", which is what that tool is doing. And that "backup tools" exist today that: - can run on a schedule - only copy new/changed data (incremental) keep track of changes over time in the backup, with the option to restore to a previous version This gives you the ability to recover a file that was deleted some time ago, restore to a point prior to data corruption, etc., all while being space efficient (similar blocks are deduplicated) Popular backup tools are restic and borg.
schuhbacca
schuhbacca4w ago
Basically you will want to read up on proper backups. RAID is not a backup. You will need a copy of your database and the assets to do a complete restore. You will want to copy these to another machine and probably also a cloud service. I know it seems like a lot but when you are managing your own media you want to make sure you can recover or photos will be lost forever.
tntsimo
tntsimoOP4w ago
Right Thx for the link And for mooving the photos inside immich ?
schuhbacca
schuhbacca4w ago
Don't touch anything inside the upload folder. That is all managed by the application.
tntsimo
tntsimoOP4w ago
They are oustide
schuhbacca
schuhbacca4w ago
Oh. No you can't just drag them in. For bulk ingest we recommend either A) Immich cli B) Immich-go (These will put them into the internal library which immich manages) C) Use an external library and point to this location. You can then manage the files yourself. Up to you how you wan to import them.
tntsimo
tntsimoOP4w ago
I basically set the folder where all my photos are as the one I thought it would acquire them automatically but it created other folders in the folder Ok i use the commands Ok found the commands on the site Omg Thx so much I was going crazy
tntsimo
tntsimoOP4w ago
No description
schuhbacca
schuhbacca4w ago
Good luck!
tntsimo
tntsimoOP4w ago
I Hope This chat Will be not deleted right?
schuhbacca
schuhbacca4w ago
No
tntsimo
tntsimoOP4w ago
Top

Did you find this page helpful?