connect(/var/lib/ctdb/ctdb.socket) failed: Connection refused
Martin Schwenke
martin at meltin.net
Sun Aug 10 16:55:46 MDT 2014
On Sun, 10 Aug 2014 16:49:49 +0200, steve <steve at steve-ss.com> wrote:
> 2014/08/10 16:31:02.920250 [ 3913]: Node became HEALTHY. Ask recovery
> master 0 to perform ip reallocation
>
> ps aux|grep ctdbd
> root 3913 1.4 0.8 4824 4224 ? SLs 16:30 0:06 ctdbd
> --dbdir=/usr/local/var/lib/ctdb
> --dbdir-persistent=/usr/local/var/lib/ctdb/persistent
> --event-script-dir=/usr/local/etc/ctdb/events.d
> --public-addresses=/usr/local/etc/ctdb/public_addresses
> --socket=/usr/local/var/lib/ctdb/ctdbd.socket --logfile=/var/log/syslog
> root 4050 0.7 0.2 4428 1064 ? S 16:30 0:03 ctdbd
> --dbdir=/usr/local/var/lib/ctdb
> --dbdir-persistent=/usr/local/var/lib/ctdb/persistent
> --event-script-dir=/usr/local/etc/ctdb/events.d
> --public-addresses=/usr/local/etc/ctdb/public_addresses
> --socket=/usr/local/var/lib/ctdb/ctdbd.socket --logfile=/var/log/syslog
> root 6950 0.0 0.1 7124 836 pts/3 S+ 16:37 0:00 grep
> --color=auto ctdbd
>
> which ctdb
> /usr/local/bin/ctdb
>
> ctdb errors out:
> ctdb status
> 2014/08/10 16:38:59.619340 [ 7383]: client/ctdb_client.c:267 Failed to
> connect client socket to daemon. Errno:Connection refused(111)
> common/cmdline.c:156 Failed to connect to daemon
> 2014/08/10 16:38:59.626991 [ 7383]: Failed to init ctdb
>
> Is the socket there?
> ls -l /usr/local/var/lib/ctdb
> total 8
> srwx------ 1 root root 0 ago 10 16:41 ctdbd.socket
> drwx------ 2 root root 4096 ago 10 14:14 persistent
> drwx------ 2 root root 4096 ago 10 16:41 state
> [...]
> Question: why is ctdb status failing?
What does the following tell you?
strings /usr/local/bin/ctdb | grep 'ctdbd\.socket'
The location of the socket is set consistently between ctdbd and ctdb at
compile time. You can't tell ctdbd a different location on the
command-line and expect ctdb to be able to connect.
peace & happiness,
martin
More information about the samba-technical
mailing list