Replikation: .dovecot-sync.lock stale

Patrick Cernko pcernko at mpi-klsb.mpg.de
Mi Nov 11 16:43:23 CET 2026


Hallo Hanns, hallo Liste,

On 2026-11-11 16:25:32, Hanns Mattes via Dovecot wrote:
> Hei, liebe Liste,
> 
> zwei Server freebsd.bruecko.de und mail.bruecko.de, mail ist neu 
> aufgesetzt.
> 
> Beide unter freebsd 14.5, dovecot 2.3x
> 
> Nachdem ich mail.bruecko.de neu aufgesetzt habe, treffen ich 
> gelegentlich auf dsync-fehler, da das lockfile offenbar nicht aufgehoben 
> wird.
> 

Wie lautet denn die Fehlermeldung?
Bist du sicher, dass da nicht noch ein dsync läuft und deshalb die Box 
noch gelockt ist?
Gibt es sonst irgendwelche hilfreichen Log-Ausgaben, z.B. von dem 
Prozess der das Lock angelegt hat und vergaß weg zu räumen?
> Hier einmal die dsync-configuration:
> 
> freebsd.bruecko.de:
> 
> # This sets globally the port needed to connect
> # to the doveadm service
> doveadm_port = 54321
> 
> 
> # Set the password globally to use for connecting to
> # and requiring for the doveadm service
> doveadm_password = irregeheim
> 
> 
> # Set the directory for validating certificates
> # provided when running with SSL enabled
> # Should be the standard OpenSSL certificate directory by default
> ssl_client_ca_dir = /etc/ssl/certs
> # ssl_client_ca_file = /certs/rapidneu.crt
> #configure replication_options
> #replication_dsync_parameters = -d -N -l 120 -U -x Public/Mitteilungen
> replication_dsync_parameters = -d -l 120 -U
> 
> # Configure the doveadm service to listen
> service doveadm {
>      vsz_limit = 0
>      inet_listener {
>          # port to listen on
>          port = 54321
>          # enable SSL
>          ssl = yes
>      }
> }
> 
> 
> # Configure the aggregator service for notifications
> service aggregator {
>      fifo_listener replication-notify-fifo {
>          # Your mail user that's managing files generally is used here
>          user = vmail
>      }
>      unix_listener replication-notify {
>          user = vmail
>      }
> }
> 
> 
> # Configure the replicator service
> service replicator {
>      process_min_avail = 1
>      vsz_limit = 2G
>      unix_listener replicator-doveadm {
>          mode = 0666
>      }
> }
> 
> 
> # Configure target hosts for replication
> # tcps can be tcp if you don't want to connect with SSL
> # :port can be omitted if it's the default set globally for doveadm
> plugin {
>      mail_replica = tcps:mail.bruecko.de
> }
> 
> 
> und das Gleiche für mail.bruecko.de
> 
> # This sets globally the port needed to connect
> # to the doveadm service
> doveadm_port = 54321
> 
> 
> # Set the password globally to use for connecting to
> # and requiring for the doveadm service
> doveadm_password = irregeheim
> 
> 
> # Set the directory for validating certificates
> # provided when running with SSL enabled
> # Should be the standard OpenSSL certificate directory by default
> ssl_client_ca_dir = /etc/ssl/certs
> # ssl_client_ca_file = /certs/rapidneu.crt
> #configure replication_options
> # replication_dsync_parameters = -d -N -l 120 -U -x Public/Mitteilungen
> replication_dsync_parameters = -d -l 120 -U
> 
> # Configure the doveadm service to listen
> service doveadm {
>      vsz_limit = 0
>      inet_listener {
>          # port to listen on
>          port = 54321
>          # enable SSL
>          ssl = yes
>      }
> }
> 
> 
> # Configure the aggregator service for notifications
> service aggregator {
>      fifo_listener replication-notify-fifo {
>          # Your mail user that's managing files generally is used here
>          user = vmail
>      }
>      unix_listener replication-notify {
>          user = vmail
>      }
> }
> 
> 
> # Configure the replicator service
> service replicator {
>      process_min_avail = 1
>      vsz_limit = 2G
>      unix_listener replicator-doveadm {
>          mode = 0666
>      }
> }
> 
> 
> # Configure target hosts for replication
> # tcps can be tcp if you don't want to connect with SSL
> # :port can be omitted if it's the default set globally for doveadm
> plugin {
>      mail_replica = tcps:freebsd.bruecko.de
> }
> 
> 
> Fällt da jemandem etwas auf, beziehungsweise: Wo muss ich noch nachschauen?
> 
> Fragende Grüße
> 

Ansonsten kannst du mal noch das Logging für replication hoch drehen:

log_debug = category=replication

Dann siehst du vielleicht besser, wo die vergessenen Locks herkommen.

Du könntest natürlich auch schon versuchen auf 2.4+wormhole zu 
migrieren. Leider ist aber auch in den FreeBSD-Paketen von Dovecot mein 
dsync-hooks Patch nicht drin, sodass du Dovecot und Wormhole selbst 
bauen müsstest um meine empfohlene Upgrade-Howto zu benutzen: 
https://codeberg.org/errror/wormhole/src/branch/main/doc/upgrading.md
Oder aber du bist ganz mutig und versuchst den alternativen Ansatz: 
https://codeberg.org/errror/wormhole/src/branch/main/doc/upgrading.md#upgrading-from-dovecot-2-3-alternative-approach

Gruß,
-- 
Patrick Cernko <pcernko at mpi-klsb.mpg.de> +49 681 9325 5815
Joint Scientific IT and Technical Service
Max-Planck-Institute für Informatik & Softwaresysteme
-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname   : smime.p7s
Dateityp    : application/pkcs7-signature
Dateigröße  : 4910 bytes
Beschreibung: S/MIME Cryptographic Signature
URL         : <https://listen.jpberlin.de/pipermail/dovecot/attachments/20261111/f8e27dad/attachment.p7s>


Mehr Informationen über die Mailingliste Dovecot