Koozali.org: home of the SME Server

Error with user creation

Offline tec

  • ***
  • 48
  • +0/-0
Error with user creation
« on: November 06, 2014, 11:02:29 PM »
Hello together,
fresh SME9.0 install, installed all the updates. No contribs done. Rebooted.
Created First User and I get in Server Manager an error: "AN error occured while creating the user"
here the logs from messages. Maybe someone knows how to fix it? In the regular updates there was an ldap update.
Code: [Select]
Nov  6 22:57:56 dante /etc/e-smith/web/panels/manager/cgi-bin/useraccounts[10463]: /home/e-smith/db/accounts: OLD test1=(undefined)
Nov  6 22:57:56 dante /etc/e-smith/web/panels/manager/cgi-bin/useraccounts[10463]: /home/e-smith/db/accounts: NEW test1=
Nov  6 22:57:56 dante /etc/e-smith/web/panels/manager/cgi-bin/useraccounts[10463]: /home/e-smith/db/accounts: OLD test1=
Nov  6 22:57:56 dante /etc/e-smith/web/panels/manager/cgi-bin/useraccounts[10463]: /home/e-smith/db/accounts: NEW test1=user|City|Ottawa|Company|XYZ Corporation|Dept|Main|EmailForward|local|FirstName|test|ForwardAddress||LastName|1|PasswordSet|no|Phone|555-5555|Street|123 Main Street|VPNClientAccess|no
Nov  6 22:57:56 dante /etc/e-smith/web/panels/manager/cgi-bin/useraccounts[10463]: /home/e-smith/db/accounts: OLD test.1=(undefined)
Nov  6 22:57:56 dante /etc/e-smith/web/panels/manager/cgi-bin/useraccounts[10463]: /home/e-smith/db/accounts: NEW test.1=pseudonym|Account|test1
Nov  6 22:57:56 dante /etc/e-smith/web/panels/manager/cgi-bin/useraccounts[10463]: /home/e-smith/db/accounts: OLD test_1=(undefined)
Nov  6 22:57:56 dante /etc/e-smith/web/panels/manager/cgi-bin/useraccounts[10463]: /home/e-smith/db/accounts: NEW test_1=pseudonym|Account|test1
Nov  6 22:57:56 dante esmith::event[10473]: Processing event: user-create test1
Nov  6 22:57:56 dante esmith::event[10473]: Running event handler: /etc/e-smith/events/user-create/S04user-create-unix
Nov  6 22:57:56 dante /etc/e-smith/events/user-create/S04user-create-unix[10475]: /home/e-smith/db/configuration: OLD MinUid=5010
Nov  6 22:57:56 dante /etc/e-smith/events/user-create/S04user-create-unix[10475]: /home/e-smith/db/configuration: NEW MinUid=5011
Nov  6 22:57:56 dante /etc/e-smith/events/user-create/S04user-create-unix[10475]: /home/e-smith/db/accounts: OLD test1=user|City|Ottawa|Company|XYZ Corporation|Dept|Main|EmailForward|local|FirstName|test|ForwardAddress||LastName|1|PasswordSet|no|Phone|555-5555|Street|123 Main Street|VPNClientAccess|no
Nov  6 22:57:56 dante /etc/e-smith/events/user-create/S04user-create-unix[10475]: /home/e-smith/db/accounts: NEW test1=user|City|Ottawa|Company|XYZ Corporation|Dept|Main|EmailForward|local|FirstName|test|ForwardAddress||LastName|1|PasswordSet|no|Phone|555-5555|Street|123 Main Street|Uid|5010|VPNClientAccess|no
Nov  6 22:57:57 dante esmith::event[10473]: CPU: ldapOperation: ldap_bind_s: Can't contact LDAP server
Nov  6 22:57:57 dante esmith::event[10473]:      The LDAP server specified at localhost could not be contacted.
Nov  6 22:57:57 dante esmith::event[10473]:      Your LDAP server may be down or incorrectly specified.
Nov  6 22:57:57 dante esmith::event[10473]: Failed to create (ldap) group test1.
Nov  6 22:57:57 dante esmith::event[10473]: CPU: ldapOperation: ldap_bind_s: Can't contact LDAP server
Nov  6 22:57:57 dante esmith::event[10473]:      The LDAP server specified at localhost could not be contacted.
Nov  6 22:57:57 dante esmith::event[10473]:      Your LDAP server may be down or incorrectly specified.
Nov  6 22:57:57 dante esmith::event[10473]: Failed to create (ldap) account test1.
Nov  6 22:57:57 dante esmith::event[10473]: Locking password for user test1.
Nov  6 22:57:57 dante esmith::event[10473]: passwd: Success
Nov  6 22:57:57 dante esmith::event[10473]: CPU: ldapOperation: ldap_bind_s: Can't contact LDAP server
Nov  6 22:57:57 dante esmith::event[10473]:      The LDAP server specified at localhost could not be contacted.
Nov  6 22:57:57 dante esmith::event[10473]:      Your LDAP server may be down or incorrectly specified.
Nov  6 22:57:57 dante esmith::event[10473]: Could not lock (ldap) password for test1
Nov  6 22:57:57 dante esmith::event[10473]: Added user test1.
Nov  6 22:57:57 dante esmith::event[10473]: S04user-create-unix=action|Event|user-create|Action|S04user-create-unix|Start|1415311076 907367|End|1415311077 974565|Elapsed|1.067198
Nov  6 22:57:57 dante esmith::event[10473]: Running event handler: /etc/e-smith/events/actions/generic_template_expand
Nov  6 22:57:58 dante esmith::event[10473]: expanding /var/qmail/users/assign
Nov  6 22:57:58 dante esmith::event[10473]: expanding /var/qmail/alias/.qmail-shared
Nov  6 22:57:58 dante esmith::event[10473]: expanding /var/qmail/control/virtualdomains
Nov  6 22:57:58 dante esmith::event[10473]: expanding /var/qmail/control/badrcptto
Nov  6 22:57:58 dante esmith::event[10473]: expanding /var/service/qpsmtpd/config/goodrcptto
Nov  6 22:57:58 dante esmith::event[10473]: expanding /etc/dhcpd.conf
Nov  6 22:57:58 dante esmith::event[10473]: expanding /etc/pptpd.conf
Nov  6 22:57:58 dante esmith::event[10473]: expanding /etc/rssh.conf
Nov  6 22:57:58 dante esmith::event[10473]: expanding /etc/raddb/users
Nov  6 22:57:58 dante esmith::event[10473]: expanding /etc/raddb/radiusd.conf
Nov  6 22:57:58 dante esmith::event[10473]: expanding /etc/e-smith/pam/accounts.allow
Nov  6 22:57:58 dante esmith::event[10473]: expanding /etc/e-smith/pam/users.allow
Nov  6 22:57:58 dante esmith::event[10473]: expanding /etc/e-smith/pam/accounts.deny
Nov  6 22:57:58 dante esmith::event[10473]: expanding /etc/ppp/ip-down.local
Nov  6 22:57:58 dante esmith::event[10473]: expanding /etc/ppp/options.pptpd
Nov  6 22:57:58 dante esmith::event[10473]: expanding /etc/ppp/ip-up.local
Nov  6 22:57:58 dante esmith::event[10473]: generic_template_expand=action|Event|user-create|Action|generic_template_expand|Start|1415311077 974854|End|1415311078 487548|Elapsed|0.512694
Nov  6 22:57:58 dante esmith::event[10473]: Running event handler: /etc/e-smith/events/user-create/S20qmail-update-group
Nov  6 22:57:58 dante esmith::event[10473]: S20qmail-update-group=action|Event|user-create|Action|S20qmail-update-group|Start|1415311078 487847|End|1415311078 640034|Elapsed|0.152187
Nov  6 22:57:58 dante esmith::event[10473]: Running event handler: /etc/e-smith/events/user-create/S20qmail-update-user
Nov  6 22:57:58 dante esmith::event[10473]: S20qmail-update-user=action|Event|user-create|Action|S20qmail-update-user|Start|1415311078 640417|End|1415311078 752522|Elapsed|0.112105
Nov  6 22:57:58 dante esmith::event[10473]: Running event handler: /etc/e-smith/events/user-create/S20user-create-profiledir
Nov  6 22:57:58 dante esmith::event[10473]: S20user-create-profiledir=action|Event|user-create|Action|S20user-create-profiledir|Start|1415311078 752883|End|1415311078 836600|Elapsed|0.083717
Nov  6 22:57:58 dante esmith::event[10473]: Running event handler: /etc/e-smith/events/user-create/S25count-active-user-accounts
Nov  6 22:57:58 dante esmith::event[10473]: S25count-active-user-accounts=action|Event|user-create|Action|S25count-active-user-accounts|Start|1415311078 836959|End|1415311078 908499|Elapsed|0.07154
Nov  6 22:57:58 dante esmith::event[10473]: Running event handler: /etc/e-smith/events/user-create/S50user-modify-quota
Nov  6 22:57:58 dante esmith::event[10473]: S50user-modify-quota=action|Event|user-create|Action|S50user-modify-quota|Start|1415311078 908859|End|1415311078 980180|Elapsed|0.071321
Nov  6 22:57:58 dante esmith::event[10473]: Running event handler: /etc/e-smith/events/user-create/S55email-assign
Nov  6 22:57:59 dante esmith::event[10473]: S55email-assign=action|Event|user-create|Action|S55email-assign|Start|1415311078 980544|End|1415311079 82625|Elapsed|0.102081
Nov  6 22:57:59 dante esmith::event[10473]: Running event handler: /etc/e-smith/events/user-create/S56update-domain-group-maps
Nov  6 22:57:59 dante esmith::event[10473]: No rid or sid specified, choosing a RID
Nov  6 22:57:59 dante esmith::event[10473]: Got RID 11021
Nov  6 22:57:59 dante esmith::event[10473]: Successfully added group test 1 to the mapping db as a domain group
Nov  6 22:57:59 dante esmith::event[10473]: S56update-domain-group-maps=action|Event|user-create|Action|S56update-domain-group-maps|Start|1415311079 83428|End|1415311079 544064|Elapsed|0.460636
Nov  6 22:57:59 dante esmith::event[10473]: Running event handler: /etc/e-smith/events/user-create/S85user-group-modify
Nov  6 22:57:59 dante esmith::event[10473]: S85user-group-modify=action|Event|user-create|Action|S85user-group-modify|Start|1415311079 544356|End|1415311079 647778|Elapsed|0.103422
Nov  6 22:57:59 dante esmith::event[10473]: Running event handler: /etc/e-smith/events/actions/adjust-services
Nov  6 22:57:59 dante esmith::event[10473]: adjusting supervised qmail (sighup)
Nov  6 22:57:59 dante esmith::event[10473]: adjusting supervised qmail (up)
Nov  6 22:57:59 dante esmith::event[10473]: adjusting supervised smbd (sighup)
Nov  6 22:57:59 dante esmith::event[10473]: adjusting supervised smbd (up)
Nov  6 22:57:59 dante esmith::event[10473]: adjusting supervised radiusd (sigterm)
Nov  6 22:57:59 dante esmith::event[10473]: adjusting supervised radiusd (up)
Nov  6 22:57:59 dante esmith::event[10473]: adjust-services=action|Event|user-create|Action|adjust-services|Start|1415311079 648156|End|1415311079 741129|Elapsed|0.092973
Nov  6 22:57:59 dante esmith::event[10473]: Running event handler: /etc/e-smith/events/user-create/S95ldap-update-simple
Nov  6 22:57:59 dante esmith::event[10473]: IO::Socket::INET: connect: Connection refused at /etc/e-smith/events/user-create/S95ldap-update-simple line 43.
Nov  6 22:57:59 dante esmith::event[10473]: S95ldap-update-simple=action|Event|user-create|Action|S95ldap-update-simple|Start|1415311079 741419|End|1415311079 933039|Elapsed|0.19162|Status|28416



Offline TerryF

  • grumpy old man
  • *
  • 1,848
  • +6/-0
Re: Error with user creation
« Reply #1 on: November 07, 2014, 07:11:40 AM »
Was it a reboot or a
# signal-event post-upgrade; signal-event reboot
--
qui scribit bis legit

Offline stephdl

  • *
  • 1,523
  • +0/-0
    • Linux et Geekeries
Re: Error with user creation
« Reply #2 on: November 07, 2014, 08:50:26 AM »
It seems a dup of http://bugs.contribs.org/show_bug.cgi?id=8635

With an upgrade of centos6.6 the a rpm has done some migration works on ldap and has corrupted files/folders ownership.

what is the output of

Code: [Select]
ll /var/lib/ldap/__db.*
« Last Edit: November 10, 2014, 06:30:23 PM by stephdl »
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline crazybob

  • *****
  • 894
  • +0/-0
    • Stalzer R&D
Re: Error with user creation
« Reply #3 on: November 10, 2014, 06:17:41 AM »
having similar issues
output of  ll var/lib/ldap/__db.*   is  ls: cannot access var/lib/ldap/__db.*: No such file or directory
If you think you know whats going on, you obviously have no idea whats going on!

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Error with user creation
« Reply #4 on: November 10, 2014, 04:01:13 PM »
Code: [Select]
cd /
ll var/lib/ldap/__db.*

let us know