#Upgraded, and now all my images are missing.

1 messages · Page 1 of 1 (latest)

warm raft
#

So that's no fun!

I upgraded, a couple steps and got to current.

Everything was fine, i connected my mobile app, that was fine.

A couple hours later, and now it shows no images. My external library is still registered, and shows all the images there, but they aren't in immich anymore...

Thoughts? how would i go about checking the DB directly?

tawdry pulsarBOT
#

:wave: Hey @warm raft,

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.

tawdry pulsarBOT
slim plover
#
  1. Please post the info requested above^^

  2. Also please clarify whether this

A couple hours later, and now it shows no images <...> but they aren't in immich anymore...
is about web or mobile or both?

  1. Also please clarify

My external library is still registered, and shows all the images there

warm raft
#

hi, both.

#

My images are in an 'external library' , immich still sees them, but they are not imported, ie: the photos screen shows NO photos at all.

slim plover
#

Have you checked Trash?

warm raft
#

ho, there they are.

#

hm. any idea how that would have happened?

#

other than i selected them, and deleted them?

#

is there a very dangerous hotkey i may have clicked?

#

they are currently restoring.

#

'select all' is grinding to a stop,

#

in trash, any thoughts on batch restoring?

#

ah, i can click restore mid-select.

#

the restore-all button doesn't seem to work, just 'restored 0 photos'

#

the restore mid-select isn't working either.

magic arch
#

If they're all in the trash and restoring/rescan doesn't work, it might be that the container did not mount the volume properly

#

Check inside the container whether the files are mounted

slim plover
#

Right, there are essentially 2 ways how assets may end up in trash:

  • user action (delete)
  • wrong/failing mount that causes files to "disappear" from Immich perspective
warm raft
#

ok great, what would i check for? the photos show up in the trash, so the drive is mounted...

magic arch
#

That's not how it works

warm raft
#

ok.

magic arch
#

The thumbnails are in the trash

warm raft
#

happy to follow instructions.

#

ah ok.

magic arch
#

you would docker exec -it immich_server /bin/bash and navigate to the directory you mounted them at, or just docker exec -i immich_server ls -la /path/to/mount to see if they're there

warm raft
#

correct, the moutn /mnt/user/data is not there.

#

mount.

magic arch
#

Verify the mount is present on the host if that's applicable and then just docker compose down && docker compose up -d

#

If this is a network mount you might want to look into using CIFS directly in the volume section of the compose with the hard option, not soft, so the container goes down (and up) when the mount does

warm raft
#

its local on my unraid server.

#

so i did down and up, still no mount..

#

i can see those are not being mounted

#

i should add the mounts to the imich-server/volumes config?

magic arch
#

What's actually in your compose?

warm raft
#

not sure what happened.

#

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:
- .env
ports:
- '2283:2283'
depends_on:
- redis
- database
restart: always
healthcheck:

#

so, the mounts aren't tehre.

#

i guess i replaced compose when i upgraded.

#

with the new one.

#

ok... hmm.

#

ok, i see the external libray location is mismapped for some reason now.

#

ok, in my .nev

#

.env

#

The location where your uploaded files are stored

UPLOAD_LOCATION=/mnt/user/data/media/photos
IMPORT_LOCATION=/mnt/user/data/media/icloud/bill

#

that is correct

#

the maps present in the immich-server docker however

#

does not include the import location

#

so in short, my import location (where i drop photos from icloud), is not mapped in, and not available to the external library.

magic arch
#

Did you put it in the volume section?

warm raft
#

Correct, it is NOT there.

#

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

#

so, i should add my import location.

magic arch
#
${UPLOAD_LOCATION}:/usr/src/app/upload
${IMPORT_LOCATION}:/whatever/the/mnt/is/in/the/gui
warm raft
#

yep.

#

i replaced the dockerfile as part of the upgrade, this must have been there.

#

it kept working, until i restarted the docker, and it dropped the mount.

#

makes sense.

#

ok.

#

external library is set to the import location, and looks healthy in admin.

#

photos are still in trash

#

and i cant seem to restore.

#

that file is on disk however.

#

im in the shell , in the server docker,

#

does it need to do a scan of some sort to correct that?

#

Thanks a tonne you both.

#

learning.

magic arch
#

Yes, you can trigger a rescan in the library section of the admin settings

#

trash = 30 days before delete

#

But a rescan happens every night 🙂

warm raft
#

aok.

#

scanning.

magic arch
#

It should automatically restore them as well when scanning

warm raft
#

that seems to be working yeah.

#

i'm backed up 6 ways from sunday, but wanted to understand what happened. now i do!

#

I wrote a script to synch icloud favorites with immich.

magic arch
#

So for the future, when applying the new docker compose don't forget to apply your customizations 🙂

warm raft
#

works a treat.

#

the immich API is very fast.

magic arch
#

if everything's OK you can close the topic with /close

warm raft
#

thanks again.