Greetings,

Today I upgraded to the latest svn trunk.  I started cf-serverd with
-Fv.  Then I introduced an error in promises.cf be removing some commas
from the bundle sequence list.  The server rereads the files and reports
the syntax error.  I then run the agent.  The agent reports errors and
goes to failsafe.  Now the server, which was working fine all morning
until this error was introduced, begins to deny connections. 

ettin:/var/cfengine/inputs# cf-agent
cf3:/var/cfengine/inputs/promises.cf:16,17: syntax error, near token
'monitor"'
  !!! No bundlesequence in the common control body
  Summarizing promises as text to /var/cfengine/inputs/promises.cf.txt
  Summarizing promises as html to /var/cfengine/inputs/promises.cf.html
  cf-agent was not able to get confirmation of promises from cf-promises,
  so going to failsafe
  Challenge response from server 192.168.0.1/192.168.0.1 was incorrect!
  I: Made in version 'not specified' of '/var/cfengine/inputs/update.cf'
  near line 45
   !! Authentication dialogue with 192.168.0.1 failed
   Challenge response from server 192.168.0.1/192.168.0.1 was incorrect!
   I: Made in version 'not specified' of '/var/cfengine/inputs/update.cf'
   near line 51
    !! Authentication dialogue with 192.168.0.1 failed

Server output:
cf3 Received: [CAUTH 192.168.0.1 192.168.0.1 root 0] on socket 4
cf3 Allowing 192.168.0.1 to connect without (re)checking ID
cf3 Non-verified Host ID is 192.168.0.1 (Using skipverify)
cf3 Non-verified User ID seems to be root (Using skipverify)
cf3 LastSaw host 192.168.0.1 now
cf3 Received: [SAUTH y 256 37 c] on socket 4
cf3 Loaded /var/cfengine/ppkeys/root-192.168.0.1.pub
cf3 A public key was already known from 192.168.0.1/::ffff:192.168.0.1 -
no trust required
cf3 Adding IP ::ffff:192.168.0.1 to SkipVerify - no need to check this
if we have a key
cf3 The public key identity was confirmed as r...@192.168.0.1
cf3 Strong authentication of client 192.168.0.1/::ffff:192.168.0.1
achieved
cf3 Received: [SYNCH 1264875933 STAT
/var/cf-masterfiles/config/trunk/inputs] on socket 4
cf3 cfServerd access list is empty, no files are visible
cf3 Access control in sync
cf3 From (host=192.168.0.1,user=root,ip=::ffff:192.168.0.1)
cf3 ID from connecting host: (SYNCH 1264875933 STAT
/var/cf-masterfiles/config/trunk/inputs)
cf3 Denying repeated connection from ::ffff:192.168.0.1
cf3 Denying repeated connection from ::ffff:192.168.0.1

Repeated runs give the same results.  I correct the inputs file by hand
and cf-serverd crashes.

Syntax error fixed.
ettin:/var/cf-masterfiles/config/trunk/doc# cf-promises 
ettin:/var/cf-masterfiles/config/trunk/doc# echo $?
0

The server rereads the corrected file and crashes.
cf3   > Parsing file /var/cfengine/inputs/promises.cf
cf3:/var/cfengine/inputs/promises.cf:3,23: syntax error, near token
'profile_links"'
cf3:/var/cfengine/inputs/promises.cf:3,24: syntax error, near token ','
cf3:/var/cfengine/inputs/promises.cf:4,15: syntax error, near token
'httpd"'
cf3:/var/cfengine/inputs/promises.cf:4,16: syntax error, near token ','
cf3:/var/cfengine/inputs/promises.cf:5,15: syntax error, near token
'files"'
cf3:/var/cfengine/inputs/promises.cf:5,16: syntax error, near token ','
cf3:/var/cfengine/inputs/promises.cf:6,17: syntax error, near token
'cleanup"'
cf3:/var/cfengine/inputs/promises.cf:6,18: syntax error, near token ','
cf3:/var/cfengine/inputs/promises.cf:7,18: syntax error, near token
'cfbackup"'
cf3:/var/cfengine/inputs/promises.cf:8,5: syntax error, near token '}'
cf3:/var/cfengine/inputs/promises.cf:8,6: syntax error, near token ';'
cf3 Fatal cfengine error: Too many errors
cf3 Outcome of version (not specified): No checks were scheduled

I then restart the cf-serverd and run cf-agent and all is well.

Sincerely,
-- 
Neil Watson
Linux/UNIX Consultant
http://watson-wilson.ca
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine
  • bug Neil Watson
    • Re: bug NWatson
      • Re: bug Neil Watson

Reply via email to