Common Issues
Bot Issues
Section titled “Bot Issues”Bot Not Responding
Section titled “Bot Not Responding”Symptoms: No reply to /start command
Causes & Solutions:
-
Container not running
Terminal window docker compose ps# Status should be "Up" -
Invalid Telegram token
- Verify token from @BotFather
- Check for typos in
.env - Regenerate if uncertain
-
Network connectivity
Terminal window docker compose exec remnawave-telegram-shop-bot \curl -I https://api.telegram.org -
Port conflict
Terminal window docker compose logs remnawave-telegram-shop-bot | grep "port\|error"
Bot Crashing
Section titled “Bot Crashing”Symptoms: Container exits unexpectedly
Check logs:
docker compose logs --tail 50 remnawave-telegram-shop-botCommon causes:
- Database connection failed
- Invalid configuration
- Out of memory
- Unhandled exception
Fix:
# Restartdocker compose restart remnawave-telegram-shop-bot
# Update if outdateddocker compose pulldocker compose up -dPayment Issues
Section titled “Payment Issues”YooKassa Payments Failing
Section titled “YooKassa Payments Failing”Check:
# Valid credentialsecho $YOOKASA_SHOP_IDecho $YOOKASA_SECRET_KEY
# Connectivitydocker compose exec remnawave-telegram-shop-bot \ curl -I https://payment.yandex.netSolutions:
- Verify Shop ID and Secret Key are correct
- Review payment logs
CryptoPay Not Working
Section titled “CryptoPay Not Working”Check:
docker compose logs remnawave-telegram-shop-bot | grep -i cryptoSolutions:
- Regenerate API token if expired
- Verify token format (no spaces)
- Check CryptoPay server status
- Test with valid cryptocurrency address
Telegram Stars Not Appearing
Section titled “Telegram Stars Not Appearing”Check:
# Verify enabledgrep TELEGRAM_STARS_ENABLED .envSolutions:
- Enable in @BotFather settings
- Verify prices are whole numbers
- Restart bot:
docker compose restart - Check user location supports Stars
Database Issues
Section titled “Database Issues”Database Connection Failed
Section titled “Database Connection Failed”Symptoms: “database connection failed” in logs
# Check if PostgreSQL is runningdocker compose ps postgres
# Check if accessibledocker compose exec postgres \ psql -U remnawave -d remnawave -c "SELECT 1"Fix:
# Restart databasedocker compose restart postgres
# Check credentials in .envgrep DATABASE_URL .env
# Full restart if neededdocker compose downdocker compose up -dDatabase is Full
Section titled “Database is Full”Symptoms: Insert/update failures
# Check sizedocker compose exec postgres \ du -sh /var/lib/postgresql/dataSolutions:
- Archive old data
- Delete unused records
- Increase disk space
- Run VACUUM:
docker compose exec postgres psql -U remnawave -d remnawave -c "VACUUM;"
Slow Database Queries
Section titled “Slow Database Queries”Symptoms: Timeouts, high latency
# Check connectionsdocker compose exec postgres \ psql -U remnawave -d remnawave -c "SELECT count(*) FROM pg_stat_activity;"
# Run analyzedocker compose exec postgres \ psql -U remnawave -d remnawave -c "ANALYZE;"Solutions:
- Create missing indexes
- Update table statistics
- Archive historical data
- Upgrade hardware
Configuration Issues
Section titled “Configuration Issues”Invalid Environment Variable
Section titled “Invalid Environment Variable”Symptom: Boot failure
Check:
# Validate .env syntaxdocker compose config
# Check for typosgrep -E "INVALID|TYPO" .envCommon mistakes:
- Missing
=sign - Unquoted values with spaces
- Invalid UUID format
- Trailing whitespace
Changes Not Taking Effect
Section titled “Changes Not Taking Effect”Cause: Bot not restarted
Solution:
docker compose downdocker compose up -dAPI Issues
Section titled “API Issues”Remnawave Panel Connection Failed
Section titled “Remnawave Panel Connection Failed”Check:
# Test connectivitydocker compose exec remnawave-telegram-shop-bot \ curl -I https://your-panel.com
# Verify credentialsgrep REMNAWAVE .envSolutions:
- Check panel is running
- Verify REMNAWAVE_URL is correct
- Check API token validity
- Review panel logs
- Verify X_API_KEY is correct
API Rate Limiting
Section titled “API Rate Limiting”Symptoms: 429 Too Many Requests
Solutions:
- Reduce sync frequency
- Increase interval between requests
- Contact panel administrator
- Check for malicious access
User Issues
Section titled “User Issues”Users Can’t Buy Subscriptions
Section titled “Users Can’t Buy Subscriptions”Check:
docker compose logs remnawave-telegram-shop-bot | grep -i purchaseCommon causes:
- Payment method not enabled
- Invalid payment credentials
- User blocked
- Insufficient funds
Solution:
- Verify payment methods enabled
- Check payment provider credentials
- Review user logs
- Test payment flow manually
Expiration Notifications Not Sending
Section titled “Expiration Notifications Not Sending”Check:
# Notification timegrep "16:00\|notification" /var/log/bot.log
# Check Telegram tokendocker compose logs remnawave-telegram-shop-bot | grep -i notificationSolutions:
- Verify system time is correct (UTC)
- Check Telegram token is valid
- Review notification logs
- Verify user language settings
- Check for rate limiting
Troubleshooting Commands
Section titled “Troubleshooting Commands”# Full diagnosticdocker compose psdocker compose logs --tail 100 remnawave-telegram-shop-botdocker compose logs -f postgres
# Test connectivitydocker compose exec remnawave-telegram-shop-bot curl -I https://api.telegram.orgdocker compose exec remnawave-telegram-shop-bot curl -I https://your-panel.com
# Check resourcesdocker stats remnawave-telegram-shop-bot
# Validate configdocker compose configWhen to Restart
Section titled “When to Restart”| Scenario | Action |
|---|---|
Changed .env | docker compose down && docker compose up -d |
| Added users to block/whitelist | Automatic (for whitelist) or restart |
| Updated Docker image | docker compose pull && docker compose up -d |
| Database issues | docker compose restart postgres |
| Full reset | docker compose down && docker compose up -d |
Getting Help
Section titled “Getting Help”If issues persist:
- Collect logs:
docker compose logs > logs.txt - Check GitHub issues
- Review documentation
- Create issue with logs and configuration (without secrets)