fix(bot): install libgssapi-krb5-2 in runtime image — restore Telegram long-polling (v3.9.6) #130

Closed
Toutsu wants to merge 0 commits from fix/issue-129-libgssapi into main
Owner

Merged via local no-ff fallback because the Gitea PR merge API returned HTTP 405. Main contains merge commit 4424d8f.

Merged via local no-ff fallback because the Gitea PR merge API returned HTTP 405. Main contains merge commit 4424d8f.
Toutsu added 1 commit 2026-06-09 12:22:36 +03:00
fix(bot): install libgssapi-krb5-2 in runtime image
PR Checks / test-and-build (pull_request) Successful in 13m32s
1f3fb6e89e
Telegram bot's long-polling hangs after the first GetUpdates request
because libgssapi-krb5.so.2 is missing from the runtime-deps:10.0-noble
final image. .NET runtime attempts dlopen() of libgssapi during the
HTTPS handshake; without the library the HttpClient connection pool
enters an unrecoverable state and TelegramBotService never receives
new updates, even though SessionSchedulerService keeps sending
outgoing messages successfully.

Symptom (Loki, container gmrelaybot-bot-1):
  Telegram bot polling started
  Polling error, retrying in 5s
  Telegram.Bot.Exceptions.RequestException: Bot API Service Failure
  Cannot load library libgssapi_krb5.so.2

After the single Polling error, no Error handling update, no further
Polling error, and getUpdates from outside returns [] forever.

Fix: install libgssapi-krb5-2 alongside wget in the final stage of
src/GmRelay.Bot/Dockerfile. This also future-proofs Npgsql GSS/SSPI
Kerberos authentication for PostgreSQL.

Closes #129.

Bump version 3.9.5 -> 3.9.6
Toutsu closed this pull request 2026-06-09 12:43:22 +03:00
Some checks are pending
PR Checks / test-and-build (pull_request) Successful in 13m32s

Pull request closed

Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Toutsu/GmRelayBot#130