Skip to content
This repository has been archived by the owner on Nov 6, 2021. It is now read-only.

MySQL Provisioning for vagrant up on allinone #15

Closed
alex4u2nv opened this issue Aug 28, 2014 · 4 comments
Closed

MySQL Provisioning for vagrant up on allinone #15

alex4u2nv opened this issue Aug 28, 2014 · 4 comments
Labels

Comments

@alex4u2nv
Copy link

==> default: Error executing action `grant` on resource 'mysql_database_user[alfresco]'
==> default: ================================================================================
==> default: 
==> default: 
==> default: TypeError
==> default: ---------
==> default: Mysql is not a class
==> default: 
==> default: 
==> default: Cookbook Trace:
==> default: ---------------
==> default: /tmp/vagrant-chef-solo/chef-solo-1/cookbooks/database/libraries/provider_database_mysql_user.rb:29:in `load_current_resource'
==> default: 
==> default: 
==> default: Resource Declaration:
==> default: ---------------------
==> default: # In /tmp/vagrant-chef-solo/chef-solo-1/cookbooks/alfresco/recipes/mysql_createdb.rb
==> default: 
==> default:  22:     mysql_database_user db_user do
==> default:  23:     connection          db_info
==> default:  24:     database_name       db_database
==> default:  25:     password            db_pass
==> default:  26:     privileges          [ :all ]
==> default:  27:     host                repo_host
==> default:  28:     action              :grant
==> default:  29:   end
==> default:  30: end
==> default: 
==> default: 
==> default: 
==> default: Compiled Resource:
==> default: ------------------
==> default: # Declared in /tmp/vagrant-chef-solo/chef-solo-1/cookbooks/alfresco/recipes/mysql_createdb.rb:22:in `block in from_file'
==> default: 
==> default: mysql_database_user("alfresco") do
==> default:   provider Chef::Provider::Database::MysqlUser
==> default:   action [:grant]
==> default:   retries 0
==> default:   retry_delay 2
==> default:   database_name "alfresco"
==> default:   username "alfresco"
==> default:   host "%"
==> default:   privileges [:all]
==> default:   cookbook_name :alfresco
==> default:   recipe_name "mysql_createdb"
==> default:   connection {:host=>"alfresco-allinone", :port=>3306, :username=>"root", :password=>"ilikerandompasswords"}
==> default:   password "alfresco"
==> default: end
==> default: 
==> default: 
==> default: 
@maoo
Copy link
Contributor

maoo commented Aug 29, 2014

Never seen such issue; it occurs on the database cookbook (/tmp/vagrant-chef-solo/chef-solo-1/cookbooks/database/libraries/provider_database_mysql_user.rb:29) and the error is very strange: Mysql is not a class

I'll try to reproduce it. Thanks for opening the issue!

@maoo maoo added the bug label Aug 29, 2014
@maoo
Copy link
Contributor

maoo commented Sep 15, 2014

I've tested successfully alfresco-allinone-dev (default), following https://github.com/maoo/alfresco-boxes/tree/master/vagrant

Could you pleas pull the latest changes, run ./create-vendor-cookbooks.sh script and try again (vagrant destroy -f && vagrant up) ?

Thanks!

@maoo
Copy link
Contributor

maoo commented Feb 16, 2015

Hi @alex4u2nv , any update on this issue? Are you still experiencing the same issue? Thanks

@maoo
Copy link
Contributor

maoo commented Nov 24, 2015

Closing this issue, please reopen if you still can reproduce it

@maoo maoo closed this as completed Nov 24, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants