Forums

Resolved
0 votes
Hey All,

I am experimented a very common problem in the forum, but mine looks different and very very easy to reproduce.

Basically "acont system is offline" is being displayed in the WebGui,

[root@clearos ~]# slapd -h "ldap://127.0.0.1/" -u ldap -f "/etc/openldap/slapd.conf" -d 256
5c224b84 @(#) $OpenLDAP: slapd 2.4.44 (Jul 4 2018 20:05:05) $
mockbuild@build64-1.clearsdn.local:/builddir/build/BUILD/openldap-2.4.44/openldap-2.4.44/servers/slapd
5c224b84 daemon: bind(7) failed errno=98 (Address already in use)
5c224b84 slapd stopped.
5c224b84 connections_destroy: nothing to destroy.
[root@clearos ~]#


After the command, I can see the address is already in use. Means the service started correctly?

Lets try to restart the service... Looks everything ok for me.

[root@clearos ~]# systemctl restart  slapd.service
[root@clearos ~]# journalctl -xe
Dec 25 16:26:05 clearos.qmi.local slapd[2372]: conn=1084 op=8 SRCH attr=gidNumber sambaSID sambaG
Dec 25 16:26:05 clearos.qmi.local slapd[2372]: conn=1084 op=8 SEARCH RESULT tag=101 err=0 nentrie
Dec 25 16:26:05 clearos.qmi.local slapd[2372]: conn=1084 op=9 SRCH base="dc=system,dc=lan" scope=
Dec 25 16:26:05 clearos.qmi.local slapd[2372]: conn=1084 op=9 SRCH attr=uid uidNumber gidNumber h
Dec 25 16:26:05 clearos.qmi.local slapd[2372]: conn=1084 op=9 SEARCH RESULT tag=101 err=0 nentrie
Dec 25 16:26:05 clearos.qmi.local slapd[2372]: conn=1084 op=10 SRCH base="dc=system,dc=lan" scope
Dec 25 16:26:05 clearos.qmi.local slapd[2372]: conn=1084 op=10 SRCH attr=gidNumber sambaSID samba
Dec 25 16:26:05 clearos.qmi.local slapd[2372]: conn=1084 op=10 SEARCH RESULT tag=101 err=0 nentri
Dec 25 16:26:05 clearos.qmi.local slapd[2372]: conn=1084 op=11 SRCH base="dc=system,dc=lan" scope
Dec 25 16:26:05 clearos.qmi.local slapd[2372]: conn=1084 op=11 SRCH attr=uid uidNumber gidNumber
Dec 25 16:26:05 clearos.qmi.local slapd[2372]: conn=1084 op=11 SEARCH RESULT tag=101 err=0 nentri
Dec 25 16:26:05 clearos.qmi.local slapd[2372]: conn=1084 op=12 SRCH base="dc=system,dc=lan" scope
Dec 25 16:26:05 clearos.qmi.local slapd[2372]: conn=1084 op=12 SRCH attr=gidNumber sambaSID samba
Dec 25 16:26:05 clearos.qmi.local slapd[2372]: conn=1084 op=12 SEARCH RESULT tag=101 err=0 nentri
Dec 25 16:26:05 clearos.qmi.local slapd[2372]: conn=1084 fd=22 closed (connection lost)
Dec 25 16:26:14 clearos.qmi.local slapd[2372]: conn=1085 fd=22 ACCEPT from IP=127.0.0.1:41076 (IP
Dec 25 16:26:14 clearos.qmi.local slapd[2372]: conn=1085 op=0 BIND dn="cn=manager,ou=Internal,dc=
Dec 25 16:26:14 clearos.qmi.local slapd[2372]: conn=1085 op=0 BIND dn="cn=manager,ou=Internal,dc=
Dec 25 16:26:14 clearos.qmi.local slapd[2372]: conn=1085 op=0 RESULT tag=97 err=0 text=
Dec 25 16:26:14 clearos.qmi.local nslcd[1530]: [5f007c] <group/member="webconfig"> connected to L
Dec 25 16:26:14 clearos.qmi.local slapd[2372]: conn=1085 op=1 SRCH base="ou=Users,ou=Accounts,dc=
Dec 25 16:26:14 clearos.qmi.local slapd[2372]: conn=1085 op=1 SRCH attr=uid uidNumber
Dec 25 16:26:14 clearos.qmi.local slapd[2372]: conn=1085 op=1 SEARCH RESULT tag=101 err=0 nentrie
Dec 25 16:26:14 clearos.qmi.local slapd[2372]: conn=1085 op=2 SRCH base="ou=Computers,ou=Accounts
Dec 25 16:26:14 clearos.qmi.local slapd[2372]: conn=1085 op=2 SRCH attr=uid uidNumber
Dec 25 16:26:14 clearos.qmi.local slapd[2372]: conn=1085 op=2 SEARCH RESULT tag=101 err=0 nentrie
Dec 25 16:26:14 clearos.qmi.local slapd[2372]: conn=1085 op=3 SRCH base="ou=Groups,ou=Accounts,dc
Dec 25 16:26:14 clearos.qmi.local slapd[2372]: conn=1085 op=3 SRCH attr=memberUid cn gidNumber me
Dec 25 16:26:14 clearos.qmi.local slapd[2372]: conn=1085 op=3 SEARCH RESULT tag=101 err=0 nentrie
lines 1065-1093/1093 (END)
Dec 25 16:26:05 clearos.qmi.local slapd[2372]: conn=1084 op=8 SRCH attr=gidNumber sambaSID sambaGroupType sambaSIDList description displayName cn objectClass
Dec 25 16:26:05 clearos.qmi.local slapd[2372]: conn=1084 op=8 SEARCH RESULT tag=101 err=0 nentries=0 text=
Dec 25 16:26:05 clearos.qmi.local slapd[2372]: conn=1084 op=9 SRCH base="dc=system,dc=lan" scope=2 deref=0 filter="(&(sambaSID=s-1-5-21-818144645-2357804091-
Dec 25 16:26:05 clearos.qmi.local slapd[2372]: conn=1084 op=9 SRCH attr=uid uidNumber gidNumber homeDirectory sambaPwdLastSet sambaPwdCanChange sambaPwdMustC
Dec 25 16:26:05 clearos.qmi.local slapd[2372]: conn=1084 op=9 SEARCH RESULT tag=101 err=0 nentries=1 text=
Dec 25 16:26:05 clearos.qmi.local slapd[2372]: conn=1084 op=10 SRCH base="dc=system,dc=lan" scope=2 deref=0 filter="(&(objectClass=sambaGroupMapping)(gidNumb
Dec 25 16:26:05 clearos.qmi.local slapd[2372]: conn=1084 op=10 SRCH attr=gidNumber sambaSID sambaGroupType sambaSIDList description displayName cn objectClas
Dec 25 16:26:05 clearos.qmi.local slapd[2372]: conn=1084 op=10 SEARCH RESULT tag=101 err=0 nentries=0 text=
Dec 25 16:26:05 clearos.qmi.local slapd[2372]: conn=1084 op=11 SRCH base="dc=system,dc=lan" scope=2 deref=0 filter="(&(sambaSID=s-1-5-21-818144645-2357804091
Dec 25 16:26:05 clearos.qmi.local slapd[2372]: conn=1084 op=11 SRCH attr=uid uidNumber gidNumber homeDirectory sambaPwdLastSet sambaPwdCanChange sambaPwdMust
Dec 25 16:26:05 clearos.qmi.local slapd[2372]: conn=1084 op=11 SEARCH RESULT tag=101 err=0 nentries=1 text=
Dec 25 16:26:05 clearos.qmi.local slapd[2372]: conn=1084 op=12 SRCH base="dc=system,dc=lan" scope=2 deref=0 filter="(&(objectClass=sambaGroupMapping)(gidNumb
Dec 25 16:26:05 clearos.qmi.local slapd[2372]: conn=1084 op=12 SRCH attr=gidNumber sambaSID sambaGroupType sambaSIDList description displayName cn objectClas
Dec 25 16:26:05 clearos.qmi.local slapd[2372]: conn=1084 op=12 SEARCH RESULT tag=101 err=0 nentries=0 text=
Dec 25 16:26:05 clearos.qmi.local slapd[2372]: conn=1084 fd=22 closed (connection lost)
Dec 25 16:26:14 clearos.qmi.local slapd[2372]: conn=1085 fd=22 ACCEPT from IP=127.0.0.1:41076 (IP=127.0.0.1:389)
Dec 25 16:26:14 clearos.qmi.local slapd[2372]: conn=1085 op=0 BIND dn="cn=manager,ou=Internal,dc=system,dc=lan" method=128
Dec 25 16:26:14 clearos.qmi.local slapd[2372]: conn=1085 op=0 BIND dn="cn=manager,ou=Internal,dc=system,dc=lan" mech=SIMPLE ssf=0
Dec 25 16:26:14 clearos.qmi.local slapd[2372]: conn=1085 op=0 RESULT tag=97 err=0 text=
Dec 25 16:26:14 clearos.qmi.local nslcd[1530]: [5f007c] <group/member="webconfig"> connected to LDAP server ldap://127.0.0.1/
Dec 25 16:26:14 clearos.qmi.local slapd[2372]: conn=1085 op=1 SRCH base="ou=Users,ou=Accounts,dc=system,dc=lan" scope=2 deref=0 filter="(&(objectClass=posixA
Dec 25 16:26:14 clearos.qmi.local slapd[2372]: conn=1085 op=1 SRCH attr=uid uidNumber
Dec 25 16:26:14 clearos.qmi.local slapd[2372]: conn=1085 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text=
Dec 25 16:26:14 clearos.qmi.local slapd[2372]: conn=1085 op=2 SRCH base="ou=Computers,ou=Accounts,dc=system,dc=lan" scope=2 deref=0 filter="(&(objectClass=po
Dec 25 16:26:14 clearos.qmi.local slapd[2372]: conn=1085 op=2 SRCH attr=uid uidNumber
Dec 25 16:26:14 clearos.qmi.local slapd[2372]: conn=1085 op=2 SEARCH RESULT tag=101 err=0 nentries=0 text=
Dec 25 16:26:14 clearos.qmi.local slapd[2372]: conn=1085 op=3 SRCH base="ou=Groups,ou=Accounts,dc=system,dc=lan" scope=2 deref=0 filter="(&(objectClass=posix
Dec 25 16:26:14 clearos.qmi.local slapd[2372]: conn=1085 op=3 SRCH attr=memberUid cn gidNumber member
Dec 25 16:26:14 clearos.qmi.local slapd[2372]: conn=1085 op=3 SEARCH RESULT tag=101 err=0 nentries=0 text=



Am I missing something? I have reinstalled the OS thousands of time. Always the same thing. Installing just openlapd, trying to restart without installing any extra package and always the same story.

I have also tried to check the bugs in the past, like cert problems, slapd.conf folder, downgrading, restoring backups and thousands of forum related to this, but with no success. I am really losing my shit and start checking other alternatives :(

Any access to my system is allowed. ClearOS is running virtually. Please help.
Tuesday, December 25 2018, 03:33 PM
Share this post:
Responses (6)
  • Accepted Answer

    Thursday, December 27 2018, 08:58 AM - #Permalink
    Resolved
    0 votes
    Hmm. A basic service watch tries to restart it automatically but I am not sure what drives it. Can you try hiding /etc/cron.d/app-base by putting a "." in front of the file name or moving it out of the way. Don't delete it as you'll need to put it back later. Then do:
    ps aux | grep slapd
    service slapd stop
    slapd -h "ldap://127.0.0.1/" -u ldap -f "/etc/openldap/slapd.conf" -d 256
    Post back with the output of the first command then wait until the Directory goes offline and see if anything appears in the console.

    You can also look in /var/log/openldap (probably huge) for anything which sticks out.
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, December 27 2018, 01:48 AM - #Permalink
    Resolved
    0 votes
    Unfortunately the problem is back. I really cannot understand.
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, December 26 2018, 04:19 PM - #Permalink
    Resolved
    0 votes
    Nick Howitt wrote:

    Weird. That means LDAP is running. Have you initialised the Certificate Manager? If not, please can you try that?

    Also, where in the Webconfig are you seeing that the "accounts system is offline"?


    Hey Nick

    Cannto believe it. I just created the certificated and it started working finally. I rebooted several times and seems to be working.

    Thanks a lot for your help. Guess the WebGui needed to be more speficic :)

    All the best. Tanks for your Santa present
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, December 26 2018, 03:42 PM - #Permalink
    Resolved
    2 votes
    Weird. That means LDAP is running. Have you initialised the Certificate Manager? If not, please can you try that?

    Also, where in the Webconfig are you seeing that the "accounts system is offline"?
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, December 26 2018, 12:03 PM - #Permalink
    Resolved
    0 votes
    Check what is using the port with:
    netstat -npl | grep :389



    [root@clearos ~]# netstat -npl | grep :389
    tcp 0 0 127.0.0.1:389 0.0.0.0:* LISTEN 1406/slapd
    [root@clearos ~]#


    Are you using the AD connector at all? Also Gateway Management?


    Nop. Server will be working as a domain server standalone. It might be GUI problem not detecting that slapd is up?

    Thanks in advance
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, December 26 2018, 09:35 AM - #Permalink
    Resolved
    0 votes
    Check what is using the port with:
    netstat -npl | grep :389


    Are you using the AD connector at all? Also Gateway Management?
    The reply is currently minimized Show
Your Reply