Skip to content
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

Not Compatible with Nginx Proxy Manager? #2986

Open
kylebial0 opened this issue Jun 19, 2024 · 0 comments
Open

Not Compatible with Nginx Proxy Manager? #2986

kylebial0 opened this issue Jun 19, 2024 · 0 comments

Comments

@kylebial0
Copy link

kylebial0 commented Jun 19, 2024

Environment
I am looking to utilize NetMaker on my homelab that is running Proxmox on a LXC container. I have a Nginx Proxy Manager LXC setup that is forwarding the required sub-domains to the LXC hosting NetMaker, including API.{NM_DOMAIN}, Dashboard.{NM_DOMAIN}, grpc.{NM_DOMAIN}, and broker.{NM_DOMAIN}.

Issue Description
When I install NetMaker utilizing the quick installer provided, I receive the following

`-----------------------------------------------------------------
Beginning installation...
-----------------------------------------------------------------
. . .
. . .
. . .
Pulling config files...
Saving the config to /root/netmaker.env
Starting containers...
WARN[0000] /root/docker-compose.yml: `version` is obsolete 
[+] Running 5/5
 ✔ Container caddy        Started                                                                                                                                                                                      11.8s 
 ✔ Container netmaker     Started                                                                                                                                                                                      11.8s 
 ✔ Container coredns      Started                                                                                                                                                                                      12.3s 
 ✔ Container mq           Started                                                                                                                                                                                      12.4s 
 ✔ Container netmaker-ui  Started                                                                                                                                                                                      12.4s 
/root
. . .
. . .
Testing Caddy setup (please be patient, this may take 1-2 minutes)
    Certificates ok
Downloading nmctl...
using server api.netmaker.DOMAIN.com
using master key MASTER KEY VALUE
2024/06/18 23:41:25 Error Status: 502 Response: <html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>openresty</center>
</body>
</html>
. . .
. . .
. . .
. . .
. . .
2024/06/18 23:41:30 Error Status: 502 Response: <html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>openresty</center>
</body>
</html>
/root/nm-quick.sh: line 726: [: : integer expression expected
Obtaining a netmaker enrollment key...
2024/06/18 23:41:30 Error Status: 502 Response: <html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>openresty</center>
</body>
</html>
Error creating an enrollment key`

Expected Outcome

I would expect for NetMaker to install successfully.

Does anyone have any recommendations of what I can try? I have spent hours diagnosing this issue and have not had any luck.

I have tried using the community docker-compose script to run without Caddy, and that also did not work for me. Whenever I try accessing dashboard, I reach the 502 openresty page.

I know my proxy manager itself is working correctly, because traffic will forward to other LXCs I am running. I'm assuming this may have something to do with headers, but I am not nearly experienced enough with Nginx or Caddy to track down the issue.

Any recommendations would be greatly appreciated!

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

No branches or pull requests

1 participant