Can't log in using my password when connecting through Nginx Proxy Manager
I have setup Homarr through docker on my machine. I have another VM on the network with full access to the containers ip. I've setup NPM, with and without https. When I open the homarr link it shows me the login page for Homarr but when I type the password it states that either the credentials are incorrect or the user doesn't exist.
When I do the same throught the direct ip/port address it works fine.
Also, I notice in the docker logs that when I log in directly, I get a message in the logs that username "XXX" has attampted login and user was authroized. When I do the same through NPM there are no logs at all. it's like the web UI is responding without actually running anything.
Any ideas?
here's my docker compose:
Solution:Jump to solution
I finally solved it by regenerating the docker container on another machine and pointing the NPM to it. I have no idea what caused the issue but it's good enough for me.
12 Replies
Thank you for submitting a support request.
Depending on the volume of requests, our team should get in contact with you shortly.
⚠️ Please include the following details in your post or we may reject your request without further comment: - Log (See https://homarr.dev/docs/community/faq#how-do-i-open-the-console--log) - Operating system (Unraid, TrueNAS, Ubuntu, ...) - Exact Homarr version (eg. 0.15.0, not latest) - Configuration (eg. docker-compose, screenshot or similar. Use ``your-text`` to format) - Other relevant information (eg. your devices, your browser, ...)
❓ Frequently Asked Questions | Homarr documentation
Can I install Homarr on a Raspberry Pi?
Logs:
As you can see, there is nothing in the logs even though I entered my username and password.
You tried all that was suggested by the AI in that discussion you messaged on earlier?
https://discord.com/channels/972958686051962910/1205280246706995251
Beginning with nextauth_url that I see you don't have in your environment
I added it, but it made no difference. it's like the login request isn't even propogating to Homarr. like it's not listening to it or something. As I mentioned, I don't see anything in the logs regarding a login attempt at all.
is there something list a trusted_proxies or listen on interface environment command I should try?
Since it's not going to homarr's check the logs in your browser's console
I'm now seeing that trying to access using my phone to the direct ip is having the same problem. apparently I can only seem to login using my pc (different pc from the VM) using the direct ip. is it possible there is agent filtering going on?
all i'm seeing in the response log on the browser is 401 Unauthorized response to my POST
The 401 comes from nginx most probably, so there might be something in the way that nginx is setup that blocks the request
Maybe it's not allowing for you to post, only get
Given that it is used with the exact same configuration with 40 other servers, I doubt it's an inherent problem with the NPM, if there is any thing I can share that would help debug this, please don't hasitate to let me know. I can run custom code or run the log with added verbosity if that help you.
Solution
I finally solved it by regenerating the docker container on another machine and pointing the NPM to it. I have no idea what caused the issue but it's good enough for me.
Frankly, no idea either. That's the problem when there's so many redirects and elements in the chain.
Glad you solved it somehow and the solution is good for you.
It's not a realy answer but it might give a hint for the next one with a similar problem.
My guess would be the VM/bridge layer somehow.