Login gets stuck

After entering the correct username and password, I click login, then the loader just keeps spinning, and nothing else happens. The console doesn't show anything either. I'm using Docker compose. Any ideas on how to fix this? Thanks in advance. Version: latest OS: Debian Browser: Sidekick (chromium), happens in guest window as well Docker logs in comments
33 Replies
Cakey Bot
Cakey Bot4w ago
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?
Manicraft1001
Manicraft10014w ago
Do you use a password manager to enter the credentials? Please share the required data by @Cakey Bot
nthpyrodev (was greatest2)
I'm just updating the post with that! No, I don't use a password manager I've also tried accessing homarr with guest
Manicraft1001
Manicraft10014w ago
Do you try to access it via Cloudflare tunnel?
nthpyrodev (was greatest2)
No, how would that help?
Manicraft1001
Manicraft10014w ago
No, just a question. Your issue sounds similar to https://discord.com/channels/972958686051962910/1285968599927885920 . @Meierschlumpf did we change recently the implementation?
nthpyrodev (was greatest2)
Thanks for your help so far, I think I'll try an older version for now, and see if that helps? FYI, I had to go back to 0.15.4 before it worked.
Meierschlumpf
Meierschlumpf4w ago
Do you have NEXTAUTH_URL configured? Okay when running version 0.15.6 locally I can sign in without any problems. Is there something like a proxy between you and your Homarr instance?
nthpyrodev (was greatest2)
no, it's on the same local network as my device No, how would I do that, and what is it for?
Meierschlumpf
Meierschlumpf4w ago
It should no longer be required and was used prior 0.15.4 to configure the url if it somehow did not work Okay that's weird
nthpyrodev (was greatest2)
Wait, I forgot, I have nginx redirecting it, so main.local would actually show main.local:7575
Meierschlumpf
Meierschlumpf4w ago
Okay, let me think Can you maybe give me a screenshot of the network tab (F12 then network on chrome) So I can see if it get's stuck already when creating the admin user or only on sign in
Meierschlumpf
Meierschlumpf4w ago
Okay can you click on the credentials entry and either give me notice of what is shown or redact all sensitive information as your password
Meierschlumpf
Meierschlumpf4w ago
Is this with 0.15.4 or 0.15.6?
nthpyrodev (was greatest2)
:latest, so I assume .6
Meierschlumpf
Meierschlumpf4w ago
In your logs nothing is shown I suspect, right?
Meierschlumpf
Meierschlumpf4w ago
Okay, it's quite weird, especially as for me I already have the cookies for csrf and callback_url set before clicking on login and then I get back the session-token. Is your nginx blocking something? Like some cookies. Also what I noticed is that somehow you have status code 304 for certain requests and 200 for others
nthpyrodev (was greatest2)
I'll share my nginx config, one sec
server {
listen 80;
server_name main.local;

location / {
proxy_pass http://127.0.0.1:7575;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}

location ^~ /nextcloud/ {
proxy_pass http://127.0.0.1:81/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;

# Chatgpt recommended the rest of the config, still working it out:
sub_filter 'href="/' 'href="/nextcloud/';
sub_filter 'src="/' 'src="/nextcloud/';
sub_filter_once off;

# WebSocket support if needed for Nextcloud
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
server {
listen 80;
server_name main.local;

location / {
proxy_pass http://127.0.0.1:7575;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}

location ^~ /nextcloud/ {
proxy_pass http://127.0.0.1:81/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;

# Chatgpt recommended the rest of the config, still working it out:
sub_filter 'href="/' 'href="/nextcloud/';
sub_filter 'src="/' 'src="/nextcloud/';
sub_filter_once off;

# WebSocket support if needed for Nextcloud
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
The nextcloud part works fine btw
Meierschlumpf
Meierschlumpf4w ago
Yeah seems fine to me I'll create a custom image for you with advanced logs, I guess then we'll find out more why it's not working
nthpyrodev (was greatest2)
Ok, thanks
Meierschlumpf
Meierschlumpf4w ago
Image tag will be credentials-login-stuck. But it takes about 5 minutes until it's build Okay it's ready Another question, can you try to set NEXTAUTH_URL to http://localhost:7575. It might be required for such setups, then we'll probably readd it to the Dockerfile and first check if there are sideeffects
nthpyrodev (was greatest2)
Ok, I have some other things to attend to first, but I will do that and get all logs etc back to you soon. Thanks WARN[0000] /home/main/test/docker-compose.yml: version is obsolete [+] Running 1/1 ✘ homarr Error Head "https://ghcr.io/v2/ajnart/credentials-login-stuck/manifests/latest": denied 0.4s Error response from daemon: Head "https://ghcr.io/v2/ajnart/credentials-login-stuck/manifests/latest": denied
Meierschlumpf
Meierschlumpf4w ago
Okay I'll look into it again, when I get back from vacation 👍🏽
Luca Vitiello
Luca Vitiello4w ago
Hey! I'm having the same issue with homarr behind an nginx reverse proxy on the same docker network with no ports exposed, should I make a new post?
Meierschlumpf
Meierschlumpf4w ago
You btw changed it on the wrong location. It's not ajnart/credentials-login-stuck:latest and rather ajnart/homarr:credentials-login-stuck 😉
Meierschlumpf
Meierschlumpf4w ago
No it's okay, we also have a github issue here
GitHub
Homarr don't work over reverse proxy · Issue #2171 · ajnart/homarr
Environment Docker Version 0.15.6 Describe the problem I hosting homarr with an docker container and have an Nginx Proxy Manager config with an local dns setup. When i try to login over the revese ...
nthpyrodev (was greatest2)
Oh sorry, thanks. I'm not encountering the issue anymore when using that image...
Meierschlumpf
Meierschlumpf4w ago
There is a new image tag that I shared in the github issue above where it should work. You can try it out as well if you want
Meierschlumpf
Meierschlumpf3w ago
Fixed in 0.15.7
GitHub
Release v0.15.7 · ajnart/homarr
NoteWe've been working actively on working torwards version 1.0 which will include many improvements to performance, security and the overall look & feel of Homarr. It will greatly overhaul...
Want results from more Discord servers?
Add your server