#error loading image

1 messages · Page 1 of 1 (latest)

trim sluice
#

I am getting this error on almost all photos in my external library which is mounted via SMB.
The SMB share is always available and gets new files added every day and the newest ones get displayed as expected, but not older ones.
Anyone can help?

pallid yarrowBOT
#

:wave: Hey @trim sluice,

Thanks for reaching out to us. Please follow the recommended actions below; this will help us be more effective in our support effort and leave more time for building Immich immich.

References

Checklist

  1. :ballot_box_with_check: I have verified I'm on the latest release(note that mobile app releases may take some time).
  2. :ballot_box_with_check: I have read applicable release notes.
  3. :ballot_box_with_check: I have reviewed the FAQs for known issues.
  4. :ballot_box_with_check: I have reviewed Github for known issues.
  5. :ballot_box_with_check: I have tried accessing Immich via local ip (without a custom reverse proxy).
  6. :blue_square: I have uploaded the relevant logs, docker compose, and .env files, making sure to use code formatting.
  7. :blue_square: I have 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)

If this ticket can be closed you can use the /close command, and re-open it later if needed.

robust pond
#

are the jobs still running?

#

if not, then your SMB mount could have been unmounted during the upload period

trim sluice
#

Hello @robust pond , my SMB mount is most certainly not offline during any time because it is onmy local 24/7 available NAS system

#

Which jobs do you mean specifically?

#

My cron is set to run the library jobs every hour: " 0 */1 * * * "

robust pond
trim sluice
tiny atlas
#

There are lots of way a SMB mount point can get messed up.. to say this is totally impossible is a pretty big misconception

trim sluice
tiny atlas
#

Can you post the logs and docker compose and env as requested by the bot please

trim sluice
#

My SMB share is permanently mounted on my docker host system (debian12):

//192.168.178.40/chris/CameraUpload /mnt/photos cifs uid=0,credentials=/root/.credentials,iocharset=utf8,vers=3.0,noperm 0 0

tiny atlas
#

what in the world is this: - ${IMMICH_MEDIA_LOCATION}:/usr/src/app/photos

#

from our docs: IMMICH_MEDIA_LOCATION Media Location inside the container :warning:You probably shouldn't set this*1:warning:

trim sluice
#

.env inside portainer:

tiny atlas
#

why did you set that..?

trim sluice
#

Took that from some documentatioon, I'm not 100% sure

tiny atlas
#

ok, because our documentation says specifically not to use that

#

has it been like that all along, or added partway through?

trim sluice
#

If I remember correctly that was the only working way to get my SMB share available as a external library

tiny atlas
#

no, that's not correct

trim sluice
#

it's been like that the whole time

trim sluice
tiny atlas
#

I would recommend starting over this installation seems quite broken. would have to see the logs but I doubt this is recoverable. you basically have mounted two different folders inside each other, and neither one of them is actually where your photos are being stored right now

trim sluice
#

Can you hint me to a corrected compose file? You've seen the correct paths

tiny atlas
#

sure. where is the external library you want?

trim sluice
#

It's mounted on my docker host as /mnt/photos

#

//192.168.178.40/chris/CameraUpload 5.4T 2.2T 3.3T 40% /mnt/photos

tiny atlas
#

ok and where do you want to put the immich folders? it can't be a subfolder of that

trim sluice
#

I've got my container data inside this directory: /home/chris/docker-compose/immich

tiny atlas
#

yes but what about the uploaded images?

#

it can't go into the same external library or there will be a circular logic of imports

trim sluice
#

I dont use immich upload

#

My photos get synced to my SMB share a different way

tiny atlas
#

ok then you should just get a brand new docker compose and add only this line under the volumes: for immich-server
- /mnt/photos:/mnt/photos

#

then add /mnt/photos as an external library path

#

get a brand new .env as well

trim sluice
#

I'll try

tiny atlas
#

you shld delete the old postgres folder which will reset everything, users albums etc

trim sluice
#

Ok

#

I'll just stop the container and remove it's volume

#

How should my .env file look?

tiny atlas
#

Like a brand new one from Immich

#

Start over

trim sluice
#

Is this OK? (editing)

#

`# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables

#The location where to scan for existing files
#IMMICH_MEDIA_LOCATION=/mnt/photos

The location where your uploaded files are stored

UPLOAD_LOCATION=/home/chris/docker-compose/immich/upload

The location where your database files are stored

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 "v1.71.0"

IMMICH_VERSION=release

Connection secret for postgres. You should change it to a random password

DB_PASSWORD=postgres

The values below this line do not need to be changed

###################################################################################
DB_USERNAME=postgres
DB_DATABASE_NAME=immich`

tiny atlas
#

sure but you should empty the UPLOAD_LOCATION folder as well
You should never ever use IMMICH_MEDIA_LOCATIOn for this so would probably delete that

trim sluice
#

Yeah it's commented out

#

The upload directory itself is empty as I never use it

#

So it's now running the "extract metadata" job and my CPU is at 100% load on all cores

#

Video transcode is also running on my GPU

tiny atlas
#

Oh yeah if you didn’t empty UPLOAD_LOCATION path like I mentioned you will have lots of extra thumbnails just sitting around

trim sluice
#

Like I said, that directory is empty

#

root@MediaBox:/home/chris/docker-compose/immich/upload# ls -lah total 8.0K drwxr-xr-x 2 root root 4.0K Sep 12 22:08 . drwxr-xr-x 3 root root 4.0K Sep 12 22:08 ..

robust pond
#

from the original screenshot, I saw that there are some photos show up and some with broken thumbnail. What is the percentage of the broken thumbnail on your timeline?

trim sluice
#

It's always like the newest images are getting loaded and everything a few days old gets "forgot"

#

I redeployed my stack and I'll let all jubs finish before I take a new look at everything. I would give it the benefit of the doubt that it might be all there once all jobs are finished

#

Thank you for your suggestions so far, I will give an update tomorrow.

#

It looks like my server is going to take a minute do get a full rescan done

robust pond
trim sluice
#

Hello @robust pond and @tiny atlas, it looks like redeploying with the corrected paths did the trick. All images are loading and have thumbnails and faces are getting recognized.