#My installation seems to have moved

1 messages ยท Page 1 of 1 (latest)

last sapphire
#

I installed immich last week, added about 9k photos/video and sorted them into some albums.
Everything worked really well and I've managed to use Tailscale to let my fiance, currently in the Falklands, add her photos too.
However, post a re-start, (I don't think it was, but it might have been the first one after setup) it was as though the database had been wiped. I had to re-create the admin account and there was nothing there when I logged in.
The photos are still all there on the hard drive where immich saved them.
Immich is now saving all new photos to a new library on my main SSD not the HDD that I ran all the install on and that has the original library folder, docker-compse.yml and .env file.

Is there a way to point it back at the correct library and database or, failing that, just get it to save all the photos to the HDD as it was before?

I feel I should add that I'm not proficient with linux, I chose it for this computer because I really wanted to use immich and figured this would be a good incentive to start using linux. I do have a rudimentary understanding of using command lines and writing software in a couple of languages.

I've attached my docker-compose and .env

crude tideBOT
#

:wave: Hey @last sapphire,

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. :blue_square: I have verified I'm on the latest release(note that mobile app releases may take some time).
  2. :blue_square: I have read applicable release notes.
  3. :blue_square: I have reviewed the FAQs for known issues.
  4. :blue_square: I have reviewed Github for known issues.
  5. :blue_square: 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.

potent flicker
#

The libary/postgres folder will be created wherever you place the compose file. So unless you also made it somewhere else and then ran the compose command there, nothing should have changed.

Do you have two compose files? Where is the original located?

Immich is now saving all new photos to a new library on my main SSD
Is there a magic compose file right there? ๐Ÿ™‚

#

The . in ./postgres and ./library means current directory in case you didn't know

last sapphire
#

I suspected that was the case, but good to know for sure ๐Ÿ˜€
The only docker-compose file I can find is in the immich-app folder on the HDD with the original library and pstgres folders in it

potent flicker
#

can you try docker inspect immich_server | grep environment_file

last sapphire
#

if I run that straight I get:

potent flicker
#

or better yet docker inspect immich_server | grep upload

last sapphire
#

permission denied

potent flicker
#

sudo then? ๐Ÿ‘€

last sapphire
#

then it returns nothing at all

potent flicker
#

well that's strange

last sapphire
#

the server is definitely running

potent flicker
#

Just docker ps lists the immich containers?

last sapphire
#

yes

#

up 55 minutes (healthy)

potent flicker
#

how does inspect then return permission denied ๐Ÿ™ƒ

#

Screenshot me that if you can

last sapphire
#

did have to run that with sudo

potent flicker
#

No that will show the root user's containers so I imagine it will be blank

#

Ah derp nope, they run as root

#

so sudo docker inspect immich_server | grep upload

last sapphire
#

ah got something this time

#

sudo docker inspect immich_server | grep upload
"/media/user/069c76b2-086f-44f1-abd6-b9a155b0a859/immich-app/library:/usr/src/app/upload:rw",
"Destination": "/usr/src/app/upload",
"/usr/src/app/upload": {}

#

that is the new library location

#

but weirdly there isn't aw docker-compose or .env file there

potent flicker
#

Could you check the /media/user/069c76b2-086f-44f1-abd6-b9a155b0a859/immich-app/ folder for a compose file?

#

What does sudo df -hT tell you?

last sapphire
#

sudo df -hT
Filesystem Type Size Used Avail Use% Mounted on
tmpfs tmpfs 1.5G 2.1M 1.5G 1% /run
efivarfs efivarfs 128K 25K 99K 21% /sys/firmware/efi/efivars
/dev/nvme0n1p2 ext4 234G 44G 179G 20% /
tmpfs tmpfs 7.5G 4.0K 7.5G 1% /dev/shm
tmpfs tmpfs 5.0M 12K 5.0M 1% /run/lock
/dev/nvme0n1p1 vfat 511M 6.2M 505M 2% /boot/efi
tmpfs tmpfs 1.5G 2.6M 1.5G 1% /run/user/1000
overlay overlay 234G 44G 179G 20% /var/lib/docker/overlay2/4f6afee0abdc8d171e9217c7054d600d598cf3affe933a8d33a0896df772c813/merged
overlay overlay 234G 44G 179G 20% /var/lib/docker/overlay2/640806f7f1fa7fe40be549de0e41d00b6dd9a154dddee1e86ddcd504e4db8eeb/merged
overlay overlay 234G 44G 179G 20% /var/lib/docker/overlay2/de7cf80ef1005fda06b9c37d49e6248c02f7efa76dfb599347cfbb53c5cbdb45/merged
overlay overlay 234G 44G 179G 20% /var/lib/docker/overlay2/cde1ee8e92dd5fd16a88c5a5af92b44dd81adb57664dfb4fff6724fa4b450470/merged
/dev/sda1 ext4 1.8T 42G 1.7T 3% /media/user/069c76b2-086f-44f1-abd6-b9a155b0a8591

potent flicker
#

I don't see your HDD anywhere if /media/user/069c76b2-086f-44f1-abd6-b9a155b0a8591 is your SSD

last sapphire
#

That's weird, you are right that is the ssd

#

The address for the HDD is /media/user/069c76b2-086f-44f1-abd6-b9a155b0a8591/immich-app

#

or rather the address of the immich folder on the HDD

#

hold on that one is the HDD the SSD address is 069c76b2-086f-44f1-abd6-b9a155b0a859/immich-app

potent flicker
#

Ah right, close but not the same

#

/shrug In any case, you should be able to just docker compose down and docker compose up -d if you do it in the right folder

#

You'll lose any changes since the switch though

last sapphire
#

ah ok

#

that's no problem

#

wow

#

that has fixed it

potent flicker
#

I'm still very curious as to how the switch happened though

last sapphire
#

I'll try rebooting the computer and see if it happens again

potent flicker
#

What could have happened is your HDD was disconnected while immich was starting, and immich made a new folder in the same spot

last sapphire
#

Thank's so much for your help, I was pulling my hair out

potent flicker
#

-immich +docker

last sapphire
#

ah ok

#

tbh, restarting it is no huge trouble

potent flicker
#

this would explain the -1 on the end of that folder name

last sapphire
#

oh yeah

#

Are you part of the dev team?

potent flicker
#

Nope

#

I'm just a helpful user ๐Ÿ™‚

#

That's why they made me support