EACS03: get healthz endpoint: tls: failed to verify certificate: x509:

From what I see, I am getting these certificate errors due to them being made for 127.0.0.1 rather than 192.168.0.81. (I am not able to use Tunneling due to firewall restrictions.) In a likely related note, I am unable to use workspaces as they become unhealthy/unresponsive. Any ideas would be greately appreciated.
No description
No description
No description
No description
25 Replies
Atif
Atif2mo ago
Hi. Is coder running behind a reverse proxy? Or directly exposed? I will suggest using a reverse proxy like caddy
mtfplex
mtfplexOP2mo ago
It's currently directly exposed I'm not too literate, is there a guide I can follow to try that?
Atif
Atif2mo ago
Yes yes. Let me link it.
mtfplex
mtfplexOP2mo ago
I'm assumeing the main issue is that this is all being hosted on local IPs which don't have cets Thank you
Atif
Atif2mo ago
I personally use caddy.
mtfplex
mtfplexOP2mo ago
As long as I can connect via HTTP, that's fine
Atif
Atif2mo ago
Actually I am not sure. Let's try and see if it works.
Atif
Atif2mo ago
Automatic HTTPS - Caddy Documentation
Caddy is a powerful, enterprise-ready, open source web server with automatic HTTPS written in Go
Atif
Atif2mo ago
You can also check this guide if your network is air gapped. https://coder.com/docs/install/offline
Offline deployments - Coder Docs
Run Coder in offline / air-gapped environments
From An unknown user
From An unknown user
mtfplex
mtfplexOP2mo ago
I'm following this guide for setting up Caddy, and I get this error:
mounting "/home/user/Caddyfile" to rootfs at "/etc/caddy/Caddyfile": create mount destination for /etc/caddy/Caddyfile mount: cannot mkdir in /var/lib/docker/overlay2/249e867ef19cd92313b12a10c54b7a53a6249e6a94517e62677a651718f61c76/merged/etc/caddy/Caddyfile: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
mounting "/home/user/Caddyfile" to rootfs at "/etc/caddy/Caddyfile": create mount destination for /etc/caddy/Caddyfile mount: cannot mkdir in /var/lib/docker/overlay2/249e867ef19cd92313b12a10c54b7a53a6249e6a94517e62677a651718f61c76/merged/etc/caddy/Caddyfile: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
Atif
Atif2mo ago
from the error, it looks like you are mounting a file over a directory or vice virsa
mtfplex
mtfplexOP2mo ago
I'm assuming I need a domain to reverse proxy, right?
Atif
Atif2mo ago
Yes. It may be possible without that too on your internel network.
mtfplex
mtfplexOP2mo ago
After getting a domain, I now get this error with the mostly stock coder config. Am I doing something wrong?
No description
No description
No description
mtfplex
mtfplexOP2mo ago
OpenSSL SSL_connect: SSL_ERROR_SYSCALL seems to be the issue acording to cul When I use :80, I am able to see the default page on HTTP
Atif
Atif2mo ago
can you share you Caddyfile?
mtfplex
mtfplexOP2mo ago
No description
mtfplex
mtfplexOP2mo ago
There I set the selector (hidden red part) to just the domain (xyz.xyz.com)
Atif
Atif2mo ago
Make sure you follow the instructions here. Your Caddyfile should be serving Coder running locally over a reverse proxy instead of serving files from a directory.
mtfplex
mtfplexOP2mo ago
After following this guide (since the one I used and that you sent was removed), these are my Caddyfile and Docker Compose: I am able to connect to Coder via 127.0.0.1:8080 and [local_ip]:8080. However, when trying to connect to the https://[subdomain].[domain].online I get the error PR-END-OF-FILE-ERROR.
No description
No description
mtfplex
mtfplexOP2mo ago
Let's Debug gives me two errors: - ANotWorking: [subdomain].[domain].online has an A (IPv4) record ([IP]) but a request to this address over port 80 did not succeed. Your web server must have at least one working IPv4 or IPv6 address. - IssueFromLetsEncrypt: A test authorization for feta-usda.ecosearch.online to the Let's Encrypt staging service has revealed issues that may prevent any certificate for this domain being issued. After some changes, this allows Coder to be used from outside the network although on port 4433 and it gives an error regarding self-signed certs.
mtfplex
mtfplexOP2mo ago
No description
mtfplex
mtfplexOP2mo ago
Narrowed down the issue to being that Coder isn't responsive on port 80. CURL is able to get an HTML file although when I attempt to connect to Coder via HTTP on port 80 I get redirected to port 443 I'm assuming my ISP has started to block ports 80 and 443.
Phorcys
Phorcys2mo ago
getting redirected to port 443 is totally normal why do you think so? from what I can tell your instance should be healthy
Want results from more Discord servers?
Add your server