I've shutdown cf-execd and am running cf-agent from the command-line. I am having trouble determining which promise is giving me the issue. When I run without debug, cf-agent never terminates:
# time cf-agent -I -v > /tmp/cf-agent-nodebug.log
I killed it after about 5 minutes.
cf3> -> Using literal pathtype for /etc/passwd
cf3> -> Handling file existence constraints on /etc/passwd
cf3> Received signal 2 (SIGINT) while doing [lock.handle_users.files.edit_line.comment.-client669._etc_passwd_5524_MD5=d1a86dbcb3bfc531f9acff425307f584]
cf3> Logical start time Thu Dec 1 13:02:43 2016
cf3> This sub-task started really at Thu Dec 1 13:03:15 2016
cf3> Trying to remove lock - try lock.handle_users.files.edit_line.comment.-client669._etc_passwd_5524_MD5=d1a86dbcb3bfc531f9acff425307f584
cf3> Outcome of version 0.9 (agent-0): Promises observed to be kept 99%, Promises repaired 1%, Promises not repaired 0%
Next, I ran with some debug. When I do this I get a segmentation fault:
time cf-agent -I -v -d 1 > /tmp/cf-agent-debug.log
The last thing I see in the log file is different:
SkipDirLinks(/srv/cfengine3/masterfiles/files/usr/lib/firefox-esr/browser/defaults,defaults)
cf3> ->> Entering /usr/lib/firefox-esr/browser/defaults
VerifyCopiedFile(/usr/lib/firefox-esr/browser/defaults,+0,-0)
cf3> -> Attempting to preserve file permissions from the source: 755
Unix_VerifyFileAttributes(/usr/lib/firefox-esr/browser/defaults -> 755)
Directory...fixing x bits
Unix_VerifyOwner: 0
File okay, newperm = 755, stat = 755
cf3> -> File permissions on /usr/lib/firefox-esr/browser/defaults as promised
ClassAuditLog( -> File permissions on /usr/lib/firefox-esr/browser/defaults as promised)
Unix_VerifyFileAttributes(Done)
RecursiveCopy(/srv/cfengine3/masterfiles/files/usr/lib/firefox-esr/browser/defaults,/usr/lib/firefox-esr/browser/defaults,lev=999999997)
Trying to create a parent directory for /usr/lib/firefox-esr/browser/defaults/dummycf3> INFO: /usr/lib/firefox-esr/browser/defaults is a symbolic link, not a true directory!
Directory for /usr/lib/firefox-esr/browser/defaults/dummy exists. Okay
I think this is a red herring. I suspect the issue is related to adding users to the system. I was able to confirm this by removing the user management bundle from the list of sequences and cf-agent completes in under 13 seconds.
I will keep looking. Thanks for the suggestions.