The Samba-Bugzilla – Bug 12513
ctdb-eventd can't start because UNIX domain socket was not cleaned up
Last modified: 2017-01-27 05:16:01 UTC
From the log:
2017/01/12 11:30:26.409529 ctdbd: Starting event daemon /opt/samba/libexec/ctdb/ctdb_eventd -e /opt/samba/etc/ctdb//events.d -s /opt/samba/var/run/ctdb/eventd.sock -P 7252 -l file:/var/log/log.ctdb -d DEBUG
2017/01/12 11:30:26.409763 ctdbd: connect() failed, errno=111
2017/01/12 11:30:26.425455 ctdb-eventd: socket bind failed - /opt/samba/var/run/ctdb/eventd.sock
After removing /opt/samba/var/run/ctdb/eventd.sock it starts.
I guess you may want to add code to remove stale sockets like it's already done in ctdbd:
2017/01/12 11:30:26.409335 ctdbd: Removed stale socket /opt/samba/var/run/ctdb/ctdbd.socket
eventd is supposed to remove the socket file when shutting down.
How did you manage to get into this situation?
By shutting down. :) With systemctl stop ctdb.
Created attachment 12840 [details]
Patches for v4-6
This is ready for 4.6.
(In reply to Martin Schwenke from comment #4)
Pushed to autobuild-v4-6-test.
(In reply to Karolin Seeger from comment #5)
Pushed to v4-6-test.
Closing out bug report.