-
Notifications
You must be signed in to change notification settings - Fork 21
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
db:migrate failing on install w/ v2.5.1 #22
Comments
I read through all the Redmine release notes between 2.2.4 and 2.5.1 and saw no changes to the tools or ruby libraries or packages or database features that would explain why 2.5.1 would behave differently on a clean install. Also, why would db:migrate execute on a clean install? |
So I noticed the mysql gem was not installed. So I installed it. Didn't work. But I did see Juanje's comment about the Chef gems possibly being in a different path. After reading about Chef logging, I re-ran chef-client and got the message, "Could not find gem 'mysql (~> 2.8.1) ruby' in the gems available on this machine." But then I read that Redmine does not include the mysql gem in its bundle definition and you have to specify it when installing. So why would it work for 2.2.4 and not 2.5.1? That has not changed. Still researching... |
Something must have changed to require the mysql gem to be added. In recipes/source.rb, the mysql gem has to be explicitly added:
This seems to have solved the problem as 2.5.1 stable is now installed and operational. I did make one other change that I believe is unrelated, but appears to be a bug. In the same file, it appears that the execute bundle install command's parameters are reversed. Please feel free to let me know if I am off-base on these changes. Thank you.
|
Never looked at chef before and chances are I might be wrong about this, but
doesn't look OK: You're in a case statement branch with adapter==mysql, hence it makes no sense to tell bundler to not use the mysql database... |
Thank you for logging into the project. Your hint on the redmine website zeroed me in. I'd actually caught the error you saw and posted it in the previous comment, although I don't think that is what was causing the db:migrate to fail. Thank you again. My next thought is to figure out how to do redmine plugins in the cookbook and integrate julionc's gitolite cookbook with the gitolite/redmine integration. |
This is my first time using this cookbook. I have repeated the install twice on clean Ubuntu 12.04 LTS VMs and got the same result. The cookbook fetches and installs redmine with no problem and then fails on the deploy running db:migrate. I had set the revision attribute to 2.5.1, which is the latest version. Has anyone else seen this? Thank you.
Amending since the above comment, I created a bare bones role, letting the revision default to 2.2.4, again on a clean VM, and it worked. Using another bare bones role, but setting just the revision to 2.5.1, it failed as above.
The text was updated successfully, but these errors were encountered: