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.
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
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!