[Samba] CTDB Question w/ Winbind

Robert Buck
Wed, 30 Sep 2020 12:59:41 -0000

Ok, thanks.

[root at euw2-samba-server-c21-01 ec2-user]# systemctl status winbind.service

*?* winbind.service - Samba Winbind Daemon

   Loaded: loaded (/usr/lib/systemd/system/winbind.service; enabled; vendor
preset: disabled)

   Active: *failed* (Result: exit-code) since Wed 2020-09-30 12:58:25 UTC;
1s ago

     Docs: man:winbindd(8)

           man:samba(7)

           man:smb.conf(5)

  Process: 484378 ExecStart=/usr/sbin/winbindd --foreground
--no-process-group $WINBINDOPTIONS *(code=exited, status=1/FAILURE)*

 Main PID: 484378 (code=exited, status=1/FAILURE)

   Status: "Starting process..."


Sep 30 12:58:25 euw2-samba-server-c21-01 systemd[1]: Starting Samba Winbind
Daemon...

Sep 30 12:58:25 euw2-samba-server-c21-01 winbindd[484378]: *[2020/09/30
12:58:25.157818,  0]
../../source3/winbindd/winbindd_cache.c:3190(initialize_winbindd_cache)*

Sep 30 12:58:25 euw2-samba-server-c21-01 winbindd[484378]: *
initialize_winbindd_cache: clearing cache and re-creating with version
number 2*

Sep 30 12:58:25 euw2-samba-server-c21-01 winbindd[484378]: *[2020/09/30
12:58:25.161513,  0]
../../source3/winbindd/winbindd_util.c:1282(init_domain_list)*

Sep 30 12:58:25 euw2-samba-server-c21-01 winbindd[484378]: *  Could not
fetch our SID - did we join?*

Sep 30 12:58:25 euw2-samba-server-c21-01 winbindd[484378]: *[2020/09/30
12:58:25.161629,  0]
../../source3/winbindd/winbindd.c:1462(winbindd_register_handlers)*

Sep 30 12:58:25 euw2-samba-server-c21-01 winbindd[484378]: *  unable to
initialize domain list*

Sep 30 12:58:25 euw2-samba-server-c21-01 systemd[1]: *winbind.service: Main
process exited, code=exited, status=1/FAILURE*

Sep 30 12:58:25 euw2-samba-server-c21-01 systemd[1]: *winbind.service:
Failed with result 'exit-code'.*

Sep 30 12:58:25 euw2-samba-server-c21-01 systemd[1]: *Failed to start Samba
Winbind Daemon.*

And,

-- Subject: Unit winbind.service has begun start-up

-- Defined-By: systemd

-- Support: https://access.redhat.com/support

--

-- Unit winbind.service has begun starting up.

Sep 30 12:59:06 euw2-samba-server-c21-01 winbindd[484774]: *[2020/09/30
12:59:06.775585,  0]
../../source3/winbindd/winbindd_cache.c:3190(initialize_winbindd_cache)*

Sep 30 12:59:06 euw2-samba-server-c21-01 winbindd[484774]: *
initialize_winbindd_cache: clearing cache and re-creating with version
number 2*

Sep 30 12:59:06 euw2-samba-server-c21-01 winbindd[484774]: *[2020/09/30
12:59:06.778729,  0]
../../source3/winbindd/winbindd_util.c:1282(init_domain_list)*

Sep 30 12:59:06 euw2-samba-server-c21-01 winbindd[484774]: *  Could not
fetch our SID - did we join?*

Sep 30 12:59:06 euw2-samba-server-c21-01 winbindd[484774]: *[2020/09/30
12:59:06.778777,  0]
../../source3/winbindd/winbindd.c:1462(winbindd_register_handlers)*

Sep 30 12:59:06 euw2-samba-server-c21-01 winbindd[484774]: *  unable to
initialize domain list*

Sep 30 12:59:06 euw2-samba-server-c21-01 systemd[1]: *winbind.service: Main
process exited, code=exited, status=1/FAILURE*

Sep 30 12:59:06 euw2-samba-server-c21-01 systemd[1]: *winbind.service:
Failed with result 'exit-code'.*

Sep 30 12:59:06 euw2-samba-server-c21-01 systemd[1]: *Failed to start Samba
Winbind Daemon.*

-- Subject: Unit winbind.service has failed

-- Defined-By: systemd

-- Support: https://access.redhat.com/support

--

-- Unit winbind.service has failed.

--

-- The result is failed.

Sep 30 12:59:06 euw2-samba-server-c21-01 ctdb-eventd[15138]: *49.winbind:
Redirecting to /bin/systemctl start winbind.service*

Sep 30 12:59:06 euw2-samba-server-c21-01 ctdb-eventd[15138]: *49.winbind:
Job for winbind.service failed because the control process exited with
error code.*

Sep 30 12:59:06 euw2-samba-server-c21-01 ctdb-eventd[15138]: *49.winbind:
See "systemctl status winbind.service" and "journalctl -xe"
for details.*

Sep 30 12:59:06 euw2-samba-server-c21-01 ctdb-eventd[15138]: *49.winbind:
Failed to start winbind*

Sep 30 12:59:06 euw2-samba-server-c21-01 ctdb-eventd[15138]: *startup event
failed*

Sep 30 12:59:06 euw2-samba-server-c21-01 ctdbd[15136]: *startup event
failed*


On Tue, Sep 29, 2020 at 8:59 PM Martin Schwenke <martin at meltin.net>
wrote:

> Hi Bob,
>
> On Tue, 29 Sep 2020 18:27:00 -0400, Robert Buck via samba
> <samba at lists.samba.org> wrote:
>
> > When I try to enable CTDB to manage (legacy) SMB and Winbind, I get
> startup
> > errors.
> >
> > Sep 29 22:23:06 euw2-samba-server-c21-01 ctdb-eventd[1509]:
*49.winbind:
> > Failed to start winbind*
> >
> > Sep 29 22:23:06 euw2-samba-server-c21-01 ctdb-eventd[1509]: *startup
> event
> > failed*
> >
> > Sep 29 22:23:06 euw2-samba-server-c21-01 ctdbd[1507]: *startup event
> failed*
> >
> > Sep 29 22:23:11 euw2-samba-server-c21-01 ctdbd[1507]: *Running the
> > "startup" event.*
> >
> > Sep 29 22:23:11 euw2-samba-server-c21-01 ctdb-eventd[1509]:
*49.winbind:
> > Redirecting to /bin/systemctl start winbind.service*
> >
> > Sep 29 22:23:11 euw2-samba-server-c21-01 ctdb-eventd[1509]:
*49.winbind:
> > Job for winbind.service failed because the control process exited with
> > error code.*
> >
> > Sep 29 22:23:11 euw2-samba-server-c21-01 ctdb-eventd[1509]:
*49.winbind:
> > See "systemctl status winbind.service" and "journalctl
-xe" for details.*
> >
> > Sep 29 22:23:11 euw2-samba-server-c21-01 ctdb-eventd[1509]:
*49.winbind:
> > Failed to start winbind*
> >
> > Sep 29 22:23:11 euw2-samba-server-c21-01 ctdb-eventd[1509]: *startup
> event
> > failed*
> >
> > Sep 29 22:23:11 euw2-samba-server-c21-01 ctdbd[1507]: *startup event
> failed*
>
> I think we really need to see the output of this:
>
>   See "systemctl status winbind.service" and "journalctl
-xe" for
>   details.
>
> > Could someone provide some pointers on how to make SMB + CTDB +
Winbind
> to
> > work, where CTDB launches these. Or if it doesn't launch them, how
to
> > configure CTDB and Winbind to work together?
>
> This is working for me in my nightly testing.
>
> CTDB launches winbindd from the 49.winbind event script and smbd from
> 50.samba event script.  When enabled these will be linked from
> /etc/ctdb/events/legacy/.  These don't tend to contain any magic, so
the
> failure must be something to do with configuration or environment.
>
> peace & happiness,
> martin
>
>

--

BOB BUCK
SENIOR PLATFORM SOFTWARE ENGINEER

SKIDMORE, OWINGS & MERRILL
7 WORLD TRADE CENTER
250 GREENWICH STREET
NEW YORK, NY 10007
T  (212) 298-9624
ROBERT.BUCK at SOM.COM