Râu Cao raucao
  • Joined on 2018-11-24
raucao commented on issue kosmos/chef#271 2021-01-08 08:25:45 +00:00
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.

raucao created pull request kosmos/chef#282 2021-01-07 14:14:24 +00:00
WIP: Move PostgreSQL to VMs and access via Zerotier
raucao pushed to feature/postgres_vms at kosmos/chef 2021-01-07 12:55:07 +00:00
4872677066 Configure postgres recipes for VMs and zerotier access
raucao pushed to feature/postgres_vms at kosmos/chef 2021-01-07 11:54:12 +00:00
9d9907f0ed Remove extra license copy from recipe, update year
4309efd228 Add postgres-2 VM
raucao deleted branch feature/280-postgres_vm from kosmos/chef 2021-01-07 11:29:43 +00:00
raucao pushed to master at kosmos/chef 2021-01-07 11:29:38 +00:00
4ca875a77b Merge pull request 'Create postgres-1 VM' (#281) from feature/280-postgres_vm into master
af54777250 Create postgresql-1 VM
f6086e2f6a Add the firewall rules to the postgresql role
Compare 3 commits »
raucao merged pull request kosmos/chef#281 2021-01-07 11:29:38 +00:00
Create postgres-1 VM
raucao opened issue kosmos/chef#280 2021-01-07 11:01:30 +00:00
Move Postgres nodes to VMs, use Zerotier to connect
raucao commented on pull request kosmos/chef#278 2021-01-06 18:15:09 +00:00
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.

raucao pushed to chore/move_wormhole at kosmos/chef 2021-01-06 18:12:52 +00:00
1eb73711a2 Remove application_javascript usage from wormhole recipe
raucao created pull request kosmos/chef#279 2021-01-06 10:31:14 +00:00
Add script for notifying Kosmos channels from Ruby
raucao pushed to feature/notify_xmpp_from_ruby at kosmos/chef 2021-01-06 10:30:06 +00:00
eb4764026b Add script for notifying Kosmos channels from Ruby
raucao created pull request kosmos/chef#278 2021-01-05 17:05:06 +00:00
Move wormhole from barnard to nodejs-2
raucao pushed to chore/move_wormhole at kosmos/chef 2021-01-05 17:04:51 +00:00
fe63f01f7b Move wormhole from barnard to nodejs-2
raucao pushed to chore/move_wormhole at kosmos/chef 2021-01-05 17:02:58 +00:00
raucao commented on issue kosmos/chef#271 2021-01-05 16:34:15 +00:00
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
raucao deleted branch feauture/lnd from kosmos/chef 2021-01-05 10:33:43 +00:00
raucao pushed to master at kosmos/chef 2021-01-05 10:33:38 +00:00
333a76f086 Merge pull request 'Configure and run LND and RTL' (#274) from feauture/lnd into master
9ab097dd9a Merge pull request 'Configure local LND as Lightning node in BTCPay Server' (#275) from feature/btcpay_lnd_settings into feauture/lnd
adfd76aa64 Configure local LND as Lightning node in BTCPay Server
2b765e744a Configure and run RTL
19e3dfa7b9 Remove obsolete non-standard RPC and REST ports
Compare 8 commits »
raucao merged pull request kosmos/chef#274 2021-01-05 10:33:38 +00:00
Configure and run LND and RTL
raucao deleted branch feature/btcpay_lnd_settings from kosmos/chef 2021-01-05 10:33:05 +00:00