Repository navigation
Open
Description
Hey,
I followed the instructions, but the seeder always crashes:
Executing database migrations...
seeder-1 | /app/lib/tasks/database.rake:84:in 'block (3 levels) in <top (required)>':
seeder-1 | ---------------------------------------------------
seeder-1 | DATABASE DEPRECATION WARNING
seeder-1 |
seeder-1 | OpenProject versions higher than 16.0 will require at least PostgreSQL 17.
seeder-1 | You can anticipate this upgrade by updating your database installation by following the guide at https://www.openproject.org/docs/installation-and-operations/misc/migration-to-postgresql17/
seeder-1 | ---------------------------------------------------
seeder-1 | (StructuredWarnings::StandardWarning)
seeder-1 | Executing database seed...
seeder-1 | rake aborted!
seeder-1 | NameError: uninitialized constant Queries::Projects::Filters::NameAndIdentifierFilter (NameError)
seeder-1 |
seeder-1 | filter Filters::NameAndIdentifierFilter
seeder-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^
seeder-1 | /app/app/models/queries/projects.rb:46:in 'block in <module:Projects>'
seeder-1 | /app/app/models/queries/register.rb:72:in 'BasicObject#instance_exec'
seeder-1 | /app/app/models/queries/register.rb:72:in 'Queries::Register.register'
seeder-1 | /app/app/models/queries/projects.rb:32:in '<module:Projects>'
seeder-1 | /app/app/models/queries/projects.rb:31:in '<top (required)>'
seeder-1 | /app/vendor/bundle/ruby/3.4.0/gems/zeitwerk-2.7.3/lib/zeitwerk/core_ext/kernel.rb:26:in 'Kernel#require'
seeder-1 | /app/modules/budgets/lib/budgets/engine.rb:104:in 'block (2 levels) in <class:Engine>'
seeder-1 | /app/app/models/queries/register.rb:72:in 'BasicObject#instance_exec'
seeder-1 | /app/app/models/queries/register.rb:72:in 'Queries::Register.register'
seeder-1 | /app/modules/budgets/lib/budgets/engine.rb:103:in 'block in <class:Engine>'
seeder-1 | /app/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.3/lib/active_support/callbacks.rb:406:in 'BasicObject#instance_exec'
seeder-1 | /app/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.3/lib/active_support/callbacks.rb:406:in 'block in ActiveSupport::Callbacks::CallTemplate::InstanceExec0#make_lambda'
seeder-1 | /app/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.3/lib/active_support/callbacks.rb:178:in 'block in ActiveSupport::Callbacks::Filters::Before#call'
seeder-1 | /app/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.3/lib/active_support/callbacks.rb:668:in 'block (2 levels) in ActiveSupport::Callbacks::CallbackChain#default_terminator'
seeder-1 | /app/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.3/lib/active_support/callbacks.rb:667:in 'Kernel#catch'
seeder-1 | /app/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.3/lib/active_support/callbacks.rb:667:in 'block in ActiveSupport::Callbacks::CallbackChain#default_terminator'
seeder-1 | /app/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.3/lib/active_support/callbacks.rb:179:in 'ActiveSupport::Callbacks::Filters::Before#call'
seeder-1 | /app/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.3/lib/active_support/callbacks.rb:559:in 'block in ActiveSupport::Callbacks::CallbackSequence#invoke_before'
seeder-1 | /app/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.3/lib/active_support/callbacks.rb:559:in 'Array#each'
seeder-1 | /app/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.3/lib/active_support/callbacks.rb:559:in 'ActiveSupport::Callbacks::CallbackSequence#invoke_before'
seeder-1 | /app/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.3/lib/active_support/callbacks.rb:108:in 'ActiveSupport::Callbacks#run_callbacks'
seeder-1 | /app/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.3/lib/active_support/reloader.rb:96:in 'ActiveSupport::Reloader.prepare!'
seeder-1 | /app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.3/lib/rails/application/finisher.rb:73:in 'block in <module:Finisher>'
seeder-1 | /app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.3/lib/rails/initializable.rb:32:in 'BasicObject#instance_exec'
seeder-1 | /app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.3/lib/rails/initializable.rb:32:in 'Rails::Initializable::Initializer#run'
seeder-1 | /app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.3/lib/rails/initializable.rb:61:in 'block in Rails::Initializable#run_initializers'
seeder-1 | /app/vendor/bundle/ruby/3.4.0/gems/tsort-0.2.0/lib/tsort.rb:231:in 'block in TSort.tsort_each'
seeder-1 | /app/vendor/bundle/ruby/3.4.0/gems/tsort-0.2.0/lib/tsort.rb:353:in 'block (2 levels) in TSort.each_strongly_connected_component'
seeder-1 | /app/vendor/bundle/ruby/3.4.0/gems/tsort-0.2.0/lib/tsort.rb:434:in 'TSort.each_strongly_connected_component_from'
seeder-1 | /app/vendor/bundle/ruby/3.4.0/gems/tsort-0.2.0/lib/tsort.rb:352:in 'block in TSort.each_strongly_connected_component'
seeder-1 | /app/vendor/bundle/ruby/3.4.0/gems/tsort-0.2.0/lib/tsort.rb:350:in 'Rails::Initializable::Collection#each'
seeder-1 | /app/vendor/bundle/ruby/3.4.0/gems/tsort-0.2.0/lib/tsort.rb:350:in 'Method#call'
seeder-1 | /app/vendor/bundle/ruby/3.4.0/gems/tsort-0.2.0/lib/tsort.rb:350:in 'TSort.each_strongly_connected_component'
seeder-1 | /app/vendor/bundle/ruby/3.4.0/gems/tsort-0.2.0/lib/tsort.rb:229:in 'TSort.tsort_each'
seeder-1 | /app/vendor/bundle/ruby/3.4.0/gems/tsort-0.2.0/lib/tsort.rb:208:in 'TSort#tsort_each'
seeder-1 | /app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.3/lib/rails/initializable.rb:60:in 'Rails::Initializable#run_initializers'
seeder-1 | /app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.3/lib/rails/application.rb:444:in 'Rails::Application#initialize!'
seeder-1 | /app/config/environment.rb:35:in '<top (required)>'
seeder-1 | /app/vendor/bundle/ruby/3.4.0/gems/zeitwerk-2.7.3/lib/zeitwerk/core_ext/kernel.rb:34:in 'Kernel#require'
seeder-1 | /app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.3/lib/rails/application.rb:420:in 'Rails::Application#require_environment!'
seeder-1 | /app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.3/lib/rails/application.rb:571:in 'block in Rails::Application#run_tasks_blocks'
seeder-1 | /app/vendor/bundle/ruby/3.4.0/gems/rake-13.3.0/exe/rake:27:in '<top (required)>'
seeder-1 | /usr/local/bundle/gems/bundler-2.7.2/lib/bundler/cli/exec.rb:59:in 'Kernel.load'
seeder-1 | /usr/local/bundle/gems/bundler-2.7.2/lib/bundler/cli/exec.rb:59:in 'Bundler::CLI::Exec#kernel_load'
seeder-1 | /usr/local/bundle/gems/bundler-2.7.2/lib/bundler/cli/exec.rb:23:in 'Bundler::CLI::Exec#run'
seeder-1 | /usr/local/bundle/gems/bundler-2.7.2/lib/bundler/cli.rb:456:in 'Bundler::CLI#exec'
seeder-1 | /usr/local/bundle/gems/bundler-2.7.2/lib/bundler/vendor/thor/lib/thor/command.rb:28:in 'Bundler::Thor::Command#run'
seeder-1 | /usr/local/bundle/gems/bundler-2.7.2/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in 'Bundler::Thor::Invocation#invoke_command'
seeder-1 | /usr/local/bundle/gems/bundler-2.7.2/lib/bundler/vendor/thor/lib/thor.rb:538:in 'Bundler::Thor.dispatch'
seeder-1 | /usr/local/bundle/gems/bundler-2.7.2/lib/bundler/cli.rb:35:in 'Bundler::CLI.dispatch'
seeder-1 | /usr/local/bundle/gems/bundler-2.7.2/lib/bundler/vendor/thor/lib/thor/base.rb:584:in 'Bundler::Thor::Base::ClassMethods#start'
seeder-1 | /usr/local/bundle/gems/bundler-2.7.2/lib/bundler/cli.rb:29:in 'Bundler::CLI.start'
seeder-1 | /usr/local/bundle/gems/bundler-2.7.2/exe/bundle:28:in 'block in <top (required)>'
seeder-1 | /usr/local/bundle/gems/bundler-2.7.2/lib/bundler/friendly_errors.rb:118:in 'Bundler.with_friendly_errors'
seeder-1 | /usr/local/bundle/gems/bundler-2.7.2/exe/bundle:20:in '<top (required)>'
seeder-1 | /usr/local/bundle/bin/bundle:25:in 'Kernel#load'
seeder-1 | /usr/local/bundle/bin/bundle:25:in '<main>'
seeder-1 | Tasks: TOP => db:seed => db:load_config => environment
seeder-1 | (See full trace by running task with --trace)
seeder-1 exited with code 1 (restarting)
Metadata
Metadata
Assignees
Labels
No labels
Activity
Julian-Dumitrascu commentedon Dec 13, 2025
And the team seems to not give a damn.
Why should I?
Maybe I've tried enough already.
anghenfil commentedon Dec 13, 2025
At this point, I'm not sure if this can be called an open source project. This is their recommended deployment way, and it still fails since months. If your open source project doesn't work self-hosted, it's not an open source project :(
cbliard commentedon Dec 15, 2025
Hi @Julian-Dumitrascu and @anghenfil,
I tried following the instructions from the "Quick start" section of the README.
I copied the
.env.examplefile to.envand just changed the PGDATA and OPDATA paths like this:And I was able to start it.
Here is the log of me starting it:
You can see it failed twice for me:
Your issue seems different.
Could you be more specific and please share the instructions you used and the
.envcontent?Also could you please share the environment on which you're running (OS, dsitribution, version, anything useful, etc.)
MarkinBrisbane commentedon Jan 15, 2026
With the release of 17-rc, I decided to have a fresh look at OpenProject. I had two installation scenarios:
Neither the docker run or docker compose options worked as per the documentation, I ended up with about a 30 minute conversation with claude.ai to get them working. Much of the challenge was around hostname and how strict the hostname setting is for the server and the client accessing it.
This is the results:
docker desktop - docker run importantly using http://localhost:8080 and waiting 2-5 minutes for the database stuff to be setup
docker run -d -p 8080:80 --name openproject -e OPENPROJECT_SECRET_KEY_BASE=secret -e OPENPROJECT_HOST__NAME=localhost -e OPENPROJECT_HTTPS=false -e OPENPROJECT_DEFAULT__LANGUAGE=en -v openproject_data:/var/openproject/assets openproject/openproject:17-rcdocker compose on a lab host with internal ip of 192.168.1.240 using http://192.168.1.240:18080 and waiting 2-5 minutes for the database stuff to be setup
cbliard commentedon Jan 15, 2026
Thank you for taking the time to test it again. I feel sorry that the process was not smoother.
I tried the command you provided and it seemed to work well.
One discrepancy I saw is that it's on
localhost:8080, but the configured hostname islocalhost. So when the app needs to generate links, it generates them withhttps://localhost/...which are dead links because it should belocalhost:8080.Here is a screenshot where I hover a link from the "getting started" text. The destination is visible in the bottom left corner.
I then also tried the command we document in our all-in-one container:
I only removed the
-itpart from the provided command. Also I usedopenproject/openproject:17and notopenproject/openproject:17-rc.It worked well too.
I know the app can be picky about the hostname value but I'm not sure to get what are the problems you encountered. Can you elaborate about the issues you had with it?
I left the docker compose part for later. I'll try it once this all-in-one container is done.