Koozali.org: home of the SME Server

Error modifying groups in Server Manager

Offline edb

  • *
  • 548
  • +0/-0
Error modifying groups in Server Manager
« on: December 17, 2004, 03:44:02 AM »
Every time I modify any of my group accounts I get this error:

Quote
Create, modify, or remove user groups
Operation status report
An error occurred while modifying user group.


It does actually update the group but I would like to get rid of the error.
Has anyone run into this before?
I can edit user accounts fine without errors and all other areas of Server Manager seem to work fine.
......

shailendra

Error modifying groups in Server Manager
« Reply #1 on: January 01, 2005, 11:14:12 AM »
i m also ving the same problem with user accoutn modification

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Error modifying groups in Server Manager
« Reply #2 on: January 02, 2005, 04:37:24 AM »
Look in /var/log/messages and see what the exact error messages are.

JB
......

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Error modifying groups in Server Manager
« Reply #3 on: January 04, 2005, 05:02:36 AM »
Quote from: "mrjhb3"
Look in /var/log/messages and see what the exact error messages are.


And report them to the bug tracker on this site. There's obviously a bug - it's not working correctly, is it?

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Error modifying groups in Server Manager
« Reply #4 on: January 04, 2005, 05:13:35 AM »
I'm not so sure it is a bug.  I created 10 different groups, modified them, added users to them, removed users from them, deleted groups and never once got an error.  I was watching the log file during all of the processes.  I am curious to know if there was something you spotted?

Thanks,

JB
......

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Error modifying groups in Server Manager
« Reply #5 on: January 04, 2005, 05:32:39 AM »
Quote from: "mrjhb3"
I'm not so sure it is a bug.  I created 10 different groups, modified them, added users to them, removed users from them, deleted groups and never once got an error.  I was watching the log file during all of the processes.  I am curious to know if there was something you spotted?


The OP said that the panel reported an error in "Operation status report". There will *always* be a corresponding error message with more detail in /var/log/messages.

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Error modifying groups in Server Manager
« Reply #6 on: January 04, 2005, 05:47:56 AM »
Quote from: "CharlieBrady"
The OP said that the panel reported an error in "Operation status report". There will *always* be a corresponding error message with more detail in /var/log/messages.



Exactly, which is why I pointed to /var/log/messages to see what the exact error was.  It may not be a bug, so why file a bug report, before there are any facts presented?  It could be there are other contribs installed that caused the error, could be something got mucked up in this particular install instance, etc.  You know more about your old system than I, but I think if creating/modifying/deleting groups had a bug, it would have been fleshed out way earlier than this.  That is a feature that I would think many people use.
......

Offline edb

  • *
  • 548
  • +0/-0
Error modifying groups in Server Manager
« Reply #7 on: January 05, 2005, 11:14:15 PM »
Here is the contents of /var/log/messages when I try to update any group account:

Jan  5 11:40:12 mail e-smith[8984]: Processing event: group-modify northservice
Jan  5 11:40:12 mail e-smith[8984]: Running event handler: /etc/e-smith/events/group-modify/S15group-modify-unix
Jan  5 11:40:13 mail e-smith[8984]: Failed to get supplementary group list for www.
Jan  5 11:40:13 mail e-smith[8984]: S15group-modify-unix=action|Event|group-modify|Action|S15group-modify-unix|Start|1104946812 810282|End|1104946813 44663|Elapsed|0.234381|Status|256
Jan  5 11:40:13 mail e-smith[8984]: Running event handler: /etc/e-smith/events/group-modify/S20conf-httpd-admin
Jan  5 11:40:13 mail e-smith[8984]: S20conf-httpd-admin=action|Event|group-modify|Action|S20conf-httpd-admin|Start|1104946813 44849|End|1104946813 632633|Elapsed|0.587784
Jan  5 11:40:13 mail e-smith[8984]: Running event handler: /etc/e-smith/events/group-modify/S20email-update-group
Jan  5 11:40:13 mail e-smith[8984]: S20email-update-group=action|Event|group-modify|Action|S20email-update-group|Start|1104946813 632805|End|1104946813 928463|Elapsed|0.295658
Jan  5 11:40:13 mail e-smith[8984]: Running event handler: /etc/e-smith/events/group-modify/S25ldap-update
Jan  5 11:40:14 mail slapd[1900]: daemon: conn=15 fd=9 connection from IP=127.0.0.1:50920 (IP=0.0.0.0:389) accepted.
Jan  5 11:40:14 mail slapd[5296]: conn=15 op=0 BIND dn="CN=ROOT,DC=XXXXX,DC=CA" method=128
Jan  5 11:40:14 mail slapd[5296]: conn=15 op=0 RESULT tag=97 err=0 text=
Jan  5 11:40:14 mail slapd[5294]: conn=15 op=1 MOD dn="uid=northservice,dc=XXXXX,dc=ca"
Jan  5 11:40:15 mail slapd[5294]: conn=15 op=1 RESULT tag=103 err=0 text=
Jan  5 11:40:15 mail slapd[5296]: conn=15 op=2 UNBIND
Jan  5 11:40:15 mail e-smith[8984]: S25ldap-update=action|Event|group-modify|Action|S25ldap-update|Start|1104946813 928632|End|1104946815 438722|Elapsed|1.51009
Jan  5 11:40:15 mail slapd[5294]: conn=-1 fd=9 closed
Jan  5 11:40:15 mail e-smith[8984]: Running event handler: /etc/e-smith/events/group-modify/S25reload-httpd-admin
Jan  5 11:40:16 mail httpd-admin: httpd-admin -USR1 succeeded
Jan  5 11:40:16 mail e-smith[8984]: Gracefully reloading e-smith httpd-admin: [   OK   ]^M
Jan  5 11:40:16 mail e-smith[8984]: S25reload-httpd-admin=action|Event|group-modify|Action|S25reload-httpd-admin|Start|1104946815 438895|End|1104946816 46345|Elapsed|0.60745
Jan  5 11:40:16 mail e-smith[8984]: Running event handler: /etc/e-smith/events/group-modify/S50email-assign
Jan  5 11:40:16 mail e-smith[8984]: S50email-assign=action|Event|group-modify|Action|S50email-assign|Start|1104946816 46584|End|1104946816 706051|Elapsed|0.659467
Jan  5 11:40:16 mail e-smith[8984]: Running event handler: /etc/e-smith/events/group-modify/S75reload-samba
Jan  5 11:40:16 mail e-smith[8984]: S75reload-samba=action|Event|group-modify|Action|S75reload-samba|Start|1104946816 706241|End|1104946816 976379|Elapsed|0.270138

Could this be an LDAP issue?
......

Offline edb

  • *
  • 548
  • +0/-0
Error modifying groups in Server Manager
« Reply #8 on: April 14, 2005, 07:33:46 AM »
Well after all this time I finally sat down and figured out what the heck was causing my problem.

Firstly, my issue was only to do with modifying group accounts not user accounts.

The issue was that every time I went to modify an existing group I would be presented with "an error occured while modifying user group". This was really urking me.  :hammer:
Since I wanted to have things just work properly I discovered that the reason for the error was due to a couple of things:

1)the "/etc/group" file contained no entry for the group even though the group appeared in the list within server manager

2)some of the groups that were listed within the file were missing the leading "admin" and the trailing "www" (example below)
northservice:x:5042:tom,dick,harry,john

Now if I changed it to read (example below)
northservice:x:5042:admin,tom,dick,harry,john,www  (It WORKED!!)

Now for the groups that did not show up in the "/etc/groups" file, I had to remove them through server manager - groups, then go to the command line and do a "/sbin/e-smith/db accounts delete groupname"then go back to server manager-groups and recreate the group account - add the members and save. Again I would receive the error message but at least the group would show up in /etc/groups where I would just add the "admin" and the "www" users. I would then go back to server manager - groups and modify the account and I would then get the success message. :-)

I feel breathless explaining all this but what I would like to know is why is it not adding the admin & www accounts to the group automatically?
If I could solve this then my issue would be just a part of SME history.

Regards,

Ed
......

Offline jackl

  • ****
  • 136
  • +0/-0
Error modifying groups in Server Manager
« Reply #9 on: April 14, 2005, 11:02:43 PM »
edb
Check in Perl script /etc/e-smith/events/S15group-create-unix and see if these lines are present
Quote
# "www" and "admin" are implicit members of all groups
push @groupMembers, 'admin', 'www';


This may not be the exact problem but my bet is there is something wrong with your perl scripts or there must file permissions problems somewhere

Regards,
Jack.

oops sorry that file is a symlink points to the  actual script file in /etc/e-smith/actions/group-create-unix
......

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Error modifying groups in Server Manager
« Reply #10 on: April 14, 2005, 11:43:35 PM »
Quote from: "edb"
Well after all this time I finally sat down and figured out what the heck was causing my problem.


Please go over to the bug tracker and tell the whole story there. Keep a copy of all your log files so you don't lose any evidence of what the problem was.

Offline edb

  • *
  • 548
  • +0/-0
Error modifying groups in Server Manager
« Reply #11 on: April 15, 2005, 04:32:25 AM »
Quote from: "jackl"
edb
Check in Perl script /etc/e-smith/events/S15group-create-unix and see if these lines are present
Quote
# "www" and "admin" are implicit members of all groups
push @groupMembers, 'admin', 'www';



Yes, I checked and the entries are indeed there.

Thanks
......

Offline edb

  • *
  • 548
  • +0/-0
Error modifying groups in Server Manager
« Reply #12 on: April 15, 2005, 04:47:03 AM »
Ok Charlie it's reported.
......