-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Automatic local URL switching frequently fails #15220
Comments
Do you know if this is happening when you are on mobile data or on a different WIFI network? |
@alextran1502 It happens both ways. The other day I had it happen on mobile data, and today I had it happen while on my work Wi-Fi. Wish I could give more info, but I can't seem to reproduce it reliably... |
Thanks, I will investigate this |
@alextran1502 Not sure if this is helpful, but I just noticed it actually goes the other way, too. I just opened Immich on my local network, and it continued using the remote URL until an app restart. |
@ShawnTheBeachy can you let me know where do you confirm the connection info? |
@alextran1502 I'm tapping on my profile photo in the top right corner and checking the "Server URL" in the popup. |
Ah that is not necessarily reflecting the correct info. There is a caching bug of showing the value. However, it is using the correct url |
@alextran1502 Ah I see! Perhaps there’s overlap with some other bug, then? I just encountered this issue again and I did some testing; the app was non-functional until I did a restart and it showed the correct (remote) URL. Any attempts to refresh the library, view albums, search, etc. just showed a spinner indefinitely. I also checked the logs, and it did say “Resuming session at [my local URL]” even though I wasn’t on my Wi-Fi. EDIT: Looking at the logs more, it does actually look like the sync was succeeding, though. Perhaps some parts of the UI just aren’t using the correct URL or something…? |
The bug
I have automatic URL switching set up when I am on my home network. I have the following setup:
External network: Only one entry: my externally accessible URL.
Local network: My Wi-Fi name and local URL
I'm not able to reproduce it reliably, but probably 8 times out of 10 when I open the iOS app not on my local network, it still tries to use the local URL. Restarting the app usually switches it to the remote URL.
The OS that Immich Server is running on
Docker on Windows
Version of Immich Server
v1.124.2
Version of Immich Mobile App
v1.124.0 build.187
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Relevant log output
No response
Additional information
Immich's "Location" permissions are set to Always.
The text was updated successfully, but these errors were encountered: