Vagrant-LAMP-Stack icon indicating copy to clipboard operation
Vagrant-LAMP-Stack copied to clipboard

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

Open cosapostolo opened this issue 10 years ago • 3 comments

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

cosapostolo avatar Jul 24 '14 09:07 cosapostolo

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:

kencaron avatar Jul 24 '14 17:07 kencaron

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...

kara-todd avatar Jul 24 '14 19:07 kara-todd

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

emiliomg avatar Aug 06 '14 15:08 emiliomg