ogom / cookbook-gitlab

Chef's Cookbook for GitLab
33 stars 15 forks source link

mysql failed to install #10

Closed schlamar closed 11 years ago

schlamar commented 11 years ago

Could it be that the apt-cache could be invalid after gitlab::inital so that you have to include apt in gitlab::install, too?

================================================================================
Error executing action `install` on resource 'package[mysql-server]'
================================================================================

Chef::Exceptions::Exec
----------------------
apt-get -q -y install mysql-server=5.5.32-0ubuntu0.12.04.1 returned 100, expected 0

Resource Declaration:
---------------------
# In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/mysql/recipes/server.rb

 94:   package package_name do
 95:     action :install
 96:     notifies :start, "service[mysql]", :immediately
 97:   end
 98: end

Compiled Resource:
------------------
# Declared in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/mysql/recipes/server.rb:94:in `block in from_file'

package("mysql-server") do
  action [:install]
  retries 0
  retry_delay 2
  package_name "mysql-server"
  version "5.5.32-0ubuntu0.12.04.1"
  cookbook_name :mysql
  recipe_name "server"
end
ogom commented 11 years ago

The database may need to be installed first.

schlamar commented 11 years ago

I guess this was network related, internet access was really flaky today. Cookbook worked flawless on Debian 7 (from https://github.com/opscode/bento) so I'm closing this for now.