Skip to content

webui bricked after adding redirect host #4482

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

Open
leanderkretschmer opened this issue Apr 11, 2025 · 1 comment
Open

webui bricked after adding redirect host #4482

leanderkretschmer opened this issue Apr 11, 2025 · 1 comment
Labels

Comments

@leanderkretschmer
Copy link

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?
    • can't check right now due to it not being responsive
  • Are you sure you're not using someone else's docker image?
    • Yes
  • Have you searched for similar issues (both open and closed)?
    • Yes

Describe the bug
webui becomes unresponsive, and after a reload and server restart I can't log in anymore
I tried adding a redirect host from DNS.(domain) to dash.cloudflare.com but left the HTTPS prefix in the Cloudflare domain, after trying to save it and it not working (a red box appeared on top indicating there could be an error message, but there was no text in that field) I removed the HTTPS prefix and tried again... still nothing then I went to the SSL tab and tried to make a certificate. I clicked on the challenge and from there on I couldn't use the webui anymore and all other proxies stopped working. I get to the login page, but my credentials and the default ones don't work. It doesn't throw an error message indicating wrong credentials, just nothing.

Nginx Proxy Manager Version
v2.12.3

To Reproduce
Steps to reproduce the behavior:

  1. Go to redirect hosts
  2. Click on add host
  3. Configure the redirect on the first page
  4. leave the https:// in the redirect domain and set the type to HTTPS
  5. try saving it
  6. go to SSL
  7. Try to get a certificate

Expected behavior
All configured proxies stop working, you can't log in to the webui anymore

Screenshots
nothing to show

Operating System
Debian 12

Additional context
The VM nginx proxy manager runs on has no public IP or ports, which could lead to failed SSL challenges

@mzwoelfer
Copy link

Could not reproduce.

Installed nginx-proxy-manager with your version v2.12.3 as a container on Debian12.
(Nerdctl as container runtime)

Steps I took:

  1. Visit in browser: Server-IP:81
  2. Hosts > Redirection Hosts
  3. Click yellow button "Add Redirection Host"
  4. Entered "dns." in teh "Domain Names*" field
  5. Set "Scheme*" to HTTPS
  6. Set "Forward Domain*" to "https://dash.cloudflare.com"
  7. Click "Save" button

Entry successfully created. No error.
Setting the SSL certificate runs into an error. My machine is also local and not reachable from the internet.


Troubleshooting tips:

Check the sqlite database.

  1. Get inside the container sqlite database:
docker exec -it <npm-container-name> /bin/bash

# Install sqlite3 inside container
apt update
apt install sqlite3
sqlite3 /data/database.sqlite
  1. Identify wrong entries:
.tables
# Returns the tables

SELECT * FROM redirection_host;
  1. Delete wrong entries:
DELETE FROM redirection_host WHERE id = 1;
.quit
  1. Restart the container:
docker restart <npm-container-name>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants