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

Having an Issue Going from Zero to Live on RHEL-7 #271

Closed
aronchick opened this issue Dec 21, 2014 · 2 comments
Closed

Having an Issue Going from Zero to Live on RHEL-7 #271

aronchick opened this issue Dec 21, 2014 · 2 comments

Comments

@aronchick
Copy link

I was running through a default installation and ran into an issue with the following AMI:

 ami-99bef1a9

Here are my notes and my recipe

  • Built the basic cookbook, based on the instructions on MySQL github page:
mysql_service 'default' do
  bind_address '0.0.0.0'
  port '3306'
  version '5.5' # changed later, see notes
  initial_root_password 'hunter2' #obviously fake
  action [:create, :start]
end

mysql_config 'default' do
  source 'mysite.cnf.erb'
  notifies :restart, 'mysql_service[default]'
  action :create
end

-- (BTW, it's super annoying that it doesn't download all dependencies automatically!)

  • Knife uploaded the cookbook and went to the directory to chef-client
  • Failed, due to mysql55-community repo not being available
  • Had to eventually skip if unavailable, and upgraded yum
  • Tried to run chef-client again, and still failed
  • Downloaded the most recent mysql cookbook from Github
  • Then hacked again at the cookbook, and changed mysql to '5.7'
  • Still didn't work, happened to randomly enter one of the errors in google and came back with the rhel update site for adjusting repos
  • Found this - http://dev.mysql.com/doc/mysql-repo-excerpt/5.6/en/linux-installation-yum-repo.html -- and did this:
    yum repolist all | grep mysql
    sudo yum-config-manager --disable mysql56-community
    sudo yum-config-manager --enable mysql57-community
  • (This is because both repos were installed)
  • Now the client worked - up to the point of start
  • The server doesn't start, however, due to a perm issue
  • [Here's where I'm stuck]
@someara someara changed the title Having an Issue Going from Zero to Live on Amazon Having an Issue Going from Zero to Live on RHEL-7 Dec 22, 2014
@someara
Copy link
Contributor

someara commented Dec 22, 2014

This was actually a bug in a dependency... the yum-mysql-community cookbook.
Upgrade to the latest version of that and you should be good to go

@someara someara closed this as completed Dec 22, 2014
@lock
Copy link

lock bot commented Jun 2, 2019

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.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants