Bug #2888

Action nethserver-mail-group-change-subscriptions fails

Added by Davide Principi almost 7 years ago. Updated almost 7 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-mail-server
Target version:v6.5
Security class: Resolution:
Affected version:v6.5-final NEEDINFO:No

Description

During migration the nethserver-mail-migrate-domains action sometimes fails. In /var/log/messages

Sep 25 16:34:30 mynsrv S30nethserver-mail-migrate-domains[43591]: Event: group-modify alias_backup
Sep 25 16:34:30 mynsrv S30nethserver-mail-migrate-domains[43591]: expanding /etc/postfix/aliases
Sep 25 16:34:30 mynsrv S30nethserver-mail-migrate-domains[43591]: expanding /etc/postfix/vmailbox
Sep 25 16:34:30 mynsrv S30nethserver-mail-migrate-domains[43591]: expanding /etc/postfix/virtual
Sep 25 16:34:30 mynsrv S30nethserver-mail-migrate-domains[43591]: expanding /etc/postfix/internal_access
Sep 25 16:34:30 mynsrv S30nethserver-mail-migrate-domains[43591]: expanding /var/www/html/faxweb/conf.inc.php
Sep 25 16:34:30 mynsrv S30nethserver-mail-migrate-domains[43591]: Action: /etc/e-smith/events/actions/generic_template_expand SUCCESS [0.125303]
Sep 25 16:34:31 mynsrv S30nethserver-mail-migrate-domains[43591]: doveadm(m.rossi): Fatal: User doesn't exist
Sep 25 16:34:31 mynsrv S30nethserver-mail-migrate-domains[43591]: doveadm(l.verdi): Fatal: User doesn't exist
Sep 25 16:34:31 mynsrv S30nethserver-mail-migrate-domains[43591]: Action: /etc/e-smith/events/group-modify/S14nethserver-mail-group-change-subscriptions FAILED: 1 [0.138114]
Sep 25 16:34:31 mynsrv S30nethserver-mail-migrate-domains[43591]: Use of uninitialized value in numeric gt (>) at /usr/share/perl5/Authen/SASL/Perl.pm line 130.
Sep 25 16:34:31 mynsrv S30nethserver-mail-migrate-domains[43591]: Action: /etc/e-smith/events/group-modify/S15group-modify-unix SUCCESS [0.14146]
Sep 25 16:34:31 mynsrv S30nethserver-mail-migrate-domains[43591]: Action: /etc/e-smith/events/group-modify/S30nethserver-mail-account-update SUCCESS [0.075497]
Sep 25 16:34:31 mynsrv S30nethserver-mail-migrate-domains[43591]: Action: /etc/e-smith/events/group-modify/S30nethserver-mail-postmap-update SUCCESS [0.466323]
Sep 25 16:34:32 mynsrv S30nethserver-mail-migrate-domains[43591]: Updated comment of group mynsrv\alias_backup to Gruppo alias backup
Sep 25 16:34:32 mynsrv S30nethserver-mail-migrate-domains[43591]: Action: /etc/e-smith/events/group-modify/S30nethserver-samba-group-sync SUCCESS [0.626583]
Sep 25 16:34:32 mynsrv S30nethserver-mail-migrate-domains[43591]: [INFO] service postfix reload
Sep 25 16:34:32 mynsrv S30nethserver-mail-migrate-domains[43591]: Ricarica di postfix in corso: [  OK  ]#015
Sep 25 16:34:32 mynsrv S30nethserver-mail-migrate-domains[43591]: [INFO] postfix reload
Sep 25 16:34:32 mynsrv S30nethserver-mail-migrate-domains[43591]: Action: /etc/e-smith/events/actions/adjust-services SUCCESS [0.168124]
Sep 25 16:34:32 mynsrv S30nethserver-mail-migrate-domains[43591]: Action: /etc/e-smith/events/group-modify/S95nethserver-mail-group-acl-adjust SUCCESS [0.126134]
Sep 25 16:34:32 mynsrv S30nethserver-mail-migrate-domains[43591]: Action: /etc/e-smith/events/group-modify/S95nethserver-samba-smbd-adjust SUCCESS [0.070017]
Sep 25 16:34:32 mynsrv S30nethserver-mail-migrate-domains[43591]: Event: group-modify FAILED

Email accounts of users m.rossi and l.verdi are not stilll configured when group-modify is run because nethserver-mail-migrate-domains scans all accounts db in alphabetical order.

Steps to reproduce

Execute migration-import event, where the origin Accounts DB contains a group group1 with members adam and zan.

Note the alphabetical ordering: adam, group1, zan. doveadm should raise the error on adam.


Related issues

Related to NethServer 6 - Bug #3019: Pseudonyms no longer migrated CLOSED

Associated revisions

Revision 492ab553
Added by Davide Principi almost 7 years ago

Fixed group members subscription during migration. Refs #2888

Migrate user settings at first, then groups settings, because groups
depends on users and nethserver-mail-group-change-subscriptions action
requires a consistent Account DB to work correctly.

History

#1 Updated by Davide Principi almost 7 years ago

  • Category set to nethserver-mail-server
  • Status changed from NEW to TRIAGED
  • % Done changed from 0 to 20

#2 Updated by Davide Principi almost 7 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Davide Principi
  • % Done changed from 20 to 30

#3 Updated by Davide Principi almost 7 years ago

  • Status changed from ON_DEV to MODIFIED
  • Assignee deleted (Davide Principi)
  • % Done changed from 30 to 60

#4 Updated by Davide Principi almost 7 years ago

  • Status changed from MODIFIED to ON_QA
  • % Done changed from 60 to 70

Confirmed: the problem comes out if a group account is migrated before one of its members during action nethserver-mail-group-change-subscriptions.

In nethserver-testing:
nethserver-mail-server-1.8.1-1.2git492ab55.ns6.noarch.rpm

#5 Updated by Davide Principi almost 7 years ago

  • Description updated (diff)

#6 Updated by Giacomo Sanchietti almost 7 years ago

  • Assignee set to Giacomo Sanchietti

#7 Updated by Giacomo Sanchietti almost 7 years ago

  • Status changed from ON_QA to VERIFIED
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 70 to 90

VERIFIED

Migration log:

...
Oct 31 12:34:38 test1 S30nethserver-mail-migrate-domains[7457]: Event: group-modify group1
Oct 31 12:34:38 test1 S30nethserver-mail-migrate-domains[7457]: expanding /etc/postfix/vmailbox
Oct 31 12:34:38 test1 S30nethserver-mail-migrate-domains[7457]: expanding /etc/postfix/aliases
Oct 31 12:34:38 test1 S30nethserver-mail-migrate-domains[7457]: expanding /etc/postfix/virtual
Oct 31 12:34:38 test1 S30nethserver-mail-migrate-domains[7457]: expanding /etc/postfix/internal_access
Oct 31 12:34:38 test1 S30nethserver-mail-migrate-domains[7457]: Action: /etc/e-smith/events/actions/generic_template_expand SUCCESS [0.12887]
Oct 31 12:34:38 test1 S30nethserver-mail-migrate-domains[7457]: Action: /etc/e-smith/events/group-modify/S14nethserver-mail-group-change-subscriptions SUCCESS
 [0.508758]
Oct 31 12:34:39 test1 S30nethserver-mail-migrate-domains[7457]: Use of uninitialized value in numeric gt (>) at /usr/share/perl5/Authen/SASL/Perl.pm line 130.
Oct 31 12:34:39 test1 rsyslogd-2177: imuxsock begins to drop messages from pid 7326 due to rate-limiting
Oct 31 12:34:39 test1 S30nethserver-mail-migrate-domains[7457]: Action: /etc/e-smith/events/group-modify/S15group-modify-unix SUCCESS [0.471244]
Oct 31 12:34:39 test1 S30nethserver-mail-migrate-domains[7457]: Action: /etc/e-smith/events/group-modify/S30nethserver-mail-account-update SUCCESS [0.132408]
Oct 31 12:34:39 test1 S30nethserver-mail-migrate-domains[7457]: Action: /etc/e-smith/events/group-modify/S30nethserver-mail-postmap-update SUCCESS [0.154994]
Oct 31 12:34:39 test1 S30nethserver-mail-migrate-domains[7457]: Action: /etc/e-smith/events/group-modify/S95nethserver-mail-group-acl-adjust SUCCESS [0.278209
]
Oct 31 12:34:39 test1 S30nethserver-mail-migrate-domains[7457]: Event: group-modify SUCCESS

Oct 31 12:34:49 test1 esmith::event[7263]: Event: migration-import SUCCESS

#8 Updated by Giacomo Sanchietti almost 7 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100
Released in nethserver-updates:
  • nethserver-mail-server-1.8.2-1.ns6.noarch.rpm

#9 Updated by Davide Principi over 6 years ago

  • Related to Bug #3019: Pseudonyms no longer migrated added

Also available in: Atom PDF