Issue installing/starting open project
-
I'm having an issue installing and starting Open project. It seems to install fine but when it goes to start it just seems stuck in a loop of "migrating database" Here are the logs where it just continues to loop
Is this broken?=> Migrate database
Mar 27 14:49:51 rake aborted!
Mar 27 14:49:51 NoMethodError: undefined methodpatch_gem_version' for OpenProject::Patches:Module Mar 27 14:49:51 /app/code/lib/open_project/patches/declarative_option.rb:44:in
<top (required)>'
Mar 27 14:49:51 /app/code/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.4.2/lib/zeitwerk/kernel.rb:34:inrequire' Mar 27 14:49:51 /app/code/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.4.2/lib/zeitwerk/kernel.rb:34:in
require'
Mar 27 14:49:51 /app/code/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:332:inblock in require' Mar 27 14:49:51 /app/code/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:299:in
load_dependency'
Mar 27 14:49:51 /app/code/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:332:inrequire' Mar 27 14:49:51 /app/code/config/initializers/10-load_patches.rb:35:in
block in <top (required)>'
Mar 27 14:49:51 /app/code/config/initializers/10-load_patches.rb:34:ineach' Mar 27 14:49:51 /app/code/config/initializers/10-load_patches.rb:34:in
<top (required)>'
Mar 27 14:49:51 /app/code/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:326:inload' Mar 27 14:49:51 /app/code/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:326:in
block in load'
Mar 27 14:49:51 /app/code/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:299:inload_dependency' Mar 27 14:49:51 /app/code/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:326:in
load'
Mar 27 14:49:51 /app/code/vendor/bundle/ruby/2.7.0/gems/railties-6.1.2.1/lib/rails/engine.rb:681:inblock in load_config_initializer' Mar 27 14:49:51 /app/code/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.2.1/lib/active_support/notifications.rb:205:in
instrument'
Mar 27 14:49:51 /app/code/vendor/bundle/ruby/2.7.0/gems/railties-6.1.2.1/lib/rails/engine.rb:680:inload_config_initializer' Mar 27 14:49:51 /app/code/vendor/bundle/ruby/2.7.0/gems/railties-6.1.2.1/lib/rails/engine.rb:634:in
block (2 levels) in class:Engine'
Mar 27 14:49:51 /app/code/vendor/bundle/ruby/2.7.0/gems/railties-6.1.2.1/lib/rails/engine.rb:633:ineach' Mar 27 14:49:51 /app/code/vendor/bundle/ruby/2.7.0/gems/railties-6.1.2.1/lib/rails/engine.rb:633:in
block in class:Engine'
Mar 27 14:49:51 /app/code/vendor/bundle/ruby/2.7.0/gems/railties-6.1.2.1/lib/rails/initializable.rb:32:ininstance_exec' Mar 27 14:49:51 /app/code/vendor/bundle/ruby/2.7.0/gems/railties-6.1.2.1/lib/rails/initializable.rb:32:in
run'
Mar 27 14:49:51 /app/code/vendor/bundle/ruby/2.7.0/gems/railties-6.1.2.1/lib/rails/initializable.rb:61:inblock in run_initializers' Mar 27 14:49:51 /app/code/vendor/bundle/ruby/2.7.0/gems/railties-6.1.2.1/lib/rails/initializable.rb:50:in
each'
Mar 27 14:49:51 /app/code/vendor/bundle/ruby/2.7.0/gems/railties-6.1.2.1/lib/rails/initializable.rb:50:intsort_each_child' Mar 27 14:49:51 /app/code/vendor/bundle/ruby/2.7.0/gems/railties-6.1.2.1/lib/rails/initializable.rb:60:in
run_initializers'
Mar 27 14:49:51 /app/code/vendor/bundle/ruby/2.7.0/gems/railties-6.1.2.1/lib/rails/application.rb:384:ininitialize!' Mar 27 14:49:51 /app/code/vendor/bundle/ruby/2.7.0/gems/railties-6.1.2.1/lib/rails/railtie.rb:207:in
public_send'
Mar 27 14:49:51 /app/code/vendor/bundle/ruby/2.7.0/gems/railties-6.1.2.1/lib/rails/railtie.rb:207:inmethod_missing' Mar 27 14:49:51 /app/code/config/environment.rb:34:in
<top (required)>'
Mar 27 14:49:51 /app/code/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.4.2/lib/zeitwerk/kernel.rb:34:inrequire' Mar 27 14:49:51 /app/code/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.4.2/lib/zeitwerk/kernel.rb:34:in
require'
Mar 27 14:49:51 /app/code/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:332:inblock in require' Mar 27 14:49:51 /app/code/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:299:in
load_dependency'
Mar 27 14:49:51 /app/code/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:332:inrequire' Mar 27 14:49:51 /app/code/vendor/bundle/ruby/2.7.0/gems/railties-6.1.2.1/lib/rails/application.rb:360:in
require_environment!'
Mar 27 14:49:51 /app/code/vendor/bundle/ruby/2.7.0/gems/railties-6.1.2.1/lib/rails/application.rb:526:inblock in run_tasks_blocks' Mar 27 14:49:51 Tasks: TOP => db:migrate => db:load_config => environment Mar 27 14:49:51 (See full trace by running task with --trace) Mar 27 14:49:52 => Setup database configuration Mar 27 14:49:52 => Setup mail configuration Mar 27 14:49:52 => Setting cookie secret Mar 27 14:49:57 /app/code/vendor/bundle/ruby/2.7.0/gems/rubytree-1.0.0/lib/tree/utils/camel_case_method_handler.rb:61:in
protected': calling protected without arguments inside a method may not have the intended effect (StructuredWarnings::BuiltInWarning)
Mar 27 14:50:04 DEPRECATION WARNING: [] is deprecated and will be removed from Rails 6.2 (Use configs_for) (called from <top (required)> at /app/code/config/application.rb:64)
Mar 27 14:50:04 => Migrate database -
@mastadamus since it installs fine here, I wonder if there is some race during startup. Generally OpenProject needs quite some resources. Have you tried to simply reinstall the app and check if this issue can be reproduced?