EasyEngine / EasyEngine/easyengine
SSL certificate fails to be renewed
- Lingua principale
- PHP
- Stelle
- 2.2k
- Fork
- 424
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
```
Debug: Loading account keypair (33.751s)
Debug: Starting check with solver http (33.751s)
Debug: Loading the authorization token for domains [REDACTED], www.[REDACTED] ... (33.752s)
Debug: Challenge loaded. (33.752s)
Debug: Testing the challenge for domain [REDACTED] (36.953s)
```
Then in this step, it gets stuck for a long time.
Finally, I get a PHP Fatal:
```
PHP Fatal error: Uncaught Exception: Can not validate challenge for domain [REDACTED] in phar:///usr/local/bin/ee/vendor/easyengine/site-command/src/helper/Site_Letsencrypt.php:387
Stack trace:
#0 phar:///usr/local/bin/ee/vendor/easyengine/site-command/src/helper/class-ee-site.php(1536): EE\Site\Type\Site_Letsencrypt->check(Array, '0', '')
#1 phar:///usr/local/bin/ee/vendor/easyengine/site-command/src/helper/class-ee-site.php(1422): EE\Site\Type\EE_Site_Command->ssl(Array, Array, true)
#2 phar:///usr/local/bin/ee/vendor/easyengine/site-command/src/helper/class-ee-site.php(1363): EE\Site\Type\EE_Site_Command->init_le('[REDACTED]', '/opt/easyengine...', '0', true, false, Array)
#3 phar:///usr/local/bin/ee/vendor/easyengine/site-command/src/helper/class-ee-site.php(1303): EE\Site\Type\EE_Site_Command->init_ssl('[REDACTED]', '/opt/easyengine...', 'le', '0', true, false, Array)
#4 phar:///usr/local/bin/ee/vendor/easyengine/site-command/src/helper/class-ee-site.php(1668): EE\Site\Type\EE_Site_Command->www_ssl_wrapper in phar:///usr/local/bin/ee/vendor/easyengine/site-command/src/helper/Site_Letsencrypt.php on line 387
```
What I'm noticing is that while the command is running, the website goes completely down. I think the proxy container is not behaving well, so the LE challenge doesn't complete properly.
```
+-------------------+---------------------------------------------------------------------------+
| OS | Linux 4.15.0-96-generic #97-Ubuntu SMP Wed Apr 1 03:25:46 UTC 2020 x86_64 |
| Shell | /bin/bash |
| PHP binary | /usr/bin/php7.3 |
| PHP version | 7.3.18-1+ubuntu18.04.1+deb.sury.org+1 |
| php.ini used | /etc/php/7.3/cli/php.ini |
| EE root dir | phar://ee.phar |
| EE vendor dir | phar://ee.phar/vendor |
| EE phar path | /root |
| EE packages dir | |
| EE global config | /opt/easyengine/config/config.yml |
| EE project config | |
| EE version | 4.1.3 |
+-------------------+---------------------------------------------------------------------------+
```
```
LSB Version: core-9.20170808ubuntu1-noarch:security-9.20170808ubuntu1-noarch
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic
```
Docker version 19.03.9, build 9d988398e7
docker-compose version 1.25.5, build 8a1c60f6
- [x] ee cli info
- [x] lsb_release -a
- [x] docker version
- [x] docker-compose version
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia da vendor/easyengine/site-command/src/helper/Site_Letsencrypt.php alla riga 387 e dal flusso SSL in class-ee-site.php intorno alle righe 1303–1536. Riproduci il comando di rinnovo con le versioni segnalate di Docker e Docker Compose, quindi traccia il controllo della challenge HTTP e il comportamento del container proxy. Il lavoro è completato quando la challenge viene convalidata e il sito web rimane disponibile durante il rinnovo.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- docker, docker-compose, nginx, php
- Ambito
- devops, infrastructure, security
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100