Failed to renew certificate with error: Account at does not exist

Однажды случилось:

certbot renew
выдал ошибки:
Processing /etc/letsencrypt/renewal/domain.name.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Failed to renew certificate domain.name with error:
Account at /etc/letsencrypt/accounts/acme-v01.api.letsencrypt.org/directory/4e773719b3c49cf7c7fed5597dabb231
does not exist

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
All renewals failed. The following certificates could not be renewed:
  /etc/letsencrypt/live/domain.name/fullchain.pem (failure)

При этом:
1. certbot --dry-run renew поздравлял, что всё ОК
2. папки /etc/letsencrypt/accounts/acme-v01.api.letsencrypt.org не существует

Решение:

sudo -i
cd /etc/letsencrypt/accounts
1. Находим в папке /etc/letsencrypt/accounts существующий аккаунт: /etc/letsencrypt/accounts/acme-v02.api.letsencrypt.org/directory/3128b11d593a8e22b84e277d01752bc7.
2. Создаём папку, в которой nginx ищет аккаунт: mkdir -p acme-v01.api.letsencrypt.org/directory
3. Создаём в этой папке softlink с нужным именем на существующий аккаунт:
ln -s /etc/letsencrypt/accounts/acme-v02.api.letsencrypt.org/directory/3128b11d593a8e22b84e277d01752bc7 /etc/letsencrypt/accounts/acme-v01.api.letsencrypt.org/directory/4e773719b3c49cf7c7fed5597dabb231
4. Выполняем certbot renew, получаем success и перезапускаем nginx: service nginx restart.