Block a user
ejabberd cluster node disconnects
Not entirely related to the cluster disconnects, but also about disconnects:
wormhole is getting disconnected exactly every hour, on the second sharp, from when it connects to XMPP. Eventually, it fails to re-join MUC rooms then, but without an error or event on the client side. (At least not visible in the wormhole logs.)
The session should keep for 24 hours, so I'm wondering if there's an error in that config somewhere.
WIP: Move PostgreSQL to VMs and access via Zerotier
Move Postgres nodes to VMs, use Zerotier to connect
Move wormhole from barnard to nodejs-2
I just added another commit, where I have rewritten the recipe to not use the deprecated application_javascript resource anymore, and which also uses the systemd_unit Chef resource.
Add script for notifying Kosmos channels from Ruby
Move wormhole from barnard to nodejs-2
ejabberd cluster node disconnects
Happened again today, so I wrote a quick Ruby script, and added a cron job that is logging the output to /root/cron.log for now:
cluster_nodes = `/opt/ejabberd-20.04/bin/ejabberdctl list_cluster`
node_names = cluster_nodes.gsub("'","").lines.map(&:chomp)
if node_names.include?("ejabberd@draco.kosmos.org")
# Cluster nodes are connected, so we're good
else
# For some reason, draco isn't connected anymore
puts "#{DateTime.now.to_s} ejabberd@draco.kosmos.org not found in node list, re-connecting..."
`/opt/ejabberd-20.04/bin/ejabberdctl join_cluster ejabberd@draco.kosmos.org`
end