ctdb service crashes on start
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba (Ubuntu) |
In Progress
|
Medium
|
Rafael David Tinoco |
Bug Description
System information:
root@san1:
Description: Ubuntu 14.04 LTS
Release: 14.04
root@san1:
ctdb:
Installed: 2.5.1+debian0-1
Candidate: 2.5.1+debian0-1
Version table:
*** 2.5.1+debian0-1 0
500 http://
100 /var/lib/
I expect the service not to crash with a basic starting configuration. Directory /san/ctdb exists and is mounted as glusterfs volume. I have installed ctdb and use the following config files:
/etc/default/ctdb:
CTDB_RECOVERY_
CTDB_NODES=
CTDB_PUBLIC_
CTDB_DEBUGLEVEL
/etc/ctdb/nodes:
10.0.2.21
10.0.2.22
/etc/ctdb/
10.0.2.31/24 eth0
10.0.2.32/24 eth0
I get the following error in /var/log/
2014/06/28 21:48:16.890594 [16056]: CTDB starting on node
2014/06/28 21:48:17.607857 [16056]: Unable to bind on ctdb socket '/var/lib/
2014/06/28 21:48:17.607950 [16056]: Cannot continue. Exiting!
This is very odd because the CTDB documentation states that in version 2.5 this file was moved to /var/run/
When I add CTDB_SOCKET=
The error log shows:
2014/06/28 22:19:38.166127 [16713]: CTDB starting on node
2014/06/28 22:19:38.170044 [16714]: Starting CTDBD (Version 2.5.1) as PID: 16714
2014/06/28 22:19:38.170236 [16714]: Created PID file /var/run/
2014/06/28 22:19:38.170298 [16714]: Set scheduler to SCHED_FIFO
2014/06/28 22:19:38.170614 [16714]: Set runstate to INIT (1)
2014/06/28 22:19:38.192313 [16714]: 00.ctdb: awk: line 2: function gensub never defined
2014/06/28 22:19:38.197628 [16714]: 00.ctdb: awk: line 2: function gensub never defined
2014/06/28 22:19:38.351683 [16714]: Unable to open /var/lib/
2014/06/28 22:19:38.351859 [16714]: tcp/tcp_init.c:67 Failed to start listening on the CTDB socket
2014/06/28 22:19:38.351911 [16714]: CTDB daemon shutting down
2014/06/28 22:19:38.352190 [16714]: Removed PID file /var/run/
I cannot find either 1) where the default /var/run/ctdb path might be modified from upstream or 2) where a user could set a path to correct the last error message.
you need just run in terminal two command to solve this:
mkdir /var/lib/run
mkdir /var/lib/run/ctdb
mail me to <email address hidden> if it help to you.