Content
Bundle exec rake - Issue
Added by Hudson Manieri about 10 years ago
Hello guys,
I’m trying to install it on a Ubuntu Server, everything installed fine.
But when I try to run the bundle db command I get this:
~/openproject$ bundle exec rake db:create:all
require ‘rails/all’… 0.610s
Bundler.require… rake aborted!
LoadError: cannot load such file — open_project/plugins
/home/openproject/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:251:in `require’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:251:in `block in require’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:236:in `load_dependency’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:251:in `require’
/home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/openproject-meeting-a4c6d64092c1/lib/open_project/meeting/engine.rb:21:in `<top (required)>’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:251:in `require’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:251:in `block in require’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:236:in `load_dependency’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:251:in `require’
/home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/openproject-meeting-a4c6d64092c1/lib/open_project/meeting.rb:23:in `module:Meeting’
/home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/openproject-meeting-a4c6d64092c1/lib/open_project/meeting.rb:22:in `module:OpenProject’
/home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/openproject-meeting-a4c6d64092c1/lib/open_project/meeting.rb:21:in `<top (required)>’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:251:in `require’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:251:in `block in require’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:236:in `load_dependency’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:251:in `require’
/home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/openproject-meeting-a4c6d64092c1/lib/openproject-meeting.rb:21:in `<top (required)>’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/bundler-1.7.3/lib/bundler/runtime.rb:76:in `require’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/bundler-1.7.3/lib/bundler/runtime.rb:76:in `block (2 levels) in require’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/bundler-1.7.3/lib/bundler/runtime.rb:72:in `each’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/bundler-1.7.3/lib/bundler/runtime.rb:72:in `block in require’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/bundler-1.7.3/lib/bundler/runtime.rb:61:in `each’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/bundler-1.7.3/lib/bundler/runtime.rb:61:in `require’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/bundler-1.7.3/lib/bundler.rb:133:in `require’
/home/openproject/openproject/config/application.rb:56:in `block in <top (required)>’
/home/openproject/openproject/config/application.rb:44:in `block in bench’
/home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/benchmark.rb:279:in `measure’
/home/openproject/openproject/config/application.rb:43:in `bench’
/home/openproject/openproject/config/application.rb:55:in `<top (required)>’
/home/openproject/openproject/Rakefile:33:in `require’
/home/openproject/openproject/Rakefile:33:in `<top (required)>’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/rake-10.3.2/lib/rake/rake_module.rb:28:in `load’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/rake-10.3.2/lib/rake/rake_module.rb:28:in `load_rakefile’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/rake-10.3.2/lib/rake/application.rb:687:in `raw_load_rakefile’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/rake-10.3.2/lib/rake/application.rb:94:in `block in load_rakefile’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/rake-10.3.2/lib/rake/application.rb:176:in `standard_exception_handling’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/rake-10.3.2/lib/rake/application.rb:93:in `load_rakefile’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/rake-10.3.2/lib/rake/application.rb:77:in `block in run’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/rake-10.3.2/lib/rake/application.rb:176:in `standard_exception_handling’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/rake-10.3.2/lib/rake/application.rb:75:in `run’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/rake-10.3.2/bin/rake:33:in `<top (required)>’
/home/openproject/.rvm/gems/ruby-2.1.0/bin/rake:23:in `load’
/home/openproject/.rvm/gems/ruby-2.1.0/bin/rake:23:in `
’
/home/openproject/.rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in `eval’
/home/openproject/.rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in `
’
openproject@lablinsrv27:~/openproject$ bundle -v
Bundler version 1.7.3
Versions:
ruby 2.1.0p0 (2013-12-25 revision 44422) [i686-linux]
Bundler version 1.7.3
rvm 1.25.33
gem 2.2.2
Replies (22)
Hi Hudson
the error may have to do with the plugins file
Can you give us a bit more detail on what you had done prior to setting up the databases please
had you added plugins ?
cheers
Brendan
Hi Guys,
I am having the same problem:
I have a working setup of openproject installed using the pkgr.io apt package on a machine running ubuntu 14.04.
I tried to install the backlogs plugin using the instructions at https://gist.github.com/crohr/10111721
My Gemfile.plugins in /opt/openproject/ looked like this:
gem “openproject-meeting”, :git => “https://github.com/finnlabs/openproject-meeting.git”, :branch => “dev”
gem “openproject-costs”, :git => “https://github.com/finnlabs/openproject-costs.git”, :branch => “dev”
gem “openproject-pdf_export”, :git => “https://github.com/finnlabs/openproject-pdf_export”, :branch => “dev”
The command
“sudo openproject run bundle install”
was successful, however the next command
“sudo openproject run rake db:migrate”
failed with error messages:
require ‘rails/all’… 0.630s
Bundler.require… rake aborted!
cannot load such file — open_project/plugins
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `require’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `block in require’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:236:in `load_dependency’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `require’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `require’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `block in require’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:236:in `load_dependency’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `require’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `require’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `block in require’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:236:in `load_dependency’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `require’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/bundler-1.5.2/lib/bundler/runtime.rb:76:in `require’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/bundler-1.5.2/lib/bundler/runtime.rb:76:in `block (2 levels) in require’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/bundler-1.5.2/lib/bundler/runtime.rb:72:in `each’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/bundler-1.5.2/lib/bundler/runtime.rb:72:in `block in require’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/bundler-1.5.2/lib/bundler/runtime.rb:61:in `each’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/bundler-1.5.2/lib/bundler/runtime.rb:61:in `require’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/bundler-1.5.2/lib/bundler.rb:131:in `require’
/opt/openproject/config/application.rb:56:in `block in <top (required)>’
/opt/openproject/config/application.rb:44:in `block in bench’
/opt/openproject/config/application.rb:43:in `bench’
/opt/openproject/config/application.rb:55:in `<top (required)>’
/opt/openproject/Rakefile:33:in `require’
/opt/openproject/Rakefile:33:in `<top (required)>’
(See full trace by running task with —trace)
Like this description >> https://community.openproject.org/topics/675 << I wanted install all those plugins. But then I got the Message:
Bundler.require… DEPRECATION WARNING: All functionality provided by openproject-plugins has now been integrated in OpenProject core.
Please remove openproject-plugins from your Gemfile."
(called from <top (required)> at /opt/openproject/vendor/ruby-2.1.1/lib/ruby/gems/2.1.0/bundler/gems/openproject-plugins-430d7ff219aa/lib/openproject-plugins.rb:16)
and to be sure I deleted open projects-plugins and backlog from the Gemfile.plugins. I did the bundle install but with rake i am getting the same error. Any Ideas?
Thank you so much for your help!
Ok I think I know what the problem is. It is very important to specify the plugin version to get things running. The current stable core handles plugins differently as our dev branch.
So as an example please try something like this in your Gemfile.plugins
gem “openproject-meeting”, :git => “https://github.com/finnlabs/openproject-meeting.git”, :branch => “v3.0.14”
As you can see I defined the version by setting the branch to ‘v3.0.14’. For the stable branch this is the appropriate version. If you are using a different version (e.g. v3.0.12) please use this one.
Hopefully this solves all the issues you have.
Regards
Karsten
Hi,
thank for your qui help. I changes the Gemfile.Plugins to:
gem “openproject-plugins”, git: “https://github.com/opf/openproject-plugins.git”, :branch => “stable”
gem “openproject-backlogs”, :git => “https://github.com/finnlabs/openproject-backlogs.git”, :branch => “stable”
gem ‘openproject-costs’, :git => ‘https://github.com/finnlabs/openproject-costs.git’, :branch => “stable”
gem ‘openproject-meeting’, :git => ‘https://github.com/finnlabs/openproject-meeting.git’, :branch => “stable”
gem ‘openproject-pdf_export’, :git => ‘https://github.com/finnlabs/openproject-pdf_export.git’, :branch => “stable”
“sudo openproject run bundle install” works well:
Using openproject-plugins (3.0.14) from https://github.com/opf/openproject-plugins.git (at stable)
Using rack-protection (1.5.2) from https://github.com/finnlabs/rack-protection.git (at 5a7d1bd)
Using i18n-js (3.0.0.rc5) from https://github.com/fnando/i18n-js.git (at 8801f8d)
Using openproject-pdf_export (3.0.14) from https://github.com/finnlabs/openproject-pdf_export.git (at stable)
Using openproject-meeting (3.0.14) from https://github.com/finnlabs/openproject-meeting.git (at stable)
Using openproject-costs (3.0.14) from https://github.com/finnlabs/openproject-costs.git (at stable)
Using openproject-backlogs (3.0.14) from https://github.com/finnlabs/openproject-backlogs.git (at stable)
Your bundle is complete!
Gems in the groups development and test were not installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
“sudo openproject run rake db:migrate” now pass the previous error and gives me a new one:
require ‘rails/all’… 0.680s
Bundler.require… 2.070s
Application.initialize!… Connecting to database specified by DATABASE_URL
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
Creating scope :open. Overwriting existing method WorkPackage.open.
Creating scope :like. Overwriting existing method Principal.like.
Creating scope :open. Overwriting existing method Version.open.
Creating scope :public. Overwriting existing method Project.public.
fatal: Not a git repository (or any of the parent directories): .git
rake aborted!
undefined method `add_filter_type_by_field’ for Queries::WorkPackages::Filter:Class
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `require’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `block in require’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:236:in `load_dependency’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `require’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:359:in `require_or_load’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:502:in `load_missing_constant’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:192:in `block in const_missing’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:190:in `each’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:190:in `const_missing’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/inflector/methods.rb:230:in `block in constantize’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/inflector/methods.rb:229:in `each’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/inflector/methods.rb:229:in `constantize’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/core_ext/string/inflections.rb:54:in `constantize’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/callbacks.rb:462:in `_run_2449270024588097833prepare284798313412751618_callbacks’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/callbacks.rb:405:in `__run_callback’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/callbacks.rb:385:in `_run_prepare_callbacks’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/callbacks.rb:81:in `run_callbacks’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/actionpack-3.2.17/lib/action_dispatch/middleware/reloader.rb:74:in `prepare!’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/actionpack-3.2.17/lib/action_dispatch/middleware/reloader.rb:48:in `prepare!’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.17/lib/rails/application/finisher.rb:47:in `block in module:Finisher’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.17/lib/rails/initializable.rb:30:in `instance_exec’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.17/lib/rails/initializable.rb:30:in `run’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.17/lib/rails/initializable.rb:55:in `block in run_initializers’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.17/lib/rails/initializable.rb:54:in `each’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.17/lib/rails/initializable.rb:54:in `run_initializers’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.17/lib/rails/application.rb:136:in `initialize!’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.17/lib/rails/railtie/configurable.rb:30:in `method_missing’
/opt/openproject/config/environment.rb:36:in `block in <top (required)>’
/opt/openproject/config/application.rb:44:in `block in bench’
/opt/openproject/config/application.rb:43:in `bench’
/opt/openproject/config/environment.rb:34:in `<top (required)>’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `require’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `block in require’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:236:in `load_dependency’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `require’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.17/lib/rails/application.rb:103:in `require_environment!’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.17/lib/rails/application.rb:305:in `block (2 levels) in initialize_tasks’
Tasks: TOP => db:migrate => environment
(See full trace by running task with —trace)
Thank you so much for your help!
Can you remove all plugins from your Gemfile and add them one by one.
Starting with gem “openproject-plugins”, git: “https://github.com/opf/openproject-plugins.git”, :branch => “stable”
I know this is a very time consuming approach but at least we will narrow done the problem.
Regards
Karsten
OK, I did it an I got the following result:
sudo openproject run rake db:migrate
require ‘rails/all’… 0.600s
Bundler.require… 1.850s
Application.initialize!… Connecting to database specified by DATABASE_URL
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
Creating scope :open. Overwriting existing method WorkPackage.open.
Creating scope :like. Overwriting existing method Principal.like.
Creating scope :open. Overwriting existing method Version.open.
Creating scope :public. Overwriting existing method Project.public.
fatal: Not a git repository (or any of the parent directories): .git
3.140s
Migrating to AggregatedMigrations (0)
Migrating to AddSummaryToProjects (20110211160100)
Migrating to AddDisplaySumsFieldToMigration (20110817142220)
Migrating to AddUserFirstLoggedInAndImpairedFields (20111114124552)
Migrating to LocalizeEmailHeaderAndFooter (20120319095930)
Migrating to AddCustomFieldTranslationTable (20120319135006)
Migrating to CreateDelayedJobs (20120529090411)
Migrating to UseTheFullStiClassNamesForRepositories (20120731091543)
Migrating to CreateWikiMenuItems (20120731135140)
Migrating to RenameAuthSourceLdap (20120802152122)
Migrating to CreateWikiMenuItemForExistingWikis (20120809131659)
Migrating to MakeGroupsUsersAModel (20120828171423)
Migrating to AddWikiListAttachments (20121004054229)
Migrating to RenameActsAsJournalizedChangesColumn (20121030111651)
Migrating to AddMissingIndexesOnWikiMenuItems (20121101111303)
Migrating to AddIndexOnIdentifierToProjects (20130204140624)
Migrating to AddLongerLoginToUsers (20130315124655)
Migrating to RemoveGanttRelatedDataFromDatabase (20130325165622)
Migrating to AddTimelinesProjectTypeIdToProjects (20130409133700)
Migrating to CreateTimelinesProjectTypes (20130409133701)
Migrating to CreateTimelinesPlanningElementTypes (20130409133702)
Migrating to CreateTimelinesPlanningElements (20130409133703)
Migrating to CreateTimelinesScenarios (20130409133704)
Migrating to CreateTimelinesAlternateDates (20130409133705)
Migrating to AddTimelinesResponsibleIdToProjects (20130409133706)
Migrating to CreateTimelinesColors (20130409133707)
Migrating to CreateTimelinesReportings (20130409133708)
Migrating to CreateTimelinesAvailableProjectStatuses (20130409133709)
Migrating to CreateTimelinesProjectAssociations (20130409133710)
Migrating to CreateTimelinesEnabledPlanningElementTypes (20130409133711)
Migrating to CreateTimelinesDefaultPlanningElementTypes (20130409133712)
Migrating to MigratePlanningElementTypeToProjectAssociation (20130409133713)
Migrating to RemoveProjectTypeIdFromTimelinesPlanningElementTypes (20130409133714)
Migrating to CreateTimelinesTimelines (20130409133715)
Migrating to AddOptionsToTimelinesTimelines (20130409133717)
Migrating to RemoveContentFromTimelinesTimelines (20130409133718)
Migrating to AddIndexesToTimelinesAlternateDatesToSecureAtScope (20130409133719)
Migrating to AddDeletedAtToTimelinesPlanningElements (20130409133720)
Migrating to AllowNullPositionInColors (20130409133721)
Migrating to AllowNullPositionInPlanningElementTypes (20130409133722)
Migrating to AllowNullPositionInProjectTypes (20130409133723)
Migrating to RemoveTimelinesNamespace (20130611154020)
Migrating to MigrateSerializedYamlFromSyckToPsych (20130612120042)
Migrating to AddForcePasswordChangeToUser (20130613075253)
Migrating to CreateUserPasswords (20130619081234)
Migrating to CreateWorkPackages (20130620082322)
Migrating to WorkPackageCustomFieldDataMigration (20130625124242)
Migrating to AddFailedLoginCountLastFailedLoginOnToUser (20130628092725)
Migrating to RenameEndDateOnAlternateDates (20130709084751)
Migrating to RemoveEndDateFromWorkPackages (20130710145350)
Migrating to RenameChangesetWpJoinTable (20130717134318)
Migrating to RenameTrackersToTypes (20130719133922)
Migrating to RenameWorkPackageStiColumn (20130722154555)
Migrating to AddActivityModule (20130723092240)
Migrating to IncreaseJournalsChangedDataLimit (20130723134527)
Migrating to AddPlanningElementTypePropertiesToType (20130724143418)
Migrating to MovePlanningElementTypesToLegacyPlanningElementTypes (20130729114110)
Migrating to AddStandardColumnToTypeTable (20130806075000)
Migrating to MoveJournalsToLegacyJournals (20130807081927)
Migrating to CreateNormalizedJournals (20130807082645)
Migrating to CreateAttachmentJournals (20130807083715)
Migrating to CreateWorkPackageJournals (20130807084417)
Migrating to CreateMessageJournals (20130807084708)
Migrating to CreateNewsJournals (20130807085108)
Migrating to CreateWikiContentJournals (20130807085245)
Migrating to CreateTimeEntryJournals (20130807085430)
Migrating to CreateChangesetJournals (20130807085714)
Migrating to RemoveFilesAttachedToProjectsAndVersions (20130807141542)
Migrating to AddAttachableJournal (20130813062401)
Migrating to AddCustomizableJournal (20130813062513)
Migrating to FixCustomizableJournalValueColumn (20130813062523)
Migrating to RemoveDocuments (20130814130142)
Migrating to RemoveAlternateDatesAndScenarios (20130828093647)
Migrating to DropModelJournalsUpdatedOnColumn (20130829084747)
Migrating to LegacyIssuesToWorkPackages (20130916094339)
Migrating to PlanningElementTypesDataToTypes (20130916123916)
Migrating to MigrateQueryTrackerReferencesToType (20130917101922)
Migrating to RemoveIsInChlogFromTypes (20130917122118)
Migrating to PlanningElementDataToWorkPackages (20130917131710)
Migrating to MigrateUserRights (20130918111753)
Migrating to MigrateSettingsToWorkPackage (20130919105841)
Migrating to RenameIssueRelationsToRelations (20130919145142)
Migrating to JournalIndices (20130920081120)
Migrating to LegacyAttachmentJournalData (20130920081135)
Migrating to LegacyChangesetJournalData (20130920085055)
Migrating to LegacyNewsJournalData (20130920090201)
Migrating to LegacyMessageJournalData (20130920090641)
Migrating to LegacyTimeEntryJournalData (20130920092800)
Migrating to LegacyWikiContentJournalData (20130920093823)
Migrating to LegacyIssueJournalData (20130920094524)
Migrating to LegacyPlanningElementJournalData (20130920095747)
Migrating to UpdateAttachmentContainer (20130920142714)
Migrating to JournalActivitiesData (20130920150143)
Migrating to RenameIssueCategoryToCategory (20131001075217)
Migrating to RenameIssueStatusesToStatuses (20131001105659)
Migrating to GeneralizeWikiMenuItems (20131004141959)
Migrating to MigrateTextReferencesToIssuesAndPlanningElements (20131007062401)
Migrating to WorkPackageIndices (20131009083648)
Migrating to MigrateTimelinesEndDatePropertyInOptions (20131015064141)
Migrating to IndexOnUsers (20131015121430)
Migrating to AddQueueToDelayedJobs (20131016075650)
Migrating to RepairWorkPackagesInitialAttachableJournal (20131017064039)
Migrating to RepairMessagesInitialAttachableJournal (20131018134525)
Migrating to RepairCustomizableJournals (20131018134530)
Migrating to AddMissingAttachableJournals (20131018134545)
Migrating to AddMissingCustomizableJournals (20131018134590)
Migrating to MigrateRemainingCoreSettings (20131024115743)
Migrating to MigrateTimelinesOptions (20131024140048)
Migrating to FixWatcherWorkPackageAssociations (20131031170857)
Migrating to MigrateDefaultValuesInWorkPackageJournals (20131101125921)
Migrating to AddIndexToAllTheJournals (20131108124300)
Migrating to MigratePlanningElementLinksInJournalNotes (20131114132911)
Migrating to FixParentIdsInWorkPackageJournalsOfFormerPlanningElements (20131115155147)
Migrating to MigrateUpdateCreateColumnReferenceInQueries (20131126112911)
Migrating to DeleteFormerDeletedPlanningElements (20131202094511)
Migrating to RepairInvalidDefaultWorkPackageCustomValues (20131210113056)
Migrating to MigrateTimelinesEnumerations (20131216171110)
Migrating to AddEnabledModulesNameIndex (20131219084934)
Migrating to RemoveJournalColumns (20140122161742)
Migrating to FixIssueInNotifications (20140127134733)
Migrating to RenameModulenameIssueTracking (20140203141127)
Migrating to AddStickedOnFieldToMessages (20140311120609)
Migrating to ClearIdentityUrlsOnUsers (20140411142338)
Migrating to RemoveOpenidEntirely (20140414141459)
I am not quite sure about the fatal error “Not a git repository (or any of the parent directories): .git
3.140s”. Does it matter?
Regards Robert
OK, I did it an I got the following result:
sudo openproject run rake db:migrate
require ‘rails/all’… 0.600s
Bundler.require… 1.850s
Application.initialize!… Connecting to database specified by DATABASE_URL
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
Creating scope :open. Overwriting existing method WorkPackage.open.
Creating scope :like. Overwriting existing method Principal.like.
Creating scope :open. Overwriting existing method Version.open.
Creating scope :public. Overwriting existing method Project.public.
fatal: Not a git repository (or any of the parent directories): .git
3.140s
Migrating to AggregatedMigrations (0)
Migrating to AddSummaryToProjects (20110211160100)
Migrating to AddDisplaySumsFieldToMigration (20110817142220)
Migrating to AddUserFirstLoggedInAndImpairedFields (20111114124552)
Migrating to LocalizeEmailHeaderAndFooter (20120319095930)
Migrating to AddCustomFieldTranslationTable (20120319135006)
Migrating to CreateDelayedJobs (20120529090411)
Migrating to UseTheFullStiClassNamesForRepositories (20120731091543)
Migrating to CreateWikiMenuItems (20120731135140)
Migrating to RenameAuthSourceLdap (20120802152122)
Migrating to CreateWikiMenuItemForExistingWikis (20120809131659)
Migrating to MakeGroupsUsersAModel (20120828171423)
Migrating to AddWikiListAttachments (20121004054229)
Migrating to RenameActsAsJournalizedChangesColumn (20121030111651)
Migrating to AddMissingIndexesOnWikiMenuItems (20121101111303)
Migrating to AddIndexOnIdentifierToProjects (20130204140624)
Migrating to AddLongerLoginToUsers (20130315124655)
Migrating to RemoveGanttRelatedDataFromDatabase (20130325165622)
Migrating to AddTimelinesProjectTypeIdToProjects (20130409133700)
Migrating to CreateTimelinesProjectTypes (20130409133701)
Migrating to CreateTimelinesPlanningElementTypes (20130409133702)
Migrating to CreateTimelinesPlanningElements (20130409133703)
Migrating to CreateTimelinesScenarios (20130409133704)
Migrating to CreateTimelinesAlternateDates (20130409133705)
Migrating to AddTimelinesResponsibleIdToProjects (20130409133706)
Migrating to CreateTimelinesColors (20130409133707)
Migrating to CreateTimelinesReportings (20130409133708)
Migrating to CreateTimelinesAvailableProjectStatuses (20130409133709)
Migrating to CreateTimelinesProjectAssociations (20130409133710)
Migrating to CreateTimelinesEnabledPlanningElementTypes (20130409133711)
Migrating to CreateTimelinesDefaultPlanningElementTypes (20130409133712)
Migrating to MigratePlanningElementTypeToProjectAssociation (20130409133713)
Migrating to RemoveProjectTypeIdFromTimelinesPlanningElementTypes (20130409133714)
Migrating to CreateTimelinesTimelines (20130409133715)
Migrating to AddOptionsToTimelinesTimelines (20130409133717)
Migrating to RemoveContentFromTimelinesTimelines (20130409133718)
Migrating to AddIndexesToTimelinesAlternateDatesToSecureAtScope (20130409133719)
Migrating to AddDeletedAtToTimelinesPlanningElements (20130409133720)
Migrating to AllowNullPositionInColors (20130409133721)
Migrating to AllowNullPositionInPlanningElementTypes (20130409133722)
Migrating to AllowNullPositionInProjectTypes (20130409133723)
Migrating to RemoveTimelinesNamespace (20130611154020)
Migrating to MigrateSerializedYamlFromSyckToPsych (20130612120042)
Migrating to AddForcePasswordChangeToUser (20130613075253)
Migrating to CreateUserPasswords (20130619081234)
Migrating to CreateWorkPackages (20130620082322)
Migrating to WorkPackageCustomFieldDataMigration (20130625124242)
Migrating to AddFailedLoginCountLastFailedLoginOnToUser (20130628092725)
Migrating to RenameEndDateOnAlternateDates (20130709084751)
Migrating to RemoveEndDateFromWorkPackages (20130710145350)
Migrating to RenameChangesetWpJoinTable (20130717134318)
Migrating to RenameTrackersToTypes (20130719133922)
Migrating to RenameWorkPackageStiColumn (20130722154555)
Migrating to AddActivityModule (20130723092240)
Migrating to IncreaseJournalsChangedDataLimit (20130723134527)
Migrating to AddPlanningElementTypePropertiesToType (20130724143418)
Migrating to MovePlanningElementTypesToLegacyPlanningElementTypes (20130729114110)
Migrating to AddStandardColumnToTypeTable (20130806075000)
Migrating to MoveJournalsToLegacyJournals (20130807081927)
Migrating to CreateNormalizedJournals (20130807082645)
Migrating to CreateAttachmentJournals (20130807083715)
Migrating to CreateWorkPackageJournals (20130807084417)
Migrating to CreateMessageJournals (20130807084708)
Migrating to CreateNewsJournals (20130807085108)
Migrating to CreateWikiContentJournals (20130807085245)
Migrating to CreateTimeEntryJournals (20130807085430)
Migrating to CreateChangesetJournals (20130807085714)
Migrating to RemoveFilesAttachedToProjectsAndVersions (20130807141542)
Migrating to AddAttachableJournal (20130813062401)
Migrating to AddCustomizableJournal (20130813062513)
Migrating to FixCustomizableJournalValueColumn (20130813062523)
Migrating to RemoveDocuments (20130814130142)
Migrating to RemoveAlternateDatesAndScenarios (20130828093647)
Migrating to DropModelJournalsUpdatedOnColumn (20130829084747)
Migrating to LegacyIssuesToWorkPackages (20130916094339)
Migrating to PlanningElementTypesDataToTypes (20130916123916)
Migrating to MigrateQueryTrackerReferencesToType (20130917101922)
Migrating to RemoveIsInChlogFromTypes (20130917122118)
Migrating to PlanningElementDataToWorkPackages (20130917131710)
Migrating to MigrateUserRights (20130918111753)
Migrating to MigrateSettingsToWorkPackage (20130919105841)
Migrating to RenameIssueRelationsToRelations (20130919145142)
Migrating to JournalIndices (20130920081120)
Migrating to LegacyAttachmentJournalData (20130920081135)
Migrating to LegacyChangesetJournalData (20130920085055)
Migrating to LegacyNewsJournalData (20130920090201)
Migrating to LegacyMessageJournalData (20130920090641)
Migrating to LegacyTimeEntryJournalData (20130920092800)
Migrating to LegacyWikiContentJournalData (20130920093823)
Migrating to LegacyIssueJournalData (20130920094524)
Migrating to LegacyPlanningElementJournalData (20130920095747)
Migrating to UpdateAttachmentContainer (20130920142714)
Migrating to JournalActivitiesData (20130920150143)
Migrating to RenameIssueCategoryToCategory (20131001075217)
Migrating to RenameIssueStatusesToStatuses (20131001105659)
Migrating to GeneralizeWikiMenuItems (20131004141959)
Migrating to MigrateTextReferencesToIssuesAndPlanningElements (20131007062401)
Migrating to WorkPackageIndices (20131009083648)
Migrating to MigrateTimelinesEndDatePropertyInOptions (20131015064141)
Migrating to IndexOnUsers (20131015121430)
Migrating to AddQueueToDelayedJobs (20131016075650)
Migrating to RepairWorkPackagesInitialAttachableJournal (20131017064039)
Migrating to RepairMessagesInitialAttachableJournal (20131018134525)
Migrating to RepairCustomizableJournals (20131018134530)
Migrating to AddMissingAttachableJournals (20131018134545)
Migrating to AddMissingCustomizableJournals (20131018134590)
Migrating to MigrateRemainingCoreSettings (20131024115743)
Migrating to MigrateTimelinesOptions (20131024140048)
Migrating to FixWatcherWorkPackageAssociations (20131031170857)
Migrating to MigrateDefaultValuesInWorkPackageJournals (20131101125921)
Migrating to AddIndexToAllTheJournals (20131108124300)
Migrating to MigratePlanningElementLinksInJournalNotes (20131114132911)
Migrating to FixParentIdsInWorkPackageJournalsOfFormerPlanningElements (20131115155147)
Migrating to MigrateUpdateCreateColumnReferenceInQueries (20131126112911)
Migrating to DeleteFormerDeletedPlanningElements (20131202094511)
Migrating to RepairInvalidDefaultWorkPackageCustomValues (20131210113056)
Migrating to MigrateTimelinesEnumerations (20131216171110)
Migrating to AddEnabledModulesNameIndex (20131219084934)
Migrating to RemoveJournalColumns (20140122161742)
Migrating to FixIssueInNotifications (20140127134733)
Migrating to RenameModulenameIssueTracking (20140203141127)
Migrating to AddStickedOnFieldToMessages (20140311120609)
Migrating to ClearIdentityUrlsOnUsers (20140411142338)
Migrating to RemoveOpenidEntirely (20140414141459)
I am not quite sure about the fatal error “Not a git repository (or any of the parent directories): .git
3.140s”. Does it matter?
Regards Robert
I assume that you have some packaged gems and these gems use
`git ls-files`
in the*.gemspec
. So I think you can ignore these errors. Generally speaking I think it is not a good idea to use`git ls-files`
but in your case you do not have to bother.Hi,
after the installation I did an “sudo service openproject restart” and the plugin appears in the Plugin Section of the open project administration. For next Step I tried the following Gemfile.plugins:
gem “openproject-costs”, :git => “https://github.com/finnlabs/openproject-costs.git”, :branch => “stable”
bundel:
Using openproject-costs (3.0.14) from https://github.com/finnlabs/openproject-costs.git (at stable)
Your bundle is complete!
Gems in the groups development and test were not installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
I got this error:
sudo openproject run rake db:migrate
require ‘rails/all’… 0.600s
Bundler.require… 1.850s
Application.initialize!… Connecting to database specified by DATABASE_URL
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
Creating scope :open. Overwriting existing method WorkPackage.open.
Creating scope :like. Overwriting existing method Principal.like.
Creating scope :open. Overwriting existing method Version.open.
Creating scope :public. Overwriting existing method Project.public.
fatal: Not a git repository (or any of the parent directories): .git
rake aborted!
undefined method `add_filter_type_by_field’ for Queries::WorkPackages::Filter:Class
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/callbacks.rb:440:in `_run_115861011163045004prepare61923312105110781_callbacks’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/callbacks.rb:405:in `__run_callback’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/callbacks.rb:385:in `_run_prepare_callbacks’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/callbacks.rb:81:in `run_callbacks’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/actionpack-3.2.17/lib/action_dispatch/middleware/reloader.rb:74:in `prepare!’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/actionpack-3.2.17/lib/action_dispatch/middleware/reloader.rb:48:in `prepare!’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.17/lib/rails/application/finisher.rb:47:in `block in module:Finisher’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.17/lib/rails/initializable.rb:30:in `instance_exec’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.17/lib/rails/initializable.rb:30:in `run’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.17/lib/rails/initializable.rb:55:in `block in run_initializers’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.17/lib/rails/initializable.rb:54:in `each’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.17/lib/rails/initializable.rb:54:in `run_initializers’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.17/lib/rails/application.rb:136:in `initialize!’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.17/lib/rails/railtie/configurable.rb:30:in `method_missing’
/opt/openproject/config/environment.rb:36:in `block in <top (required)>’
/opt/openproject/config/application.rb:44:in `block in bench’
/opt/openproject/config/application.rb:43:in `bench’
/opt/openproject/config/environment.rb:34:in `<top (required)>’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `require’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `block in require’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:236:in `load_dependency’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `require’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.17/lib/rails/application.rb:103:in `require_environment!’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.17/lib/rails/application.rb:305:in `block (2 levels) in initialize_tasks’
Tasks: TOP => db:migrate => environment
(See full trace by running task with —trace)
Then I tried:
gem “openproject-plugins”, git: “https://github.com/opf/openproject-plugins.git”, :branch => “stable”
gem “openproject-backlogs”, :git => “https://github.com/finnlabs/openproject-backlogs.git”, :branch => “stable”
gem “openproject-pdf_export”, :git => “https://github.com/finnlabs/openproject-pdf_export.git”, :branch => “stable”
bundel install ok:
….
Using openproject-plugins (3.0.14) from https://github.com/opf/openproject-plugins.git (at stable)
Using i18n-js (3.0.0.rc5) from https://github.com/fnando/i18n-js.git (at 8801f8d)
Using openproject-pdf_export (3.0.14) from https://github.com/finnlabs/openproject-pdf_export.git (at stable)
Using openproject-backlogs (3.0.14) from https://github.com/finnlabs/openproject-backlogs.git (at stable)
Your bundle is complete!
Gems in the groups development and test were not installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
sudo openproject run bundle exec rake db:seed:
require ‘rails/all’… 0.640s
Bundler.require… 1.960s
Application.initialize!… Connecting to database specified by DATABASE_URL
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
Creating scope :open. Overwriting existing method WorkPackage.open.
Creating scope :like. Overwriting existing method Principal.like.
Creating scope :open. Overwriting existing method Version.open.
Creating scope :public. Overwriting existing method Project.public.
fatal: Not a git repository (or any of the parent directories): .git
rake aborted!
undefined method `add_filter_type_by_field’ for Queries::WorkPackages::Filter:Class
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `require’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `block in require’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:236:in `load_dependency’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `require’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:359:in `require_or_load’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:502:in `load_missing_constant’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:192:in `block in const_missing’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:190:in `each’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:190:in `const_missing’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/inflector/methods.rb:230:in `block in constantize’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/inflector/methods.rb:229:in `each’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/inflector/methods.rb:229:in `constantize’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/core_ext/string/inflections.rb:54:in `constantize’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/callbacks.rb:440:in `_run_1790475333351005412prepare291401442733222233_callbacks’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/callbacks.rb:405:in `__run_callback’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/callbacks.rb:385:in `_run_prepare_callbacks’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/callbacks.rb:81:in `run_callbacks’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/actionpack-3.2.17/lib/action_dispatch/middleware/reloader.rb:74:in `prepare!’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/actionpack-3.2.17/lib/action_dispatch/middleware/reloader.rb:48:in `prepare!’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.17/lib/rails/application/finisher.rb:47:in `block in module:Finisher’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.17/lib/rails/initializable.rb:30:in `instance_exec’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.17/lib/rails/initializable.rb:30:in `run’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.17/lib/rails/initializable.rb:55:in `block in run_initializers’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.17/lib/rails/initializable.rb:54:in `each’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.17/lib/rails/initializable.rb:54:in `run_initializers’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.17/lib/rails/application.rb:136:in `initialize!’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.17/lib/rails/railtie/configurable.rb:30:in `method_missing’
/opt/openproject/config/environment.rb:36:in `block in <top (required)>’
/opt/openproject/config/application.rb:44:in `block in bench’
/opt/openproject/config/application.rb:43:in `bench’
/opt/openproject/config/environment.rb:34:in `<top (required)>’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `require’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `block in require’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:236:in `load_dependency’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `require’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.17/lib/rails/application.rb:103:in `require_environment!’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.17/lib/rails/application.rb:305:in `block (2 levels) in initialize_tasks’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.17/lib/active_record/railties/databases.rake:346:in `block (2 levels) in <top (required)>’
Tasks: TOP => db:abort_if_pending_migrations => environment
(See full trace by running task with —trace)
Any Ideas how to fix: “undefined method `add_filter_type_by_field’ for Queries::WorkPackages::Filter:Class”?
Thanks allot I really appreciate your help!
Hey I found this Bug >> https://community.openproject.org/work_packages/16463 << and tried the solution. Installation of “openproject-pdf_export” worked fine “backlogs” is still giving a error.
Please add
gem “acts_as_silent_list”, git: “https://github.com/finnlabs/acts_as_silent_list.git”, branch: ‘master’
to your Gemfiile if you are using backlogs.
Regards
Karsten
My Gemfile.plugins:
gem “openproject-plugins”, git: “https://github.com/opf/openproject-plugins.git”, :branch => “stable”
gem “openproject-pdf_export”, :git => “https://github.com/finnlabs/openproject-pdf_export.git”, :branch => “stable”
gem “acts_as_silent_list”, git: “https://github.com/finnlabs/acts_as_silent_list.git”, branch: ‘master’
gem “openproject-backlogs”, :git => “https://github.com/finnlabs/openproject-backlogs.git”, :branch => “stable”
Result:
sudo openproject run rake db:migrate
require ‘rails/all’… 0.650s
Bundler.require… 1.970s
Application.initialize!… Connecting to database specified by DATABASE_URL
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
Creating scope :open. Overwriting existing method WorkPackage.open.
Creating scope :like. Overwriting existing method Principal.like.
Creating scope :open. Overwriting existing method Version.open.
Creating scope :public. Overwriting existing method Project.public.
fatal: Not a git repository (or any of the parent directories): .git
rake aborted!
undefined method `add_filter_type_by_field’ for Queries::WorkPackages::Filter:Class
As an addition to my previous comment: Please use the following order of plugins in your Gemfile. This seems to be very important to get everything to work. If there are some plugins you do not want remove these from the list below.
gem ‘openproject-global_roles’, :git => ‘https://github.com/finnlabs/openproject-global_roles.git’, :branch => ‘stable’
gem “openproject-plugins”, :git => “https://github.com/opf/openproject-plugins.git”, :branch => “stable”
gem ‘openproject-help_link’, :git => ‘https://github.com/finnlabs/openproject-help_link.git’, :branch => ‘stable’
gem ‘openproject-my_project_page’, :git => ‘https://github.com/finnlabs/openproject-my_project_page.git’, :branch => ‘stable’
gem ‘openproject-documents’, :git => ‘https://github.com/opf/openproject-documents.git’, :branch => ‘stable’
gem ‘reporting_engine’, :git => ‘https://github.com/finnlabs/reporting_engine.git’, :branch => ‘stable’
gem ‘openproject-meeting’, :git => ‘https://github.com/finnlabs/openproject-meeting.git’, :branch => ‘stable’
gem ‘openproject-costs’, :git => ‘https://github.com/finnlabs/openproject-costs.git’, :branch => ‘stable’
gem ‘openproject-pdf_export’, :git => ‘https://github.com/finnlabs/openproject-pdf_export.git’, :branch => ‘stable’
gem “openproject-backlogs”, :git => “https://github.com/finnlabs/openproject-backlogs.git”, :branch => ‘stable’
Regards
Karsten
Is there a difference between
gem “acts_as_silent_list”, git: “https://github.com/finnlabs/acts_as_silent_list.git”, branch: ‘master’
and
gem “openproject-backlogs”, :git => “https://github.com/finnlabs/openproject-backlogs.git”, :branch => “stable”?
Once it is written like “git:” an the other with “:git =>”. An other difference: branch: ‘master’ with ’ and :branch => “stable” with ".
Karsten Gallinowski wrote:
OK, I tried exactly this one and got the same error. :(
That is very odd. Can you paste the version.rb or at least the version of the OpenProject core you are using? You can find this file in (starting from your RAILS_ROOT)
lib/open_project/version.rb
Regards
Karsten
Hi,
sure. Here we go. :)
#— encoding: UTF-8
#— copyright
#
#
#
#
#
#
#
require ‘rexml/document’
module OpenProject
module VERSION #:nodoc:
MAJOR = 3
MINOR = 1
PATCH = 0
TINY = PATCH # Redmine compat
# Used by semver to define the special version (if any).
# A special version “satify but have a lower precedence than the associated
# normal version”. So 2.0.0RC1 would be part of the 2.0.0 series but
# be considered to be an older version.
#
# 1.4.0 < 2.0.0RC1 < 2.0.0RC2 < 2.0.0 < 2.1.0
#
# This method may be overridden by third party code to provide vendor or
# distribution specific versions. They may or may not follow semver.org:
#
# 2.0.0debian-2
def self.special
‘pre1’
end
def self.revision
revision = `git rev-parse HEAD`
if revision.present?
revision.strip[0..8]
else
nil
end
end
REVISION = self.revision
ARRAY = [MAJOR, MINOR, PATCH, REVISION].compact
STRING = ARRAY.join(‘.’)
def self.to_a; ARRAY end
def self.to_s; STRING end
def self.to_semver
[MAJOR, MINOR, PATCH].join(‘.’) + special
end
end
end
Under Modules -> Administration -> Information I get the following Information:
OpenProject 3.1.0pre1 (Mysql2)
Kind regards,
Robert
Ok if you are using stable plugins you should use stable core too. Stable core is v3.0.14. So please update your openproject source to v3.0.14 (stable) and hopefully everything is going to work fine.
Hi,
OK I will do that. I tried the following procedure:
su openproject -c “bash -l”
cd ~/openproject
git checkout Gemfile.lock
git pull
bundle install
RAILS_ENV=“production” bundle exec rake db:migrate
RAILS_ENV=“production” bundle exec rake db:seed
RAILS_ENV=“production” bundle exec rake assets:precompile
While git checkout Gemfile.lock I got the following error:
fatal: Not a git repository (or any of the parent directories): .git
and /opt/openproject$ git pull
fatal: Not a git repository (or any of the parent directories): .git
Is that the right way to update? Any Idea how I can fix the git issue?
Thank you so much! Kind regards,
Robert
Hi,
OK I will do that. I tried the following procedure:
su openproject -c “bash -l”
cd ~/openproject
git checkout Gemfile.lock
git pull
bundle install
RAILS_ENV=“production” bundle exec rake db:migrate
RAILS_ENV=“production” bundle exec rake db:seed
RAILS_ENV=“production” bundle exec rake assets:precompile
While git checkout Gemfile.lock I got the following error:
fatal: Not a git repository (or any of the parent directories): .git
and /opt/openproject$ git pull
fatal: Not a git repository (or any of the parent directories): .git
Is that the right way to update? Any Idea how I can fix the git issue?
Thank you so much! Kind regards,
Robert
How in this Article >> http://stackoverflow.com/questions/4630704/receiving-fatal-not-a-git-repository-when-attempting-to-remote-add-a-git-repo << mentioned I tried git init but then I get the following error:
git checkout Gemfile.lock
error: pathspec ‘Gemfile.lock’ did not match any file(s) known to git
Sorry, I am really not into that git things and don´t know what to do.
How in this Article >> http://stackoverflow.com/questions/4630704/receiving-fatal-not-a-git-repository-when-attempting-to-remote-add-a-git-repo << mentioned I tried git init but then I get the following error:
git checkout Gemfile.lock
error: pathspec ‘Gemfile.lock’ did not match any file(s) known to git
Sorry, I am really not into that git things and don´t know what to do.