Добавлены рекомендации по обработке ошибки превышения лимита запросов к API reg.ru. Внедрены задержки перед запросами для защиты от rate limit. Обновлены сообщения об ошибках с инструкциями по устранению неполадок.

This commit is contained in:
Dmitriy Fofanov
2025-10-29 22:12:05 +03:00
parent 3682379d98
commit 17469e8427
3 changed files with 104 additions and 0 deletions

View File

@@ -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