Ubuntu 17 doesn't seem to have php7.0
Closed this issue · 2 comments
austindebruyn commented
Cookbook version
4.5.0
Chef-client version
13.6.0
Platform Details
Ubuntu 17.10 locally and remotely
System Info:
------------
chef_version=13.6.0
platform=ubuntu
platform_version=17.10
ruby=ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-linux]
program_name=chef-solo worker: ppid=12071;start=10:20:49;
executable=/opt/chef/bin/chef-solo
Scenario:
Install php
Steps to Reproduce:
My kitchen is little more than just a single node I'm running chef-solo
on:
{
"run_list": [
"recipe[apt]",
"recipe[apache2]",
"recipe[php]"
],
}
Expected Result:
Install php 7
Actual Result:
php7.0
isn't a package ubuntu artful offers, but php7.1
is.
https://packages.ubuntu.com/artful/php7.0
https://packages.ubuntu.com/artful/php7.1
austin@local:~/projects/chef-demo$ knife solo cook user@host
...
...
...
Recipe: php::package
* apt_package[php7.0-cgi, php7.0, php7.0-dev, php7.0-cli, php-pear] action install
* No candidate version available for php7.0-cgi, php7.0, php7.0-dev, php7.0-cli
================================================================================
Error executing action `install` on resource 'apt_package[php7.0-cgi, php7.0, php7.0-dev, php7.0-cli, php-pear]'
================================================================================
Chef::Exceptions::Package
-------------------------
No candidate version available for php7.0-cgi, php7.0, php7.0-dev, php7.0-cli
Resource Declaration:
---------------------
# In /root/chef-solo/local-mode-cache/cache/cookbooks/php/recipes/package.rb
23: package node['php']['packages'] do
24: options node['php']['package_options']
25: end
26: else
Compiled Resource:
------------------
# Declared in /root/chef-solo/local-mode-cache/cache/cookbooks/php/recipes/package.rb:23:in `from_file'
apt_package("php7.0-cgi, php7.0, php7.0-dev, php7.0-cli, php-pear") do
package_name ["php7.0-cgi", "php7.0", "php7.0-dev", "php7.0-cli", "php-pear"]
action [:install]
default_guard_interpreter :default
declared_type :package
cookbook_name "php"
recipe_name "package"
options nil
end
System Info:
------------
chef_version=13.6.0
platform=ubuntu
platform_version=17.10
ruby=ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-linux]
program_name=chef-solo worker: ppid=12071;start=10:20:49;
executable=/opt/chef/bin/chef-solo
Running handlers:
[2017-11-05T10:21:01+00:00] ERROR: Running exception handlers
[2017-11-05T10:21:01+00:00] ERROR: Running exception handlers
Running handlers complete
[2017-11-05T10:21:01+00:00] ERROR: Exception handlers complete
[2017-11-05T10:21:01+00:00] ERROR: Exception handlers complete
Chef Client failed. 1 resources updated in 11 seconds
[2017-11-05T10:21:01+00:00] FATAL: Stacktrace dumped to /root/chef-solo/local-mode-cache/cache/chef-stacktrace.out
[2017-11-05T10:21:01+00:00] FATAL: Stacktrace dumped to /root/chef-solo/local-mode-cache/cache/chef-stacktrace.out
[2017-11-05T10:21:01+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2017-11-05T10:21:01+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2017-11-05T10:21:01+00:00] ERROR: apt_package[php7.0-cgi, php7.0, php7.0-dev, php7.0-cli, php-pear] (php::package line 23) had an error: Chef::Exceptions::Package: No candidate version available for php7.0-cgi, php7.0, php7.0-dev, php7.0-cli
[2017-11-05T10:21:01+00:00] ERROR: apt_package[php7.0-cgi, php7.0, php7.0-dev, php7.0-cli, php-pear] (php::package line 23) had an error: Chef::Exceptions::Package: No candidate version available for php7.0-cgi, php7.0, php7.0-dev, php7.0-cli
[2017-11-05T10:21:01+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
[2017-11-05T10:21:01+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
ERROR: RuntimeError: chef-solo failed. See output above.
xorima commented
Closing due to inactivity.
If this is still an issue please reopen or open another issue. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help!
Thanks,
Sous-Chefs
lock commented
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.