Forum: Cfengine Help
Subject: Re: cf-execd doesn't start
Author: Seva Gluschenko
Link to topic: https://cfengine.com/forum/read.php?3,17649,17650#msg-17650

For those interested, I've been able to start cf-execd after removing 
/var/cfengine/state/cf_lock.db. It is not solution, though, just a workaround. 
Here is the cut-off from the strace output:

open("/proc/stat", O_RDONLY)            = 3
fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xb7e8d000
read(3, "cpu  1383832 0 590260 7088216 37"..., 4096) = 995
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0xb7e8d000, 4096)                = 0
stat64("/var/cfengine/state/cf_lock.db", {st_mode=S_IFREG|0600, st_size=335872, 
...}) = 0
open("/var/cfengine/state/cf_lock.db", O_RDWR|O_LARGEFILE) = 3
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
read(3, "\0\0\0\0\1\0\0\0\0\0\0\0b1\5\0\t\0\0\0\0\20\0\0\0\t\0\0Q\0\0\0"..., 
512) = 512
close(3)                                = 0
stat64("DB_CONFIG", 0xbfbda2ac)         = -1 ENOENT (No such file or directory)
open("DB_CONFIG", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
stat64("/var/tmp", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=4096, ...}) = 0
gettimeofday({1278573685, 793704}, NULL) = 0
stat64("__db.002", 0xbfbda34c)          = -1 ENOENT (No such file or directory)
open("/var/cfengine/state/cf_lock.db", O_RDWR|O_LARGEFILE) = 3
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
fstat64(3, {st_mode=S_IFREG|0600, st_size=335872, ...}) = 0
pread64(3, "\0\0\0\0\1\0\0\0\0\0\0\0b1\5\0\t\0\0\0\0\20\0\0\0\t\0\0Q\0\0\0"..., 
4096, 0) = 4096
pread64(3, 
"\0\0\0\0\1\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\3\0\264\16\3\3\364\17`\17\264\16"..., 
4096, 4096) = 4096
pread64(3, 
"\0\0\0\0\1\0\0\0\35\0\0\0\0\0\0\0\0\0\0\0\37\0|\3\2\3\364\17\234\3\370\6"..., 
4096, 118784) = 4096
pread64(3, 
"\0\0\0\0\1\0\0\0N\0\0\0%\0\0\0C\0\0\0\34\0\f\7\1\5\\\17P\17\330\f"..., 4096, 
319488) = 4096
close(3)                                = 0
open("/proc/stat", O_RDONLY)            = 3
fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xb7e8d000
read(3, "cpu  1383833 0 590260 7088217 37"..., 4096) = 995
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0xb7e8d000, 4096)                = 0
stat64("/var/cfengine/state/cf_lock.db", {st_mode=S_IFREG|0600, st_size=335872, 
...}) = 0
open("/var/cfengine/state/cf_lock.db", O_RDWR|O_LARGEFILE) = 3
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
read(3, "\0\0\0\0\1\0\0\0\0\0\0\0b1\5\0\t\0\0\0\0\20\0\0\0\t\0\0Q\0\0\0"..., 
512) = 512
close(3)                                = 0
stat64("DB_CONFIG", 0xbfbda2ac)         = -1 ENOENT (No such file or directory)
open("DB_CONFIG", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
stat64("/var/tmp", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=4096, ...}) = 0
gettimeofday({1278573685, 795304}, NULL) = 0
stat64("__db.002", 0xbfbda34c)          = -1 ENOENT (No such file or directory)
open("/var/cfengine/state/cf_lock.db", O_RDWR|O_LARGEFILE) = 3
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
fstat64(3, {st_mode=S_IFREG|0600, st_size=335872, ...}) = 0
pread64(3, "\0\0\0\0\1\0\0\0\0\0\0\0b1\5\0\t\0\0\0\0\20\0\0\0\t\0\0Q\0\0\0"..., 
4096, 0) = 4096
pread64(3, 
"\0\0\0\0\1\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\3\0\264\16\3\3\364\17`\17\264\16"..., 
4096, 4096) = 4096
pread64(3, "\0\0\0\0\1\0\0\0004\0\0\0\0\0\0\0\0\0\0\0 
\0t\3\2\3T\17\264\16H\16"..., 4096, 212992) = 4096
pread64(3, 
"\0\0\0\0\1\0\0\0L\0\0\0I\0\0\0P\0\0\0\6\0$\16\1\0050\16$\16P\17"..., 4096, 
311296) = 4096
close(3)                                = 0
write(1, "cf3 Couldn't obtain lock for loc"..., 140cf3 Couldn't obtain lock for 
lock.independent.exec_cfengine..the_executor_agent_514_MD5=7d332f6f75b53468f454ce320e808429
 (already running!)
) = 140
exit_group(0)                           = ?


_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to