From a20d9276054c323a7c7412ca1ca05f46ba7800d4 Mon Sep 17 00:00:00 2001 From: Hassan A Hashim Date: Thu, 29 Aug 2024 15:16:12 +0300 Subject: [PATCH] Fix dovecot resync: failed: Connection refused Full error message: ``` Error: auth-master: userdb list: connect(/run/dovecot/auth-userdb) failed: Connection refused Panic: file auth-master.c: line 436 (auth_master_unset_io): assertion failed: (conn->to == NULL) ``` --- helper-scripts/backup_and_restore.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/helper-scripts/backup_and_restore.sh b/helper-scripts/backup_and_restore.sh index 2b395f0ab..0077d215f 100755 --- a/helper-scripts/backup_and_restore.sh +++ b/helper-scripts/backup_and_restore.sh @@ -564,6 +564,8 @@ function restore() { # Skip prompt if --yes flag is present if [[ "${MAILCOW_YES_TO_ALL}" == "1" ]]; then echo -e "${GREEN_COLOR}Forcing a resync now due to --yes flag.${RESET}" + # Why sleep 1 second? due to `https://github.com/mailcow/mailcow-dockerized/pull/6030#discussion_r1735971143` + sleep 1s docker exec $(docker ps -qf name=dovecot-mailcow) doveadm force-resync -A '*' else read -p "Force a resync now? [y|N] " FORCE_RESYNC