First time build gem Kernel.require
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- docker, docker-compose, postgres, rails, ruby
- Lĩnh vực
- backend, databases, devops, infrastructure
Hướng nghiên cứu
Tái hiện lần triển khai đầu tiên bằng docker-compose.yml và các giá trị .env đã nêu, sau đó bắt đầu với URI::InvalidURIError trong các log. Truy vết đường dẫn khởi động qua config/application.rb, cấu hình cơ sở dữ liệu ActiveRecord và bin/rails. Hoàn tất khi các container seeder, web và worker khởi động thành công mà không gặp lỗi đã nêu.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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>'`
- Ngôn ngữ chính
- Shell
- Star
- 347
- Fork
- 319
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của opf/openproject-docker-compose
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
opf/openproject-docker-compose#150 · 6 bình luận · 5 reaction ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
Tất cả issue của opf/openproject-docker-compose
Issue tương tự
-
Broken link to Authors' GuideĐang mởbug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
chapel-lang/chapel-vscode#144 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
tsukumogami/tsuku#2804 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
obra/superpowers#2651 ·
Maintainer thường phản hồi trong vòng 1 ngày