Skip to content
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

Albums deleted outside of Immich result in broken images/album #15079

Open
2 of 3 tasks
arghpy opened this issue Jan 4, 2025 · 5 comments
Open
2 of 3 tasks

Albums deleted outside of Immich result in broken images/album #15079

arghpy opened this issue Jan 4, 2025 · 5 comments

Comments

@arghpy
Copy link

arghpy commented Jan 4, 2025

The bug

Trying to free up some space, I came across the following problem:
locally deleting an album which was previously synced from phone, caused broken images in the app.

The OS that Immich Server is running on

Arch Linux

Version of Immich Server

v1.123.0

Version of Immich Mobile App

v1.123.0

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

Not modified.

Your .env content

# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables

# The location where your uploaded files are stored
UPLOAD_LOCATION=/immich_data/data
# The location where your database files are stored
DB_DATA_LOCATION=/immich_db/db

# To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
TZ=XXXX

# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=release

# Connection secret for postgres. You should change it to a random password
# Please use only the characters `A-Za-z0-9`, without special characters or spaces
DB_PASSWORD=XXXX

# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=postgres
DB_DATABASE_NAME=immich

Reproduction steps

  1. Backup and Sync an album
  2. Locally delete the album
  3. Check the pictures in app/web

Relevant log output

2025-01-04 17:45:54.896372 | SEVERE   | ImmichLocalImageProvider | Error loading local image ZpV8EMn8XZ_8V1GipeeZ4y-xeXJiQD5vlJkLTSJ7NN1ty9ZdHG6AVDA-71QsjsaL4A-3687446447.png | PlatformException(201, Failed to find the asset 1000033458, null, null) |
#0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:648)
#1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:334)
<asynchronous suspension>
#2      ImmichLocalImageProvider._codec (package:immich_mobile/providers/image/immich_local_image_provider.dart:63)
<asynchronous suspension>
#3      new MultiImageStreamCompleter.<anonymous closure> (package:cached_network_image/src/image_provider/multi_image_stream_completer.dart:26)
<asynchronous suspension>

2025-01-04 17:45:39.095040 | INFO     | AssetNotifier        | Load assets: 6395ms |
2025-01-04 17:45:39.094904 | INFO     | AlbumService         | Syncing completed. Changes: true |
2025-01-04 17:45:38.939539 | INFO     | SyncService          | Removed local album Test Album from DB |
2025-01-04 17:45:38.935848 | INFO     | SyncService          | Removing local album Test Album from DB |
2025-01-04 17:45:38.836227 | INFO     | SyncService          | Fast synced local album Screenshots to DB |
2025-01-04 17:45:38.726828 | INFO     | SyncService          | Synced changes of remote album Screenshots to DB |
2025-01-04 17:45:37.915618 | INFO     | SyncService          | Synced changes of remote album Recent to DB |
2025-01-04 17:45:33.808530 | INFO     | BackupNotifier       | _getBackupAlbumsInfo: Found 16 available albums |
2025-01-04 17:45:33.737456 | SEVERE   | BackupNotifier       | Selected album not found |

Additional information

While searching through the issues I saw that this problem was mentioned elsewhere in the form of a comment (last one from #2486). I've opened a new issue as that one was quite old and had other problems mentioned.

I'm really impressed with this project. Looking forward to contribute to one of your goals for this year!

@alextran1502
Copy link
Contributor

This is a known issue, you can workaround this by signout/sign back in

@bo0tzz
Copy link
Member

bo0tzz commented Jan 4, 2025

#14845

@bo0tzz bo0tzz closed this as not planned Won't fix, can't repro, duplicate, stale Jan 4, 2025
@arghpy
Copy link
Author

arghpy commented Jan 4, 2025

Thank you for the help! And sorry for the extra work generated.

@alextran1502
Copy link
Contributor

No problem, thank you!

@pingu8007
Copy link

@bo0tzz #14845 is closed in favor of #15230. Since this is not a network issue, should this issue reopen or is there another meta issue for invalid cache?

@bo0tzz bo0tzz reopened this Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants