<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <blockquote
      cite="mid:fc.000f5d971ed9c74d3b9aca0025c71ef1.1ed9cfd1@educagri.fr"
      type="cite">
      <pre wrap="">Hello rudder community,


I can not deploy a rules, i have always no answer

Hier are the details
</pre>
      <blockquote type="cite">
        <pre wrap="">
</pre>
      </blockquote>
      <pre wrap="">Rudder is insttaled in debian squeeze, 

Rudder version (server&client is 2.4)
</pre>
      <pre wrap="">

Hier is server message:


# /var/rudder/cfengine-community/bin/cf-serverd --no-fork -vcf3> Cfengine
- autonomous configuration engine - commence self-diagnostic prelude
cf3>
------------------------------------------------------------------------
cf3> Work directory is /var/rudder/cfengine-community
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/rudder/cfengine-community/randseed
cf3>  -> Loaded private key
/var/rudder/cfengine-community/ppkeys/localhost.priv
cf3>  -> Loaded public key
/var/rudder/cfengine-community/ppkeys/localhost.pub
cf3> Setting cfengine default port to 5308 = 5308
cf3> Reference time set to Fri Oct  5 15:24:54 2012
cf3> CFEngine Core 3.2.4
cf3>
------------------------------------------------------------------------
cf3> Host name is: rudder
cf3> Operating System Type is linux
cf3> Operating System Release is 2.6.32-5-amd64
cf3> Architecture = x86_64
cf3> Using internal soft-class linux for host rudder
cf3> The time is now Fri Oct  5 15:24:54 2012
cf3>
------------------------------------------------------------------------
cf3> # Extended system discovery is only available in version Nova and
above
cf3> Additional hard class defined as: 64_bit
cf3> Additional hard class defined as: linux_2_6_32_5_amd64
cf3> Additional hard class defined as: linux_x86_64
cf3> Additional hard class defined as: linux_x86_64_2_6_32_5_amd64
cf3> GNU autoconf class from compile time: compiled_on_linux_gnu
cf3> Address given by nameserver: 172.16.20.52
cf3> Interface 1: lo
cf3> Interface 2: eth0
cf3> Adding alias rudder..
cf3> Trying to locate my IPv6 address
cf3> Looking for environment from cf-monitord...
cf3> Unable to detect environment from cf-monitord
cf3> This appears to be a debian system.
cf3> Looking for Debian version...
cf3> This appears to be a Debian 6.0 system.
cf3> This system seems to have the aptitude package system
cf3> ***********************************************************
cf3>  Loading persistent classes
cf3> ***********************************************************
cf3>  Persistent class site_ok for 1 more minutes
cf3>  Adding persistent class site_ok to heap
cf3> ***********************************************************
cf3>  Loaded persistent memory
cf3> ***********************************************************
cf3>  -> Found a policy server (hub) on 127.0.0.1
cf3>  -> Policy is already validated
cf3>   > Parsing file /var/rudder/cfengine-community/inputs/promises.cf
cf3> Initiate variable convergence...
cf3>  -> Checking common class promises...
cf3>  ?> defining additional global class policy_server
cf3>  ?> defining additional global class root_server
cf3>  -> Checking common class promises...
rudder>   > Parsing file
/var/rudder/cfengine-community/inputs/common/1.0/cf-served.cf
rudder> Initiate variable convergence...
rudder>  -> Checking common class promises...
rudder>  -> Checking common class promises...
rudder> Unable to lookup hostname (lxldapagricollt1.eduter.local) or
cfengine service: Name or service not known
rudder> Unable to lookup hostname (lxldaptest) or cfengine service: Name
or service not known


And Rudder agent:





 !! Duplicate selection of value for variable "execRun" in scope g
 !! Rule from /var/rudder/cfengine-community/inputs/common/1.0/site.cf
at/before line 58
Unable to lookup hostname (%%POLICY_SERVER_HOSTNAME%%) or cfengine
service: Name or service not known
Unable to lookup hostname (%%POLICY_SERVER_HOSTNAME%%) or cfengine
service: Name or service not known
Unable to lookup hostname (%%POLICY_SERVER_HOSTNAME%%) or cfengine
service: Name or service not known
Unable to lookup hostname (%%POLICY_SERVER_HOSTNAME%%) or cfengine
service: Name or service not known
Unable to lookup hostname (%%POLICY_SERVER_HOSTNAME%%) or cfengine
service: Name or service not known
Unable to lookup hostname (%%POLICY_SERVER_HOSTNAME%%) or cfengine
service: Name or service not known
Unable to lookup hostname (%%POLICY_SERVER_HOSTNAME%%) or cfengine
service: Name or service not known
Unable to lookup hostname (%%POLICY_SERVER_HOSTNAME%%) or cfengine
service: Name or service not known
Unable to lookup hostname (%%POLICY_SERVER_HOSTNAME%%) or cfengine
service: Name or service not known
Unable to lookup hostname (%%POLICY_SERVER_HOSTNAME%%) or cfengine
service: Name or service not known
Unable to lookup hostname (%%POLICY_SERVER_HOSTNAME%%) or cfengine
service: Name or service not known
Unable to lookup hostname (%%POLICY_SERVER_HOSTNAME%%) or cfengine
service: Name or service not known
Unable to lookup hostname (%%POLICY_SERVER_HOSTNAME%%) or cfengine
service: Name or service not known
Unable to lookup hostname (%%POLICY_SERVER_HOSTNAME%%) or cfengine
service: Name or service not known
Unable to lookup hostname (%%POLICY_SERVER_HOSTNAME%%) or cfengine
service: Name or service not known
Unable to lookup hostname (%%POLICY_SERVER_HOSTNAME%%) or cfengine
service: Name or service not known
Unable to lookup hostname (%%POLICY_SERVER_HOSTNAME%%) or cfengine
service: Name or service not known
Unable to lookup hostname (%%POLICY_SERVER_HOSTNAME%%) or cfengine
service: Name or service not known
Unable to lookup hostname (%%POLICY_SERVER_HOSTNAME%%) or cfengine
service: Name or service not known
Unable to lookup hostname (%%POLICY_SERVER_HOSTNAME%%) or cfengine
service: Name or service not known
Password prompt: ENTER

psql: fe_sendauth: no password supplied
curl: (22) The requested URL returned error: 405
 !! Duplicate selection of value for variable "execRun" in scope g
 !! Rule from /var/rudder/cfengine-community/inputs/common/1.0/site.cf
at/before line 58
Unable to lookup hostname (%%POLICY_SERVER_HOSTNAME%%) or cfengine
service: Name or service not known
Unable to lookup hostname (%%POLICY_SERVER_HOSTNAME%%) or cfengine
service: Name or service not known
 >> Using command line specified bundlesequence
 !! Error connecting to server (timeout)
 !!! System error for connect: "Operation now in progress"
 !! No server is responding on this port
Unable to establish connection with 172.16.20.52
 -> No suitable server responded to hail
Promise (version not specified) belongs to bundle 'update' in file
'/var/rudder/cfengine-community/inputs/common/1.0/update.cf' near line 88
 !! Error connecting to server (timeout)
 !!! System error for connect: "Operation now in progress"
 !! No server is responding on this port
Unable to establish connection with 172.16.20.52
 -> No suitable server responded to hail
Promise (version not specified) belongs to bundle 'update' in file
'/var/rudder/cfengine-community/inputs/common/1.0/update.cf' near line 95
R:
@@Common@@result_error@@hasPolicyServer-root@@common-root@@00@@Update@@None@@2012-10-05
15:28:03+02:00##e01fdc2b-1a66-43e0-a9ea-5b27ebd442e2@#Cannot update node's
policy (CFEngine promises)
R: @@Common@@result_error@@hasPolicyServer-r

</pre>
    </blockquote>
    <br>
    Hello Khalid,<br>
    <br>
    I have created a new thread since the problem that you describe does
    not seem to be related to the thread where you were posting.<br>
    <br>
    I'm not sure about your problem but here are some thoughts:<br>
    <ul>
      <li>About the agent:<br>
      </li>
      <ul>
        <li>The output about <i>%%POLICY_SERVER_HOSTNAME%%</i><i> </i>
          is "normal" since a bug has been fixed recently
          (<a class="moz-txt-link-freetext" href="http://www.rudder-project.org/redmine/issues/2729">http://www.rudder-project.org/redmine/issues/2729</a>).<br>
          <br>
        </li>
        <li>The messages will disappear when your node will be connected
          to its server !<br>
          <br>
        </li>
      </ul>
      <li>About the server:<br>
      </li>
      <ul>
        <li>I could be wrong but it seems that the output of cf-serverd
          is splitted in two. Here is what seems to be linked with your
          problem:<br>
        </li>
        <ul>
          <li>As far as I can see, your server has some problems with
            its DNS:</li>
          <ul>
            <li>
              <pre wrap="">rudder> Unable to lookup hostname (lxldapagricollt1.eduter.local) or
cfengine service: Name or service not known</pre>
            </li>
          </ul>
          <li>You will need to have a working DNS to use Rudder (or a
            least, to test, define nodes and server in the <b>/etc/hosts</b>
            file).<br>
            <br>
          </li>
        </ul>
        <li>The authorized IP in Rudder could not match the subnet of
          your node:</li>
        <ul>
          <li>
            <pre wrap="">Unable to establish connection with 172.16.20.52</pre>
          </li>
          <li>I can't be sure about that because we have to see the
            output of <b>cf-serverd</b> on the server-side at the same
            time.</li>
        </ul>
      </ul>
    </ul>
    <p><br>
      Could you check that:<br>
    </p>
    <ul>
      <li>the authorized network match the subnet of your node ? (In
        Rudder WebUI: Administration => Policy Server => Configure
        allowed networks)</li>
      <li>your DNS works on your server and your nodes ? or Set your <b>/etc/hosts</b>
        file with the IP corresponding to them.</li>
    </ul>
    <p>And be aware that we have an IRC Channel: <b>#rudder</b> on <b>freenode.net</b>
      where we will be glad to help you !<br>
    </p>
    <p><br>
      Thanks<br>
    </p>
    <pre class="moz-signature" cols="72">-- 
==========================================
Nicolas PERRON
------------------------------------------
Normation
87 rue de Turbigo, 75003 Paris, France
------------------------------------------
Telephone:  +33 (0)1 83 62 56 79
Mobile:     +33 (0)6 24 79 31 79
------------------------------------------
Web:        <a class="moz-txt-link-freetext" href="http://www.normation.com/">http://www.normation.com/</a>
==========================================</pre>
  </body>
</html>