HI,
I’m using the mysql cookbook and when it tries to install the client via mysql::client recipe, the following errors out:
[2013-05-24T05:35:07+00:00] FATAL: Chef::Exceptions::Exec: package[mysql-client] (mysql::client line 46) had an error: Chef::Exceptions::Exec: apt-get -q -y install mysql-client=5.5.29-0ubuntu0.12.04.2 returned 100, expected 0
I suspect that your package index on the server is stale, run apt-get update manually before running chef again and see if that helps you find the issue.
If it is just that the package index needed an update then you probably want to include something that does an apt-get update early in the chef run. If you're running Ubuntu, the apt cookbook's default recipe will do this for you.
HI,
I'm using the mysql cookbook and when it tries to install the client via mysql::client recipe, the following errors out:
[2013-05-24T05:35:07+00:00] FATAL: Chef::Exceptions::Exec: package[mysql-client] (mysql::client line 46) had an error: Chef::Exceptions::Exec: apt-get -q -y install mysql-client=5.5.29-0ubuntu0.12.04.2 returned 100, expected 0
On Friday, May 24, 2013 at 11:59 AM, Catherine Truscott wrote:
I suspect that your package index on the server is stale, run apt-get update manually before running chef again and see if that helps you find the issue.
If it is just that the package index needed an update then you probably want to include something that does an apt-get update early in the chef run. If you're running Ubuntu, the apt cookbook's default recipe will do this for you.
HI,
I'm using the mysql cookbook and when it tries to install the client via mysql::client recipe, the following errors out:
[2013-05-24T05:35:07+00:00] FATAL: Chef::Exceptions::Exec: package[mysql-client] (mysql::client line 46) had an error: Chef::Exceptions::Exec: apt-get -q -y install mysql-client=5.5.29-0ubuntu0.12.04.2 returned 100, expected 0