- wordpress.py: catch image download/upload failures and skip image instead of aborting the entire WP draft update - pipeline.py: add INFO logs at each step of _do_rewrite_and_draft to trace OpenAI call, tag generation, and WP API call - telegram_bot.py: add INFO logs around rewrite execution + exc_info on error for full traceback in logs - repositories.py: include scheduled_publish_at in get_article_by_id Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1.4 KiB
1.4 KiB
Operations Runbook
Daily Checks
- App erreichbar
- Queue/Worker aktiv
- Letzte Feed-Laeufe erfolgreich
- Keine auffaelligen Fehler im Log
Incident: Feed-Import faellt aus
- RSS-Quelle erreichbar?
- Parser-Fehler im Log?
- Rate Limits oder Blockaden?
- Retry-Queue pruefen
Incident: WordPress Publish faellt aus
- WP API erreichbar?
- Credentials gueltig?
- Payload-Validation/Tag-Fehler?
- Artikel in
pendingstattfailedmarkieren, wenn unklar
Incident: Telegram-Buttons reagieren nicht / Befehle ignoriert
Ursache: N8N "App Release - Telegram Bot"-Workflow hat den Webhook überschrieben.
Prüfen:
curl -s "https://api.telegram.org/bot8403822424:AAGp8gZoNIGZv3IIan45q7P9HfM868qzXi4/getWebhookInfo" | python3 -m json.tool
→ url muss auf https://news.vanityontour.de/telegram/webhook zeigen
→ allowed_updates muss ["message", "callback_query"] enthalten
Webhook zurücksetzen:
curl -s -X POST "https://api.telegram.org/bot8403822424:AAGp8gZoNIGZv3IIan45q7P9HfM868qzXi4/setWebhook" \
-H "Content-Type: application/json" \
-d '{"url":"https://news.vanityontour.de/telegram/webhook","allowed_updates":["message","callback_query"],"secret_token":"RWWAaBwfCUX9Y573JVkB9zAeloHsZZoruXOBBgUtsvU"}'
Vollständige Dokumentation: projects/webhook/telegram-webhook-reset.md
Backups
- SQLite-Dump taeglich
- Konfiguration und
.envsicher sichern