Bug #2151

group-create event fails on nethserver-mail-group-acl-adjust action

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

Status:CLOSEDStart date:11/14/2013
Priority:NormalDue date:11/14/2013
Assignee:-% Done:

100%

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

Description

Giacomo Sanchietti wrote:

Creation of group fails on nethserver-mail-group-acl-adjust:

Aug 29 13:42:50 localhost esmith::event[18077]: Running event handler: /etc/e-smith/events/group-create/S95nethserver-mail-group-acl-adjust
Aug 29 13:42:53 localhost esmith::event[18077]: [ERROR] IMAP error for account group1: 0001 NO [NONEXISTENT] Mailbox doesn't exist: INBOX#015
Aug 29 13:42:53 localhost esmith::event[18077]: S95nethserver-mail-group-acl-adjust=action|Event|group-create|Action|S95nethserver-mail-group-acl-adjust|Start|1377783770 841050|End|1377783773 425205|Elapsed|2.584155|Status|256
[ ... ]
Aug 29 13:42:53 localhost httpd-admin: [ERROR] Nethgui\System\NethPlatform: process `group-create-521f4fca832eb` on queue `post-process` exited with code 1. Output: ``

Extract from accounts db:

group1=group
    Description=group1
    Gid=5000
    MailDeliveryType=copy
    MailStatus=enabled
    Members=

Same error when updating an existing group.

See nethserver-mail-server|20b09a3

Version
nethserver-mail-server-1.4.2


Related issues

Related to NethServer 6 - Bug #2082: Group (User) UI module: opening a group for update fails CLOSED 08/22/2013 08/22/2013
Related to NethServer 6 - Feature #1879: Mail-server: automatic subscription of group shared folders CLOSED 06/06/2013 06/06/2013
Related to NethServer 6 - Bug #2214: Group Shared Folder always shown CLOSED 11/14/2013 11/14/2013

Associated revisions

Revision bf7adcc2
Added by Davide Principi over 7 years ago

Don't set an error, if deleteACL() fails. Refs #2151

The DELETEACL can fail safely if the mailbox does not exist.

History

#1 Updated by Davide Principi almost 8 years ago

  • Status changed from NEW to TRIAGED
  • % Done changed from 0 to 20

#2 Updated by Giacomo Sanchietti almost 8 years ago

Check if mailbox exists before setting ACLs

#3 Updated by Giacomo Sanchietti almost 8 years ago

  • Target version changed from v6.4-beta2 to v6.5-beta3

#4 Updated by Davide Principi over 7 years ago

  • Due date set to 11/14/2013
  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Davide Principi
  • Start date set to 11/14/2013
  • % Done changed from 20 to 30
  • Estimated time set to 4.00

#5 Updated by Davide Principi over 7 years ago

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

#6 Updated by Davide Principi over 7 years ago

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

In nethserver-testing:
nethserver-mail-server-1.4.6-5.0git14da2c49.ns6.noarch.rpm

#7 Updated by Giacomo Sanchietti over 7 years ago

  • Assignee set to Giacomo Sanchietti

#8 Updated by Giacomo Sanchietti over 7 years ago

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

Marking as VERIFIED.

No errors during creation/edit of a group with or without mail service enabled.
Extract from messages:

Dec 10 10:29:25 test esmith::event[4290]: Processing event: group-create g2
Dec 10 10:29:25 test esmith::event[4290]: Running event handler S04group-create-unix
Dec 10 10:29:25 test /etc/e-smith/events/group-create/S04group-create-unix[4293]: /var/lib/nethserver/db/configuration: OLD MinUid=5005
Dec 10 10:29:25 test /etc/e-smith/events/group-create/S04group-create-unix[4293]: /var/lib/nethserver/db/configuration: NEW MinUid=5006
Dec 10 10:29:25 test /etc/e-smith/events/group-create/S04group-create-unix[4293]: /var/lib/nethserver/db/accounts: OLD g2=group|Description|g2|MailDeliveryType|copy|MailStatus|enabled|Members|
Dec 10 10:29:25 test /etc/e-smith/events/group-create/S04group-create-unix[4293]: /var/lib/nethserver/db/accounts: NEW g2=group|Description|g2|Gid|5005|MailDeliveryType|copy|MailStatus|enabled|Members|
Dec 10 10:29:25 test esmith::event[4290]: /etc/e-smith/events/group-create/S04group-create-unix=action|Event|group-create|Action|/etc/e-smith/events/group-create/S04group-create-unix|Start|1386671365 410176|End|1386671365 638222|Elapsed|0.228046
Dec 10 10:29:25 test esmith::event[4290]: Running event handler S05generic_template_expand
Dec 10 10:29:25 test esmith::event[4290]: expanding /etc/postfix/vmailbox
Dec 10 10:29:25 test esmith::event[4290]: expanding /etc/postfix/internal_access
Dec 10 10:29:25 test esmith::event[4290]: expanding /etc/postfix/virtual
Dec 10 10:29:25 test esmith::event[4290]: expanding /etc/postfix/aliases
Dec 10 10:29:25 test esmith::event[4290]: /etc/e-smith/events/actions/generic_template_expand=action|Event|group-create|Action|/etc/e-smith/events/actions/generic_template_expand|Start|1386671365 638755|End|1386671365 746386|Elapsed|0.107631
Dec 10 10:29:25 test esmith::event[4290]: Running event handler S14nethserver-mail-group-change-subscriptions
Dec 10 10:29:25 test esmith::event[4290]: /etc/e-smith/events/group-create/S14nethserver-mail-group-change-subscriptions=action|Event|group-create|Action|/etc/e-smith/events/group-create/S14nethserver-mail-group-change-subscriptions|Start|1386671365 746763|End|1386671365 799875|Elapsed|0.053112
Dec 10 10:29:25 test esmith::event[4290]: Running event handler S20group-modify-unix
Dec 10 10:29:25 test esmith::event[4290]: /etc/e-smith/events/group-create/S20group-modify-unix=action|Event|group-create|Action|/etc/e-smith/events/group-create/S20group-modify-unix|Start|1386671365 800307|End|1386671365 908623|Elapsed|0.108316
Dec 10 10:29:25 test esmith::event[4290]: Running event handler S30nethserver-mail-account-update
Dec 10 10:29:26 test esmith::event[4290]: /etc/e-smith/events/group-create/S30nethserver-mail-account-update=action|Event|group-create|Action|/etc/e-smith/events/group-create/S30nethserver-mail-account-update|Start|1386671365 909084|End|1386671366 12087|Elapsed|0.103003
Dec 10 10:29:26 test esmith::event[4290]: Running event handler S30nethserver-mail-postmap-update
Dec 10 10:29:26 test esmith::event[4290]: /etc/e-smith/events/group-create/S30nethserver-mail-postmap-update=action|Event|group-create|Action|/etc/e-smith/events/group-create/S30nethserver-mail-postmap-update|Start|1386671366 12442|End|1386671366 99379|Elapsed|0.086937
Dec 10 10:29:26 test esmith::event[4290]: Running event handler S30nethserver-samba-group-sync
Dec 10 10:29:26 test esmith::event[4290]: Mapped unix group g2 to SID S-1-5-21-4267140988-159839021-3307429386-1011
Dec 10 10:29:26 test esmith::event[4290]: Updated comment of group TEST\g2 to g2
Dec 10 10:29:26 test esmith::event[4290]: /etc/e-smith/events/group-create/S30nethserver-samba-group-sync=action|Event|group-create|Action|/etc/e-smith/events/group-create/S30nethserver-samba-group-sync|Start|1386671366 99570|End|1386671366 255030|Elapsed|0.15546
Dec 10 10:29:26 test esmith::event[4290]: Running event handler S90adjust-services
Dec 10 10:29:26 test esmith::event[4290]: [INFO] service postfix reload
Dec 10 10:29:26 test esmith::event[4290]: Reloading postfix: [  OK  ]#015
Dec 10 10:29:26 test esmith::event[4290]: /etc/e-smith/events/actions/adjust-services=action|Event|group-create|Action|/etc/e-smith/events/actions/adjust-services|Start|1386671366 255393|End|1386671366 397130|Elapsed|0.141737
Dec 10 10:29:26 test esmith::event[4290]: Running event handler S95nethserver-mail-group-acl-adjust
Dec 10 10:29:26 test esmith::event[4290]: /etc/e-smith/events/group-create/S95nethserver-mail-group-acl-adjust=action|Event|group-create|Action|/etc/e-smith/events/group-create/S95nethserver-mail-group-acl-adjust|Start|1386671366 397470|End|1386671366 818632|Elapsed|0.421162
Dec 10 10:29:26 test esmith::event[4290]: Running event handler S95nethserver-samba-smbd-adjust
Dec 10 10:29:26 test esmith::event[4290]: /etc/e-smith/events/group-create/S95nethserver-samba-smbd-adjust=action|Event|group-create|Action|/etc/e-smith/events/group-create/S95nethserver-samba-smbd-adjust|Start|1386671366 819134|End|1386671366 900846|Elapsed|0.081712
Dec 10 10:29:26 test smbd[4362]: [2013/12/10 10:29:26.910679,  0] printing/print_cups.c:151(cups_connect)
Dec 10 10:29:26 test smbd[4362]:   Unable to connect to CUPS server localhost:631 - Connection refused
Dec 10 10:29:26 test smbd[28200]: [2013/12/10 10:29:26.910946,  0] printing/print_cups.c:528(cups_async_callback)
Dec 10 10:29:26 test smbd[28200]:   failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
Dec 10 10:29:54 test /sbin/e-smith/db[4378]: /var/lib/nethserver/db/accounts: OLD g2=group|Description|g2|Gid|5005|MailDeliveryType|copy|MailStatus|enabled|Members|
Dec 10 10:29:54 test /sbin/e-smith/db[4378]: /var/lib/nethserver/db/accounts: NEW g2=group|Description|g22|Gid|5005|MailDeliveryType|copy|MailStatus|enabled|Members|
Dec 10 10:29:54 test esmith::event[4382]: Processing event: group-modify g2
Dec 10 10:29:54 test esmith::event[4382]: Running event handler S05generic_template_expand
Dec 10 10:29:54 test esmith::event[4382]: expanding /etc/postfix/vmailbox
Dec 10 10:29:54 test esmith::event[4382]: expanding /etc/postfix/internal_access
Dec 10 10:29:54 test esmith::event[4382]: expanding /etc/postfix/virtual
Dec 10 10:29:54 test esmith::event[4382]: expanding /etc/postfix/aliases
Dec 10 10:29:54 test esmith::event[4382]: /etc/e-smith/events/actions/generic_template_expand=action|Event|group-modify|Action|/etc/e-smith/events/actions/generic_template_expand|Start|1386671394 749889|End|1386671394 864825|Elapsed|0.114936
Dec 10 10:29:54 test esmith::event[4382]: Running event handler S14nethserver-mail-group-change-subscriptions
Dec 10 10:29:54 test esmith::event[4382]: /etc/e-smith/events/group-modify/S14nethserver-mail-group-change-subscriptions=action|Event|group-modify|Action|/etc/e-smith/events/group-modify/S14nethserver-mail-group-change-subscriptions|Start|1386671394 865256|End|1386671394 920541|Elapsed|0.055285
Dec 10 10:29:54 test esmith::event[4382]: Running event handler S15group-modify-unix
Dec 10 10:29:55 test esmith::event[4382]: /etc/e-smith/events/group-modify/S15group-modify-unix=action|Event|group-modify|Action|/etc/e-smith/events/group-modify/S15group-modify-unix|Start|1386671394 921017|End|1386671395 75630|Elapsed|0.154613
Dec 10 10:29:55 test esmith::event[4382]: Running event handler S30nethserver-mail-account-update
Dec 10 10:29:55 test esmith::event[4382]: /etc/e-smith/events/group-modify/S30nethserver-mail-account-update=action|Event|group-modify|Action|/etc/e-smith/events/group-modify/S30nethserver-mail-account-update|Start|1386671395 76087|End|1386671395 176880|Elapsed|0.100793
Dec 10 10:29:55 test esmith::event[4382]: Running event handler S30nethserver-mail-postmap-update
Dec 10 10:29:55 test esmith::event[4382]: /etc/e-smith/events/group-modify/S30nethserver-mail-postmap-update=action|Event|group-modify|Action|/etc/e-smith/events/group-modify/S30nethserver-mail-postmap-update|Start|1386671395 177381|End|1386671395 278042|Elapsed|0.100661
Dec 10 10:29:55 test esmith::event[4382]: Running event handler S30nethserver-samba-group-sync
Dec 10 10:29:55 test esmith::event[4382]: Updated comment of group TEST\g2 to g22
Dec 10 10:29:55 test esmith::event[4382]: /etc/e-smith/events/group-modify/S30nethserver-samba-group-sync=action|Event|group-modify|Action|/etc/e-smith/events/group-modify/S30nethserver-samba-group-sync|Start|1386671395 278477|End|1386671395 380734|Elapsed|0.102257
Dec 10 10:29:55 test esmith::event[4382]: Running event handler S90adjust-services
Dec 10 10:29:55 test esmith::event[4382]: [INFO] service postfix reload
Dec 10 10:29:55 test esmith::event[4382]: Reloading postfix: [  OK  ]#015
Dec 10 10:29:55 test esmith::event[4382]: /etc/e-smith/events/actions/adjust-services=action|Event|group-modify|Action|/etc/e-smith/events/actions/adjust-services|Start|1386671395 381121|End|1386671395 530743|Elapsed|0.149622
Dec 10 10:29:55 test esmith::event[4382]: Running event handler S95nethserver-mail-group-acl-adjust
Dec 10 10:29:55 test esmith::event[4382]: /etc/e-smith/events/group-modify/S95nethserver-mail-group-acl-adjust=action|Event|group-modify|Action|/etc/e-smith/events/group-modify/S95nethserver-mail-group-acl-adjust|Start|1386671395 531021|End|1386671395 642675|Elapsed|0.111654
Dec 10 10:29:55 test esmith::event[4382]: Running event handler S95nethserver-samba-smbd-adjust
Dec 10 10:29:55 test esmith::event[4382]: /etc/e-smith/events/group-modify/S95nethserver-samba-smbd-adjust=action|Event|group-modify|Action|/etc/e-smith/events/group-modify/S95nethserver-samba-smbd-adjust|Start|1386671395 643113|End|1386671395 690421|Elapsed|0.047308
Dec 10 10:29:55 test smbd[4441]: [2013/12/10 10:29:55.700629,  0] printing/print_cups.c:151(cups_connect)
Dec 10 10:29:55 test smbd[4441]:   Unable to connect to CUPS server localhost:631 - Connection refused
Dec 10 10:29:55 test smbd[28200]: [2013/12/10 10:29:55.700925,  0] printing/print_cups.c:528(cups_async_callback)
Dec 10 10:29:55 test smbd[28200]:   failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL

#9 Updated by Davide Principi over 7 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100

In nethserver-updates:
nethserver-samba-1.4.0-1.ns6.noarch.rpm
nethserver-directory-1.3.0-1.ns6.noarch.rpm
nethserver-dnsmasq-1.1.0-1.ns6.noarch.rpm
nethserver-shorewall-1.0.3-1.ns6.noarch.rpm
nethserver-mail-server-1.5.0-1.ns6.noarch.rpm
nethserver-mail-filter-1.1.4-1.ns6.noarch.rpm
nethserver-nethgui-1.3.0-1.ns6.noarch.rpm
nethserver-base-1.5.0-1.ns6.noarch.rpm
nethserver-lib-1.4.0-1.ns6.noarch.rpm
nethserver-httpd-admin-1.1.0-1.ns6.noarch.rpm
nethserver-yum-1.2.0-1.ns6.noarch.rpm
nethserver-ntopng-1.1.0-1.ns6.noarch.rpm

Also available in: Atom PDF