Добавлены рекомендации по обработке ошибки превышения лимита запросов к API reg.ru. Внедрены задержки перед запросами для защиты от rate limit. Обновлены сообщения об ошибках с инструкциями по устранению неполадок.
This commit is contained in:
@@ -89,6 +89,42 @@ curl -s https://ipinfo.io/ip
|
||||
sudo letsencrypt-regru --test-api
|
||||
```
|
||||
|
||||
## ❌ Issue: "IP exceeded allowed connection rate"
|
||||
|
||||
### Cause
|
||||
Reg.ru API limits request frequency from single IP (typically 10-20 requests per minute).
|
||||
|
||||
### ✅ Solution
|
||||
|
||||
1. **Wait 5-10 minutes**
|
||||
```bash
|
||||
# Wait before next attempt
|
||||
sleep 600 # 10 minutes
|
||||
sudo letsencrypt-regru --obtain
|
||||
```
|
||||
|
||||
2. **Configure automation properly**
|
||||
```bash
|
||||
# Check certificates once per day
|
||||
sudo systemctl enable letsencrypt-regru.timer
|
||||
sudo systemctl start letsencrypt-regru.timer
|
||||
|
||||
# Check schedule
|
||||
sudo systemctl cat letsencrypt-regru.timer
|
||||
```
|
||||
|
||||
3. **Request frequency recommendations**
|
||||
- ✅ Automatic check: **once per day**
|
||||
- ✅ Manual check: **no more than once per hour**
|
||||
- ❌ Avoid frequent `--test-api` tests
|
||||
- ❌ Don't create frequent cron jobs
|
||||
|
||||
4. **Use --check instead of --obtain**
|
||||
```bash
|
||||
# Check without creating certificate
|
||||
sudo letsencrypt-regru --check
|
||||
```
|
||||
|
||||
## ❌ Issue: Connection timeout
|
||||
|
||||
### ✅ Solution
|
||||
|
||||
@@ -89,6 +89,42 @@ curl -s https://ipinfo.io/ip
|
||||
sudo letsencrypt-regru --test-api
|
||||
```
|
||||
|
||||
## ❌ Проблема: "IP exceeded allowed connection rate"
|
||||
|
||||
### Причина
|
||||
API reg.ru ограничивает частоту запросов с одного IP (обычно 10-20 запросов в минуту).
|
||||
|
||||
### ✅ Решение
|
||||
|
||||
1. **Подождите 5-10 минут**
|
||||
```bash
|
||||
# Подождите перед следующей попыткой
|
||||
sleep 600 # 10 минут
|
||||
sudo letsencrypt-regru --obtain
|
||||
```
|
||||
|
||||
2. **Настройте автоматизацию правильно**
|
||||
```bash
|
||||
# Проверка сертификатов 1 раз в день
|
||||
sudo systemctl enable letsencrypt-regru.timer
|
||||
sudo systemctl start letsencrypt-regru.timer
|
||||
|
||||
# Проверить расписание
|
||||
sudo systemctl cat letsencrypt-regru.timer
|
||||
```
|
||||
|
||||
3. **Рекомендации по частоте запросов**
|
||||
- ✅ Автоматическая проверка: **1 раз в день**
|
||||
- ✅ Ручная проверка: **не чаще 1 раза в час**
|
||||
- ❌ Избегайте частых тестов `--test-api`
|
||||
- ❌ Не создавайте cron с частым запуском
|
||||
|
||||
4. **Используйте --check вместо --obtain**
|
||||
```bash
|
||||
# Проверка без создания сертификата
|
||||
sudo letsencrypt-regru --check
|
||||
```
|
||||
|
||||
## ❌ Проблема: Таймаут подключения
|
||||
|
||||
### ✅ Решение
|
||||
|
||||
Reference in New Issue
Block a user