include_recipe 'git' on windows


#1

Hello,

include_recipe ‘git’ on windows returns “Error executing action install
on resource ‘git_client[default]’”

Why is that?

Thanks,

Andrei


#2

Hello Andrei. It would help if you could say more about what version of
chef-client you’re running, the version of Windows on which it is running,
the version of the git cookbook you’re using, and maybe share the output of
the run to start.

I notice that the git cookbook (https://supermarket.chef.io/cookbooks/git)
has recently been updated on Supermarket:

  1.   On 2015-04-16, it was updated from 4.1.0 to 4.2.0. This was the
    

first update in about 4 months.

  1.   The next day, 2015-04-17, it was updated from 4.2.0 to 4.2.1. The
    

change log shows that there may have been an issue if you’re running
chef-client 11:
https://github.com/jssjr/git/commit/dad51c0f2f0aa40268a1b20cd2042ae64534cedb
.

I would guess that if you have version 4.2.0 of the cookbook, you might
have better luck with 4.2.1. Otherwise, you could try downgrading to 4.1.0.
I’ve been using 4.1.0 for months with no problems on a variety of Windows
versions.

Thanks.

-Adam

From: Andrei Radulescu [mailto:andi.radulescu@gmail.com]
Sent: Wednesday, April 22, 2015 4:11 AM
To: chef@lists.opscode.com
Subject: [chef] include_recipe ‘git’ on windows

Hello,

include_recipe ‘git’ on windows returns “Error executing action install
on resource ‘git_client[default]’”

Why is that?

Thanks,

Andrei


#3

Hi Adam,

Thanks a lot for your answer! On 4.1.0 works! But on 4.2.1 it doesn’t.

I use chef-client 11.18.6-1. This runs on my production azure vm with
Windows Server 2012 R2 Datacenter.

On my dev machine I have chef-client 11.18.6-1 (same as above) and runs on
Windows 7.

I use all the latest versions for all the cookbooks - git cookbok 4.2.1.

Same error: “Error executing action install on resource
’git_client[default]’”

Cheers,

Andrei

On Wed, Apr 22, 2015 at 4:04 PM, Adam Edwards adamed@getchef.com wrote:

Hello Andrei. It would help if you could say more about what version of
chef-client you’re running, the version of Windows on which it is running,
the version of the git cookbook you’re using, and maybe share the output of
the run to start.

I notice that the git cookbook (https://supermarket.chef.io/cookbooks/git)
has recently been updated on Supermarket:

  1.   On 2015-04-16, it was updated from 4.1.0 to 4.2.0. This was the
    

first update in about 4 months.

  1.   The next day, 2015-04-17, it was updated from 4.2.0 to 4.2.1.
    

The change log shows that there may have been an issue if you’re running
chef-client 11:
https://github.com/jssjr/git/commit/dad51c0f2f0aa40268a1b20cd2042ae64534cedb
.

I would guess that if you have version 4.2.0 of the cookbook, you might
have better luck with 4.2.1. Otherwise, you could try downgrading to 4.1.0.
I’ve been using 4.1.0 for months with no problems on a variety of Windows
versions.

Thanks.

-Adam

From: Andrei Radulescu [mailto:andi.radulescu@gmail.com]
Sent: Wednesday, April 22, 2015 4:11 AM
To: chef@lists.opscode.com
Subject: [chef] include_recipe ‘git’ on windows

Hello,

include_recipe ‘git’ on windows returns “Error executing action install
on resource ‘git_client[default]’”

Why is that?

Thanks,

Andrei