git icon indicating copy to clipboard operation
git copied to clipboard

STDERR: No provider of 'git=2.26.2-27.36.1' found.

Open Vazzilena opened this issue 5 years ago • 3 comments

Hey,

I am using the recipe and works just fine on our win/rhel/centos machines.

It fails however on suse. This is the console log from the execution of the command sudo chef-client -o 'recipe[git]' Recipe version: 10.0.0

[2020-07-17T15:05:53.153Z] Processing sofumsuse06.eur.ad.sag
[2020-07-17T15:05:54.364Z] Processing sofumsuse06.eur.ad.sag
[2020-07-17T15:05:54.639Z] + sudo chef-client -o 'recipe[git]'
[2020-07-17T15:06:02.764Z] Starting Chef Client, version 14.13.11[0m
[2020-07-17T15:06:12.701Z] [2020-07-17T17:52:34+03:00] WARN: Run List override has been provided.
[2020-07-17T15:06:12.701Z] [2020-07-17T17:52:34+03:00] WARN: Original Run List: []
[2020-07-17T15:06:12.701Z] [2020-07-17T17:52:34+03:00] WARN: Overridden Run List: [recipe[git]]
[2020-07-17T15:06:12.701Z] resolving cookbooks for run list: ["git"][0m
[2020-07-17T15:06:12.701Z] Synchronizing Cookbooks:[0m
[2020-07-17T15:06:12.701Z]   - git (10.0.0)[0m
[2020-07-17T15:06:12.701Z] Installing Cookbook Gems:[0m
[2020-07-17T15:06:12.701Z] Compiling Cookbooks...[0m
[2020-07-17T15:06:12.701Z] Converging 1 resources[0m
[2020-07-17T15:06:12.701Z] Recipe: git::package[0m
[2020-07-17T15:06:12.701Z]   * git_client[default] action install
[2020-07-17T15:06:19.228Z]     * zypper_package[default :create git] action install
[2020-07-17T15:06:19.228Z]       [0m
[2020-07-17T15:06:19.228Z]       ================================================================================[0m
[2020-07-17T15:06:19.228Z]       [31mError executing action `install` on resource 'zypper_package[default :create git]'[0m
[2020-07-17T15:06:19.228Z]       ================================================================================[0m
[2020-07-17T15:06:19.228Z]       
[2020-07-17T15:06:19.228Z] [0m      Mixlib::ShellOut::ShellCommandFailed[0m
[2020-07-17T15:06:19.228Z]       ------------------------------------[0m
[2020-07-17T15:06:19.228Z]       Expected process to exit with [0], but received '104'
[2020-07-17T15:06:19.228Z] [0m      ---- Begin output of ["zypper", "--non-interactive", "install", "--auto-agree-with-licenses", "git=2.26.2-27.36.1"] ----
[2020-07-17T15:06:19.228Z] [0m      STDOUT: Refreshing service 'SUSE_Linux_Enterprise_Server_12_SP4_x86_64'.
[2020-07-17T15:06:19.228Z] [0m      Loading repository data...
[2020-07-17T15:06:19.228Z] [0m      Reading installed packages...
[2020-07-17T15:06:19.228Z] [0m      'git=2.26.2-27.36.1' not found in package names. Trying capabilities.
[2020-07-17T15:06:19.228Z] [0m      STDERR: No provider of 'git=2.26.2-27.36.1' found.
[2020-07-17T15:06:19.228Z] [0m      ---- End output of ["zypper", "--non-interactive", "install", "--auto-agree-with-licenses", "git=2.26.2-27.36.1"] ----
[2020-07-17T15:06:19.228Z] [0m      Ran ["zypper", "--non-interactive", "install", "--auto-agree-with-licenses", "git=2.26.2-27.36.1"] returned 104[0m
[2020-07-17T15:06:19.228Z]       
[2020-07-17T15:06:19.228Z] [0m      Resource Declaration:[0m
[2020-07-17T15:06:19.228Z]       ---------------------[0m
[2020-07-17T15:06:19.228Z]       # In /var/chef/cache/cookbooks/git/libraries/provider_git_client_package.rb
[2020-07-17T15:06:19.228Z] [0m      
[2020-07-17T15:06:19.228Z] [0m        9:           package "#{new_resource.name} :create #{parsed_package_name}" do
[2020-07-17T15:06:19.228Z] [0m       10:             package_name parsed_package_name
[2020-07-17T15:06:19.228Z] [0m       11:             version parsed_package_version
[2020-07-17T15:06:19.228Z] [0m       12:             action new_resource.package_action
[2020-07-17T15:06:19.228Z] [0m       13:             action :install
[2020-07-17T15:06:19.228Z] [0m       14:           end
[2020-07-17T15:06:19.228Z] [0m       15:         end
[2020-07-17T15:06:19.228Z] [0m      
[2020-07-17T15:06:19.228Z] [0m      Compiled Resource:[0m
[2020-07-17T15:06:19.228Z]       ------------------[0m
[2020-07-17T15:06:19.228Z]       # Declared in /var/chef/cache/cookbooks/git/libraries/provider_git_client_package.rb:9:in `block in <class:Package>'
[2020-07-17T15:06:19.228Z] [0m      
[2020-07-17T15:06:19.228Z] [0m      zypper_package("default :create git") do
[2020-07-17T15:06:19.228Z] [0m        package_name "git"
[2020-07-17T15:06:19.228Z] [0m        action [:install]
[2020-07-17T15:06:19.228Z] [0m        default_guard_interpreter :default
[2020-07-17T15:06:19.228Z] [0m        declared_type :package
[2020-07-17T15:06:19.228Z] [0m        cookbook_name "git"
[2020-07-17T15:06:19.228Z] [0m        version nil
[2020-07-17T15:06:19.228Z] [0m      end
[2020-07-17T15:06:19.228Z] [0m      
[2020-07-17T15:06:19.228Z] [0m      System Info:[0m
[2020-07-17T15:06:19.228Z]       ------------[0m
[2020-07-17T15:06:19.228Z]       chef_version=14.13.11
[2020-07-17T15:06:19.228Z] [0m      platform=suse
[2020-07-17T15:06:19.228Z] [0m      platform_version=12.4
[2020-07-17T15:06:19.228Z] [0m      ruby=ruby 2.5.5p157 (2019-03-15 revision 67260) [x86_64-linux]
[2020-07-17T15:06:19.228Z] [0m      program_name=/usr/bin/chef-client
[2020-07-17T15:06:19.228Z] [0m      executable=/opt/chef/bin/chef-client[0m
[2020-07-17T15:06:19.228Z]       
[2020-07-17T15:06:19.228Z] [0m    [0m
[2020-07-17T15:06:19.228Z]     ================================================================================[0m
[2020-07-17T15:06:19.228Z]     [31mError executing action `install` on resource 'git_client[default]'[0m
[2020-07-17T15:06:19.228Z]     ================================================================================[0m
[2020-07-17T15:06:19.228Z]     
[2020-07-17T15:06:19.228Z] [0m    Mixlib::ShellOut::ShellCommandFailed[0m
[2020-07-17T15:06:19.228Z]     ------------------------------------[0m
[2020-07-17T15:06:19.228Z]     zypper_package[default :create git] (/var/chef/cache/cookbooks/git/libraries/provider_git_client_package.rb line 9) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '104'
[2020-07-17T15:06:19.228Z] [0m    ---- Begin output of ["zypper", "--non-interactive", "install", "--auto-agree-with-licenses", "git=2.26.2-27.36.1"] ----
[2020-07-17T15:06:19.228Z] [0m    STDOUT: Refreshing service 'SUSE_Linux_Enterprise_Server_12_SP4_x86_64'.
[2020-07-17T15:06:19.228Z] [0m    Loading repository data...
[2020-07-17T15:06:19.228Z] [0m    Reading installed packages...
[2020-07-17T15:06:19.228Z] [0m    'git=2.26.2-27.36.1' not found in package names. Trying capabilities.
[2020-07-17T15:06:19.228Z] [0m    STDERR: No provider of 'git=2.26.2-27.36.1' found.
[2020-07-17T15:06:19.228Z] [0m    ---- End output of ["zypper", "--non-interactive", "install", "--auto-agree-with-licenses", "git=2.26.2-27.36.1"] ----
[2020-07-17T15:06:19.228Z] [0m    Ran ["zypper", "--non-interactive", "install", "--auto-agree-with-licenses", "git=2.26.2-27.36.1"] returned 104[0m
[2020-07-17T15:06:19.228Z]     
[2020-07-17T15:06:19.228Z] [0m    Resource Declaration:[0m
[2020-07-17T15:06:19.228Z]     ---------------------[0m
[2020-07-17T15:06:19.228Z]     # In /var/chef/cache/cookbooks/git/recipes/package.rb
[2020-07-17T15:06:19.228Z] [0m    
[2020-07-17T15:06:19.228Z] [0m     23:   git_client 'default' do
[2020-07-17T15:06:19.228Z] [0m     24:     action :install
[2020-07-17T15:06:19.228Z] [0m     25:   end
[2020-07-17T15:06:19.229Z] [0m     26: end
[2020-07-17T15:06:19.229Z] [0m    
[2020-07-17T15:06:19.229Z] [0m    Compiled Resource:[0m
[2020-07-17T15:06:19.229Z]     ------------------[0m
[2020-07-17T15:06:19.229Z]     # Declared in /var/chef/cache/cookbooks/git/recipes/package.rb:23:in `from_file'
[2020-07-17T15:06:19.229Z] [0m    
[2020-07-17T15:06:19.229Z] [0m    git_client("default") do
[2020-07-17T15:06:19.229Z] [0m      action [:install]
[2020-07-17T15:06:19.229Z] [0m      default_guard_interpreter :default
[2020-07-17T15:06:19.229Z] [0m      declared_type :git_client
[2020-07-17T15:06:19.229Z] [0m      cookbook_name "git"
[2020-07-17T15:06:19.229Z] [0m      recipe_name "package"
[2020-07-17T15:06:19.229Z] [0m    end
[2020-07-17T15:06:19.229Z] [0m    
[2020-07-17T15:06:19.229Z] [0m    System Info:[0m
[2020-07-17T15:06:19.229Z]     ------------[0m
[2020-07-17T15:06:19.229Z]     chef_version=14.13.11
[2020-07-17T15:06:19.229Z] [0m    platform=suse
[2020-07-17T15:06:19.229Z] [0m    platform_version=12.4
[2020-07-17T15:06:19.229Z] [0m    ruby=ruby 2.5.5p157 (2019-03-15 revision 67260) [x86_64-linux]
[2020-07-17T15:06:19.229Z] [0m    program_name=/usr/bin/chef-client
[2020-07-17T15:06:19.229Z] [0m    executable=/opt/chef/bin/chef-client[0m
[2020-07-17T15:06:19.229Z]     
[2020-07-17T15:06:19.229Z] [0m[0m
[2020-07-17T15:06:19.229Z] Running handlers:[0m
[2020-07-17T15:06:19.229Z] [2020-07-17T17:52:40+03:00] ERROR: Running exception handlers
[2020-07-17T15:06:19.229Z] Running handlers complete
[2020-07-17T15:06:19.229Z] [0m[2020-07-17T17:52:40+03:00] ERROR: Exception handlers complete
[2020-07-17T15:06:19.229Z] Chef Client failed. 0 resources updated in 16 seconds[0m
[2020-07-17T15:06:19.229Z] [2020-07-17T17:52:40+03:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2020-07-17T15:06:19.229Z] [2020-07-17T17:52:40+03:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2020-07-17T15:06:19.229Z] [2020-07-17T17:52:40+03:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: git_client[default] (git::package line 23) had an error: Mixlib::ShellOut::ShellCommandFailed: zypper_package[default :create git] (/var/chef/cache/cookbooks/git/libraries/provider_git_client_package.rb line 9) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '104'
[2020-07-17T15:06:19.229Z] ---- Begin output of ["zypper", "--non-interactive", "install", "--auto-agree-with-licenses", "git=2.26.2-27.36.1"] ----
[2020-07-17T15:06:19.229Z] STDOUT: Refreshing service 'SUSE_Linux_Enterprise_Server_12_SP4_x86_64'.
[2020-07-17T15:06:19.229Z] Loading repository data...
[2020-07-17T15:06:19.229Z] Reading installed packages...
[2020-07-17T15:06:19.229Z] 'git=2.26.2-27.36.1' not found in package names. Trying capabilities.
[2020-07-17T15:06:19.229Z] STDERR: No provider of 'git=2.26.2-27.36.1' found.
[2020-07-17T15:06:19.229Z] ---- End output of ["zypper", "--non-interactive", "install", "--auto-agree-with-licenses", "git=2.26.2-27.36.1"] ----
[2020-07-17T15:06:19.229Z] Ran ["zypper", "--non-interactive", "install", "--auto-agree-with-licenses", "git=2.26.2-27.36.1"] returned 104
script returned exit code 1

stacktrace file: chef-stacktrace.log console log: console.log

Version of the suse machine:

vmtest@sofumsuse06:~> cat /etc/*release*
NAME="SLES"
VERSION="12-SP4"
VERSION_ID="12.4"
PRETTY_NAME="SUSE Linux Enterprise Server 12 SP4"
ID="sles"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:suse:sles:12:sp4"
SUSE Linux Enterprise Server 12 (x86_64)
VERSION = 12
PATCHLEVEL = 4

Stackrace file also says:

STDOUT: Refreshing service 'SUSE_Linux_Enterprise_Server_12_SP4_x86_64'.
Loading repository data...
Reading installed packages...
'git=2.26.2-27.36.1' not found in package names. Trying capabilities.
STDERR: No provider of 'git=2.26.2-27.36.1' found.

Vazzilena avatar Jul 17 '20 17:07 Vazzilena

Hi @Vazzilena I think this cookbook is not support “SUSE_Linux_Enterprise_Server_12_SP4_x86_64”, Please note the support platforms

|---------------+-------|
| amazonlinux-2 | X     |
|---------------+-------|
| centos-7      | X     |
|---------------+-------|
| centos-8      | X     |
|---------------+-------|
| fedora        | X     |
|---------------+-------|
| debian-9      | X     |
|---------------+-------|
| debian-10     | X     |
|---------------+-------|
| ubuntu-16.04  | X     |
|---------------+-------|
| ubuntu-18.04  | X     |
|---------------+-------|
| ubuntu-20.04  | X     |
|---------------+-------|
| openSUSE Leap | X     |
|---------------+-------|

thirumoorthir avatar Nov 05 '20 02:11 thirumoorthir

@ramereth are we supporting Suse Enterprise Linux or it is out of scope ?

thirumoorthir avatar Nov 08 '20 17:11 thirumoorthir

We try to support at least OpenSUSE Leap 15 since that's easy for us to test against.

ramereth avatar Nov 09 '20 00:11 ramereth