From 54e8d367e8e5b8d227880ddfaeb9a49702eca2de Mon Sep 17 00:00:00 2001 From: damencho Date: Sat, 22 Mar 2025 22:51:45 -0500 Subject: [PATCH] fix(prosody): Trying to fix hanging register command. --- prosody/rootfs/etc/cont-init.d/10-config | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/prosody/rootfs/etc/cont-init.d/10-config b/prosody/rootfs/etc/cont-init.d/10-config index 62e293f79c..73b4c738e4 100644 --- a/prosody/rootfs/etc/cont-init.d/10-config +++ b/prosody/rootfs/etc/cont-init.d/10-config @@ -99,6 +99,11 @@ if [[ "$JVB_AUTH_PASSWORD" == "$OLD_JVB_AUTH_PASSWORD" ]]; then exit 1 fi +# we see the next register command to hang from time to time, suspect it's a race with mod_roster_command +# Once this is released: https://issues.prosody.im/1908 we can remove this sleep and make sure prosody is running +# and then use 'prosodyctl shell user create' to add user live and 'prosodyctl shell roster' to modify their roster live. +sleep 1 + prosodyctl --config $PROSODY_CFG register $JVB_AUTH_USER $XMPP_AUTH_DOMAIN $JVB_AUTH_PASSWORD if [[ ! -z $JIBRI_XMPP_PASSWORD ]]; then