First time build gem Kernel.require
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- docker, docker-compose, postgres, rails, ruby
- Domain
- backend, databases, devops, infrastructure
Research direction
Reproduce the first-time deployment using docker-compose.yml and the stated .env values, then start with the URI::InvalidURIError in the logs. Trace the startup path through config/application.rb, ActiveRecord database configuration, and bin/rails. Done means the seeder, web, and worker containers start successfully without the reported error.
Written by the indexing model from the issue text.
Description
Deploying Openproject for the first time via docker. Followed the instructions but updated the following in the docker compose file:
docker-compose.yml
db:
image: postgres:16
.env
TAG=16-slim
OPENPROJECT_HTTPS=true
PORT=8089
POSTGRES_PASSWORD=(secret)
I can see I am hitting the proxy for the docker setup with no issues. Then I see seeder, web and worker try to start but then error out. below is the only error I have found and I am seeing it in the worker and web containers (see below for log).
` from /app/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.2/lib/active_support/concern.rb:138:in 'ActiveSupport::Concern#append_features'
from /app/vendor/bundle/ruby/3.4.0/gems/activerecord-8.0.2/lib/active_record/base.rb:299:in 'Module#include'
from /app/vendor/bundle/ruby/3.4.0/gems/activerecord-8.0.2/lib/active_record/base.rb:299:in '<class:Base>'
from /app/vendor/bundle/ruby/3.4.0/gems/activerecord-8.0.2/lib/active_record/base.rb:282:in '<module:ActiveRecord>'
from /app/vendor/bundle/ruby/3.4.0/gems/activerecord-8.0.2/lib/active_record/base.rb:15:in '<top (required)>'
from /usr/local/lib/ruby/3.4.0/bundled_gems.rb:82:in 'Kernel.require'
from /usr/local/lib/ruby/3.4.0/bundled_gems.rb:82:in 'block (2 levels) in Kernel#replace_require'
from /app/vendor/bundle/ruby/3.4.0/gems/zeitwerk-2.7.2/lib/zeitwerk/core_ext/kernel.rb:34:in 'Kernel#require'
from /app/vendor/bundle/ruby/3.4.0/gems/stringex-2.8.6/lib/stringex/acts_as_url/adapter/active_record.rb:18:in 'Stringex::ActsAsUrl::Adapter::ActiveRecord.orm_class'
from /app/vendor/bundle/ruby/3.4.0/gems/stringex-2.8.6/lib/stringex/acts_as_url/adapter/base.rb:52:in 'Stringex::ActsAsUrl::Adapter::Base.loadable?'
from /app/vendor/bundle/ruby/3.4.0/gems/stringex-2.8.6/lib/stringex/acts_as_url/adapter.rb:17:in 'block in Stringex::ActsAsUrl::Adapter.load_available'
from /app/vendor/bundle/ruby/3.4.0/gems/stringex-2.8.6/lib/stringex/acts_as_url/adapter.rb:15:in 'Array#each'
from /app/vendor/bundle/ruby/3.4.0/gems/stringex-2.8.6/lib/stringex/acts_as_url/adapter.rb:15:in 'Stringex::ActsAsUrl::Adapter.load_available'
from /app/vendor/bundle/ruby/3.4.0/gems/stringex-2.8.6/lib/stringex.rb:13:in '<top (required)>'
from <internal:/usr/local/lib/ruby/3.4.0/rubygems/core_ext/kernel_require.rb>:37:in 'Kernel#require'
from <internal:/usr/local/lib/ruby/3.4.0/rubygems/core_ext/kernel_require.rb>:37:in 'Kernel#require'
from /usr/local/lib/ruby/3.4.0/bundled_gems.rb:82:in 'block (2 levels) in Kernel.replace_require'
from /app/vendor/bundle/ruby/3.4.0/gems/zeitwerk-2.7.2/lib/zeitwerk/core_ext/kernel.rb:34:in 'Kernel.require'
from /app/vendor/bundle/ruby/3.4.0/gems/bundler-2.6.4/lib/bundler/runtime.rb:63:in 'block (2 levels) in Bundler::Runtime#require'
from /app/vendor/bundle/ruby/3.4.0/gems/bundler-2.6.4/lib/bundler/runtime.rb:58:in 'Array#each'
from /app/vendor/bundle/ruby/3.4.0/gems/bundler-2.6.4/lib/bundler/runtime.rb:58:in 'block in Bundler::Runtime#require'
from /app/vendor/bundle/ruby/3.4.0/gems/bundler-2.6.4/lib/bundler/runtime.rb:52:in 'Array#each'
from /app/vendor/bundle/ruby/3.4.0/gems/bundler-2.6.4/lib/bundler/runtime.rb:52:in 'Bundler::Runtime#require'
from /app/vendor/bundle/ruby/3.4.0/gems/bundler-2.6.4/lib/bundler.rb:215:in 'Bundler.require'
from /app/config/application.rb:40:in '<top (required)>'
from /usr/local/lib/ruby/3.4.0/bundled_gems.rb:82:in 'Kernel.require'
from /usr/local/lib/ruby/3.4.0/bundled_gems.rb:82:in 'block (2 levels) in Kernel#replace_require'
from /app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.2/lib/rails/commands/server/server_command.rb:139:in 'block in Rails::Command::ServerCommand#perform'
from <internal:kernel>:91:in 'Kernel#tap'
from /app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.2/lib/rails/commands/server/server_command.rb:136:in 'Rails::Command::ServerCommand#perform'
from /app/vendor/bundle/ruby/3.4.0/gems/thor-1.3.2/lib/thor/command.rb:28:in 'Thor::Command#run'
from /app/vendor/bundle/ruby/3.4.0/gems/thor-1.3.2/lib/thor/invocation.rb:127:in 'Thor::Invocation#invoke_command'
from /app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.2/lib/rails/command/base.rb:178:in 'Rails::Command::Base#invoke_command'
from /app/vendor/bundle/ruby/3.4.0/gems/thor-1.3.2/lib/thor.rb:538:in 'Thor.dispatch'
from /app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.2/lib/rails/command/base.rb:73:in 'Rails::Command::Base.perform'
from /app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.2/lib/rails/command.rb:65:in 'block in Rails::Command.invoke'
from /app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.2/lib/rails/command.rb:143:in 'Rails::Command.with_argv'
from /app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.2/lib/rails/command.rb:63:in 'Rails::Command.invoke'
from /app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.2/lib/rails/commands.rb:18:in '<top (required)>'
from /usr/local/lib/ruby/3.4.0/bundled_gems.rb:82:in 'Kernel.require'
from /usr/local/lib/ruby/3.4.0/bundled_gems.rb:82:in 'block (2 levels) in Kernel#replace_require'
from bin/rails:4:in '<main>'
/app/vendor/bundle/ruby/3.4.0/gems/uri-1.0.3/lib/uri/generic.rb:207:in 'URI::Generic#initialize': the scheme postgres does not accept registry part: postgres:rzu-wgb5efa9uep2HVZ (or bad hostname?) (URI::InvalidURIError)
from /app/vendor/bundle/ruby/3.4.0/gems/uri-1.0.3/lib/uri/common.rb:159:in 'Class#new'
from /app/vendor/bundle/ruby/3.4.0/gems/uri-1.0.3/lib/uri/common.rb:159:in 'URI.for'
from /app/vendor/bundle/ruby/3.4.0/gems/uri-1.0.3/lib/uri/rfc2396_parser.rb:210:in 'URI::RFC2396_Parser#parse'
from /app/vendor/bundle/ruby/3.4.0/gems/activerecord-8.0.2/lib/active_record/database_configurations/connection_url_resolver.rb:27:in 'ActiveRecord::DatabaseConfigurations::ConnectionUrlResolver#initialize'
from /app/vendor/bundle/ruby/3.4.0/gems/activerecord-8.0.2/lib/active_record/database_configurations/url_config.rb:73:in 'Class#new'
from /app/vendor/bundle/ruby/3.4.0/gems/activerecord-8.0.2/lib/active_record/database_configurations/url_config.rb:73:in 'ActiveRecord::DatabaseConfigurations::UrlConfig#build_url_hash'
from /app/vendor/bundle/ruby/3.4.0/gems/activerecord-8.0.2/lib/active_record/database_configurations/url_config.rb:44:in 'ActiveRecord::DatabaseConfigurations::UrlConfig#initialize'
from /app/vendor/bundle/ruby/3.4.0/gems/activerecord-8.0.2/lib/active_record/database_configurations.rb:299:in 'Class#new'
from /app/vendor/bundle/ruby/3.4.0/gems/activerecord-8.0.2/lib/active_record/database_configurations.rb:299:in 'ActiveRecord::DatabaseConfigurations#environment_url_config'
from /app/vendor/bundle/ruby/3.4.0/gems/activerecord-8.0.2/lib/active_record/database_configurations.rb:213:in 'ActiveRecord::DatabaseConfigurations#build_configs'
from /app/vendor/bundle/ruby/3.4.0/gems/activerecord-8.0.2/lib/active_record/database_configurations.rb:74:in 'ActiveRecord::DatabaseConfigurations#initialize'
from /app/vendor/bundle/ruby/3.4.0/gems/activerecord-8.0.2/lib/active_record/core.rb:72:in 'Class#new'
from /app/vendor/bundle/ruby/3.4.0/gems/activerecord-8.0.2/lib/active_record/core.rb:72:in 'ActiveRecord::Base.configurations='
from /app/vendor/bundle/ruby/3.4.0/gems/activerecord-8.0.2/lib/active_record/core.rb:74:in 'block in <module:Core>'
from /app/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.2/lib/active_support/concern.rb:138:in 'Module#class_eval'
from /app/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.2/lib/active_support/concern.rb:138:in 'ActiveSupport::Concern#append_features'
from /app/vendor/bundle/ruby/3.4.0/gems/activerecord-8.0.2/lib/active_record/base.rb:299:in 'Module#include'
from /app/vendor/bundle/ruby/3.4.0/gems/activerecord-8.0.2/lib/active_record/base.rb:299:in '<class:Base>'
from /app/vendor/bundle/ruby/3.4.0/gems/activerecord-8.0.2/lib/active_record/base.rb:282:in '<module:ActiveRecord>'
from /app/vendor/bundle/ruby/3.4.0/gems/activerecord-8.0.2/lib/active_record/base.rb:15:in '<top (required)>'
from /usr/local/lib/ruby/3.4.0/bundled_gems.rb:82:in 'Kernel.require'
from /usr/local/lib/ruby/3.4.0/bundled_gems.rb:82:in 'block (2 levels) in Kernel#replace_require'
from /app/vendor/bundle/ruby/3.4.0/gems/zeitwerk-2.7.2/lib/zeitwerk/core_ext/kernel.rb:34:in 'Kernel#require'
from /app/vendor/bundle/ruby/3.4.0/gems/stringex-2.8.6/lib/stringex/acts_as_url/adapter/active_record.rb:18:in 'Stringex::ActsAsUrl::Adapter::ActiveRecord.orm_class'
from /app/vendor/bundle/ruby/3.4.0/gems/stringex-2.8.6/lib/stringex/acts_as_url/adapter/base.rb:52:in 'Stringex::ActsAsUrl::Adapter::Base.loadable?'
from /app/vendor/bundle/ruby/3.4.0/gems/stringex-2.8.6/lib/stringex/acts_as_url/adapter.rb:17:in 'block in Stringex::ActsAsUrl::Adapter.load_available'
from /app/vendor/bundle/ruby/3.4.0/gems/stringex-2.8.6/lib/stringex/acts_as_url/adapter.rb:15:in 'Array#each'
from /app/vendor/bundle/ruby/3.4.0/gems/stringex-2.8.6/lib/stringex/acts_as_url/adapter.rb:15:in 'Stringex::ActsAsUrl::Adapter.load_available'
from /app/vendor/bundle/ruby/3.4.0/gems/stringex-2.8.6/lib/stringex.rb:13:in '<top (required)>'
from <internal:/usr/local/lib/ruby/3.4.0/rubygems/core_ext/kernel_require.rb>:37:in 'Kernel#require'
from <internal:/usr/local/lib/ruby/3.4.0/rubygems/core_ext/kernel_require.rb>:37:in 'Kernel#require'
from /usr/local/lib/ruby/3.4.0/bundled_gems.rb:82:in 'block (2 levels) in Kernel.replace_require'
from /app/vendor/bundle/ruby/3.4.0/gems/zeitwerk-2.7.2/lib/zeitwerk/core_ext/kernel.rb:34:in 'Kernel.require'
from /app/vendor/bundle/ruby/3.4.0/gems/bundler-2.6.4/lib/bundler/runtime.rb:63:in 'block (2 levels) in Bundler::Runtime#require'
from /app/vendor/bundle/ruby/3.4.0/gems/bundler-2.6.4/lib/bundler/runtime.rb:58:in 'Array#each'
from /app/vendor/bundle/ruby/3.4.0/gems/bundler-2.6.4/lib/bundler/runtime.rb:58:in 'block in Bundler::Runtime#require'
from /app/vendor/bundle/ruby/3.4.0/gems/bundler-2.6.4/lib/bundler/runtime.rb:52:in 'Array#each'
from /app/vendor/bundle/ruby/3.4.0/gems/bundler-2.6.4/lib/bundler/runtime.rb:52:in 'Bundler::Runtime#require'
from /app/vendor/bundle/ruby/3.4.0/gems/bundler-2.6.4/lib/bundler.rb:215:in 'Bundler.require'
from /app/config/application.rb:40:in '<top (required)>'
from /usr/local/lib/ruby/3.4.0/bundled_gems.rb:82:in 'Kernel.require'
from /usr/local/lib/ruby/3.4.0/bundled_gems.rb:82:in 'block (2 levels) in Kernel#replace_require'
from /app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.2/lib/rails/commands/server/server_command.rb:139:in 'block in Rails::Command::ServerCommand#perform'
from <internal:kernel>:91:in 'Kernel#tap'
from /app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.2/lib/rails/commands/server/server_command.rb:136:in 'Rails::Command::ServerCommand#perform'
from /app/vendor/bundle/ruby/3.4.0/gems/thor-1.3.2/lib/thor/command.rb:28:in 'Thor::Command#run'
from /app/vendor/bundle/ruby/3.4.0/gems/thor-1.3.2/lib/thor/invocation.rb:127:in 'Thor::Invocation#invoke_command'
from /app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.2/lib/rails/command/base.rb:178:in 'Rails::Command::Base#invoke_command'
from /app/vendor/bundle/ruby/3.4.0/gems/thor-1.3.2/lib/thor.rb:538:in 'Thor.dispatch'
from /app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.2/lib/rails/command/base.rb:73:in 'Rails::Command::Base.perform'
from /app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.2/lib/rails/command.rb:65:in 'block in Rails::Command.invoke'
from /app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.2/lib/rails/command.rb:143:in 'Rails::Command.with_argv'
from /app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.2/lib/rails/command.rb:63:in 'Rails::Command.invoke'
from /app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.2/lib/rails/commands.rb:18:in '<top (required)>'
from /usr/local/lib/ruby/3.4.0/bundled_gems.rb:82:in 'Kernel.require'
from /usr/local/lib/ruby/3.4.0/bundled_gems.rb:82:in 'block (2 levels) in Kernel#replace_require'
from bin/rails:4:in '<main>'`
- Dominant language
- Shell
- Stars
- 347
- Forks
- 319
- PR merge metrics
- No merged PRs in 30d
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from opf/openproject-docker-compose
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
opf/openproject-docker-compose#165 · 1 reaction ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
opf/openproject-docker-compose#150 · 6 comments · 5 reactions ·
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
All issues in opf/openproject-docker-compose
Similar issues
-
severity: low
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
luainkernel/lunatik#2221 ·
Maintainers usually reply within 1 day
-
priority middle
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
KATO-Hiro/AtCoderClans#12945 ·
Maintainers usually reply within 1 day
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
mattpocock/skills#1360 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Niko1221/Strata#4779 · 2 comments ·
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
community-scripts/ProxmoxVE#18332 ·
Maintainers usually reply within 1 day