GithubHelp home page GithubHelp logo

Comments (5)

fbrier avatar fbrier commented on June 3, 2024

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?

from cookbook-redmine.

fbrier avatar fbrier commented on June 3, 2024

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...

from cookbook-redmine.

fbrier avatar fbrier commented on June 3, 2024

Something must have changed to require the mysql gem to be added. In recipes/source.rb, the mysql gem has to be explicitly added:

     gem_package "bundler" do
       action :install
     end
+    gem_package "mysql" do
+      package_name "mysql"
+      version "2.8.1"
+      action :install
+    end

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.

     case adapter
     when "mysql"
-      execute "bundle install --without development test postgresql sqlite" do
+      execute "bundle install --without development test mysql sqlite" do
         cwd release_path
       end
     when "postgresql"
-      execute "bundle install --without development test mysql sqlite" do
+      execute "bundle install --without development test postgresql sqlite" do
         cwd release_path
       end
     end

from cookbook-redmine.

jniggemann avatar jniggemann commented on June 3, 2024

Never looked at chef before and chances are I might be wrong about this, but

when "mysql"
   execute "bundle install --without development test mysql sqlite" do
   cwd release_path

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...

from cookbook-redmine.

fbrier avatar fbrier commented on June 3, 2024

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.

from cookbook-redmine.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.