dawarich icon indicating copy to clipboard operation
dawarich copied to clipboard

First installation using docker fails

Open asitemade4u opened this issue 1 month ago • 9 comments

OS & Hardware Linux Mint 22.2

Version 0.34.2

Describe the bug Using the docker-compose.yml file provided, and the Linux Terminal, on a newly installed docker, the first installation does not succeed: dawarich_app is considered in an unhealthy state and the install fails. (I have attached the logs below; the error occurs in the Rail environment)

To Reproduce Steps to reproduce the behavior:

  1. Download the content of the repository
  2. Unzip it
  3. cd to the docker subfolder
  4. execute docker compose --verbose up in order to get more accurate debugging information
  5. See error

Expected behavior Being able to install and launch Dawarich on a fresh docker installation.

Logs dawarich_app | => Booting Puma dawarich_app | => Rails 8.0.3 application starting in development dawarich_app | => Run bin/rails server --help for more startup options dawarich_app | [dotenv] Set OBJC_DISABLE_INITIALIZE_FORK_SAFETY dawarich_app | [dotenv] Loaded .env.development dawarich_app | [67] Puma starting in cluster mode... dawarich_app | [67] * Puma version: 7.1.0 ("Neon Witch") dawarich_app | [67] * Ruby version: ruby 3.4.6 (2025-09-16 revision dbd83256b1) +YJIT +PRISM [x86_64-linux] dawarich_app | [67] * Min threads: 5 dawarich_app | [67] * Max threads: 5 dawarich_app | [67] * Environment: development dawarich_app | [67] * Master PID: 67 dawarich_app | [67] * Workers: 2 dawarich_app | [67] * Restarts: (✔) hot (✖) phased (✖) refork dawarich_app | [67] * Preloading application dawarich_app | Exiting dawarich_app | bundler: failed to load command: bin/rails (bin/rails) dawarich_app | /var/app/vendor/bundle/ruby/3.4.0/gems/puma-7.1.0/lib/puma/binder.rb:344:in 'TCPServer#initialize': Address family not supported by protocol - socket(2) for "::" port 3000 (Errno::EAFNOSUPPORT) dawarich_app | from /var/app/vendor/bundle/ruby/3.4.0/gems/puma-7.1.0/lib/puma/binder.rb:344:in 'IO.new' dawarich_app | from /var/app/vendor/bundle/ruby/3.4.0/gems/puma-7.1.0/lib/puma/binder.rb:344:in 'Puma::Binder#add_tcp_listener' dawarich_app | from /var/app/vendor/bundle/ruby/3.4.0/gems/puma-7.1.0/lib/puma/binder.rb:173:in 'block in Puma::Binder#parse' dawarich_app | from /var/app/vendor/bundle/ruby/3.4.0/gems/puma-7.1.0/lib/puma/binder.rb:156:in 'Array#each' dawarich_app | from /var/app/vendor/bundle/ruby/3.4.0/gems/puma-7.1.0/lib/puma/binder.rb:156:in 'Puma::Binder#parse' dawarich_app | from /var/app/vendor/bundle/ruby/3.4.0/gems/puma-7.1.0/lib/puma/runner.rb:166:in 'Puma::Runner#load_and_bind' dawarich_app | from /var/app/vendor/bundle/ruby/3.4.0/gems/puma-7.1.0/lib/puma/cluster.rb:381:in 'Puma::Cluster#run' dawarich_app | from /var/app/vendor/bundle/ruby/3.4.0/gems/puma-7.1.0/lib/puma/launcher.rb:207:in 'Puma::Launcher#run' dawarich_app | from /var/app/vendor/bundle/ruby/3.4.0/gems/puma-7.1.0/lib/rack/handler/puma.rb:79:in 'Puma::RackHandler#run' dawarich_app | from /var/app/vendor/bundle/ruby/3.4.0/gems/rackup-2.2.1/lib/rackup/server.rb:341:in 'Rackup::Server#start' dawarich_app | from /var/app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.3/lib/rails/commands/server/server_command.rb:38:in 'Rails::Server#start' dawarich_app | from /var/app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.3/lib/rails/commands/server/server_command.rb:145:in 'block in Rails::Command::ServerCommand#perform' dawarich_app | from <internal:kernel>:91:in 'Kernel#tap' dawarich_app | from /var/app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.3/lib/rails/commands/server/server_command.rb:136:in 'Rails::Command::ServerCommand#perform' dawarich_app | from /var/app/vendor/bundle/ruby/3.4.0/gems/thor-1.4.0/lib/thor/command.rb:28:in 'Thor::Command#run' dawarich_app | from /var/app/vendor/bundle/ruby/3.4.0/gems/thor-1.4.0/lib/thor/invocation.rb:127:in 'Thor::Invocation#invoke_command' dawarich_app | from /var/app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.3/lib/rails/command/base.rb:178:in 'Rails::Command::Base#invoke_command' dawarich_app | from /var/app/vendor/bundle/ruby/3.4.0/gems/thor-1.4.0/lib/thor.rb:538:in 'Thor.dispatch' dawarich_app | from /var/app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.3/lib/rails/command/base.rb:73:in 'Rails::Command::Base.perform' dawarich_app | from /var/app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.3/lib/rails/command.rb:65:in 'block in Rails::Command.invoke' dawarich_app | from /var/app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.3/lib/rails/command.rb:143:in 'Rails::Command.with_argv' dawarich_app | from /var/app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.3/lib/rails/command.rb:63:in 'Rails::Command.invoke' dawarich_app | from /var/app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.3/lib/rails/commands.rb:18:in '<main>' dawarich_app | from /usr/local/lib/ruby/3.4.0/bundled_gems.rb:82:in 'Kernel.require' dawarich_app | from /usr/local/lib/ruby/3.4.0/bundled_gems.rb:82:in 'block (2 levels) in Kernel#replace_require' dawarich_app | from /var/app/vendor/bundle/ruby/3.4.0/gems/bootsnap-1.18.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in 'Kernel#require' dawarich_app | from bin/rails:4:in '<top (required)>' dawarich_app | from /usr/local/bundle/gems/bundler-2.5.21/lib/bundler/cli/exec.rb:58:in 'Kernel.load' dawarich_app | from /usr/local/bundle/gems/bundler-2.5.21/lib/bundler/cli/exec.rb:58:in 'Bundler::CLI::Exec#kernel_load' dawarich_app | from /usr/local/bundle/gems/bundler-2.5.21/lib/bundler/cli/exec.rb:23:in 'Bundler::CLI::Exec#run' dawarich_app | from /usr/local/bundle/gems/bundler-2.5.21/lib/bundler/cli.rb:455:in 'Bundler::CLI#exec' dawarich_app | from /usr/local/bundle/gems/bundler-2.5.21/lib/bundler/vendor/thor/lib/thor/command.rb:28:in 'Bundler::Thor::Command#run' dawarich_app | from /usr/local/bundle/gems/bundler-2.5.21/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in 'Bundler::Thor::Invocation#invoke_command' dawarich_app | from /usr/local/bundle/gems/bundler-2.5.21/lib/bundler/vendor/thor/lib/thor.rb:527:in 'Bundler::Thor.dispatch' dawarich_app | from /usr/local/bundle/gems/bundler-2.5.21/lib/bundler/cli.rb:35:in 'Bundler::CLI.dispatch' dawarich_app | from /usr/local/bundle/gems/bundler-2.5.21/lib/bundler/vendor/thor/lib/thor/base.rb:584:in 'Bundler::Thor::Base::ClassMethods#start' dawarich_app | from /usr/local/bundle/gems/bundler-2.5.21/lib/bundler/cli.rb:29:in 'Bundler::CLI.start' dawarich_app | from /usr/local/bundle/gems/bundler-2.5.21/exe/bundle:28:in 'block in <top (required)>' dawarich_app | from /usr/local/bundle/gems/bundler-2.5.21/lib/bundler/friendly_errors.rb:117:in 'Bundler.with_friendly_errors' dawarich_app | from /usr/local/bundle/gems/bundler-2.5.21/exe/bundle:20:in '<top (required)>' dawarich_app | from /usr/local/bundle/bin/bundle:25:in 'Kernel#load' dawarich_app | from /usr/local/bundle/bin/bundle:25:in '<main>' DEBU[0017] container dawarich_app exited with code 1 dependency failed to start: container dawarich_app is unhealthy

asitemade4u avatar Nov 07 '25 09:11 asitemade4u

| /var/app/vendor/bundle/ruby/3.4.0/gems/puma-7.1.0/lib/puma/binder.rb:344:in 'TCPServer#initialize': Address family not supported by protocol - socket(2) for "::" port 3000 (Errno::EAFNOSUPPORT) dawarich_app

Looks like you're trying to run on ::, did you make any changes to compose file?

Freika avatar Nov 07 '25 10:11 Freika

Thank you for your prompt response. No, I did not change anything to the docker-compose file, it was just unzipped from the repository folder.

Stephen

Le vendredi 7 novembre 2025 à 11:19, Evgenii Burmakin @.***> a écrit :

Freika left a comment (Freika/dawarich#1921)

| /var/app/vendor/bundle/ruby/3.4.0/gems/puma-7.1.0/lib/puma/binder.rb:344:in 'TCPServer#initialize': Address family not supported by protocol - socket(2) for "::" port 3000 (Errno::EAFNOSUPPORT) dawarich_app

Looks like you're trying to run on ::, did you make any changes to compose file?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

asitemade4u avatar Nov 07 '25 11:11 asitemade4u

Hi, So I checked the docker-compose.yml file on the repository and indeed, there is this Rails instruction on line 57:

command: ['bin/rails', 'server', '-p', '3000', '-b', '::']

I transformed it into:

command: ['bin/rails', 'server', '-p', '3000']

And I was able to launch Dawarich.

Stephen

asitemade4u avatar Nov 08 '25 08:11 asitemade4u

But, bad news, the app container still is unhealthy due to a Rails error. NB. this is my version of the docker-compose.yml file with different container names and ports. Here is the log:

⚠️ Starting Rails environment: development ⚠️
daw  | Setting up all required databases...
daw  | Attempting to create database dawarich_development if it doesn't exist...
daw  | Note: Database dawarich_development may already exist or couldn't be created now
daw  | ⏳ Waiting for database dawarich_development to be ready...
daw  | ✅ PostgreSQL database dawarich_development is ready!
daw  | Running migrations for all databases...
daw  | Running primary database migrations...
daw  | [dotenv] Set OBJC_DISABLE_INITIALIZE_FORK_SAFETY
daw  | [dotenv] Loaded .env.development
daw  | bin/rails aborted!
daw  | ArgumentError: invalid value for Integer(): "0/0" (ArgumentError)
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/redis-client-0.24.0/lib/redis_client/url_config.rb:33:in 'RedisClient::URLConfig#db'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/redis-client-0.24.0/lib/redis_client/config.rb:200:in 'RedisClient::Config#initialize'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/redis-client-0.24.0/lib/redis_client.rb:174:in 'Class#new'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/redis-client-0.24.0/lib/redis_client.rb:174:in 'RedisClient.config'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/redis-5.4.0/lib/redis/client.rb:23:in 'Redis::Client.config'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/redis-5.4.0/lib/redis.rb:142:in 'Redis#initialize_client'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/redis-5.4.0/lib/redis.rb:73:in 'Redis#initialize'
daw  | /var/app/config/initializers/geocoder.rb:7:in 'Class#new'
daw  | /var/app/config/initializers/geocoder.rb:7:in '<main>'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.3/lib/rails/engine.rb:693:in 'Kernel#load'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.3/lib/rails/engine.rb:693:in 'block in Rails::Engine#load_config_initializer'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.3/lib/active_support/notifications.rb:212:in 'ActiveSupport::Notifications.instrument'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.3/lib/rails/engine.rb:692:in 'Rails::Engine#load_config_initializer'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.3/lib/rails/engine.rb:646:in 'block (2 levels) in <class:Engine>'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.3/lib/rails/engine.rb:645:in 'Array#each'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.3/lib/rails/engine.rb:645:in 'block in <class:Engine>'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.3/lib/rails/initializable.rb:32:in 'BasicObject#instance_exec'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.3/lib/rails/initializable.rb:32:in 'Rails::Initializable::Initializer#run'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.3/lib/rails/initializable.rb:61:in 'block in Rails::Initializable#run_initializers'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/tsort-0.2.0/lib/tsort.rb:231:in 'block in TSort.tsort_each'
daw  | /var/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'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/tsort-0.2.0/lib/tsort.rb:425:in 'block (2 levels) in TSort.each_strongly_connected_component_from'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/tsort-0.2.0/lib/tsort.rb:434:in 'TSort.each_strongly_connected_component_from'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/tsort-0.2.0/lib/tsort.rb:424:in 'block in TSort.each_strongly_connected_component_from'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.3/lib/rails/initializable.rb:50:in 'Array#each'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.3/lib/rails/initializable.rb:50:in 'Rails::Initializable::Collection#tsort_each_child'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/tsort-0.2.0/lib/tsort.rb:418:in 'Method#call'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/tsort-0.2.0/lib/tsort.rb:418:in 'TSort.each_strongly_connected_component_from'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/tsort-0.2.0/lib/tsort.rb:352:in 'block in TSort.each_strongly_connected_component'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/tsort-0.2.0/lib/tsort.rb:350:in 'Rails::Initializable::Collection#each'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/tsort-0.2.0/lib/tsort.rb:350:in 'Method#call'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/tsort-0.2.0/lib/tsort.rb:350:in 'TSort.each_strongly_connected_component'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/tsort-0.2.0/lib/tsort.rb:229:in 'TSort.tsort_each'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/tsort-0.2.0/lib/tsort.rb:208:in 'TSort#tsort_each'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.3/lib/rails/initializable.rb:60:in 'Rails::Initializable#run_initializers'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.3/lib/rails/application.rb:444:in 'Rails::Application#initialize!'
daw  | /var/app/config/environment.rb:7:in '<main>'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/bootsnap-1.18.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in 'Kernel#require'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/zeitwerk-2.7.3/lib/zeitwerk/core_ext/kernel.rb:34:in 'Kernel#require'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.3/lib/rails/application.rb:420:in 'Rails::Application#require_environment!'
daw  | /var/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'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/rake-13.3.0/lib/rake/task.rb:281:in 'block in Rake::Task#execute'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/rake-13.3.0/lib/rake/task.rb:281:in 'Array#each'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/rake-13.3.0/lib/rake/task.rb:281:in 'Rake::Task#execute'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/rake-13.3.0/lib/rake/task.rb:219:in 'block in Rake::Task#invoke_with_call_chain'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/rake-13.3.0/lib/rake/task.rb:199:in 'Monitor#synchronize'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/rake-13.3.0/lib/rake/task.rb:199:in 'Rake::Task#invoke_with_call_chain'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/rake-13.3.0/lib/rake/task.rb:243:in 'block in Rake::Task#invoke_prerequisites'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/rake-13.3.0/lib/rake/task.rb:241:in 'Array#each'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/rake-13.3.0/lib/rake/task.rb:241:in 'Rake::Task#invoke_prerequisites'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/rake-13.3.0/lib/rake/task.rb:218:in 'block in Rake::Task#invoke_with_call_chain'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/rake-13.3.0/lib/rake/task.rb:199:in 'Monitor#synchronize'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/rake-13.3.0/lib/rake/task.rb:199:in 'Rake::Task#invoke_with_call_chain'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/rake-13.3.0/lib/rake/task.rb:243:in 'block in Rake::Task#invoke_prerequisites'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/rake-13.3.0/lib/rake/task.rb:241:in 'Array#each'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/rake-13.3.0/lib/rake/task.rb:241:in 'Rake::Task#invoke_prerequisites'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/rake-13.3.0/lib/rake/task.rb:218:in 'block in Rake::Task#invoke_with_call_chain'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/rake-13.3.0/lib/rake/task.rb:199:in 'Monitor#synchronize'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/rake-13.3.0/lib/rake/task.rb:199:in 'Rake::Task#invoke_with_call_chain'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/rake-13.3.0/lib/rake/task.rb:188:in 'Rake::Task#invoke'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/rake-13.3.0/lib/rake/application.rb:188:in 'Rake::Application#invoke_task'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/rake-13.3.0/lib/rake/application.rb:138:in 'block (2 levels) in Rake::Application#top_level'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/rake-13.3.0/lib/rake/application.rb:138:in 'Array#each'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/rake-13.3.0/lib/rake/application.rb:138:in 'block in Rake::Application#top_level'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/rake-13.3.0/lib/rake/application.rb:147:in 'Rake::Application#run_with_threads'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/rake-13.3.0/lib/rake/application.rb:132:in 'Rake::Application#top_level'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.3/lib/rails/commands/rake/rake_command.rb:27:in 'block (2 levels) in Rails::Command::RakeCommand.perform'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/rake-13.3.0/lib/rake/application.rb:214:in 'Rake::Application#standard_exception_handling'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.3/lib/rails/commands/rake/rake_command.rb:27:in 'block in Rails::Command::RakeCommand.perform'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.3/lib/rails/commands/rake/rake_command.rb:44:in 'block in Rails::Command::RakeCommand.with_rake'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/rake-13.3.0/lib/rake/rake_module.rb:59:in 'Rake.with_application'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.3/lib/rails/commands/rake/rake_command.rb:41:in 'Rails::Command::RakeCommand.with_rake'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.3/lib/rails/commands/rake/rake_command.rb:20:in 'Rails::Command::RakeCommand.perform'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.3/lib/rails/command.rb:150:in 'Rails::Command.invoke_rake'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.3/lib/rails/command.rb:67:in 'block in Rails::Command.invoke'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.3/lib/rails/command.rb:143:in 'Rails::Command.with_argv'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.3/lib/rails/command.rb:63:in 'Rails::Command.invoke'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/railties-8.0.3/lib/rails/commands.rb:18:in '<main>'
daw  | /var/app/vendor/bundle/ruby/3.4.0/gems/bootsnap-1.18.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in 'Kernel#require'
daw  | Tasks: TOP => db:migrate => db:load_config => environment
daw  | (See full trace by running task with --trace)
dependency failed to start: container daw is unhealthy

asitemade4u avatar Nov 08 '25 09:11 asitemade4u

Remove /0 from your REDIS_URL value

Freika avatar Nov 08 '25 09:11 Freika

So, I began anew:

  • on a machine without any other stack using port 3000
  • with a fresh install of docker and docker compose
  • with no docker image or containers present
  • by using the docker-compose.yml unchanged out of the repo with one blocking exception: the Rails instruction at line 57: I removed the band :: sub instructions that I know will fail.

At first I launched the docker compose file using the --verbose instruction, thus:

sudo su -
<password>
cd <the directory>
docker compose --verbose up

What I noticed is that dawarich_sidekik enters a loop:

dawarich_app  |   ↳ app/controllers/api_controller.rb:30:in 'ApiController#current_api_user'
dawarich_app  | {"method":"GET","path":"/api/v1/health","format":"*/*","controller":"Api::V1::HealthController","action":"index","status":200,"allocations":991,"duration":2.21,"view":0.1,"db":0.38}
dawarich_redis  | 1:M 08 Nov 2025 12:42:21.551 * 10000 changes in 60 seconds. Saving...
dawarich_redis  | 1:M 08 Nov 2025 12:42:21.552 * Background saving started by pid 370
dawarich_redis  | 370:C 08 Nov 2025 12:42:21.604 * DB saved on disk
dawarich_redis  | 370:C 08 Nov 2025 12:42:21.605 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
dawarich_redis  | 1:M 08 Nov 2025 12:42:21.653 * Background saving terminated with success

So I interrupted it. Then, I launched the stack as usual:

sudo su -
<password>
cd <the directory>
docker compose up -d

And it succeeded with all containers healthy and launched. BUT, when I try to access the application at http://localhost:3000 it fails with a reset connection...

Please help, Stephen

asitemade4u avatar Nov 08 '25 12:11 asitemade4u

Just for the record, I have completely disabled IPv6 on the machine.

asitemade4u avatar Nov 08 '25 12:11 asitemade4u

What I noticed is that dawarich_sidekik enters a loop:

It doesn't prevent the app from starting

If you're using default compose file, it means something isn't right with your configuration, maybe network issues. Also I see no logs for what you've described as "reset connection"

Freika avatar Nov 08 '25 19:11 Freika

@asitemade4u I found out that putting RAILS_ENV to production solves the problem, I'm able to access the WebUI through one of the hosts I put in the env vars

66Bunz avatar Nov 11 '25 11:11 66Bunz