#Images and videos sporadically just don't work.

1 messages · Page 1 of 1 (latest)

crystal tangle
#

I have set up Immich using the docker compose setup from the quickstart guide, with no modifications to the docker compose file. The contents of my .env file are attached. This is running on an Ubuntu 24.04 machine. The UPLOAD_LOCATION is an NFS mount from my Synology NAS.

I have uploaded about 800 images and 60 videos. Most of the videos will not play when I try to view them in the browser. Some images will fail to load properly when I zoom into them in the browser, showing a small icon reading "Error loading image".

I will include the error from the log file as a reply to this thread.

Edit: I am not using a reverse proxy, this is all on local network or on localhost itself. I have tried multiple browsers.

visual tangleBOT
#

:wave: Hey @crystal tangle,

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.

crystal tangle
#
visual tangleBOT
hexed fulcrum
#

Error: EACCES: permission denied, access 'upload/library/max/2016/2016-07-04/DSC00065.jpg'

crystal tangle
#

I do not know why that permission would be denied. It is not blocked for any reason.

hexed fulcrum
#

It appears that it is. Can you check the permissions from the container command line?

crystal tangle
#

Good idea.

#

One sec

#

Where is that located in the container?

hexed fulcrum
#

Should be at that path I believe. Docker exec -it immich_server /bin/bash

crystal tangle
#

Oh it is in /usr/src/app

hexed fulcrum
crystal tangle
#
total 145948
drwxrwxrwx  2 1024 users     4096 Jun  8 14:49 .
drwxrwxrwx 12 1024 users     4096 Jun  8 14:42 ..
-rw-r--r--  1 1024 users 20657664 Jul  4  2016 DSC00060.arw
-rw-r--r--  1 1024 users  4046564 Jul  4  2016 DSC00060.jpg
-rw-r--r--  1 1024 users 20784640 Jul  4  2016 DSC00061.arw
-rw-r--r--  1 1024 users  4888276 Jul  4  2016 DSC00061.jpg
-rw-r--r--  1 1024 users 20594176 Jul  4  2016 DSC00062.arw
-rw-r--r--  1 1024 users  4046288 Jul  4  2016 DSC00062.jpg
-rw-r--r--  1 1024 users 20763648 Jul  4  2016 DSC00063.arw
-rw-r--r--  1 1024 users  4920677 Jul  4  2016 DSC00063.jpg
-rw-r--r--  1 1024 users 20633088 Jul  4  2016 DSC00064.arw
-rw-r--r--  1 1024 users  3623591 Jul  4  2016 DSC00064.jpg
-rw-r--r--  1 1024 users 20556800 Jul  4  2016 DSC00065.arw
-rw-r--r--  1 1024 users  3904278 Jul  4  2016 DSC00065.jpg```
#

So all the images have the same access settings

#

But 0065.JPG is working fine, for example

#

Wait now they are all working 😐

#

Alright. Well this is bizarre. If I run ls -la in the directory things work fine. 😐

#

Docker is running bare metal. It is just a stock ubuntu 24.04 install with docker. I use the docker-compose from the website to set up a stack for immich.

#

So I just did this:

  • Navigated in the browser to another day (July 2nd 2016). None of the videos from that day were working, and half the images were not showing well.
  • I then ran ls -la in the container in that directory.
  • Now all the images and videos in that day work fine.
#

Oh it is just the JPGs that do not work. I have some matching ARWs and they all work fine.

#

And videos that do not work.

hexed fulcrum
#

That's odd..

crystal tangle
#

I might do a screen capture in the near future so you don't think I am actually insane.

#

I restarted the whole stack and all those previously "broken" images work great now

#

But I can still navigate to a new day and they will not work.

crystal tangle
#

Ah! I changed the params for my NFS mount from rw,hard,intr to rw,tcp,noatime,nolock,hard,intr,actimeo=1 and now things appear to work.

crystal tangle
#

Hm. I just added another 1000 photos to the library and now 90% of them don't work. They don't show thumbnails, they won't load. Using the "Generate Thumbnails" job in settings will kick off a job and say there are ~500 "waiting" which get cleared after a few seconds. If click "Missing" again it runs again.

#

OH. Some of the images are not showing on disk for some reason.

ls: cannot access 'DSC_5888.jpg': Permission denied
ls: cannot access 'DSC_5881.jpg': Permission denied
ls: cannot access 'DSC_5889.jpg': Permission denied
ls: cannot access 'DSC_5897.jpg': Permission denied
total 51332
drwxrwxrwx  2 1024 users    4096 Jun  9 22:05 ./
drwxrwxrwx 52 1024 users    4096 Jun  7 10:50 ../
-rw-r--r--  1 1024 users 1370784 Jun 17  2012 DSC_5878.jpg
??????????  ? ?    ?           ?            ? DSC_5879.jpg
-rw-r--r--  1 1024 users 2388047 Jun 17  2012 DSC_5880.jpg
??????????  ? ?    ?           ?            ? DSC_5881.jpg
??????????  ? ?    ?           ?            ? DSC_5882.jpg
#

(Truncated)

ember vale
#

These ??? usually mean trouble with your NFS mount, the files are partially missing

crystal tangle
#

I uploaded them through the Immich web UI. Any clue why they might go to ??? ?

#

I unmounted the NFS mount and remounted it, and the files look fine now.