Can not create administrators group on NS7 rc2

When creating administrators group as mentioned here I get :

Task completed with errors

(exit status )

I could create the managers group without a problem.

can you take a look in /var/log/messages, the output could help more please.

Hi @indra ,

This is not a bug.
You cannot create the “administrators” group because it’s already created by the system but is hidden.
There are many topics about this in the forum.
One of this (try to read from the beginning to the end):
Why is the Groups blank when adding users to a domain?

But, we can tell it’s a bug in the documentation regarding this.:wink:

1 Like

Hum…trying to create a group already existent should not be driven to an error without explanations…the validators are here to do this job…

It is a valid bug @davidep and @giacomo

the /var/log/messages states

  Oct 14 18:37:34 NS7DEV admin-todos: [ERROR] admin-todos: /etc/nethserver/todos.d/10eth-unmapped exit code 9
Oct 14 18:37:36 NS7DEV admin-todos: [ERROR] admin-todos: /etc/nethserver/todos.d/10green-dhcp exit code 9
Oct 14 18:37:38 NS7DEV admin-todos: [ERROR] admin-todos: /etc/nethserver/todos.d/40nethserver-dc exit code 9
Oct 14 18:37:40 NS7DEV admin-todos: [ERROR] admin-todos: /etc/nethserver/todos.d/40password_strength exit code 9
Oct 14 18:38:26 NS7DEV admin-todos: [ERROR] admin-todos: /etc/nethserver/todos.d/40nethserver-dc exit code 9
Oct 14 18:40:36 NS7DEV esmith::event[3628]: Event: group-create administrators
Oct 14 18:40:41 NS7DEV esmith::event[3628]: ERROR(ldb): Failed to create group "administrators" - samldb: Account name (sAMAccountName) 'administrators' already in use!
Oct 14 18:40:41 NS7DEV esmith::event[3628]: [ERROR] Group administrators creation failed
Oct 14 18:40:41 NS7DEV esmith::event[3628]: Action: /etc/e-smith/events/group-create/S40nethserver-dc-group-create FAILED: 3 [4.460494]
Oct 14 18:40:42 NS7DEV esmith::event[3628]: (Fri Oct 14 18:40:42:629256 2016) [/usr/sbin/sss_cache] [confdb_get_domains] (0x0010): No domains configured, fatal error!
Oct 14 18:40:42 NS7DEV esmith::event[3628]: Could not open available domains
Oct 14 18:40:42 NS7DEV esmith::event[3628]: Action: /etc/e-smith/events/group-create/S90nethserver-sssd-clear-cache FAILED: 2 [1.171003]
Oct 14 18:40:42 NS7DEV esmith::event[3628]: Event: group-create FAILED

I’m not sure you have to display all system groups, but if this system group exists you must fail with an explanation message

1 Like

Perfectly right!

yes, I do agree :smiley:

here’s my messages log excerpt :

Nov 29 08:10:21 nethserver esmith::event[27769]: Skipping non-executable event-handler S14nethserver-mail-group-change-subscriptions
Nov 29 08:10:21 nethserver esmith::event[27769]: Skipping non-executable event-handler S95nethserver-mail-group-acl-adjust
Nov 29 08:10:21 nethserver esmith::event[27769]: Event: group-create administrators
Nov 29 08:10:21 nethserver esmith::event[27769]: expanding /etc/postfix/internal_access
Nov 29 08:10:21 nethserver dbus[794]: [system] Activating via systemd: service name='org.freedesktop.timedate1' unit='dbus-org.freedesktop.timedate1.service'
Nov 29 08:10:21 nethserver dbus-daemon: dbus[794]: [system] Activating via systemd: service name='org.freedesktop.timedate1' unit='dbus-org.freedesktop.timedate1.service'
Nov 29 08:10:21 nethserver systemd: Starting Time & Date Service...
Nov 29 08:10:21 nethserver dbus[794]: [system] Successfully activated service 'org.freedesktop.timedate1'
Nov 29 08:10:21 nethserver systemd: Started Time & Date Service.
Nov 29 08:10:21 nethserver dbus-daemon: dbus[794]: [system] Successfully activated service 'org.freedesktop.timedate1'
Nov 29 08:10:21 nethserver esmith::event[27769]: expanding /etc/postfix/virtual
Nov 29 08:10:21 nethserver esmith::event[27769]: Action: /etc/e-smith/events/actions/generic_template_expand SUCCESS [0.256723]
Nov 29 08:10:21 nethserver esmith::event[27769]: Action: /etc/e-smith/events/group-create/S30nethserver-mail-postmap-update SUCCESS [0.454112]
Nov 29 08:10:22 nethserver esmith::event[27769]: ERROR(ldb): Failed to create group "administrators" - samldb: Account name (sAMAccountName) 'administrators' already in use!
Nov 29 08:10:22 nethserver esmith::event[27769]: [ERROR] Group administrators creation failed
Nov 29 08:10:22 nethserver esmith::event[27769]: Action: /etc/e-smith/events/group-create/S40nethserver-dc-group-create FAILED: 3 [0.540754]
Nov 29 08:10:22 nethserver esmith::event[27769]: Action: /etc/e-smith/events/group-create/S90nethserver-sssd-clear-cache SUCCESS [0.165334]
Nov 29 08:10:22 nethserver esmith::event[27769]: Event: group-create FAILED
1 Like

I agree, we should add a new validator to check if the group or user already exists.
But I’m not sure if we should fix this before we decide how to deal with system groups (as correctly pointed out by Gabriel).

What do you think? Should I open a new bug for this, or a new whole enhancement for the system groups feature?

2 Likes

We have also another bug on the group UI:

The two solution drive to do something, it is Like a half-empty or half-full glass :slight_smile:

I must admit I have also an error recently on a group creation, but I need to verify if the error comes from one of my (bad) tricks or it occurs on a brand new, NS7 fully updated.

Now this bug is tracked by

@indra would you mind testing it? Take a look at those test cases just prepared by @davidep :

https://github.com/NethServer/dev/issues/5168#issuecomment-265994548

Yes, I will try to make some time to test this this week.

1 Like