Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cosapostolo opened this issue Jul 24, 2014 · 3 comments
Open

Comments

@cosapostolo
Copy link

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
Copy link

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
Copy link

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
Copy link

emiliomg commented Aug 6, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants