netbirdio / dashboard

NetBird Management Service Web UI Panel
https://app.netbird.io
BSD 3-Clause "New" or "Revised" License
270 stars 61 forks source link

Cant start netbird because of lets encrypt #387

Closed support-tt closed 5 months ago

support-tt commented 5 months ago

Describe the problem I updated our server today and for some reason I get :

infrastructure_files-dashboard-1   | + LETSENCRYPT_EMAIL=MAIL
infrastructure_files-dashboard-1   | + NGINX_SSL_PORT=443
infrastructure_files-dashboard-1   | + '[' my.domain.de-x == none-x ']'
infrastructure_files-dashboard-1   | + certbot -n --nginx --agree-tos --email MAIL -d my.domain.de --https-port 443
infrastructure_files-dashboard-1   | NetBird latest version: 
infrastructure_files-dashboard-1   | Saving debug log to /var/log/letsencrypt/letsencrypt.log
infrastructure_files-dashboard-1   | Renewing an existing certificate for my.domain.de
infrastructure_files-dashboard-1   | An unexpected error occurred:
infrastructure_files-dashboard-1   | There were too many requests of a given type :: Error creating new order :: too many certificates (5) already issued for this exact set of domains in the last 168 hours: my.domain.de, retry after 2024-06-05T08:39:04Z: see https://letsencrypt.org/docs/duplicate-certificate-limit/
infrastructure_files-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.

I dont touched the server for around 2 months so I have no idea why I got a ratting limit. But now my Dashboard doesnt start anymore and I cant reach my network ... Is there a way to start the dashboard manually ? Because my "old" cert is still valid for 2 weeks and is still in the lets encrypt docker volume. I dont see any newer certs in the lets encrypt volume.

Expected behavior

netbird should start the dashboard even is the renew doesnt work for some reason.

Are you using NetBird Cloud?

no its self hosted

NetBird version

Updated to the latest tag so 27.10 and dashboard v2.3.0

Any idea someone ..

support-tt commented 5 months ago

ok i added the nginx SSL konfig to /etc/nginx/http.d/default.conf as a workaround. Hopefully I can recreate the cert tomorrow. What I dont understand why I got the rating limit when I dont touched the server for about 2 months

support-tt commented 5 months ago

I completely remvoed the lets encrypt volume and readded it now its fine again. I never touched it before must be a problem with an update or so. I am using netbird since about version 25 so maybe it was a historical problem.