<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Le 12/09/2017 à 18:13, Rob Pomeroy a
      écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:CAMRdZXYmT3zW2HUWSVnHgYDEVboMU4nV_TO=9k5eJawXBQp05A@mail.gmail.com">
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div>I'm trying to install the OCS Inventory agent via rudder.
          When Rudder attempts to run this promise, it fails with exit
          code 100:</div>
        <blockquote style="margin:0 0 0 40px;border:none;padding:0px">
          <div><font face="monospace, monospace"><br>
            </font></div>
          <div><font face="monospace, monospace"><br>
            </font></div>
          <div>
            <div><font face="monospace, monospace">rudder  verbose: P:
                BEGIN promise 'promise_package_lib_cf_174' of type
                "packages" (pass 1)</font></div>
          </div>
          <div>
            <div><font face="monospace, monospace">rudder  verbose: P:  
                 Promiser/affected object: 'ocsinventory-agent'</font></div>
          </div>
          <div>
            <div><font face="monospace, monospace">rudder  verbose: P:  
                 From parameterized bundle: ncf_package(
                {"ocsinventory-agent","latest","default","default","present",""})</font></div>
          </div>
          <div>
            <div><font face="monospace, monospace">rudder  verbose: P:  
                 Base context class:
                use_apt_provider.!architecture_specified.version_specified</font></div>
          </div>
          <div>
            <div><font face="monospace, monospace">rudder  verbose: P:  
                 Stack path: /default/rudder_directives/methods/'Install
                OCS Inventory agent/Install OCS Inventory
agent'/default/package_management/methods/'package_1'/default/package_state/methods/'action'/default/ncf_package/packages/'ocsinventory-agent'[1]</font></div>
          </div>
          <div>
            <div><font face="monospace, monospace">rudder  verbose:
                Command
                '/var/rudder/cfengine-community/modules/packages/apt_get
                repo-install' returned with non zero return code: 100</font></div>
          </div>
          <div>
            <div><font face="monospace, monospace">rudder     info: Some
                error occurred while communicating with package module
                while installing package.</font></div>
          </div>
          <div>
            <div><font face="monospace, monospace">   error: Error
                installing package 'ocsinventory-agent'</font></div>
          </div>
        </blockquote>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Is this because the ocsinventory-agent package runs a
          wizard immediately following installation? Or is there some
          other reason?</div>
        <div><br>
        </div>
        <div>I haven't been able to find any documentation for the CF
          Engine return code. If I install the package manually,
          installation proceeds without error. This occurs on Ubuntu 14
          & 16 (64-bit).</div>
        <div><br>
        </div>
        <div>Any ideas?</div>
        <div><br>
        </div>
      </div>
    </blockquote>
    Dear Rob,<br>
    <br>
    Which version of Rudder are you using?<br>
    This looks very much like this bug: 
    <a class="moz-txt-link-freetext" href="https://www.rudder-project.org/redmine/issues/11207">https://www.rudder-project.org/redmine/issues/11207</a> which has been
    fixed in Rudder 4.1.7<br>
    <br>
    So I recommend that you upgrade Rudder, or, if you can't upgrade
    yet, there is a workaround described at the bottom of the answers in
    the ticket,<br>
    <br>
    <br>
    Kind regards,<br>
    Nicolas
  </body>
</html>