Skip to content

[Mobile/Android] Deleting an asset on external network domain tries to use local network domain #24510

@jackroberts-gh

Description

@jackroberts-gh

I have searched the existing issues, both open and closed, to make sure this is not a duplicate report.

  • Yes

The bug

I use the local/external network configuration such that at home on the WiFi, immich.local.example.com is the domain and resolves to a local IP, but when not on the WiFi, it's immich.example.com. I can connect to immich.example.com via Tailscale when away from home, where it resolves to a tailscale IP.

I noticed that when away from home and connected to Tailscale, Immich is using the correct external domain, and I can browse Immich, watch videos, etc. However, if I try to delete an image/asset, nothing happens. Upon checking the logs, I find an error "Failed to delete assets" and notice that it's trying to use my local domain (immich.local.example.com) to delete the asset, rather than the external domain which it's using for everything else. The "active domain" in the app shows as immich.example.com, indicating the app should be using that domain for everything.

I tested via the web, and deleting an asset worked, so this seems to strictly be a mobile bug.

The OS that Immich Server is running on

Raspbian / Debian GNU/Linux 12 (bookworm)

Version of Immich Server

v2.3.1

Version of Immich Mobile App

v2.3.0.build.3027

Platform with the issue

  • Server
  • Web
  • Mobile

Device make and model

Google Pixel 9a

Your docker-compose.yml content

N/A for this bug

Your .env content

N/A for this bug

Reproduction steps

  1. Set up two domains such that only one is resolvable on the local WiFi, and the other is only accessible off the WiFi (i.e. a set up as described in the Description)
  2. Configure Immich so that the domain resolvable off-WiFi is the external network
  3. Via the mobile app, attempt to delete an image whilst off the home WiFi

Relevant log output

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    To triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions