#Will not start after updating from

1 messages · Page 1 of 1 (latest)

dusky lindenBOT
#

:wave: Hey @stark slate,

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

#

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.

dusky lindenBOT
stark slate
#

is there a reason why my upload/backup directory is empty. i sure do not want to lose my database

stark slate
#

I was thankfully able to run the manual backup of the database so I have the dump.sql.gz file

stark slate
#

I attempt to touch .immich in uploads/backup/ but after i create the file i still get the same error, it has the same permissions as the other .immich files i see that do exist.

#

i should note that the backup folder was not in the location identified in the logs.

keen onyx
#

Your custom mount points are broken

dusky lindenBOT
keen onyx
#

The main problem is that you don’t actually have /usr/src/app/upload mounted

stark slate
#

Do i need a specific one for backup?

#

how could i troubleshoot why the directory will not mount? i can list the contents of "/mnt/raid10/immich-app/immich-data/upload/" succesfully

#

I modified my yaml file to use the lines
volumes:
- ${LIBRARY_LOCATION}:/usr/src/app/upload/library/
- ${UPLOAD_LOCATION}:/usr/src/app/upload/
- ${THUMBS_LOCATION}:/usr/src/app/upload/thumbs/
- ${PROFILE_LOCATION}:/usr/src/app/upload/profile/
- ${VIDEO_LOCATION}:/usr/src/app/upload/encoded-video/

keen onyx
#

Please review the link I sent and match your mount points as such

#

Ok, that looks better

stark slate
#

immich_server | [Nest] 17 - 12/21/2024, 3:49:05 AM LOG [Api:StorageService] Verifying system mount folder checks, current state: {"mountFiles":true,"mountChecks":{"thumbs":true,"upload":true,"backups":true,"library":true,"profile":true,"encoded-video":true}}
immich_server | [Nest] 17 - 12/21/2024, 3:49:05 AM ERROR [Api:StorageService] Failed to read upload/upload/.immich: Error: ENOENT: no such file or directory, open 'upload/upload/.immich'

#

i am not sure where the "upload/upload" comes from at this point

#

I have modified the .env with the following environment variables to fix the /upload/upload
The location where your uploaded files are stored
LIBRARY_LOCATION=/mnt/raid10/immich-app/immich-data/
THUMBS_LOCATION=/home/nas/Immich_Fast/thumbs/
UPLOAD_LOCATION=/mnt/raid10/immich-app/immich-data/
PROFILE_LOCATION=/mnt/raid10/immich-app/immich-data/profile/
VIDEO_LOCATION=/mnt/raid10/immich-app/immich-data/encoded-video/

#

now i am back to the origional error mmich_server
| [Nest] 17 - 12/21/2024, 3:55:48 AM ERROR [Api:StorageService] Failed to read upload/backups/.immich: Error: ENOENT: no such file or directory, open 'upload/backups/.immich'

keen onyx
#

at this point you will need to manually make some of the .immich files since they are gone, they were not mounted

#

like also,also there are a few issues still with your mounts

#

LIBRARY and UPLOAD are identical, that's not good

stark slate
#

I greatly appreciate your help correcting my mount point. I know i may have had the paths strange. but it was surprising my instance broke from updating.

keen onyx
#

It seems like you just want this:

THUMBS_LOCATION=/home/nas/Immich_Fast/thumbs
#

Then in the docker-compose you should just have

${UPLOAD_LOCATION}:/usr/src/app/upload
${THUMBS_LOCATION}:/usr/src/app/upload/thumbs
#

everything else is just extra steps that accomplish nothing different

stark slate
#

ok, i will try that

keen onyx
#

It broke because we added a new folder that you didn’t have mounted because you did not mount the root folder

#

You’ll probably still need to make a .immich file in backups/

stark slate
#

I understand

#

Do you think i will i need to move files on my disk to accomidate the changes to the .env paths?

keen onyx
#

Can you post the contents of your immich-data folder

stark slate
#

drwxr-xr-x. 6 root root 4096 Nov 28 15:53 1f187b27-1a5a-4c87-a9e3-0617ae8bd529
drwxr-xr-x. 3 root root 4096 Apr 12 2024 2fcb72d8-a2ad-4a11-9798-d7e82a269151
drwxr-xr-x. 11 root root 4096 Jun 15 2024 6dcfa4a3-154f-405a-834f-1d02a6b16ec2
drwxr-xr-x. 19 root root 4096 May 19 2024 admin
drwxr-xr-x. 5 root root 4096 Sep 22 16:24 encoded-video
drwxr-xr-x. 2 root root 4096 Dec 20 22:55 library
drwxr-xr-x. 3 root root 4096 Sep 22 16:24 profile
drwxr-xr-x. 2 root root 4096 Dec 20 22:55 thumbs
drwxr-xr-x. 11 root root 4096 Dec 20 22:46 upload

keen onyx
#

Try again with ls -a

#

Also what’s in the library folder?

stark slate
#

/mnt/raid10/immich-app/immich-data$ ls -a
. .. 1f187b27-1a5a-4c87-a9e3-0617ae8bd529 2fcb72d8-a2ad-4a11-9798-d7e82a269151 6dcfa4a3-154f-405a-834f-1d02a6b16ec2 admin encoded-video .immich library profile thumbs upload

#

library and thumbs are empty directories

#

admin as well

#

sorry, admin is not empty

#

mnt/raid10/immich-app/immich-data/upload$ ls -a
. .. 1f187b27-1a5a-4c87-a9e3-0617ae8bd529 2fcb72d8-a2ad-4a11-9798-d7e82a269151 6dcfa4a3-154f-405a-834f-1d02a6b16ec2 backups d18625fd-f1e1-4589-ad52-269063e50636 encoded-video .immich library profile thumbs

#

probably my library files are the hex named files within my upload path

#

so i believe i should move those files from upload, to the /immich-data/library directory that now exists

keen onyx
#

Please move admin, .immich and hex into library

#

Don’t move anything out of or into upload

stark slate
#

ok

#

/mnt/raid10/immich-app/immich-data$ ls -a
. .. encoded-video .immich library profile thumbs upload
/mnt/raid10/immich-app/immich-data$ cd library/
/mnt/raid10/immich-app/immich-data/library$ ls -a
. .. 1f187b27-1a5a-4c87-a9e3-0617ae8bd529 2fcb72d8-a2ad-4a11-9798-d7e82a269151 6dcfa4a3-154f-405a-834f-1d02a6b16ec2 admin

#

i forgot .immich

#

i will move too

#

I created .immich within /mnt/raid10/immich-app/immich-data/upload/backups. then tried starting again. i get same error immich_server
| [Nest] 17 - 12/21/2024, 4:20:31 AM ERROR [Api:StorageService] Failed to read upload/backups/.immich: Error: ENOENT: no such file or directory, open 'upload/backups/.immich'

keen onyx
#

Please post the output of this command: docker inspect immich_server

stark slate
#

when i do that in the directory of my yaml file, i get
/mnt/raid10/immich-app$ docker inspect immich_server
[]
Error: No such object: immich_server

#

i will remove mounts from machine learning container

keen onyx
#

That doesn’t make sense

stark slate
#

it seems it had to be started

#

in my yaml file, i have much different immich_postgres from the example file. i am ok to align with the example file, it won't misconfigure anything?

#

database:
container_name: immich_postgres
image: tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
env_file:
- .env
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME}
volumes:
- pgdata:/var/lib/postgresql/data
restart: always

keen onyx
#

Let’s leave the Postgres untouched for now it’s working fine

stark slate
#

ok

keen onyx
#

What log error is immich giving now?

stark slate
#

i did add healthcheck to the other containers

#

let me see

#

same ... immich_server | [Nest] 17 - 12/21/2024, 5:16:34 AM ERROR [Api:StorageService] Failed to read upload/backups/.immich: Error: ENOENT: no such file or directory, open 'upload/backups/.immich'

keen onyx
#

I think you didn’t create the .immich file properly

#

Please show

stark slate
#

for reference my updated .yaml file
cat docker-compose.yml
name: immich

services:
immich-server:
container_name: immich_server
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload/
- ${THUMBS_LOCATION}:/usr/src/app/upload/thumbs/
- /etc/localtime:/etc/localtime:ro
env_file:
- .env
ports:
- 2283:2283
depends_on:
- redis
- database
restart: always
healthcheck:
disable: false

immich-machine-learning:
container_name: immich_machine_learning
image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
volumes:
- model-cache:/cache
env_file:
- .env
restart: always
healthcheck:
disable: false

redis:
container_name: immich_redis
image: redis:6.2-alpine@sha256:60e49e22fa5706cd8df7d5e0bc50ee9bab7c608039fa653c4d961014237cca46
healthcheck:
test: redis-cli ping || exit 1
restart: always

database:
container_name: immich_postgres
image: tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
env_file:
- .env
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME}
volumes:
- pgdata:/var/lib/postgresql/data
restart: always

volumes:
pgdata:
model-cache:

#

ok one sec

#

/mnt/raid10/immich-app/immich-data/upload/backups$ ll -a
total 8
drwxr-xr-x. 2 root root 4096 Dec 20 23:18 .
drwxr-xr-x. 7 root root 4096 Dec 20 23:19 ..
-rw-r--r--. 1 root root 0 Dec 20 23:18 .immich

keen onyx
#

Can you show the perms of the .immich in library?

#

No no

#

The backups folder should not be in upload

#

Should be in immich-data

stark slate
#

i see, but the error message is Failed to read upload/backups/.immich

keen onyx
#

The upload/ is the root path inside the container, not outside. It’s confusing

#

Ignore it please

stark slate
#

i see

#

That was it

#

looks to be loading now

#

Can i send you a small payment for your help ?

keen onyx
#

Glad it worked!
No need. If you’re able sometime, and don’t already have one, you can get a supporter key 🙂 https://buy.immich.app/

Buy Immich to support the development effort

#

Enjoy!

stark slate
#

Thank you i appreciate it