NethServer / dev

NethServer issue tracker
https://github.com/NethServer/dev/issues
63 stars 20 forks source link

Mail restore fails with address in use error #6833

Closed stephdl closed 5 months ago

stephdl commented 5 months ago

Steps to reproduce

Expected behavior

I expect the restoration is fully workable

Actual behavior

The rspamd or the dovecot container could be broken, either fully stopped or the systemd service could be started but without tcp ports bound to the container.

a full restart of the dovecot and the rspamd container fix the issue

we can find in logs this kind of traces

Jan 26 15:49:39 R2-pve.rocky9-pve2.org dovecot[13023]: master: Error: service(managesieve-login): listen(*, 4190) failed: Address in use
Jan 26 15:49:39 R2-pve.rocky9-pve2.org dovecot[13023]: master: Error: service(managesieve-login): listen(::, 4190) failed: Address in use
Jan 26 15:49:39 R2-pve.rocky9-pve2.org dovecot[13023]: master: Error: service(managesieve-login): listen(*, 2000) failed: Address in use
Jan 26 15:49:39 R2-pve.rocky9-pve2.org dovecot[13023]: master: Error: service(managesieve-login): listen(::, 2000) failed: Address in use
Jan 26 15:49:39 R2-pve.rocky9-pve2.org dovecot[13023]: master: Error: service(stats): listen(*, 9289) failed: Address in use
Jan 26 15:49:39 R2-pve.rocky9-pve2.org dovecot[13023]: master: Error: service(stats): listen(::, 9289) failed: Address in use
Jan 26 15:49:39 R2-pve.rocky9-pve2.org dovecot[13023]: master: Error: service(pop3-login): listen(*, 110) failed: Address in use
Jan 26 15:49:39 R2-pve.rocky9-pve2.org dovecot[13023]: master: Error: service(pop3-login): listen(::, 110) failed: Address in use
Jan 26 15:49:39 R2-pve.rocky9-pve2.org dovecot[13023]: master: Error: service(pop3-login): listen(*, 995) failed: Address in use
Jan 26 15:49:39 R2-pve.rocky9-pve2.org dovecot[13023]: master: Error: service(pop3-login): listen(::, 995) failed: Address in use
Jan 26 15:49:39 R2-pve.rocky9-pve2.org dovecot[13019]: Error: service(managesieve-login): listen(*, 4190) failed: Address in use
Jan 26 15:49:39 R2-pve.rocky9-pve2.org dovecot[13019]: Error: service(managesieve-login): listen(::, 4190) failed: Address in use
Jan 26 15:49:39 R2-pve.rocky9-pve2.org dovecot[13023]: master: Error: service(imap-login): listen(*, 143) failed: Address in use

it seems that we could start the new mail module before to have stopped the old one

https://mattermost.nethesis.it/nethesis/pl/jd7uj7wbxfre3cpzgm3oim8r1c Components ns8-mail 1.3.1 https://github.com/NethServer/ns8-mail/releases/tag/1.3.1 core 2.3.0 https://github.com/NethServer/ns8-core/releases/tag/2.3.0

stephdl commented 5 months ago

I think we start the services of the new mail module before to remove completely the older one

evidence

for me we start to remove mail14 at Feb 06 17:02:52

but we start services of mail15 at Feb 06 17:02:43

let's close for now, it will concern all modules with a fixed port like samba AD, ejabberd, the fix is in the backup process