[Samba] CTDB: Failed to connect client socket to daemon. [SOLVED]

Achim Gottinger achim at ag-web.biz
Fri Aug 22 20:22:44 MDT 2014


Am 23.08.2014 04:02, schrieb Achim Gottinger:
> Am 22.08.2014 13:08, schrieb steve:
>> On Fri, 2014-08-22 at 02:08 +0200, Achim Gottinger wrote:
>>> Am 22.08.2014 00:16, schrieb steve:
>>>> I _think_ we should change /var/run/samba to /usr/local/samba/var/run
>>> You can change the pid directory in smb.conf to the dircetory create by
>>> the upstart script. If you did not specify otherwise during configure
>>> /usr/local/samba/var/run is the default.
>>>
>>> [global]
>>> .....
>>> pid dirctory = /var/run/samba
>> Yep, thanks. One error fewer:)
>> The edited files are here if anyone wants to subject themselves to this
>> on Ubuntu:
>> http://linuxcostablanca.blogspot.com.es/2014/08/ubuntu-cluster-with-sssd.html 
>>
>>
>> One worrying thing is that the ctdb package on 14.04 is rw'ing dbs at
>> both:
>> /var/ctdb
>> drwxr-xr-x 2 root root 4096 ago 22 12:03 failcount
>> -rw-r--r-- 1 root root    0 ago 21 16:12 iptables-ctdb.flock
>> drwxr-xr-x 2 root root 4096 ago 22 12:02 managed_history
>> drwxr-xr-x 2 root root 4096 ago 21 16:11 persistent
>> drwxr-xr-x 6 root root 4096 ago 22 12:03 state
>>
>> and
>> var/lib/lib/ctdb
>> -rw-r--r-- 1 root root 1204224 ago 22 12:02 brlock.tdb.0
>> -rw------- 1 root root 1507328 ago 22 12:03 dbwrap_watchers.tdb.0
>> -rw------- 1 root root 1507328 ago 22 12:03 g_lock.tdb.0
>> -rw-r--r-- 1 root root 1204224 ago 22 12:02 locking.tdb.0
>> -rw-r--r-- 1 root root 1204224 ago 22 12:02 notify_index.tdb.0
>> drwx------ 2 root root    4096 ago 21 19:17 persistent
>> -rw-r--r-- 1 root root 1507328 ago 22 12:52 printer_list.tdb.0
>> -rw-r--r-- 1 root root  503808 ago 22 12:52 serverid.tdb.0
>> -rw------- 1 root root 1204224 ago 22 12:02 smbXsrv_open_global.tdb.0
>> -rw------- 1 root root 1204224 ago 22 12:02 smbXsrv_session_global.tdb.0
>> -rw------- 1 root root 1204224 ago 22 12:02 smbXsrv_tcon_global.tdb.0
>> -rw------- 1 root root 1310720 ago 22 12:03 smbXsrv_version_global.tdb.0
>> drwx------ 2 root root    4096 ago 22 09:46 state
>>
>> /var/ctdb I could believe. /var/lib/ctdb I could also believe.
>> But /var/lib/lib/ctdb?
>>
>> Version: 2.5.1+debian0-1
>>
>> We tried with 2.5.3 but that is the version with the broken sockets.
>>
>> Any comments most welcome.
>> Cheers,
>> Steve
>>
> Received an mail from debian bug database that they fixed the socket 
> path issue in 2.5.3-debian0-1.
> Building it here at the moment and i see
>
>  CFLAGS = -D_FORTIFY_SOURCE=2 -g -I./include -Iinclude -Ilib 
> -Ilib/util -I.    -I./lib/replace -DVARDIR=\"/var/lib\" 
> -DETCDIR=\"/etc\" -DCTDB_VARDIR=\"/var/lib/lib/ctdb\" 
> -DLOGDIR=\"/var/log/ctdb\" -DBINDIR=\"/usr/bin\" 
> -DSOCKPATH=\"/var/lib/run/ctdb/ctdbd.socket\" -DUSE_MMAP=1 -g -O2 
> -fstack-protector --param=ssp-buffer-size=4 -Wformat 
> -Werror=format-security -Wall -D_FORTIFY_SOURCE=2  -I./lib/replace 
> -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual 
> -Wcast-align -Wwrite-strings  -Wno-format-zero-length 
> -Wno-deprecated-declarations -fPIC
>   LIBS = -Wl,-z,relro -Wl,-z,now -Llib  -lpopt -ltalloc -ltevent -ltdb
>
> -DCTDB_VARDIR=/var/lib/lib/ctdb
>
> so another minor issue to report.
Hmm my fault the fix is in 2.5.3-debian0-2 but only for the socket path.
>
> Few days ago i also reported the debian samba team that they still use 
> /tmp/ctdb.socket as the defaukt while ctdb now uses 
> /var/lib/ctdb/ctdb.socket.
> From my point of view such things should just work on an distribution 
> without the need to configure it for each package.



More information about the samba mailing list