:ro of external library is being ignored

I have the tree rows added to my docker compose-file under volumes: from the immich_server:
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
- /etc/localtime:/etc/localtime:ro
- /mnt/diskpool-1/plexmedia/fotos:/mnt/thorsten/fotos:ro
- /mnt/diskpool-1/homefolders/username/fotos:/mnt/username/fotos:ro
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
- /etc/localtime:/etc/localtime:ro
- /mnt/diskpool-1/plexmedia/fotos:/mnt/thorsten/fotos:ro
- /mnt/diskpool-1/homefolders/username/fotos:/mnt/username/fotos:ro
The :ro is being ignored, I can delete fotos over the immich web UI. What is the problem here?
16 Replies
Immich
Immich4mo ago
:wave: Hey @Nordlicht-13, 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 - Container Logs: docker compose logs docs - Container Status: docker ps -a docs - Reverse Proxy: https://immich.app/docs/administration/reverse-proxy - Code Formatting https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline#h_01GY0DAKGXDEHE263BCAYEGFJA
Immich
Immich4mo ago
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. :blue_square: uploaded the relevant information (see below). 7. :blue_square: 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.
GitHub
immich-app immich · Discussions
Explore the GitHub Discussions forum for immich-app immich. Discuss code, ask questions & collaborate with the developer community.
GitHub
Issues · immich-app/immich
High performance self-hosted photo and video management solution. - Issues · immich-app/immich
bo0tzz
bo0tzz4mo ago
That's not how it works; Immich isn't aware of something being mounted readonly and will still try to delete, it just won't work.
Nordlicht-13
Nordlicht-13OP4mo ago
So the :ro is as much as a hole in the head?
Mraedis
Mraedis4mo ago
That's a weird expression I've never heard before. the :ro is still read-only, nothing gets deleted (or written)
Nordlicht-13
Nordlicht-13OP4mo ago
I just deleted a foto from the exernal library that has the :ro over the web UI
Mraedis
Mraedis4mo ago
Yes and it's still in your external library, it will get re-added once the library scan completes So the file is still there, it's just temporarily removed from the immich UI
Nordlicht-13
Nordlicht-13OP4mo ago
Ah, okay, got it and understand now. In older versions from immich the foto was still shown in the UI, but those were the days, when the external libraries were :ro by default. Thanks for the help and clarification. Just did a scan of the library, but it don't shows up again. So immich hides deleted files and the original foto stays on the external storage. So I will open the external library again and work with the trash. Deleting it without :ro, the file also stays on the NAS. Guess deleting fotos from external libraries has to happen on the file-layer.
bo0tzz
bo0tzz4mo ago
In testing this, are you deleting the asset from Immich's trash as well?
Nordlicht-13
Nordlicht-13OP4mo ago
Yes, deleted a foto from the normal view, and then in the trash. The foto still was on the NAS. Just double checked, deleting fotos from upload and trash removes the original file, deleting foto from external library and trash don't removes the original file.
Zeus
Zeus4mo ago
Yes it’s read only so that’s expected When you re scan after emptying trash it will come back
Nordlicht-13
Nordlicht-13OP4mo ago
No, thats not expected. When it's read only it should be unable to delete it, but it's removed in immich, but not from the original location (that's good). When you set the external library to normal without :ro, then deleting foto from external library and trash don't removes the original file. (I expected that the file is deleted)
Zeus
Zeus4mo ago
Likely your filesystem permissions are setup incorrectly. If not read only, it will delete when emptying the trash.
Nordlicht-13
Nordlicht-13OP4mo ago
That might be right, the dataset was setup for plex, with the user and group plex and user apps (568) for the immich app under TrueNAS. Now that I run immich under dockge I probably need to add another user. Or should I change the PUID and PGID in the immich-yaml-file?
bo0tzz
bo0tzz4mo ago
Those env vars don't do anything for Immich
Nordlicht-13
Nordlicht-13OP4mo ago
Okay, then I set the user and group to root for the plex dataset and add plex as another user to it. Thanks, again for the help.

Did you find this page helpful?