Table of contents
Context
XMPP tends to fail quit often... Here are a few tips & tricks to debug and maintain the software.
(Re)start the XMPP job
Normally you would do so in Nomad but due to context reasons on the web app (missing local config files) it wouldn't work.
SSH into one of the nodes (no need to connect to the specific node running the XMPP job)
Go into the nix-cluster repo, be sure to be on the latest version (git pull) and then, from the root of you repo, run cd apps/xmpp
Then you can stop the nomad job using :
nomad job stop xmpp
And start it again using :
nomad job run prosody.hcl
And you're good to go :-)
Access the debug logs
SSH into the node hosting the XMPP job (e.g. Loulou) and list the running docker containers using docker ps it should display something like this :
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
9b4ae6d75b4b git.shenanigans.cc/zuma/prosody:filouterie "/usr/bin/tini -- /e…" 10 minutes ago Up 10 minutes prosody-7aef364f-dbe6-c926-c390-49957cc6bca1
405ddd361adc litestream/litestream:0.5.9 "/usr/local/bin/lite…" 10 minutes ago Up 10 minutes replicate-db-7aef364f-dbe6-c926-c390-49957cc6bca1
54f0dffa84bd searxng/searxng:latest "/usr/local/searxng/…" 4 days ago Up 4 days server-964c137e-abeb-27f4-171f-c1d645f5392b
1ec59a089d8f grafana/grafana:12.3.2 "/run.sh" 12 days ago Up 12 days grafana-723cd515-e578-9429-2dd9-309fef7bbb74
629534c44092 litestream/litestream:0.5.9 "/usr/local/bin/lite…" 12 days ago Up 12 days replicate-db-723cd515-e578-9429-2dd9-309fef7bbb74
a3f859254db9 victoriametrics/victoria-metrics:v1.138.0 "/victoria-metrics-p…" 12 days ago Up 12 days victoriametrics-81c8794f-5441-7398-bc71-1cd752e00579
90cb9e6e79bb victoriametrics/vmagent:v1.138.0 "/vmagent-prod --pro…" 12 days ago Up 12 days vmagent-81c8794f-5441-7398-bc71-1cd752e00579
f2b68dedb559 git.shenanigans.cc/zuma/d53:b1478ed-dirty "/bin/d53" 12 days ago Up 12 days d53-b29b8d4f-317e-5d88-9d56-748afede213a
6b8f28ac43ae quay.io/prometheus/node-exporter:v1.10.2 "/bin/node_exporter …" 12 days ago Up 12 days 10.0.3.1:9100->9100/tcp, 10.0.3.1:9100->9100/udp node_exporter-c6791a70-4ac4-a5e2-07bc-80b903ee05f4
7a5c6d2a8245 git.shenanigans.cc/zuma/diplonat:filouterie "/usr/local/sbin/dip…" 12 days ago Up 12 days diplonat-6d3bb2f8-bd0c-70b6-54ce-9e0bc0a2264e
5d07400513dd dxflrs/garage:v2.1.0 "/garage server" 12 days ago Up 12 days server-aec47895-d4c2-381e-601d-2529a5bf2d73
0530c4c68b93 codeberg.org/forgejo/forgejo:13-rootless "/usr/bin/dumb-init …" 12 days ago Up 12 days server-d3fe0cb8-02c5-3b58-63d9-9d98bef0a0e8
fe3139445702 git.shenanigans.cc/zuma/tricot:filouterie "/nix/store/y1sa9sr5…" 12 days ago Up 12 days server-bdf44c0f-ba25-0505-fec3-ee1c01dba82e
The XMPP server software that we are using is Prosody so take note of the prosody container ID, here it is : prosody-7aef364f-dbe6-c926-c390-49957cc6bca1
You can then access the Prosody shell using :
docker exec -it <container_id> prosodyctl shell
And once in shell you can use this command to see the debug logs :
watch:log()