[GH-ISSUE #4198] Error generating Let's Encrypt certificate - Self-Hosted #8242

Open
opened 2026-08-05 01:17:00 -04:00 by saavagebueno · 0 comments
Owner

Originally created by @DanMarqz on GitHub (Jul 22, 2025).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/4198

Describe the problem

Error generating Let's Encrypt certificate

Hello, with the v0.51.2 update, I encountered errors starting Netbird while creating the Let's Encrypt certificate. The error is more detailed in the dashboard container. However, due to this error, the management container cannot run and keeps restarting.

To Reproduce

Steps to reproduce the behavior:
All configuration steps with Keycloak: https://docs.netbird.io/selfhosted/selfhosted-guide
When you are at "Step 6: Run Docker Compose" execute : docker compose up

Expected behavior

The signal, management, coturn, and dashboard containers are expected to be running. However, the management container cannot run.

Are you using NetBird Cloud?

No, self-hosted version

NetBird version

netbird version 0.51.2

Is any other VPN software installed?

No

Debug output

These are the error logs for the dashboard and management containers.

management-1  | 2025-07-21T19:54:46Z ERRO [context: SYSTEM] management/cmd/management.go:264: cannot load TLS credentials: open /etc/letsencrypt/live/mydomain.com/fullchain.pem: no such file or directory
management-1  | Error: open /etc/letsencrypt/live/mydomain.com/fullchain.pem: no such file or directory

dashboard-1  | + LETSENCRYPT_DOMAIN=mydomain.com
dashboard-1  | + LETSENCRYPT_EMAIL=mail@mydomain.com
dashboard-1  | + NGINX_SSL_PORT=443
dashboard-1  | + '[' mydomain.com-x == none-x ']'
dashboard-1  | + certbot -n --nginx --agree-tos --email mail@mydomain.com -d mydomain.com --https-port 443
dashboard-1  | NetBird latest version: 
dashboard-1  | Saving debug log to /var/log/letsencrypt/letsencrypt.log
dashboard-1  | Requesting a certificate for mydomain.com
dashboard-1  | NetBird latest version: 
dashboard-1  | 51.159.104.219 - - [21/Jul/2025:22:05:20 +0000] "GET / HTTP/1.0" 200 8126 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.1311.103 Safari/537.36" "-"
dashboard-1  | An unexpected error occurred:
dashboard-1  | acme.errors.ClientError: <Response [405]>
dashboard-1  | Ask for help or search for solutions at https://community.letsencrypt.org/. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
dashboard-1  | 51.159.106.48 - - [21/Jul/2025:22:07:56 +0000] "GET / HTTP/1.1" 200 8126 "-" "-" "-"

Additional context

Apparently it is an error in the new version v0.51.2, since I tried to do it again with version v0.51.1 and this error does not occur, everything went up without problems.

Have you tried these troubleshooting steps?

  • Reviewed client troubleshooting (if applicable)
  • Checked for newer NetBird versions
  • Searched for similar issues on GitHub (including closed ones)
  • Restarted the NetBird client
  • Disabled other VPN software
  • Checked firewall settings
Originally created by @DanMarqz on GitHub (Jul 22, 2025). Original GitHub issue: https://github.com/netbirdio/netbird/issues/4198 **Describe the problem** Error generating Let's Encrypt certificate Hello, with the v0.51.2 update, I encountered errors starting Netbird while creating the Let's Encrypt certificate. The error is more detailed in the dashboard container. However, due to this error, the management container cannot run and keeps restarting. **To Reproduce** Steps to reproduce the behavior: All configuration steps with Keycloak: https://docs.netbird.io/selfhosted/selfhosted-guide When you are at "Step 6: Run Docker Compose" execute : `docker compose up` **Expected behavior** The signal, management, coturn, and dashboard containers are expected to be running. However, the management container cannot run. **Are you using NetBird Cloud?** No, self-hosted version **NetBird version** `netbird version` 0.51.2 **Is any other VPN software installed?** No **Debug output** These are the error logs for the dashboard and management containers. ``` management-1 | 2025-07-21T19:54:46Z ERRO [context: SYSTEM] management/cmd/management.go:264: cannot load TLS credentials: open /etc/letsencrypt/live/mydomain.com/fullchain.pem: no such file or directory management-1 | Error: open /etc/letsencrypt/live/mydomain.com/fullchain.pem: no such file or directory dashboard-1 | + LETSENCRYPT_DOMAIN=mydomain.com dashboard-1 | + LETSENCRYPT_EMAIL=mail@mydomain.com dashboard-1 | + NGINX_SSL_PORT=443 dashboard-1 | + '[' mydomain.com-x == none-x ']' dashboard-1 | + certbot -n --nginx --agree-tos --email mail@mydomain.com -d mydomain.com --https-port 443 dashboard-1 | NetBird latest version: dashboard-1 | Saving debug log to /var/log/letsencrypt/letsencrypt.log dashboard-1 | Requesting a certificate for mydomain.com dashboard-1 | NetBird latest version: dashboard-1 | 51.159.104.219 - - [21/Jul/2025:22:05:20 +0000] "GET / HTTP/1.0" 200 8126 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.1311.103 Safari/537.36" "-" dashboard-1 | An unexpected error occurred: dashboard-1 | acme.errors.ClientError: <Response [405]> dashboard-1 | Ask for help or search for solutions at https://community.letsencrypt.org/. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details. dashboard-1 | 51.159.106.48 - - [21/Jul/2025:22:07:56 +0000] "GET / HTTP/1.1" 200 8126 "-" "-" "-" ``` **Additional context** Apparently it is an error in the new version v0.51.2, since I tried to do it again with version v0.51.1 and this error does not occur, everything went up without problems. **Have you tried these troubleshooting steps?** - [x] Reviewed [client troubleshooting](https://docs.netbird.io/how-to/troubleshooting-client) (if applicable) - [x] Checked for newer NetBird versions - [x] Searched for similar issues on GitHub (including closed ones) - [x] Restarted the NetBird client - [ ] Disabled other VPN software - [x] Checked firewall settings
saavagebueno added the triage-needed label 2026-08-05 01:17:00 -04:00
Sign in to join this conversation.
No Label triage-needed
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#8242