dawarich icon indicating copy to clipboard operation
dawarich copied to clipboard

Importing large file stops prematurely: Failed enqueuing Import::GoogleTakeoutJob to Sidekiq(imports)

Open alettone opened this issue 7 months ago • 4 comments

OS & Hardware Synology DS220+ Intel(R) Celeron(R) J4025 CPU @ 2.00GHz 6GB RAM

Version 0.26.6

Describe the bug Attempting to import a JSON file using the import:big_file rake task fails with the following error:
ERROR -- : Failed enqueuing Import::GoogleTakeoutJob to Sidekiq(imports): RedisClient::CannotConnectError (Connection timed out - user specified timeout: 3s (redis://dawarich_redis:6379))
This happens when running the import command inside the container.

To Reproduce

  1. Copy a JSON file to the container (e.g. /tmp/imports/Records.json)
  2. Exec into the container:
    sudo docker exec -it dawarich_app sh
  3. Run the import task:
    bundle exec rake import:big_file['tmp/imports/Records.json','<your_email>']
  4. Observe the error in the logs

Expected behavior The file should be imported successfully without any errors.

Logs

\"IN_VEHICLE\",\"confidence\":13}],\"timestamp\":\"2013-09-28T13:09:19.101Z\"}],\"source\":\"WIFI\",\"deviceTag\":346752605,\"timestamp\":\"2013-09-28T13:08:57.598Z\"},{\"latitudeE7\":446585635,\"longitudeE7\":122493753,\"accuracy\":22,\"source\":\"WIFI\",\"deviceTag\":346752605,\"timestamp\":\"2013-09-28T13:09:52.709Z\"},{\"latitudeE7\":446585635,\"longitudeE7\":122493753,\"accuracy\":22,\"source\":\"WIFI\",\"deviceTag\":346752605,\"timestamp\":\"2013-09-28T13:10:57.732Z\"}]", 216000
I, [2025-05-24T11:05:24.740487 #214]  INFO -- : ↳ app/services/tasks/imports/google_records.rb:44:in 'block (2 levels) in Tasks::Imports::GoogleRecords#process_file_in_batches'
E, [2025-05-24T11:05:31.562424 #214] ERROR -- : Failed enqueuing Import::GoogleTakeoutJob to Sidekiq(imports): RedisClient::CannotConnectError (Connection timed out - user specified timeout: 3s (redis://dawarich_redis:6379))
I, [2025-05-24T11:05:31.775950 #214]  INFO -- : ↳ app/services/tasks/imports/google_records.rb:44:in 'block (2 levels) in Tasks::Imports::GoogleRecords#process_file_in_batches'
rake aborted!
RedisClient::CannotConnectError: Connection timed out - user specified timeout: 3s (redis://dawarich_redis:6379) (RedisClient::CannotConnectError)
/var/app/vendor/bundle/ruby/3.4.0/gems/redis-client-0.24.0/lib/redis_client/ruby_connection.rb:120:in 'RedisClient::RubyConnection#connect'
/var/app/vendor/bundle/ruby/3.4.0/gems/redis-client-0.24.0/lib/redis_client/connection_mixin.rb:11:in 'RedisClient::ConnectionMixin#reconnect'
/var/app/vendor/bundle/ruby/3.4.0/gems/redis-client-0.24.0/lib/redis_client.rb:755:in 'block in RedisClient#connect'
/var/app/vendor/bundle/ruby/3.4.0/gems/redis-client-0.24.0/lib/redis_client/middlewares.rb:12:in 'RedisClient::BasicMiddleware#connect'
/var/app/vendor/bundle/ruby/3.4.0/gems/redis-client-0.24.0/lib/redis_client.rb:754:in 'RedisClient#connect'
/var/app/vendor/bundle/ruby/3.4.0/gems/redis-client-0.24.0/lib/redis_client.rb:745:in 'RedisClient#raw_connection'
/var/app/vendor/bundle/ruby/3.4.0/gems/redis-client-0.24.0/lib/redis_client.rb:705:in 'RedisClient#ensure_connected'
/var/app/vendor/bundle/ruby/3.4.0/gems/redis-client-0.24.0/lib/redis_client.rb:439:in 'RedisClient#pipelined'
/var/app/vendor/bundle/ruby/3.4.0/gems/redis-client-0.24.0/lib/redis_client/decorator.rb:51:in 'RedisClient::Decorator::Client#pipelined'
/var/app/vendor/bundle/ruby/3.4.0/gems/sidekiq-7.3.9/lib/sidekiq/client.rb:245:in 'block in Sidekiq::Client#raw_push'
/var/app/vendor/bundle/ruby/3.4.0/gems/connection_pool-2.5.3/lib/connection_pool.rb:110:in 'block (2 levels) in ConnectionPool#with'
/var/app/vendor/bundle/ruby/3.4.0/gems/connection_pool-2.5.3/lib/connection_pool.rb:109:in 'Thread.handle_interrupt'
/var/app/vendor/bundle/ruby/3.4.0/gems/connection_pool-2.5.3/lib/connection_pool.rb:109:in 'block in ConnectionPool#with'
/var/app/vendor/bundle/ruby/3.4.0/gems/connection_pool-2.5.3/lib/connection_pool.rb:106:in 'Thread.handle_interrupt'
/var/app/vendor/bundle/ruby/3.4.0/gems/connection_pool-2.5.3/lib/connection_pool.rb:106:in 'ConnectionPool#with'
/var/app/vendor/bundle/ruby/3.4.0/gems/sidekiq-7.3.9/lib/sidekiq/client.rb:242:in 'Sidekiq::Client#raw_push'
/var/app/vendor/bundle/ruby/3.4.0/gems/sidekiq-7.3.9/lib/sidekiq/client.rb:110:in 'Sidekiq::Client#push'
/var/app/vendor/bundle/ruby/3.4.0/gems/sidekiq-7.3.9/lib/sidekiq/job.rb:372:in 'Sidekiq::Job::ClassMethods#client_push'
/var/app/vendor/bundle/ruby/3.4.0/gems/sidekiq-7.3.9/lib/sidekiq/job.rb:209:in 'Sidekiq::Job::Setter#perform_async'
/var/app/vendor/bundle/ruby/3.4.0/gems/sidekiq-7.3.9/lib/active_job/queue_adapters/sidekiq_adapter.rb:26:in 'ActiveJob::QueueAdapters::SidekiqAdapter#enqueue'
/var/app/vendor/bundle/ruby/3.4.0/gems/activejob-8.0.2/lib/active_job/enqueuing.rb:132:in 'ActiveJob::Enqueuing#raw_enqueue'
/var/app/vendor/bundle/ruby/3.4.0/gems/activejob-8.0.2/lib/active_job/enqueue_after_transaction_commit.rb:40:in 'ActiveJob::EnqueueAfterTransactionCommit#raw_enqueue'
/var/app/vendor/bundle/ruby/3.4.0/gems/activejob-8.0.2/lib/active_job/enqueuing.rb:117:in 'block in ActiveJob::Enqueuing#enqueue'
/var/app/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.2/lib/active_support/callbacks.rb:120:in 'block in ActiveSupport::Callbacks#run_callbacks'
/var/app/vendor/bundle/ruby/3.4.0/gems/activejob-8.0.2/lib/active_job/instrumentation.rb:40:in 'block in ActiveJob::Instrumentation#instrument'
/var/app/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.2/lib/active_support/notifications.rb:210:in 'block in ActiveSupport::Notifications.instrument'
/var/app/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.2/lib/active_support/notifications/instrumenter.rb:58:in 'ActiveSupport::Notifications::Instrumenter#instrument'
/var/app/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.2/lib/active_support/notifications.rb:210:in 'ActiveSupport::Notifications.instrument'
/var/app/vendor/bundle/ruby/3.4.0/gems/activejob-8.0.2/lib/active_job/instrumentation.rb:39:in 'ActiveJob::Instrumentation#instrument'
/var/app/vendor/bundle/ruby/3.4.0/gems/activerecord-8.0.2/lib/active_record/railties/job_runtime.rb:18:in 'ActiveRecord::Railties::JobRuntime#instrument'
/var/app/vendor/bundle/ruby/3.4.0/gems/activejob-8.0.2/lib/active_job/instrumentation.rb:21:in 'block (2 levels) in <module:Instrumentation>'
/var/app/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.2/lib/active_support/callbacks.rb:129:in 'BasicObject#instance_exec'
/var/app/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.2/lib/active_support/callbacks.rb:129:in 'block in ActiveSupport::Callbacks#run_callbacks'
/var/app/vendor/bundle/ruby/3.4.0/gems/activejob-8.0.2/lib/active_job/logging.rb:41:in 'ActiveJob::Logging#tag_logger'
/var/app/vendor/bundle/ruby/3.4.0/gems/activejob-8.0.2/lib/active_job/logging.rb:28:in 'block (2 levels) in <module:Logging>'
/var/app/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.2/lib/active_support/callbacks.rb:129:in 'BasicObject#instance_exec'
/var/app/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.2/lib/active_support/callbacks.rb:129:in 'block in ActiveSupport::Callbacks#run_callbacks'
/var/app/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.2/lib/active_support/callbacks.rb:140:in 'ActiveSupport::Callbacks#run_callbacks'
/var/app/vendor/bundle/ruby/3.4.0/gems/activejob-8.0.2/lib/active_job/enqueuing.rb:116:in 'ActiveJob::Enqueuing#enqueue'
/var/app/vendor/bundle/ruby/3.4.0/gems/activejob-8.0.2/lib/active_job/enqueuing.rb:83:in 'ActiveJob::Enqueuing::ClassMethods#perform_later'
/var/app/app/services/tasks/imports/google_records.rb:44:in 'block (2 levels) in Tasks::Imports::GoogleRecords#process_file_in_batches'
/var/app/app/services/tasks/imports/google_records.rb:38:in 'Array#each'
/var/app/app/services/tasks/imports/google_records.rb:38:in 'block in Tasks::Imports::GoogleRecords#process_file_in_batches'
/var/app/app/services/tasks/imports/google_records.rb:35:in 'Oj.load_file'
/var/app/app/services/tasks/imports/google_records.rb:35:in 'Tasks::Imports::GoogleRecords#process_file_in_batches'
/var/app/app/services/tasks/imports/google_records.rb:18:in 'Tasks::Imports::GoogleRecords#call'
/var/app/lib/tasks/import.rake:8:in 'block (2 levels) in <main>'
/var/app/vendor/bundle/ruby/3.4.0/gems/rake-13.2.1/exe/rake:27:in '<top (required)>'
/usr/local/bundle/gems/bundler-2.5.21/lib/bundler/cli/exec.rb:58:in 'Kernel.load'
/usr/local/bundle/gems/bundler-2.5.21/lib/bundler/cli/exec.rb:58:in 'Bundler::CLI::Exec#kernel_load'
/usr/local/bundle/gems/bundler-2.5.21/lib/bundler/cli/exec.rb:23:in 'Bundler::CLI::Exec#run'
/usr/local/bundle/gems/bundler-2.5.21/lib/bundler/cli.rb:455:in 'Bundler::CLI#exec'
/usr/local/bundle/gems/bundler-2.5.21/lib/bundler/vendor/thor/lib/thor/command.rb:28:in 'Bundler::Thor::Command#run'
/usr/local/bundle/gems/bundler-2.5.21/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in 'Bundler::Thor::Invocation#invoke_command'
/usr/local/bundle/gems/bundler-2.5.21/lib/bundler/vendor/thor/lib/thor.rb:527:in 'Bundler::Thor.dispatch'
/usr/local/bundle/gems/bundler-2.5.21/lib/bundler/cli.rb:35:in 'Bundler::CLI.dispatch'
/usr/local/bundle/gems/bundler-2.5.21/lib/bundler/vendor/thor/lib/thor/base.rb:584:in 'Bundler::Thor::Base::ClassMethods#start'
/usr/local/bundle/gems/bundler-2.5.21/lib/bundler/cli.rb:29:in 'Bundler::CLI.start'
/usr/local/bundle/gems/bundler-2.5.21/exe/bundle:28:in 'block in <top (required)>'
/usr/local/bundle/gems/bundler-2.5.21/lib/bundler/friendly_errors.rb:117:in 'Bundler.with_friendly_errors'
/usr/local/bundle/gems/bundler-2.5.21/exe/bundle:20:in '<top (required)>'
/usr/local/bundle/bin/bundle:25:in 'Kernel#load'
/usr/local/bundle/bin/bundle:25:in '<main>'

Caused by:
Errno::ETIMEDOUT: Connection timed out - user specified timeout: 3s (Errno::ETIMEDOUT)
/var/app/vendor/bundle/ruby/3.4.0/gems/redis-client-0.24.0/lib/redis_client/ruby_connection.rb:120:in 'RedisClient::RubyConnection#connect'
/var/app/vendor/bundle/ruby/3.4.0/gems/redis-client-0.24.0/lib/redis_client/connection_mixin.rb:11:in 'RedisClient::ConnectionMixin#reconnect'
/var/app/vendor/bundle/ruby/3.4.0/gems/redis-client-0.24.0/lib/redis_client.rb:755:in 'block in RedisClient#connect'
/var/app/vendor/bundle/ruby/3.4.0/gems/redis-client-0.24.0/lib/redis_client/middlewares.rb:12:in 'RedisClient::BasicMiddleware#connect'
/var/app/vendor/bundle/ruby/3.4.0/gems/redis-client-0.24.0/lib/redis_client.rb:754:in 'RedisClient#connect'
/var/app/vendor/bundle/ruby/3.4.0/gems/redis-client-0.24.0/lib/redis_client.rb:745:in 'RedisClient#raw_connection'
/var/app/vendor/bundle/ruby/3.4.0/gems/redis-client-0.24.0/lib/redis_client.rb:705:in 'RedisClient#ensure_connected'
/var/app/vendor/bundle/ruby/3.4.0/gems/redis-client-0.24.0/lib/redis_client.rb:439:in 'RedisClient#pipelined'
/var/app/vendor/bundle/ruby/3.4.0/gems/redis-client-0.24.0/lib/redis_client/decorator.rb:51:in 'RedisClient::Decorator::Client#pipelined'
/var/app/vendor/bundle/ruby/3.4.0/gems/sidekiq-7.3.9/lib/sidekiq/client.rb:245:in 'block in Sidekiq::Client#raw_push'
/var/app/vendor/bundle/ruby/3.4.0/gems/connection_pool-2.5.3/lib/connection_pool.rb:110:in 'block (2 levels) in ConnectionPool#with'
/var/app/vendor/bundle/ruby/3.4.0/gems/connection_pool-2.5.3/lib/connection_pool.rb:109:in 'Thread.handle_interrupt'
/var/app/vendor/bundle/ruby/3.4.0/gems/connection_pool-2.5.3/lib/connection_pool.rb:109:in 'block in ConnectionPool#with'
/var/app/vendor/bundle/ruby/3.4.0/gems/connection_pool-2.5.3/lib/connection_pool.rb:106:in 'Thread.handle_interrupt'
/var/app/vendor/bundle/ruby/3.4.0/gems/connection_pool-2.5.3/lib/connection_pool.rb:106:in 'ConnectionPool#with'
/var/app/vendor/bundle/ruby/3.4.0/gems/sidekiq-7.3.9/lib/sidekiq/client.rb:242:in 'Sidekiq::Client#raw_push'
/var/app/vendor/bundle/ruby/3.4.0/gems/sidekiq-7.3.9/lib/sidekiq/client.rb:110:in 'Sidekiq::Client#push'
/var/app/vendor/bundle/ruby/3.4.0/gems/sidekiq-7.3.9/lib/sidekiq/job.rb:372:in 'Sidekiq::Job::ClassMethods#client_push'
/var/app/vendor/bundle/ruby/3.4.0/gems/sidekiq-7.3.9/lib/sidekiq/job.rb:209:in 'Sidekiq::Job::Setter#perform_async'
/var/app/vendor/bundle/ruby/3.4.0/gems/sidekiq-7.3.9/lib/active_job/queue_adapters/sidekiq_adapter.rb:26:in 'ActiveJob::QueueAdapters::SidekiqAdapter#enqueue'
/var/app/vendor/bundle/ruby/3.4.0/gems/activejob-8.0.2/lib/active_job/enqueuing.rb:132:in 'ActiveJob::Enqueuing#raw_enqueue'
/var/app/vendor/bundle/ruby/3.4.0/gems/activejob-8.0.2/lib/active_job/enqueue_after_transaction_commit.rb:40:in 'ActiveJob::EnqueueAfterTransactionCommit#raw_enqueue'
/var/app/vendor/bundle/ruby/3.4.0/gems/activejob-8.0.2/lib/active_job/enqueuing.rb:117:in 'block in ActiveJob::Enqueuing#enqueue'
/var/app/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.2/lib/active_support/callbacks.rb:120:in 'block in ActiveSupport::Callbacks#run_callbacks'
/var/app/vendor/bundle/ruby/3.4.0/gems/activejob-8.0.2/lib/active_job/instrumentation.rb:40:in 'block in ActiveJob::Instrumentation#instrument'
/var/app/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.2/lib/active_support/notifications.rb:210:in 'block in ActiveSupport::Notifications.instrument'
/var/app/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.2/lib/active_support/notifications/instrumenter.rb:58:in 'ActiveSupport::Notifications::Instrumenter#instrument'
/var/app/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.2/lib/active_support/notifications.rb:210:in 'ActiveSupport::Notifications.instrument'
/var/app/vendor/bundle/ruby/3.4.0/gems/activejob-8.0.2/lib/active_job/instrumentation.rb:39:in 'ActiveJob::Instrumentation#instrument'
/var/app/vendor/bundle/ruby/3.4.0/gems/activerecord-8.0.2/lib/active_record/railties/job_runtime.rb:18:in 'ActiveRecord::Railties::JobRuntime#instrument'
/var/app/vendor/bundle/ruby/3.4.0/gems/activejob-8.0.2/lib/active_job/instrumentation.rb:21:in 'block (2 levels) in <module:Instrumentation>'
/var/app/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.2/lib/active_support/callbacks.rb:129:in 'BasicObject#instance_exec'
/var/app/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.2/lib/active_support/callbacks.rb:129:in 'block in ActiveSupport::Callbacks#run_callbacks'
/var/app/vendor/bundle/ruby/3.4.0/gems/activejob-8.0.2/lib/active_job/logging.rb:41:in 'ActiveJob::Logging#tag_logger'
/var/app/vendor/bundle/ruby/3.4.0/gems/activejob-8.0.2/lib/active_job/logging.rb:28:in 'block (2 levels) in <module:Logging>'
/var/app/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.2/lib/active_support/callbacks.rb:129:in 'BasicObject#instance_exec'
/var/app/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.2/lib/active_support/callbacks.rb:129:in 'block in ActiveSupport::Callbacks#run_callbacks'
/var/app/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.2/lib/active_support/callbacks.rb:140:in 'ActiveSupport::Callbacks#run_callbacks'
/var/app/vendor/bundle/ruby/3.4.0/gems/activejob-8.0.2/lib/active_job/enqueuing.rb:116:in 'ActiveJob::Enqueuing#enqueue'
/var/app/vendor/bundle/ruby/3.4.0/gems/activejob-8.0.2/lib/active_job/enqueuing.rb:83:in 'ActiveJob::Enqueuing::ClassMethods#perform_later'
/var/app/app/services/tasks/imports/google_records.rb:44:in 'block (2 levels) in Tasks::Imports::GoogleRecords#process_file_in_batches'
/var/app/app/services/tasks/imports/google_records.rb:38:in 'Array#each'
/var/app/app/services/tasks/imports/google_records.rb:38:in 'block in Tasks::Imports::GoogleRecords#process_file_in_batches'
/var/app/app/services/tasks/imports/google_records.rb:35:in 'Oj.load_file'
/var/app/app/services/tasks/imports/google_records.rb:35:in 'Tasks::Imports::GoogleRecords#process_file_in_batches'
/var/app/app/services/tasks/imports/google_records.rb:18:in 'Tasks::Imports::GoogleRecords#call'
/var/app/lib/tasks/import.rake:8:in 'block (2 levels) in <main>'
/var/app/vendor/bundle/ruby/3.4.0/gems/rake-13.2.1/exe/rake:27:in '<top (required)>'
/usr/local/bundle/gems/bundler-2.5.21/lib/bundler/cli/exec.rb:58:in 'Kernel.load'
/usr/local/bundle/gems/bundler-2.5.21/lib/bundler/cli/exec.rb:58:in 'Bundler::CLI::Exec#kernel_load'
/usr/local/bundle/gems/bundler-2.5.21/lib/bundler/cli/exec.rb:23:in 'Bundler::CLI::Exec#run'
/usr/local/bundle/gems/bundler-2.5.21/lib/bundler/cli.rb:455:in 'Bundler::CLI#exec'
/usr/local/bundle/gems/bundler-2.5.21/lib/bundler/vendor/thor/lib/thor/command.rb:28:in 'Bundler::Thor::Command#run'
/usr/local/bundle/gems/bundler-2.5.21/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in 'Bundler::Thor::Invocation#invoke_command'
/usr/local/bundle/gems/bundler-2.5.21/lib/bundler/vendor/thor/lib/thor.rb:527:in 'Bundler::Thor.dispatch'
/usr/local/bundle/gems/bundler-2.5.21/lib/bundler/cli.rb:35:in 'Bundler::CLI.dispatch'
/usr/local/bundle/gems/bundler-2.5.21/lib/bundler/vendor/thor/lib/thor/base.rb:584:in 'Bundler::Thor::Base::ClassMethods#start'
/usr/local/bundle/gems/bundler-2.5.21/lib/bundler/cli.rb:29:in 'Bundler::CLI.start'
/usr/local/bundle/gems/bundler-2.5.21/exe/bundle:28:in 'block in <top (required)>'
/usr/local/bundle/gems/bundler-2.5.21/lib/bundler/friendly_errors.rb:117:in 'Bundler.with_friendly_errors'
/usr/local/bundle/gems/bundler-2.5.21/exe/bundle:20:in '<top (required)>'
/usr/local/bundle/bin/bundle:25:in 'Kernel#load'
/usr/local/bundle/bin/bundle:25:in '<main>'
Tasks: TOP => import:big_file
(See full trace by running task with --trace)

Additional context The JSON file I am trying to import is approximately 1.5 GB and contains data ranging from September 2012 to November 2024.
However, the import process only completes up to September 2013, and no data beyond that date is imported.

alettone avatar May 24 '25 11:05 alettone

I'd suggest using web interface instead. Also, the error indicates problem in your configuration, so providing the compose file might help

Freika avatar May 24 '25 19:05 Freika

Hi, thanks for getting back to me!

I used the import:big_file command because the instructions for importing large files specifically recommend using that, so that’s why I went with it instead of the web interface.

As you asked, I’m attaching my docker-compose.yml below—maybe that’ll help figure out what’s going on.

version: '3'

services:
  dawarich_redis:
    image: redis:7.0-alpine
    container_name: dawarich_redis
    command: redis-server
    restart: unless-stopped
    volumes:
      - ./redis:/var/shared/redis

  dawarich_db:
    image: postgis/postgis:17-3.5-alpine
    container_name: dawarich_db
    restart: unless-stopped
    environment:
      POSTGRES_USER: ${DATABASE_USERNAME}
      POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
      POSTGRES_DB: dawarich_development
    volumes:
      - ./db_data:/var/lib/postgresql/data
      - ./db_shared:/var/shared

  dawarich_app:
    image: freikin/dawarich:latest
    container_name: dawarich_app
    depends_on:
      - dawarich_db
      - dawarich_redis
    stdin_open: true
    tty: true
    entrypoint: web-entrypoint.sh
    command: ['bin/dev']
    restart: unless-stopped
    env_file:
      - .env
    volumes:
      - ./public:/var/app/public
      - ./app_storage:/var/app/storage
    ports:
      - 32568:3000

  dawarich_sidekiq:
    image: freikin/dawarich:latest
    container_name: dawarich_sidekiq
    depends_on:
      - dawarich_db
      - dawarich_redis
      - dawarich_app
    entrypoint: sidekiq-entrypoint.sh
    command: ['sidekiq']
    restart: unless-stopped
    env_file:
      - .env
    volumes:
      - ./public:/var/app/public
      - ./app_storage:/var/app/storage

Thanks again for your help!

alettone avatar May 24 '25 20:05 alettone

I don't see any env vars in your app and sidekiq containers, specifically the Redis URL one

REDIS_URL: redis://dawarich_redis:6379/0

Freika avatar May 25 '25 11:05 Freika

Oh yes, the env file is this one, I copied both from the synology installation guide

###################################################################################
# Dawarich
###################################################################################

RAILS_ENV=development
MIN_MINUTES_SPENT_IN_CITY=60
APPLICATION_HOSTS=dawarich.me.synology.me
TIME_ZONE=Europe/Rome
BACKGROUND_PROCESSING_CONCURRENCY=10
STORE_GEODATA=false

###################################################################################
# Database
###################################################################################

DATABASE_HOST=dawarich_db
DATABASE_USERNAME=postgres
DATABASE_PASSWORD=password
DATABASE_NAME=dawarich_development

###################################################################################
# Redis
###################################################################################

REDIS_URL=redis://dawarich_redis:6379/0

alettone avatar May 25 '25 11:05 alettone

Update to 0.27.2, don't forget to read the release notes and try again

Freika avatar Jun 04 '25 22:06 Freika

Now I'd suggest updating to 0.28.0 :)

Freika avatar Jun 11 '25 18:06 Freika

Closing due to inactivity

Freika avatar Aug 27 '25 10:08 Freika