-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Items appear in trash and can not be restored #13035
Comments
I have the issue and have started working on it. |
I tried to reproduce your problem, without success. |
So far I have not been able to reproduce this in the demo version. There are a couple of items that I'm unable to test in the demo environment however:
|
I'm guessing this is specific to external library assets that are "offline". They are in the trash for now while we work on making a dedicated page for them, which will be home to the new "system integrity" page. |
I don't believe I have any external library assets, especially none that are offline. This is a relatively new instance (created last weekend) and all of my media has been added via immich-go or the immich mobile application. Everything exists on my zfs pool (/mnt/storage/) including media and database. |
Interesting. The only thing I have seen that could cause this is a timezone issue where "now" is an incorrect date and the database is in another timezone or something. Can you confirm the timezone of the immich server? |
Wow! No idea how you determined that, but after uploading most (all?) of my images, I noticed that I had forgot to set the correct timezone on the host VM and ran dpkg-reconfigure tzdata. I've tried restarting the immich stack as well as setting the timezone back to UTC and restarting the stack, but I'm still having the issue with these stuck in the trash. Any suggestions on how to resolve the issue? edit: I gave up and simply set deletedAt to null for all assets, which at least appears to have solved having these photos being stuck in the trash. Not sure if you want to leave this open to solve the bigger problem of handling timezone changes, but I'll leave that up to you. I do have TZ=America/Denver in my .env. Just checked the docker containers: The host machine is America/Denver |
I'm facing the same issue, any solution? |
You should be able to select the assets individually or hit "select all" and then delete them. I believe the issue is specifically with the "empty trash" button when the database is in a different timezone than the server. |
Just wanted to report that I have the same (or similar) issue, but seemingly without the timezone factor? For me, there were many assets in trash that were not counted in the Trash statistics (showed as "0 photos, 0 videos") and could not be deleted by the "empty trash" button. I had to delete them by selecting all and clicking the delete button instead. I think that all my containers are running in UTC though: ubuntu@immich:~$ date
Sun Oct 6 06:20:59 UTC 2024
ubuntu@immich:~$ docker exec immich_server date
Sun Oct 6 06:21:14 UTC 2024
ubuntu@immich:~$ docker exec immich_redis date
Sun Oct 6 06:21:20 UTC 2024
ubuntu@immich:~$ docker exec immich_postgres date
Sun Oct 6 06:21:25 AM UTC 2024
ubuntu@immich:~$ docker exec immich_postgres psql -U postgres -c "SHOW TIMEZONE;"
TimeZone
----------
Etc/UTC
(1 row) In case it helps, I only noticed this after upgrading today from 1.115.0 to 1.117.0 (though it may have been present before, I just didn't try to empty the trash until now). |
@dpad For additional information, are you using external library? |
@alextran1502 Thanks for checking. No, I'm not using an external library. |
I'll expand on what I did today in case it helps.
Based on the above, I would suspect it may be something due to the upgrade from 1.115.0 -> 1.117.0. It's possible that this issue was present before, but I only noticed and tried emptying the trash today after the upgrade. |
@alextran1502 By the way, I have database backups going back at least several weeks. I'd prefer not to share them directly, but I'm happy to run some queries on them if you need. |
Hello, same problem here. Trash info says "0 video, 0 photo" but there's 185 items in it. They are not in an external library and I do not want to delete them. When I restore them, they soon reappear in the trash. The Info section for each photo says that the resource is no longer on the disk, but the file is exactly at the path shown in the error panel and permissions are the same of all other thousands of pictures that are correctly shown in the timeline. My folder is on a NAS and I tried to mount it both with smb and nfs. |
The bug
I have several hundred items listed under the Trash section in Immich. When attempting to restore these items they appear to restore, but after refreshing the page they reappear. The info button next to the "Trash" says that I have 0 pictures and 0 videos in Trash.
Screen.Recording.2024-09-29.at.11.00.57.AM.mp4
The OS that Immich Server is running on
Ubuntu 22.04
Version of Immich Server
v1.116.2
Version of Immich Mobile App
v1.116.2
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Relevant log output
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: