🚀 v26.4.10 - Telegram Bot Çift Instance, Log Format ve UI Düzeltmeleri
Sürüm Tipi: Hotfix
Odak: Otomatik güncelleme sonrası Telegram botu çift başlaması, syslog mesaj format sorunu ve menü renk düzeltmesi
🐛 Hata Düzeltmeleri
-
Telegram botu çift instance (409 Conflict) sorunu kalıcı olarak düzeltildi
- Kök neden: Otomatik güncelleme (HM_AUTOUPDATE_MODE=2) sonrası bot subshell içinde başlatılıyordu;
$!daemon'ın değil subshell'in PID'ini yazıyordu. Subshell ölünce PID dosyası geçersiz kalıyordu. Aynı loop turunda çalışantgbot_watchdoggeçersiz PID'i görüp botu bir kez daha başlatıyordu - Düzeltme 1: Bot başlatılır başlatılmaz
/tmp/tgbot_just_restartedflag dosyası oluşturuluyor;tgbot_watchdogbu flag'i görünce o turu atlıyor ve flag'i siliyor - Düzeltme 2:
sleep 1yerine max 5 saniyelik ps retry döngüsü — bot process'i bulunana kadar bekliyor, gerçek daemon PID'ini PID dosyasına yazıyor
- Kök neden: Otomatik güncelleme (HM_AUTOUPDATE_MODE=2) sonrası bot subshell içinde başlatılıyordu;
-
Sistem Log uyarı mesajındaki format bozukluğu düzeltildi
- Telegram'a gönderilen syslog satırları başındaki boşluklar temizleniyor
- Her satır başına
•işareti ekleniyor — hangi servisin sorun yaşadığı net görünüyor
✅ İyileştirmeler
- Menü 9 — WAN Arayüzü seçimi:
[Mevcut: ppp0]içindeki arayüz adı artık yeşil ve kalın görünüyor
⚙️ Notlar
- 409 sorunu yalnızca
HM_AUTOUPDATE_MODE=2(Oto Kur) aktifken tetikleniyordu - Tüm bot başlatma noktaları incelendi — hepsi güvenli
- Mevcut kurulumlar güvenle güncellenebilir
🚀 v26.4.10 - Telegram Bot Duplicate Instance, Log Format and UI Fixes
Release Type: Hotfix
Focus: Fixed duplicate Telegram bot instances after auto-update, syslog message formatting, and menu color improvement
🐛 Bug Fixes
-
Telegram bot duplicate instance (409 Conflict) permanently fixed
- Root cause: After auto-update (HM_AUTOUPDATE_MODE=2), bot was started inside a subshell;
$!captured the subshell PID instead of the daemon PID. When the subshell exited, the PID file became invalid.tgbot_watchdogrunning in the same loop iteration saw the invalid PID and started the bot again - Fix 1: Immediately after starting the bot, a
/tmp/tgbot_just_restartedflag file is created;tgbot_watchdogskips that iteration when this flag exists and removes it - Fix 2:
sleep 1replaced with a ps retry loop (max 5 seconds) — waits until the daemon process is found, then writes the real PID to the PID file
- Root cause: After auto-update (HM_AUTOUPDATE_MODE=2), bot was started inside a subshell;
-
System Log alert message formatting fixed
- Leading whitespace stripped from syslog lines sent to Telegram
- Each line now prefixed with
•— the affected service is clearly visible
✅ Improvements
- Menu 9 — WAN Interface selection: The interface name in
[Current: ppp0]is now displayed in bold green
⚙️ Notes
- The 409 issue only triggered when
HM_AUTOUPDATE_MODE=2(Auto Install) was active - All bot start points reviewed — all confirmed safe
- Existing installations can be safely updated