MiniCodeMonkey / Vagrant-LAMP-Stack

A dead-simple LAMP stack without any bells and whistles for your basic Linux/Apache/MySQL/PHP install.
431 stars 173 forks source link

Error executing action `create` on resource 'mysql_service[default]' #25

Open cosapostolo opened 10 years ago

cosapostolo commented 10 years ago

mysql_service[default](mysql::server line 20) had an error: Chef::Exceptions::Exec: service[mysql](/tmp/vagrant-chef-3/chef-solo-1/cookbooks/mysql/libraries/provider_mysql_service_ubuntu.rb line 59) had an error: Chef::Exceptions::Exec: /sbin/start mysql returned 1, expected 0

kencaron commented 10 years ago

This is happening to me as well.

OS X 10.9.2

$ vagrant -v:
Vagrant 1.6.3

$ vagrant plugin list
vagrant-berkshelf (2.0.1)
  - Version Constraint: >= 2.0.1
vagrant-hostmanager (1.5.0)
vagrant-login (1.0.1, system)
vagrant-omnibus (1.4.1)
vagrant-share (1.1.0, system)

This may help as well:

==> projectname: ================================================================================
==> projectname: Error executing action `start` on resource 'service[mysql]'
==> projectname: ================================================================================
==> projectname:
==> projectname:
==> projectname: Chef::Exceptions::Exec
==> projectname: ----------------------
==> projectname: /sbin/start mysql returned 1, expected 0
==> projectname:
==> projectname:
==> projectname: Resource Declaration:
==> projectname: ---------------------
==> projectname: # In /tmp/vagrant-chef-3/chef-solo-1/cookbooks/mysql/libraries/provider_mysql_service_ubuntu.rb
==> projectname:
==> projectname:  59:             service 'mysql' do
==> projectname:  60:               provider Chef::Provider::Service::Upstart
==> projectname:  61:               supports :restart => true
==> projectname:  62:               action [:start, :enable]
==> projectname:  63:             end
==> projectname:  64:
==> projectname:
==> projectname:
==> projectname:
==> projectname: Compiled Resource:
==> projectname: ------------------
==> projectname: # Declared in /tmp/vagrant-chef-3/chef-solo-1/cookbooks/mysql/libraries/provider_mysql_service_ubuntu.rb:59:in `block (2 levels) in <class:Ubuntu>'
==> projectname:
==> projectname: service("mysql") do
==> projectname:   provider Chef::Provider::Service::Upstart
==> projectname:   action [:start, :enable]
==> projectname:   supports {:restart=>true}
==> projectname:   retries 0
==> projectname:   retry_delay 2
==> projectname:   guard_interpreter :default
==> projectname:   service_name "mysql"
==> projectname:   pattern "mysql"
==> projectname:   cookbook_name :mysql
==> projectname: end
==> projectname:
==> projectname:
==> projectname:
==> projectname: [2014-07-24T17:34:01+00:00] INFO: Running queued delayed notifications before re-raising exception
==> projectname:
kara-todd commented 10 years ago

I'm also having this issue. I can't figure out what's changed. I even pulled the berksfile.lock file from an older project that provisioned correctly and it still throws this error...

emiliomg commented 10 years ago

Me too, btw... Pretty annoying. And since this project here seems abandoned, I will switch to another LAMP project.