Comments (5)
I have the same issue trying to install mysql-server in ubuntu12.04 docker container. Upstart isn't available so mysql service refuse to start.
Something like this will be perfect but it seems isn't available yet.
Meanwhile I was trying to monkey patch a Chef::Provider::Service to use supervisor/runit to start mysql in container, using #197 PR. I don't know if there is a better solution.
from mysql.
@alambike Thanks for the links! a friend did a fork of the mysql cookbook http://bit.ly/1l8vb7u to allow the provisioning with chef-solo and we use supervisor to start mysql.
from mysql.
I can at least confirm that this is indeed still an issue, I've tried both the 5.5.4 from this repo here (opscode-cookbooks/mysql) and the one mentioned by @thpham https://github.com/haad/mysql/ and I still get the same error:
[2014-10-21T20:15:49+00:00] ERROR: Running exception handlers
[2014-10-21T20:15:49+00:00] ERROR: Exception handlers complete
[2014-10-21T20:15:49+00:00] FATAL: Stacktrace dumped to /var/chef/chef-stacktrace.out
[2014-10-21T20:15:49+00:00] ERROR: mysql_service[default] (mysql::server line 20) had an error: Mixlib::ShellOut::ShellCommandFailed: execute[install-grants] (/var/chef/cookbooks/mysql/libraries/provider_mysql_service_ubuntu.rb line 82) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of /usr/bin/mysql -u root -proot < /etc/mysql_grants.sql ----
STDOUT:
STDERR: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
---- End output of /usr/bin/mysql -u root -proot < /etc/mysql_grants.sql ----
Ran /usr/bin/mysql -u root -proot < /etc/mysql_grants.sql returned 1
[2014-10-21T20:15:49+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
2014/10/21 15:15:49 The command [/bin/sh -c chef-solo -c /var/chef/solo.rb -j /var/chef/solo.json] returned a non-zero code: 1
anyone out there successfully using docker, chef-solo, and mysql?
from mysql.
Hi there. The MySQL 6.0.0 release has separated the :create and :start actions. You should now be able to use a mysql_service resource in a recipe with the :create action, and it will not attempt to start the service with any init system, allowing you to start it externally from your Dockerfile.
from mysql.
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.
from mysql.
Related Issues (20)
- Using service name 'default' results in stop/disable/enable/start actions on every run HOT 3
- release 8.7.2 is incompatible with chef-client 12 HOT 3
- NoMethodError for mysql_service when converging HOT 5
- Version 9.0.0 apparmor error HOT 1
- Depends on apparmor cookbook HOT 3
- Installing the mysql2 gem on ubuntu 20.04 HOT 3
- Unable to create mysql service on ubuntu "undefined method `[]' for nil:NilClass" HOT 6
- `initialize_database` runs every time (at least with mysql 8) HOT 5
- ctrl_user is being ignored at mysql_user resource HOT 4
- mysql_service resource silently fails when not named default
- autoconfiguration hangs on cookbooks/mysql/libraries/mysql_service_base.rb line 91 HOT 9
- Cannot connect through socket
- CI / CD Gitlab kitchen dokken HOT 1
- mysql_user or mysql_database can not connect to the database HOT 6
- "No database selected" when calling mysql_database resource
- initial_root_password has no effect on modern MySQL versions
- Chef::Exceptions::Package: No candidate version available for mysql-community-server
- ExecStartPre and ExecStartPost properties of SystemD unit file points to wrong path
- Dependency Dashboard
- Control hash is not picking up the password.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mysql.