Skip to main content

Chef Infra Client native installer troubleshooting

Conflicts with Chef Workstation

If the Chef Workstation is already on your system, the installation process fails with a conflict.

  • On Debian-based systems, the installer returns the following error:

    Selecting previously unselected package chef-infra-client.
    dpkg: regarding chef-infra-client-19.1.rc2_amd64.deb containing chef-infra-client:
    chef-infra-client conflicts with chef-workstation
      chef-workstation (version 0.4.2-1) is present and installed.
    
    dpkg: error processing archive chef-infra-client-19.1.rc2_amd64.deb (--install):
    conflicting packages - not installing chef-infra-client
    Errors were encountered while processing:
    chef-infra-client-19.1.rc2_amd64.deb
    
  • On RPM-based systems, the installer returns the following error:

    Error:
    Problem: package chef-infra-client-19.0.54-1.amzn2023.x86_64 from @System conflicts with chef-workstation provided by chef-workstation-25.1.1074-1.amazon2023.x86_64 from @commandline
      - conflicting requests
      - problem with installed package chef-infra-client-19.0.54-1.amzn2023.x86_64
    (try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages)
    
  • On Windows, the Windows Package Manager displays the following error:

    Chef Workstation is installed. Please uninstall it before installing Chef Infra (air-gapped).
    

To resolve the error:

  1. Uninstall Chef Workstation.
  2. Reinstall Chef Infra Client.

Error: Invalid license

The installation process requires a valid Progress Chef License key.

The installer returns the following error if you don’t add a valid license:

Validating chef-client license with https://services.chef.io
Invalid License Key: ssfree-833b40cf-336a-42ee-b71d-f14a0
chef-client installation failed. Error: invalid license
warning: %post(chef-infra-client-19.1.0-1.amzn2.x86_64) scriptlet failed, exit status 1

Error in POSTIN scriptlet in rpm package chef-infra-client
  Verifying        : chef-infra-client-19.1.0-1.amzn2.x86_64

To resolve this error:

  1. Add a valid Progress Chef License key to your machine’s environment:

    • Add license key on Linux

      Add a Progress Chef license key on Linux:

      export CHEF_LICENSE_KEY=<LICENSE_KEY>
      

      Replace <LICENSE_KEY> with your Progress Chef license key.

    • Add license key on Windows

      Add a Progress Chef license key on Windows:

      [System.Environment]::SetEnvironmentVariable("CHEF_LICENSE_KEY", "<LICENSE_KEY>", "Machine")
      

      Replace <LICENSE_KEY> with your Progress Chef license key.

  2. Install Chef Infra Client:

    • Install on Debian distributions

      Install on Debian-based distributions:

      sudo -E dpkg -i chef-infra-client-19.1.rc2_amd64.deb
      
    • Install on RPM distributions

      Install on RPM-based distributions using the dnf reinstall command:

      sudo -E dnf reinstall chef-infra-client-19.1.rc2.amzn2.x86_64.rpm
      
    • Install on Windows

      Install on Windows:

      • Double-click on the MSI package and install using the Windows Package Manager.

      or:

      • Install the MSI package with Powershell:

        msiexec /i "chef-ice-19.1.2-1_x64.msi"
        

Thank you for your feedback!

×