Creating a bug report/issue
I have searched the existing open and closed issues
Required Information
-
DietPi version |
cat /boot/dietpi/.version
G_DIETPI_VERSION_CORE=8
G_DIETPI_VERSION_SUB=25
G_DIETPI_VERSION_RC=3
G_GITBRANCH=‘8’
G_GITOWNER=‘MichaIng’ -
Distro version |
echo $G_DISTRO_NAME $G_RASPBIAN
buster 1 -
Kernel version |
uname --all
Linux DietPi-AdguardHome 5.10.103+ #1529 Tue Mar 8 12:19:18 GMT 2022 armv6l GNU/Linux -
Architecture |
dpkg --print-architecture
armhf -
SBC model |
echo $G_HW_MODEL_NAME
or (EG: RPi3)
RPi Zero (armv6l) -
Power supply used | (EG: 5V 1A RAVpower)
5V 1A RAVpower -
SD card used | (EG: SanDisk ultra)
SanDisk ultra
Additional Information (if applicable)
- Software title | (EG: Nextcloud)
Certbot - Was the software title installed freshly or updated/migrated?
- Can this issue be replicated on a fresh installation of DietPi?
← If you sent a “dietpi-bugreport”, please paste the ID here → - Bug report ID |
echo $G_HW_UUID
Steps to reproduce
“dietpi-letsencrypt renew” wasn’t working so used dietpi-letsencrypt “menu”
Something was installed (certbot?) automatically, all my settings were deleted and set to default values.
Setting to back old values (domain & email) didn’t solve the problem.
Expected behaviour
Certificate should be just renewed as it was done about 10 times before.
Actual behaviour
DietPi-LetsEncrypt
─────────────────────────────────────────────────────
Mode: Running Certbot
[ OK ] DietPi-LetsEncrypt | Lighttpd webserver detected
[ OK ] DietPi-LetsEncrypt | systemctl start lighttpd
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for xxx.yyy.eu
Using the webroot path /var/www for all unmatched domains.
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. xxx.yyy.eu (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: 111.222.333.444: Invalid response from http://xxx.yyy.eu/.well-known/acme-challenge/GgCzj7UggBpsm2ETrtPtm-yW17j3F1nXwUU8rcDJRhQ: 404
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: xxx.yyy.eu
Type: unauthorized
Detail: 111.222.333.444: Invalid response from
http://xxx.yyy.eu/.well-known/acme-challenge/GgCzj7UggBpsm2ETrtPtm-yW17j3F1nXwUU8rcDJRhQ:
404
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address.
[FAILED] DietPi-LetsEncrypt | Certbot failed, please check its above terminal output. Aborting...
—> Lighttpd is running and is reposning to http://xxx.yyy.eu & 111.222.333.444 with the placeholder page.
Extra details
Steps done before the actual status “Failed authorization procedure”:
[ INFO ] DietPi-LetsEncrypt | No webserver detected, running Certbot in standalone mode
80/tcp:
[ SUB1 ] DietPi-Services > stop
[ OK ] DietPi-Services | stop : cron
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator standalone, Installer None
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for mydomain.org
Cleaning up challenges
Problem binding to port 80: Could not bind to IPv4 or IPv6.
→ A webserver is installed and running on port 80 and responding:
“This is a placeholder page installed by the Debian release of the [Lighttpd server package.]”
“:~# service lighttpd stop —> Failed to stop lighttpd.service: Unit lighttpd.service not loaded.”
“:~# killall lighttpd —> lighttpd: No process found”
“:~# dietpi-software reinstall 84”
[ OK ] DietPi-Software | Initialised database
[ OK ] DietPi-Software | Reading database
DietPi-Software
─────────────────────────────────────────────────────
Mode: Automated reinstall
[ INFO ] DietPi-Software | 84: Lighttpd is not currently installed
[ INFO ] DietPi-Software | Use "dietpi-software install 84" to install Lighttpd.
[ OK ] DietPi-Software | No changes applied for: Lighttpd
root@DietPi-AdguardHome:~# systemctl restart lighttpd
Failed to restart lighttpd.service: Unit lighttpd.service not found.
dietpi-software —> Selecting “Install” from menu —> Directly this message:
"DietPi-Software —> No changes have been detected. Unable to start installation. "
dietpi-software —> Selecting “UnInstall” from menu:
“92 Certbot / 102 DietPI-RAMlog / 104 Dropbear”
—> Nextcloud (running) for example is missing in the list.
“”:~# dietpi-software install 84"
—> lighttpd was successfully installed (newly).