#Where are assets stored?

1 messages · Page 1 of 1 (latest)

thin reef
#

Can someone please help me understand where Immich stores assets? I've read the documentation regarding external libraries, but am still confused.

I may have lost a significant part of my library: a large number of assets display a blurry thumbnail and show an error message when I try to view them (see screenshots). That seems to indicate that the images used to be there but now only a database reference still exists. I ran find /usr/src/app/uploads -iname "*image_0010*" in the Docker container (e.g., if the image file in the screenshot is called "IMG_0010.jpg") and it found no file.

Here's how I mapped the volume in docker-compose.yaml - I think it's correct, but maybe that trailing /upload is a problem?

    volumes:
      - uploads:/usr/src/app/upload

Here's the directory structure inside the Immich Docker container:

|-- cli
|-- server
`-- upload
    |-- backups
    |-- encoded-video
    |   `-- 72be7b0f-b367-42d5-ae86-5d5feaa481ad
    |-- library
    |   `-- 72be7b0f-b367-42d5-ae86-5d5feaa481ad
    |-- profile
    |-- thumbs
    |   `-- 72be7b0f-b367-42d5-ae86-5d5feaa481ad
    `-- upload
        `-- 72be7b0f-b367-42d5-ae86-5d5feaa481ad

Inside upload there's a library dir and a second upload dir. What's the difference? They are vastly different sizes so I'm guessing that upload/library/ is the main library and upload/upload/ is for uploads from the app:

root@433fdc9d55c6:/usr/src/app# du -s -h upload/library/ upload/upload/
246G    upload/library/
18G     upload/upload/

Amore general question about asset location: if I upload images from the Immich app, I presume they're stored somewhere in the upload dir - if so, does that mean that if I wanted all my photos to be in an external library, I would have to refrain from using the Immich app's upload feature (and roll my own method of upload images to my external library dir)?

Thanks in advance for any help or explanations you can offer!

swift sageBOT
thin reef
#

Thanks for the suggestion, @crisp ivy. I had already ready the docs on storage templates, but I don't see how it helps here. It looks like they help organize your assets, but in which directory? In the library? in the uploads dir? In both?

I've not changed my storage template since install, though I guess it's possible that an update changed the setting. Are you saying that if I run the storage template migration job, all my assets will be reorganized and those "missing" assets will work again? I don't see how: using "IMG_0010.jpg" from previous post as an example, I didn't even find the file anywhere in the /usr/src/app/upload/ dir - there seems to be no file to reorganize.

twilit widget
#

Library is the location used for assets that have run through the storage template. Assets that do not get moved or renamed remain in uploads

#

I'd say this is more of a #1049703391762321418 question, as you're asking questions specific to your instance, not just generic immich.

thin reef
#

Thanks for the explanation and suggestion, @twilit widget. I'll ask in the help-desk-support channel.
A general question: you said uploaded images are in the uploads dir, and they may be moved to the library dir if a storage template is used - is there an option to have Immich upload images to an external library?

twilit widget
#

There is not