[Samba] CTDB: Failed to connect client socket to daemon.
Achim Gottinger
achim at ag-web.biz
Mon Aug 18 04:32:15 MDT 2014
Am 18.08.2014 12:09, schrieb steve:
> On Mon, 2014-08-18 at 11:31 +0200, Achim Gottinger wrote:
>> Change service_name back to samba it
>> Is Usedom by ctdb
> OK. Thanks again. Getting closer. Changed smbd to samba:
> sudo ctdb eventscript 50.samba startup
> 2014/08/18 11:57:16.958275 [ 9029]: Invalid arguments
First sorry for the typos, iphone autocorrection got me.
I assue you want to give ctdbd control over samba.
https://ctdb.samba.org/samba.html
Do you have CTDB_MANAGES_SAMBA="yes" in /etc/default/ctdb?
If so ctdb calls /etc/ctdb/event.d/50.samba. Are you sure you do not
have exit 1 iin the service_start function any longer?
Seen you enabled the script with
ctdb enablescript samba
I guess you can trigger an start with:
ctdb -n 0 disable
ctdb -n 0 enable
And
ctdb scriptstatus
should show if samba is up and running under ctdb control.
>
> log:
> Aug 18 11:52:05 uc1 ctdbd: Starting traverse on DB serverid.tdb (id 589)
> Aug 18 11:52:06 uc1 ctdbd: Ending traverse on DB serverid.tdb (id 589),
> records 0
> Aug 18 11:52:06 uc1 ctdbd: Local traverse end db:serverid.tdb reqid:589
> records:0
> Aug 18 11:52:06 uc1 ctdbd: 50.samba: Failed to start samba
> Aug 18 11:52:06 uc1 ctdbd: server/eventscript.c:496 Eventscript startup
> finished with state 1
> Aug 18 11:52:06 uc1 ctdbd: startup event failed
>
> smbd starts fine via the script:
> sudo service smbd start:
> ps aux|grep smbd
> root 11476 6.0 1.7 60904 8968 ? Ss 12:00 0:00 smbd -F
> root 11491 2.5 0.6 60904 3348 ? S 12:00 0:00 smbd -F
>
> but not via smbd -i -d3:
> which smbd
> /usr/local/samba/sbin/smbd
>
> sometimes we get this;
> sudo smbd -i -d3
> Maximum core file size limits now 16777216(soft) -1(hard)
> smbd version 4.1.11 started.
> Copyright Andrew Tridgell and the Samba Team 1992-2013
> uid=0 gid=0 euid=0 egid=0
> lp_load_ex: refreshing parameters
> Initialising global parameters
> rlimit_max: increasing rlimit_max (1024) to minimum Windows limit
> (16384)
> params.c:pm_process() - Processing configuration file
> "/usr/local/samba/etc/smb.conf"
> Processing section "[global]"
> Registered MSG_REQ_POOL_USAGE
> Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
> lp_load_ex: refreshing parameters
> Initialising global parameters
> rlimit_max: increasing rlimit_max (1024) to minimum Windows limit
> (16384)
> params.c:pm_process() - Processing configuration file
> "/usr/local/samba/etc/smb.conf"
> Processing section "[global]"
> Processing section "[users]"
> Processing section "[profiles]"
> Processing section "[shared]"
> adding IPC service
> added interface eth1 ip=192.168.0.10 bcast=192.168.0.255
> netmask=255.255.255.0
> added interface bond0 ip=192.168.1.82 bcast=192.168.1.255
> netmask=255.255.255.0
> loaded services
> db_open_ctdb: opened database 'g_lock.tdb' with dbid 0x4d2a432b
> db_open_ctdb: opened database 'secrets.tdb' with dbid 0x7132c184
> db_open_ctdb: opened database 'dbwrap_watchers.tdb' with dbid 0x6afb8c09
> db_open_ctdb: opened database 'smbXsrv_version_global.tdb' with dbid
> 0x521b7544
> db_open_ctdb: opened database 'serverid.tdb' with dbid 0x9ec2a880
> db_open_ctdb: opened database 'smbXsrv_session_global.tdb' with dbid
> 0x6b06a26d
> db_open_ctdb: opened database 'smbXsrv_tcon_global.tdb' with dbid
> 0x68c12c2c
> db_open_ctdb: opened database 'brlock.tdb' with dbid 0x4e66c2b2
> db_open_ctdb: opened database 'locking.tdb' with dbid 0x7a19d84d
> db_open_ctdb: opened database 'notify_index.tdb' with dbid 0xaf029e9d
> db_open_ctdb: opened database 'g_lock.tdb' with dbid 0x4d2a432b
> db_open_ctdb: opened database 'registry.tdb' with dbid 0x6cf2837d
> db_open_ctdb: opened database 'g_lock.tdb' with dbid 0x4d2a432b
> db_open_ctdb: opened database 'share_info.tdb' with dbid 0xc3078fba
> db_open_ctdb: opened database 'g_lock.tdb' with dbid 0x4d2a432b
> db_open_ctdb: opened database 'passdb.tdb' with dbid 0x3ef19640
> db_open_ctdb: opened database 'g_lock.tdb' with dbid 0x4d2a432b
> db_open_ctdb: opened database 'group_mapping.tdb' with dbid 0xa1413774
> idmap range not specified for domain '*'
> db_open_ctdb: opened database 'g_lock.tdb' with dbid 0x4d2a432b
> db_open_ctdb: opened database 'account_policy.tdb' with dbid 0x2ca251cf
> db_open_ctdb: opened database 'smbXsrv_open_global.tdb' with dbid
> 0x66f71b8c
> Initialise the svcctl registry keys if needed.
> db_open_ctdb: opened database 'g_lock.tdb' with dbid 0x4d2a432b
> db_open_ctdb: opened database 'registry.tdb' with dbid 0x6cf2837d
> Initialise the eventlog registry keys if needed.
> db_open_ctdb: opened database 'g_lock.tdb' with dbid 0x4d2a432b
> db_open_ctdb: opened database 'registry.tdb' with dbid 0x6cf2837d
> db_open_ctdb: opened database 'printer_list.tdb' with dbid 0x5bcfcbd7
> get_dc_list: preferred server list: "palmera.altea.site, *"
> Successfully contacted LDAP server 192.168.1.132
> get_dc_list: preferred server list: "palmera.altea.site, *"
> get_dc_list: preferred server list: "palmera.altea.site, *"
> Successfully contacted LDAP server 192.168.1.132
> Connected to LDAP server palmera.altea.site
> ads_sasl_spnego_bind: got OID=1.2.840.48018.1.2.2
> ads_sasl_spnego_bind: got OID=1.2.840.113554.1.2.2
> ads_sasl_spnego_bind: got OID=1.3.6.1.4.1.311.2.2.10
> ads_sasl_spnego_bind: got server principal name =
> not_defined_in_RFC4178 at please_ignore
> ads_krb5_mk_req: krb5_cc_get_principal failed (No such file or
> directory)
> ads_cleanup_expired_creds: Ticket in ccache[MEMORY:prtpub_cache]
> expiration lun, 18 ago 2014 22:02:15 CEST
> reloading printcap cache
> reload status: ok
> reloading printcap cache
> cups_pcap_load_async: already waiting for a refresh event
> reload status: error
> waiting for connections
> db_open_ctdb: opened database 'g_lock.tdb' with dbid 0x4d2a432b
> db_open_ctdb: opened database 'registry.tdb' with dbid 0x6cf2837d
> db_open_ctdb: opened database 'g_lock.tdb' with dbid 0x4d2a432b
> db_open_ctdb: opened database 'registry.tdb' with dbid 0x6cf2837d
> Could not find child 12518 -- ignoring
>
> . . . and we are returned to the prompt.
>
> At other times we get this:
> /etc/samba/smb.conf is a link to /usr/local/samba/etc/smbd
>
> sudo samba -i -d3
> lpcfg_load: refreshing parameters from /etc/samba/smb.conf
> params.c:pm_process() - Processing configuration file
> "/etc/samba/smb.conf"
> Processing section "[global]"
> Processing section "[users]"
> Processing section "[profiles]"
> Processing section "[shared]"
> pm_process() returned Yes
> samba version 4.1.6-Ubuntu started.
> Copyright Andrew Tridgell and the Samba Team 1992-2013
> GENSEC backend 'gssapi_spnego' registered
> GENSEC backend 'gssapi_krb5' registered
> GENSEC backend 'gssapi_krb5_sasl' registered
> GENSEC backend 'schannel' registered
> GENSEC backend 'spnego' registered
> GENSEC backend 'ntlmssp' registered
> GENSEC backend 'krb5' registered
> GENSEC backend 'fake_gssapi_krb5' registered
> NTPTR backend 'simple_ldb'
> NTVFS backend 'default' for type 1 registered
> NTVFS backend 'posix' for type 1 registered
> NTVFS backend 'unixuid' for type 1 registered
> NTVFS backend 'unixuid' for type 3 registered
> NTVFS backend 'unixuid' for type 2 registered
> NTVFS backend 'cifs' for type 1 registered
> NTVFS backend 'smb2' for type 1 registered
> NTVFS backend 'simple' for type 1 registered
> NTVFS backend 'cifsposix' for type 1 registered
> NTVFS backend 'default' for type 3 registered
> NTVFS backend 'default' for type 2 registered
> NTVFS backend 'nbench' for type 1 registered
> PROCESS_MODEL 'single' registered
> PROCESS_MODEL 'onefork' registered
> PROCESS_MODEL 'prefork' registered
> PROCESS_MODEL 'standard' registered
> AUTH backend 'sam' registered
> AUTH backend 'sam_ignoredomain' registered
> AUTH backend 'anonymous' registered
> AUTH backend 'winbind' registered
> AUTH backend 'winbind_wbclient' registered
> AUTH backend 'name_to_ntstatus' registered
> AUTH backend 'unix' registered
> SHARE backend [classic] registered.
> At this time the 'samba' binary should only be used for either:
> 'server role = active directory domain controller' or to access the
> ntvfs file server with 'server services = +smb' or the rpc proxy with
> 'dcerpc endpoint servers = remote'
> You should start smbd/nmbd/winbindd instead for domain member and
> standalone file server tasks
>
This is differnet because you call smbd and sometimes samba. :-)
More information about the samba
mailing list