-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
v1.107.2 - Mobile Proxy Headers Not Working (I think?) #10799
Comments
@matejkramny any ideas? |
Quick update: I changed the URL of the server to one that doesn't exist and I get "Server is not reachable". So my best theory so far is that when the app "pings" the server it's getting the Cloudflare login page, but thinks that's okay. And then for some reason doesn't like the "version"? So it's possible it's a configuration issue on my tunnel, I'll have to test the service token in a browser later today and see what happens. |
The 200 is the cloudflare login page. Any chance you are able to test connecting to immicha using the cloudflare headers with curl first? Check the PR here I wrote some documentation around configuring the tokens: #10755 |
Tested with Firefox and it was just forwarding me to the login page even with the headers. But... then re-read the instructions and noticed I'd chosen "Allow" for the policy (you know, to allow connections) instead of "Service Auth". 😐 Anyway, working fine now. Thank you again for work on this! |
Hi, yes that's a common pitfall - happened to me too. I'll make it clearer in the document |
The bug
I have Immich working fine locally, and it works through the Cloudflare Tunnel if I'm using a web browser externally. Was super excited to see #10588 merged, but after adding in the headers on the mobile app I'm not able to login to my server.
When I try to login I get a red error box that says, "Your app major version is not compatible with the server!" which is an unexpected error. Each time I attempt to login, the logs on the mobile app (even on FINEST) show only a "Pinging server with response code 200" log entry. Cloudflare doesn't report the service token has having been used, and the server doesn't have any log entries from my login attempts.
I'm a bit stuck as to how to proceed with troubleshooting the issue. Why would I get a version mismatch error? Why no error in the logs (or why does the API ping succeed)? I don't know for sure this is actually a bug, but need help figuring out what's going on.
(Probably unrelated, but the Proxy Headers UI in the mobile app has two fields: "Header name" and "Header name"-- I assume the second one is the value.)
The OS that Immich Server is running on
Immich Docker - release
Version of Immich Server
v1.107.2
Version of Immich Mobile App
v1.107.1
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: