Forum: CFEngine Help
Subject: Re: Server issue
Author: sreejithpoothu
Link to topic: https://cfengine.com/forum/read.php?3,24844,24847#msg-24847

When i am running cf-serverd on server i am getting this error

Could not bind server address
 !!! System error for bind: "Address already in use"
Could not bind server address
 !!! System error for bind: "Address already in use"
Couldn't open bind an open socket


But client actually gets files from /var/cfengine/masterfiles when running 
cf-agent -Kv .But in server nothing happens,bit confused.when running cf-agent 
-Kv on server i got this output

cf3> Cfengine - autonomous configuration engine - commence self-diagnostic 
prelude
cf3> ------------------------------------------------------------------------
cf3> Work directory is /var/cfengine
cf3> Making sure that locks are private...
cf3> Checking integrity of the state database
cf3> Checking integrity of the module directory
cf3> Checking integrity of the PKI directory
cf3> Looking for a source of entropy in /var/cfengine/randseed
cf3>  -> Loaded private key /var/cfengine/ppkeys/localhost.priv
cf3>  -> Loaded public key /var/cfengine/ppkeys/localhost.pub
cf3> Setting cfengine default port to 5308 = 5308
cf3> Reference time set to Thu Feb 16 00:39:21 2012
cf3> CFEngine Core 3.2.1
cf3> ------------------------------------------------------------------------
cf3> Host name is: cf-server
cf3> Operating System Type is linux
cf3> Operating System Release is 2.6.32-71.el6.i686
cf3> Architecture = i686
cf3> Using internal soft-class linux for host cf-server
cf3> The time is now Thu Feb 16 00:39:21 2012
cf3> ------------------------------------------------------------------------
cf3> # Extended system discovery is only available in version Nova and above
cf3> Additional hard class defined as: 32_bit
cf3> Additional hard class defined as: linux_2_6_32_71_el6_i686
cf3> Additional hard class defined as: linux_i686
cf3> Additional hard class defined as: linux_i686_2_6_32_71_el6_i686
cf3> GNU autoconf class from compile time: compiled_on_linux_gnu
cf3> Address given by nameserver: 10.1.1.199
cf3> Interface 1: lo
cf3> Interface 2: eth2
cf3> Trying to locate my IPv6 address
cf3> Found IPv6 address fe80::b01d:56ff:fe17:3a66
cf3> Looking for environment from cf-monitord...
cf3> Loading environment...
cf3> Environment data loaded
cf3> This appears to be a redhat (or redhat-based) system.
cf3> Looking for redhat linux info in "CentOS Linux release 6.0 (Final)"
cf3> ***********************************************************
cf3>  Loading persistent classes
cf3> ***********************************************************
cf3>  Persistent class otherprocs_high_dev2 for 6 more minutes
cf3>  Adding persistent class otherprocs_high_dev2 to heap
cf3>  Persistent class rootprocs_high_dev2 expired
cf3>  Persistent class messages_high_dev2 for 6 more minutes
cf3>  Adding persistent class messages_high_dev2 to heap
cf3> ***********************************************************
cf3>  Loaded persistent memory
cf3> ***********************************************************
cf3>  -> Found a policy server (hub) on 10.1.1.199
cf3>  -> Policy is already validated
cf3>   > Parsing file /var/cfengine/inputs/promises.cf
cf3> Initiate variable convergence...
cf3>   > Parsing file /var/cfengine/inputs/cfengine_stdlib.cf
cf3> Initiate variable convergence...
cf3> Initiate variable convergence...
cf3> # Knowledge map reporting feature is only available in version Nova and 
above
cf3>  -> Defined classes = { 10_1_1_199 32_bit Day16 February GMT_Hr19 Hr00 
Hr00_Q3 Lcycle_2 Min35_40 Min39 Night PK_MD5_c2005eacd4ee878b0eab0ddbb001762e 
Q3 Thursday Yr2012 agent any centos centos_6 centos_6_0 cf_server cfengine 
cfengine_3 cfengine_3_2 cfengine_3_2_1 community_edition compiled_on_linux_gnu 
diskfree_high_normal entropy_cfengine_in_low entropy_dns_in_low 
entropy_dns_out_low entropy_ftp_in_low entropy_ftp_out_low entropy_icmp_in_low 
entropy_icmp_out_low entropy_irc_in_low entropy_irc_out_low entropy_misc_in_low 
entropy_misc_out_low entropy_netbiosdgm_in_low entropy_netbiosdgm_out_low 
entropy_netbiosns_in_low entropy_netbiosns_out_low entropy_netbiosssn_in_low 
entropy_netbiosssn_out_low entropy_nfsd_in_low entropy_nfsd_out_low 
entropy_smtp_in_low entropy_smtp_out_low entropy_ssh_in_low entropy_ssh_out_low 
entropy_tcpack_in_low entropy_tcpack_out_low entropy_tcpfin_in_low 
entropy_tcpfin_out_low entropy_tcpsyn_in_low entropy_tcpsyn_out_low 
entropy_udp_in_low entrop
 y_udp_out_low entropy_www_in_low entropy_wwws_in_low entropy_wwws_out_low 
fe80__b01d_56ff_fe17_3a66 i686 ipv4_10 ipv4_10_1 ipv4_10_1_1 ipv4_10_1_1_199 
linux linux_2_6_32_71_el6_i686 linux_i686 linux_i686_2_6_32_71_el6_i686 
linux_i686_2_6_32_71_el6_i686__1_SMP_Fri_Nov_12_04_17_17_GMT_2010 localhost6 
localhost6_localdomain6 messages_high_dev2 messages_low_normal net_iface_eth2 
otherprocs_high_dev1 otherprocs_high_dev2 redhat rootprocs_high_normal 
undefined_domain verbose_mode }
cf3>  -> Negated Classes = { }
cf3> Initiate variable convergence...
cf3>  -> Additional class defined: am_policy_hub
cf3>  -> Immunizing against parental death
cf3> SET ifelapsed = 0
cf3> SET skipidentify = 1
cf3> -> Bundlesequence =>  {'main'}
cf3> 
cf3> *****************************************************************
cf3> BUNDLE main
cf3> *****************************************************************
cf3> 
cf3> 
cf3>      +  Private classes augmented:
cf3> 
cf3>      -  Private classes diminished:
cf3> 
cf3> 
cf3> 
cf3>    =========================================================
cf3>    reports in bundle main (1)
cf3>    =========================================================
cf3> 
cf3> 
cf3>     .........................................................
cf3>     Promise handle: main_reports_cfe_running
cf3>     Promise made by: --> CFE is running on cf-server
cf3> 
cf3>     Comment:  Display message on screen/email
cf3>     .........................................................
cf3> 
cf3> Report: --> CFE is running on cf-server
cf3> R: --> CFE is running on cf-server
cf3> 
cf3>      +  Private classes augmented:
cf3> 
cf3>      -  Private classes diminished:
cf3> 
cf3> 
cf3> 
cf3>    =========================================================
cf3>    reports in bundle main (2)
cf3>    =========================================================
cf3> 
cf3> 
cf3>      +  Private classes augmented:
cf3> 
cf3>      -  Private classes diminished:
cf3> 
cf3> 
cf3> 
cf3>    =========================================================
cf3>    reports in bundle main (3)
cf3>    =========================================================
cf3> 
cf3> Outcome of version Community Promises.cf 1.0.0 (agent-0): Promises 
observed to be kept 0%, Promises repaired 100%, Promises not repaired 0%
cf3>  -> Checked 0 objects with 1 promises, efficiency 0.00
cf3>  -> No lock purging scheduled



in client, when running cf-agent -Kv ,I am getting this output

cf3> Cfengine - autonomous configuration engine - commence self-diagnostic 
prelude
cf3> ------------------------------------------------------------------------
cf3> Work directory is /var/cfengine
cf3> Making sure that locks are private...
cf3> Checking integrity of the state database
cf3> Checking integrity of the module directory
cf3> Checking integrity of the PKI directory
cf3> Looking for a source of entropy in /var/cfengine/randseed
cf3>  -> Loaded private key /var/cfengine/ppkeys/localhost.priv
cf3>  -> Loaded public key /var/cfengine/ppkeys/localhost.pub
cf3> Setting cfengine default port to 5308 = 5308
cf3> Reference time set to Thu Feb 16 00:22:57 2012
cf3> CFEngine Core 3.2.1
cf3> ------------------------------------------------------------------------
cf3> Host name is: cfclient
cf3> Operating System Type is linux
cf3> Operating System Release is 2.6.32-71.el6.i686
cf3> Architecture = i686
cf3> Using internal soft-class linux for host cfclient
cf3> The time is now Thu Feb 16 00:22:57 2012
cf3> ------------------------------------------------------------------------
cf3> # Extended system discovery is only available in version Nova and above
cf3> Additional hard class defined as: 32_bit
cf3> Additional hard class defined as: linux_2_6_32_71_el6_i686
cf3> Additional hard class defined as: linux_i686
cf3> Additional hard class defined as: linux_i686_2_6_32_71_el6_i686
cf3> GNU autoconf class from compile time: compiled_on_linux_gnu
cf3> Address given by nameserver: 10.1.1.200
cf3> Interface 1: lo
cf3> Interface 2: eth0
cf3> Trying to locate my IPv6 address
cf3> Found IPv6 address fe80::f4ab:79ff:fe28:7db
cf3> Looking for environment from cf-monitord...
cf3> Loading environment...
cf3> Environment data loaded
cf3> This appears to be a redhat (or redhat-based) system.
cf3> Looking for redhat linux info in "CentOS Linux release 6.0 (Final)"
cf3> ***********************************************************
cf3>  Loading persistent classes
cf3> ***********************************************************
cf3>  Persistent class messages_high_ldt for 4 more minutes
cf3>  Adding persistent class messages_high_ldt to heap
cf3> ***********************************************************
cf3>  Loaded persistent memory
cf3> ***********************************************************
cf3>  -> Found a policy server (hub) on 10.1.1.199
cf3>  -> Policy is already validated
cf3>   > Parsing file /var/cfengine/inputs/promises.cf
cf3> Initiate variable convergence...
cf3>   > Parsing file /var/cfengine/inputs/cfengine_stdlib.cf
cf3> Initiate variable convergence...
cf3>   > Parsing file /var/cfengine/inputs/cf-execd.cf
cf3> /var/cfengine/inputs/cf-execd.cf:2,1: Redefinition of body "control" for 
"executor" is a broken promise, near token '{'
cf3> Initiate variable convergence...
cf3>   > Parsing file /var/cfengine/inputs/serverclient.cf
cf3> Initiate variable convergence...
cf3>   > Parsing file /var/cfengine/inputs/serverclient1.cf
cf3> Initiate variable convergence...
cf3>   > Parsing file /var/cfengine/inputs/serverclient2.cf
cf3> Initiate variable convergence...
cf3> Initiate variable convergence...
cf3> # Knowledge map reporting feature is only available in version Nova and 
above
cf3>  -> Defined classes = { 10_1_1_200 32_bit Day16 February GMT_Hr18 Hr00 
Hr00_Q2 Lcycle_2 Min20_25 Min22 Night PK_MD5_b57d8e0741d6a4dfac41cd84e6cb6e98 
Q2 Thursday Yr2012 agent any centos centos_6 centos_6_0 cfclient cfengine 
cfengine_3 cfengine_3_2 cfengine_3_2_1 community_edition compiled_on_linux_gnu 
diskfree_high_normal entropy_cfengine_in_low entropy_cfengine_out_low 
entropy_dns_in_low entropy_dns_out_low entropy_ftp_in_low entropy_ftp_out_low 
entropy_icmp_in_low entropy_icmp_out_low entropy_irc_in_low entropy_irc_out_low 
entropy_misc_in_low entropy_misc_out_low entropy_netbiosdgm_in_low 
entropy_netbiosdgm_out_low entropy_netbiosns_in_low entropy_netbiosns_out_low 
entropy_netbiosssn_in_low entropy_netbiosssn_out_low entropy_nfsd_in_low 
entropy_nfsd_out_low entropy_smtp_in_low entropy_smtp_out_low 
entropy_ssh_out_low entropy_tcpack_in_low entropy_tcpack_out_low 
entropy_tcpfin_in_low entropy_tcpfin_out_low entropy_tcpsyn_in_low 
entropy_tcpsyn_out_low entropy_udp_in_low e
 ntropy_udp_out_low entropy_www_in_low entropy_www_out_low entropy_wwws_in_low 
entropy_wwws_out_low fe80__f4ab_79ff_fe28_7db i686 ipv4_10 ipv4_10_1 
ipv4_10_1_1 ipv4_10_1_1_200 linux linux_2_6_32_71_el6_i686 linux_i686 
linux_i686_2_6_32_71_el6_i686 
linux_i686_2_6_32_71_el6_i686__1_SMP_Fri_Nov_12_04_17_17_GMT_2010 localhost6 
localhost6_localdomain6 messages_high_dev1 messages_high_ldt net_iface_eth0 
redhat rootprocs_high_normal undefined_domain verbose_mode }
cf3>  -> Negated Classes = { }
cf3> Initiate variable convergence...
cf3>  -> Immunizing against parental death
cf3> SET ifelapsed = 0
cf3> SET skipidentify = 1
cf3> -> Bundlesequence =>  {'main','executor','testing','testing1','testing2'}
cf3> 
cf3> *****************************************************************
cf3> BUNDLE main
cf3> *****************************************************************
cf3> 
cf3> 
cf3>      +  Private classes augmented:
cf3> 
cf3>      -  Private classes diminished:
cf3> 
cf3> 
cf3> 
cf3>    =========================================================
cf3>    reports in bundle main (1)
cf3>    =========================================================
cf3> 
cf3> 
cf3>     .........................................................
cf3>     Promise handle: main_reports_cfe_running
cf3>     Promise made by: --> CFE is running on cfclient
cf3> 
cf3>     Comment:  Display message on screen/email
cf3>     .........................................................
cf3> 
cf3> Report: --> CFE is running on cfclient
cf3> R: --> CFE is running on cfclient
cf3> 
cf3>      +  Private classes augmented:
cf3> 
cf3>      -  Private classes diminished:
cf3> 
cf3> 
cf3> 
cf3>    =========================================================
cf3>    reports in bundle main (2)
cf3>    =========================================================
cf3> 
cf3> 
cf3>      +  Private classes augmented:
cf3> 
cf3>      -  Private classes diminished:
cf3> 
cf3> 
cf3> 
cf3>    =========================================================
cf3>    reports in bundle main (3)
cf3>    =========================================================
cf3> 
cf3> 
cf3> *****************************************************************
cf3> BUNDLE executor
cf3> *****************************************************************
cf3> 
cf3> 
cf3>      +  Private classes augmented:
cf3> 
cf3>      -  Private classes diminished:
cf3> 
cf3> 
cf3> 
cf3>    =========================================================
cf3>    processes in bundle executor (1)
cf3>    =========================================================
cf3> 
cf3> Observe process table with /bin/ps -eo 
user,pid,ppid,pgid,pcpu,pmem,vsz,pri,rss,nlwp,stime,time,args
cf3> 
cf3>     .........................................................
cf3>     Promise handle: 
cf3>     Promise made by: cf-execd
cf3>     .........................................................
cf3> 
cf3>  ->  Found matching pid 2361
     (root      2361     1  2361  0.0  0.1   9880  19  1952    1 Feb15 00:00:51 
/var/cfengine/bin/cf-execd)
cf3>  -> No signals to send for cf-execd
cf3>  -> No restart promised for cf-execd
cf3> 
cf3>    =========================================================
cf3>    commands in bundle executor (1)
cf3>    =========================================================
cf3> 
cf3> 
cf3> . . . . . . . . . . . . . . . . . . . . . . . . . . . .
cf3> Skipping whole next promise (/usr/local/sbin/cf-execd), as context 
start_cfexecd is not relevant
cf3> . . . . . . . . . . . . . . . . . . . . . . . . . . . .
cf3> 
cf3>      +  Private classes augmented:
cf3> 
cf3>      -  Private classes diminished:
cf3> 
cf3> 
cf3> 
cf3>    =========================================================
cf3>    processes in bundle executor (2)
cf3>    =========================================================
cf3> 
cf3>  -> Reusing cached process state
cf3> 
cf3>    =========================================================
cf3>    commands in bundle executor (2)
cf3>    =========================================================
cf3> 
cf3> 
cf3> . . . . . . . . . . . . . . . . . . . . . . . . . . . .
cf3> Skipping whole next promise (/usr/local/sbin/cf-execd), as context 
start_cfexecd is not relevant
cf3> . . . . . . . . . . . . . . . . . . . . . . . . . . . .
cf3> 
cf3>      +  Private classes augmented:
cf3> 
cf3>      -  Private classes diminished:
cf3> 
cf3> 
cf3> 
cf3>    =========================================================
cf3>    processes in bundle executor (3)
cf3>    =========================================================
cf3> 
cf3>  -> Reusing cached process state
cf3> 
cf3>    =========================================================
cf3>    commands in bundle executor (3)
cf3>    =========================================================
cf3> 
cf3> 
cf3> . . . . . . . . . . . . . . . . . . . . . . . . . . . .
cf3> Skipping whole next promise (/usr/local/sbin/cf-execd), as context 
start_cfexecd is not relevant
cf3> . . . . . . . . . . . . . . . . . . . . . . . . . . . .
cf3> 
cf3> *****************************************************************
cf3> BUNDLE testing
cf3> *****************************************************************
cf3> 
cf3> 
cf3>      +  Private classes augmented:
cf3> 
cf3>      -  Private classes diminished:
cf3> 
cf3> 
cf3> 
cf3>    =========================================================
cf3>    files in bundle testing (1)
cf3>    =========================================================
cf3> 
cf3> 
cf3>     .........................................................
cf3>     Promise handle: 
cf3>     Promise made by: /tmp/cf_serverclient_test_file
cf3> 
cf3>     Comment:  Promise that a plain file exists with stated permissions
cf3>     .........................................................
cf3> 
cf3>  -> Using literal pathtype for /tmp/cf_serverclient_test_file
cf3>  -> Created file /tmp/cf_serverclient_test_file, mode = 777
cf3>  -> Handling file existence constraints on /tmp/cf_serverclient_test_file
cf3>  -> Group of /tmp/cf_serverclient_test_file was 0, setting to 3
cf3>  -> File permissions on /tmp/cf_serverclient_test_file as promised
cf3>  -> Handling file existence constraints on /tmp/cf_serverclient_test_file
cf3>  -> File permissions on /tmp/cf_serverclient_test_file as promised
cf3> 
cf3>      +  Private classes augmented:
cf3> 
cf3>      -  Private classes diminished:
cf3> 
cf3> 
cf3> 
cf3>    =========================================================
cf3>    files in bundle testing (2)
cf3>    =========================================================
cf3> 
cf3> 
cf3>      +  Private classes augmented:
cf3> 
cf3>      -  Private classes diminished:
cf3> 
cf3> 
cf3> 
cf3>    =========================================================
cf3>    files in bundle testing (3)
cf3>    =========================================================
cf3> 
cf3> 
cf3> *****************************************************************
cf3> BUNDLE testing1
cf3> *****************************************************************
cf3> 
cf3> 
cf3>      +  Private classes augmented:
cf3> 
cf3>      -  Private classes diminished:
cf3> 
cf3> 
cf3> 
cf3>    =========================================================
cf3>    files in bundle testing1 (1)
cf3>    =========================================================
cf3> 
cf3> 
cf3>     .........................................................
cf3>     Promise handle: 
cf3>     Promise made by: /tmp/cf_serverclient_test_file2
cf3> 
cf3>     Comment:  Promise that a plain file exists with stated permissions
cf3>     .........................................................
cf3> 
cf3>  -> Using literal pathtype for /tmp/cf_serverclient_test_file2
cf3>  -> Created file /tmp/cf_serverclient_test_file2, mode = 644
cf3>  -> Handling file existence constraints on /tmp/cf_serverclient_test_file2
cf3>  -> Group of /tmp/cf_serverclient_test_file2 was 0, setting to 3
cf3>  -> File permissions on /tmp/cf_serverclient_test_file2 as promised
cf3>  -> Handling file existence constraints on /tmp/cf_serverclient_test_file2
cf3>  -> File permissions on /tmp/cf_serverclient_test_file2 as promised
cf3> 
cf3>      +  Private classes augmented:
cf3> 
cf3>      -  Private classes diminished:
cf3> 
cf3> 
cf3> 
cf3>    =========================================================
cf3>    files in bundle testing1 (2)
cf3>    =========================================================
cf3> 
cf3> 
cf3>      +  Private classes augmented:
cf3> 
cf3>      -  Private classes diminished:
cf3> 
cf3> 
cf3> 
cf3>    =========================================================
cf3>    files in bundle testing1 (3)
cf3>    =========================================================
cf3> 
cf3> 
cf3> *****************************************************************
cf3> BUNDLE testing2
cf3> *****************************************************************
cf3> 
cf3> 
cf3>      +  Private classes augmented:
cf3> 
cf3>      -  Private classes diminished:
cf3> 
cf3> 
cf3> 
cf3>    =========================================================
cf3>    files in bundle testing2 (1)
cf3>    =========================================================
cf3> 
cf3> 
cf3>     .........................................................
cf3>     Promise handle: 
cf3>     Promise made by: /tmp/cf_serverclient_test_file3
cf3> 
cf3>     Comment:  Promise that a plain file exists with stated permissions
cf3>     .........................................................
cf3> 
cf3>  -> Using literal pathtype for /tmp/cf_serverclient_test_file3
cf3>  -> Created file /tmp/cf_serverclient_test_file3, mode = 644
cf3>  -> Handling file existence constraints on /tmp/cf_serverclient_test_file3
cf3>  -> Group of /tmp/cf_serverclient_test_file3 was 0, setting to 3
cf3>  -> File permissions on /tmp/cf_serverclient_test_file3 as promised
cf3>  -> Handling file existence constraints on /tmp/cf_serverclient_test_file3
cf3>  -> File permissions on /tmp/cf_serverclient_test_file3 as promised
cf3> 
cf3>      +  Private classes augmented:
cf3> 
cf3>      -  Private classes diminished:
cf3> 
cf3> 
cf3> 
cf3>    =========================================================
cf3>    files in bundle testing2 (2)
cf3>    =========================================================
cf3> 
cf3> 
cf3>      +  Private classes augmented:
cf3> 
cf3>      -  Private classes diminished:
cf3> 
cf3> 
cf3> 
cf3>    =========================================================
cf3>    files in bundle testing2 (3)
cf3>    =========================================================
cf3> 
cf3> Outcome of version Community Promises.cf 1.0.0 (agent-0): Promises 
observed to be kept 50%, Promises repaired 50%, Promises not repaired 0%
cf3>  -> Checked 143 objects with 5 promises, efficiency 96.62
cf3>  -> No lock purging scheduled

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

Reply via email to