Chatwoot: Cant launch on docker on latest version (v.1.3.0)

Created on 8 Apr 2020  路  4Comments  路  Source: chatwoot/chatwoot

Describe the bug
The sideqik service & the chatwoot service do not launch with the docker image. None of the report any helpful logs. The behaviour is like the service starts running and then it fails...

Sideqik Service logs


rg9kju5 No such file or directory @ rb_sysopen - /app/log/production.log
rg9kju5 /usr/local/lib/ruby/2.7.0/logger/log_device.rb:103:in `initialize'
rg9kju5 /usr/local/lib/ruby/2.7.0/logger/log_device.rb:103:in `open'
rg9kju5 /usr/local/lib/ruby/2.7.0/logger/log_device.rb:103:in `create_logfile'
rg9kju5 /usr/local/lib/ruby/2.7.0/logger/log_device.rb:97:in `rescue in open_logfile'
rg9kju5 /usr/local/lib/ruby/2.7.0/logger/log_device.rb:93:in `open_logfile'
rg9kju5 /usr/local/lib/ruby/2.7.0/logger/log_device.rb:86:in `set_dev'
rg9kju5 /usr/local/lib/ruby/2.7.0/logger/log_device.rb:18:in `initialize'
rg9kju5 /usr/local/lib/ruby/2.7.0/logger.rb:389:in `new'
rg9kju5 /usr/local/lib/ruby/2.7.0/logger.rb:389:in `initialize'
rg9kju5 /gems/ruby/2.7.0/gems/activesupport-6.0.2.2/lib/active_support/logger.rb:81:in `initialize'
rg9kju5 /app/config/environments/production.rb:91:in `new'
rg9kju5 /app/config/environments/production.rb:91:in `block in <main>'
rg9kju5 /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/railtie.rb:216:in `instance_eval'
rg9kju5 /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/railtie.rb:216:in `configure'
rg9kju5 /app/config/environments/production.rb:1:in `<main>'
rg9kju5 /gems/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
rg9kju5 /gems/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
rg9kju5 /gems/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
rg9kju5 /gems/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
rg9kju5 /gems/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
rg9kju5 /gems/ruby/2.7.0/gems/zeitwerk-2.3.0/lib/zeitwerk/kernel.rb:23:in `require'
rg9kju5 2020-04-08T18:11:56.737Z pid=1 tid=6wx INFO: Booting Sidekiq 6.0.6 with redis options {:id=>"Sidekiq-server-PID-1", :url=>"redis://redis:6379"}
rg9kju5 /gems/ruby/2.7.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `block in require'
rg9kju5 /gems/ruby/2.7.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:291:in `load_dependency'
rg9kju5 /gems/ruby/2.7.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `require'
rg9kju5 /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/engine.rb:612:in `block (2 levels) in <class:Engine>'
rg9kju5 /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/engine.rb:611:in `each'
rg9kju5 /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/engine.rb:611:in `block in <class:Engine>'
rg9kju5 /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:32:in `instance_exec'
rg9kju5 /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:32:in `run'
rg9kju5 /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:61:in `block in run_initializers'
rg9kju5 /usr/local/lib/ruby/2.7.0/tsort.rb:228:in `block in tsort_each'
rg9kju5 /usr/local/lib/ruby/2.7.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
rg9kju5 /usr/local/lib/ruby/2.7.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
rg9kju5 /usr/local/lib/ruby/2.7.0/tsort.rb:431:in `each_strongly_connected_component_from'
rg9kju5 /usr/local/lib/ruby/2.7.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
rg9kju5 /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:50:in `each'
rg9kju5 /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:50:in `tsort_each_child'
rg9kju5 /usr/local/lib/ruby/2.7.0/tsort.rb:415:in `call'
rg9kju5 /usr/local/lib/ruby/2.7.0/tsort.rb:415:in `each_strongly_connected_component_from'
rg9kju5 /usr/local/lib/ruby/2.7.0/tsort.rb:349:in `block in each_strongly_connected_component'
rg9kju5 /usr/local/lib/ruby/2.7.0/tsort.rb:347:in `each'
rg9kju5 /usr/local/lib/ruby/2.7.0/tsort.rb:347:in `call'
rg9kju5 /usr/local/lib/ruby/2.7.0/tsort.rb:347:in `each_strongly_connected_component'
rg9kju5 /usr/local/lib/ruby/2.7.0/tsort.rb:226:in `tsort_each'
rg9kju5 /usr/local/lib/ruby/2.7.0/tsort.rb:205:in `tsort_each'
rg9kju5 /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:60:in `run_initializers'
rg9kju5 /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/application.rb:363:in `initialize!'
rg9kju5 /app/config/environment.rb:5:in `<top (required)>'
rg9kju5 /gems/ruby/2.7.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `require'
rg9kju5 /gems/ruby/2.7.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `block in require'
rg9kju5 /gems/ruby/2.7.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:291:in `load_dependency'
rg9kju5 /gems/ruby/2.7.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `require'
rg9kju5 /gems/ruby/2.7.0/gems/sidekiq-6.0.6/lib/sidekiq/cli.rb:252:in `boot_system'
rg9kju5 /gems/ruby/2.7.0/gems/sidekiq-6.0.6/lib/sidekiq/cli.rb:37:in `run'
rg9kju5 /gems/ruby/2.7.0/gems/sidekiq-6.0.6/bin/sidekiq:12:in `<top (required)>'
rg9kju5 /gems/ruby/2.7.0/bin/sidekiq:23:in `load'
rg9kju5 /gems/ruby/2.7.0/bin/sidekiq:23:in `<top (required)>'
rg9kju5 /usr/local/lib/ruby/2.7.0/bundler/cli/exec.rb:63:in `load'
rg9kju5 /usr/local/lib/ruby/2.7.0/bundler/cli/exec.rb:63:in `kernel_load'
rg9kju5 /usr/local/lib/ruby/2.7.0/bundler/cli/exec.rb:28:in `run'
rg9kju5 /usr/local/lib/ruby/2.7.0/bundler/cli.rb:476:in `exec'
rg9kju5 /usr/local/lib/ruby/2.7.0/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
rg9kju5 /usr/local/lib/ruby/2.7.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
rg9kju5 /usr/local/lib/ruby/2.7.0/bundler/vendor/thor/lib/thor.rb:399:in `dispatch'
rg9kju5 /usr/local/lib/ruby/2.7.0/bundler/cli.rb:30:in `dispatch'
rg9kju5 /usr/local/lib/ruby/2.7.0/bundler/vendor/thor/lib/thor/base.rb:476:in `start'
rg9kju5 /usr/local/lib/ruby/2.7.0/bundler/cli.rb:24:in `start'
rg9kju5 /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.1.2/libexec/bundle:46:in `block in <top (required)>'
rg9kju5 /usr/local/lib/ruby/2.7.0/bundler/friendly_errors.rb:123:in `with_friendly_errors'
rg9kju5 /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.1.2/libexec/bundle:34:in `<top (required)>'
rg9kju5 /usr/local/bundle/bin/bundle:23:in `load'
rg9kju5 /usr/local/bundle/bin/bundle:23:in `<main>'
rg9kju5 /gems/ruby/2.7.0/gems/redis-4.1.3/lib/redis/client.rb:126:in `call': NOAUTH Authentication required. (Redis::CommandError)
rg9kju5 from /gems/ruby/2.7.0/gems/redis-4.1.3/lib/redis/client.rb:109:in `block in connect'
rg9kju5 from /gems/ruby/2.7.0/gems/redis-4.1.3/lib/redis/client.rb:306:in `with_reconnect'
rg9kju5 from /gems/ruby/2.7.0/gems/redis-4.1.3/lib/redis/client.rb:105:in `connect'
rg9kju5 from /gems/ruby/2.7.0/gems/redis-4.1.3/lib/redis/client.rb:381:in `ensure_connected'
rg9kju5 from /gems/ruby/2.7.0/gems/redis-4.1.3/lib/redis/client.rb:231:in `block in process'
rg9kju5 from /gems/ruby/2.7.0/gems/redis-4.1.3/lib/redis/client.rb:319:in `logging'
rg9kju5 from /gems/ruby/2.7.0/gems/redis-4.1.3/lib/redis/client.rb:230:in `process'
rg9kju5 from /gems/ruby/2.7.0/gems/redis-4.1.3/lib/redis/client.rb:196:in `call_pipelined'
rg9kju5 from /gems/ruby/2.7.0/gems/redis-4.1.3/lib/redis/client.rb:164:in `block in call_pipeline'
rg9kju5 from /gems/ruby/2.7.0/gems/redis-4.1.3/lib/redis/client.rb:306:in `with_reconnect'
rg9kju5 from /gems/ruby/2.7.0/gems/redis-4.1.3/lib/redis/client.rb:162:in `call_pipeline'
rg9kju5 from /gems/ruby/2.7.0/gems/redis-4.1.3/lib/redis.rb:2416:in `block in pipelined'
rg9kju5 from /gems/ruby/2.7.0/gems/redis-4.1.3/lib/redis.rb:52:in `block in synchronize'
rg9kju5 from /usr/local/lib/ruby/2.7.0/monitor.rb:202:in `synchronize'
rg9kju5 from /usr/local/lib/ruby/2.7.0/monitor.rb:202:in `mon_synchronize'
rg9kju5 from /gems/ruby/2.7.0/gems/redis-4.1.3/lib/redis.rb:52:in `synchronize'
rg9kju5 from /gems/ruby/2.7.0/gems/redis-4.1.3/lib/redis.rb:2411:in `pipelined'
rg9kju5 from /gems/ruby/2.7.0/gems/sidekiq-6.0.6/lib/sidekiq/launcher.rb:104:in `block in flush_stats'
rg9kju5 from /gems/ruby/2.7.0/gems/sidekiq-6.0.6/lib/sidekiq.rb:97:in `block in redis'
rg9kju5 from /gems/ruby/2.7.0/gems/connection_pool-2.2.2/lib/connection_pool.rb:65:in `block (2 levels) in with'
rg9kju5 from /gems/ruby/2.7.0/gems/connection_pool-2.2.2/lib/connection_pool.rb:64:in `handle_interrupt'
rg9kju5 from /gems/ruby/2.7.0/gems/connection_pool-2.2.2/lib/connection_pool.rb:64:in `block in with'
rg9kju5 from /gems/ruby/2.7.0/gems/connection_pool-2.2.2/lib/connection_pool.rb:61:in `handle_interrupt'
rg9kju5 from /gems/ruby/2.7.0/gems/connection_pool-2.2.2/lib/connection_pool.rb:61:in `with'
rg9kju5 from /gems/ruby/2.7.0/gems/sidekiq-6.0.6/lib/sidekiq.rb:94:in `redis'
rg9kju5 from /gems/ruby/2.7.0/gems/sidekiq-6.0.6/lib/sidekiq/launcher.rb:103:in `flush_stats'

Chatwoot Service logs

3l5vrfv + rm -rf /app/tmp/pids/server.pid
3l5vrfv + rm -rf /app/tmp/cache/assets /app/tmp/cache/bootsnap-compile-cache /app/tmp/cache/bootsnap-load-path-cache /app/tmp/cache/webpacker
3l5vrfv + echo 'Waiting for postgres to become ready....'
3l5vrfv + PGPASSWORD=test
3l5vrfv + PSQL='pg_isready -h postgres -p 5432 -U postgres'
3l5vrfv + pg_isready -h postgres -p 5432 -U postgres
3l5vrfv Waiting for postgres to become ready....
3l5vrfv postgres:5432 - accepting connections
3l5vrfv Database ready to accept connections.
3l5vrfv + echo 'Database ready to accept connections.'
3l5vrfv + bundle install
<<INSTALL_DEPENDENCIES>>
3l5vrfv Bundle complete! 70 Gemfile dependencies, 153 gems now installed.
3l5vrfv Gems in the groups development and test were not installed.
3l5vrfv Bundled gems are installed into `/gems`
3l5vrfv + BUNDLE='bundle check'
3l5vrfv + bundle check
3l5vrfv The Gemfile's dependencies are satisfied
3l5vrfv + exec bundle exec rails s -p 3000 -b 0.0.0.0
3l5vrfv => Booting Puma
3l5vrfv => Rails 6.0.2.2 application starting in production
3l5vrfv => Run `rails server --help` for more startup options
3l5vrfv Exiting
3l5vrfv /usr/local/lib/ruby/2.7.0/logger/log_device.rb:103:in `initialize': No such file or directory @ rb_sysopen - /app/log/production.log (Errno::ENOENT)
3l5vrfv from /usr/local/lib/ruby/2.7.0/logger/log_device.rb:103:in `open'
3l5vrfv from /usr/local/lib/ruby/2.7.0/logger/log_device.rb:103:in `create_logfile'
3l5vrfv from /usr/local/lib/ruby/2.7.0/logger/log_device.rb:97:in `rescue in open_logfile'
3l5vrfv from /usr/local/lib/ruby/2.7.0/logger/log_device.rb:93:in `open_logfile'
3l5vrfv from /usr/local/lib/ruby/2.7.0/logger/log_device.rb:86:in `set_dev'
3l5vrfv from /usr/local/lib/ruby/2.7.0/logger/log_device.rb:18:in `initialize'
3l5vrfv from /usr/local/lib/ruby/2.7.0/logger.rb:389:in `new'
3l5vrfv from /usr/local/lib/ruby/2.7.0/logger.rb:389:in `initialize'
3l5vrfv from /gems/ruby/2.7.0/gems/activesupport-6.0.2.2/lib/active_support/logger.rb:81:in `initialize'
3l5vrfv from /app/config/environments/production.rb:91:in `new'
3l5vrfv from /app/config/environments/production.rb:91:in `block in <main>'
3l5vrfv from /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/railtie.rb:216:in `instance_eval'
3l5vrfv from /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/railtie.rb:216:in `configure'
3l5vrfv from /app/config/environments/production.rb:1:in `<main>'
3l5vrfv from /gems/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
3l5vrfv from /gems/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
3l5vrfv from /gems/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
3l5vrfv from /gems/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
3l5vrfv from /gems/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
3l5vrfv from /gems/ruby/2.7.0/gems/zeitwerk-2.3.0/lib/zeitwerk/kernel.rb:23:in `require'
3l5vrfv from /gems/ruby/2.7.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `block in require'
3l5vrfv from /gems/ruby/2.7.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:291:in `load_dependency'
3l5vrfv from /gems/ruby/2.7.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `require'
3l5vrfv from /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/engine.rb:612:in `block (2 levels) in <class:Engine>'
3l5vrfv from /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/engine.rb:611:in `each'
3l5vrfv from /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/engine.rb:611:in `block in <class:Engine>'
3l5vrfv from /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:32:in `instance_exec'
3l5vrfv from /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:32:in `run'
3l5vrfv from /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:61:in `block in run_initializers'
3l5vrfv from /usr/local/lib/ruby/2.7.0/tsort.rb:228:in `block in tsort_each'
3l5vrfv from /usr/local/lib/ruby/2.7.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
3l5vrfv from /usr/local/lib/ruby/2.7.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
3l5vrfv from /usr/local/lib/ruby/2.7.0/tsort.rb:431:in `each_strongly_connected_component_from'
3l5vrfv from /usr/local/lib/ruby/2.7.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
3l5vrfv from /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:50:in `each'
3l5vrfv from /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:50:in `tsort_each_child'
3l5vrfv from /usr/local/lib/ruby/2.7.0/tsort.rb:415:in `call'
3l5vrfv from /usr/local/lib/ruby/2.7.0/tsort.rb:415:in `each_strongly_connected_component_from'
3l5vrfv from /usr/local/lib/ruby/2.7.0/tsort.rb:349:in `block in each_strongly_connected_component'
3l5vrfv from /usr/local/lib/ruby/2.7.0/tsort.rb:347:in `each'
3l5vrfv from /usr/local/lib/ruby/2.7.0/tsort.rb:347:in `call'
3l5vrfv from /usr/local/lib/ruby/2.7.0/tsort.rb:347:in `each_strongly_connected_component'
3l5vrfv from /usr/local/lib/ruby/2.7.0/tsort.rb:226:in `tsort_each'
3l5vrfv from /usr/local/lib/ruby/2.7.0/tsort.rb:205:in `tsort_each'
3l5vrfv from /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:60:in `run_initializers'
3l5vrfv from /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/application.rb:363:in `initialize!'
3l5vrfv from /app/config/environment.rb:5:in `<main>'
3l5vrfv from /gems/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
3l5vrfv from /gems/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
3l5vrfv from /gems/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
3l5vrfv from /gems/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
3l5vrfv from /gems/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
3l5vrfv from /gems/ruby/2.7.0/gems/zeitwerk-2.3.0/lib/zeitwerk/kernel.rb:23:in `require'
3l5vrfv from /gems/ruby/2.7.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `block in require'
3l5vrfv from /gems/ruby/2.7.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:291:in `load_dependency'
3l5vrfv from /gems/ruby/2.7.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `require'
3l5vrfv from /gems/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:49:in `require_relative'
3l5vrfv from config.ru:3:in `block in <main>'
3l5vrfv from /gems/ruby/2.7.0/gems/rack-2.2.2/lib/rack/builder.rb:116:in `eval'
3l5vrfv from /gems/ruby/2.7.0/gems/rack-2.2.2/lib/rack/builder.rb:116:in `new_from_string'
3l5vrfv from /gems/ruby/2.7.0/gems/rack-2.2.2/lib/rack/builder.rb:105:in `load_file'
3l5vrfv from /gems/ruby/2.7.0/gems/rack-2.2.2/lib/rack/builder.rb:66:in `parse_file'
3l5vrfv from /gems/ruby/2.7.0/gems/rack-2.2.2/lib/rack/server.rb:349:in `build_app_and_options_from_config'
3l5vrfv from /gems/ruby/2.7.0/gems/rack-2.2.2/lib/rack/server.rb:249:in `app'
3l5vrfv from /gems/ruby/2.7.0/gems/rack-2.2.2/lib/rack/server.rb:422:in `wrapped_app'
3l5vrfv from /gems/ruby/2.7.0/gems/rack-2.2.2/lib/rack/server.rb:312:in `block in start'
3l5vrfv from /gems/ruby/2.7.0/gems/rack-2.2.2/lib/rack/server.rb:379:in `handle_profiling'
3l5vrfv from /gems/ruby/2.7.0/gems/rack-2.2.2/lib/rack/server.rb:311:in `start'
3l5vrfv from /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/commands/server/server_command.rb:39:in `start'
3l5vrfv from /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/commands/server/server_command.rb:147:in `block in perform'
3l5vrfv from /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/commands/server/server_command.rb:138:in `tap'
3l5vrfv from /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/commands/server/server_command.rb:138:in `perform'
3l5vrfv from /gems/ruby/2.7.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
3l5vrfv from /gems/ruby/2.7.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
3l5vrfv from /gems/ruby/2.7.0/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
3l5vrfv from /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/command/base.rb:69:in `perform'
3l5vrfv from /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/command.rb:46:in `invoke'
3l5vrfv from /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/commands.rb:18:in `<main>'
3l5vrfv from /gems/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
3l5vrfv from /gems/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
3l5vrfv from /gems/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
3l5vrfv from /gems/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
3l5vrfv from /gems/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
3l5vrfv from /gems/ruby/2.7.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `block in require'
3l5vrfv from /gems/ruby/2.7.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:291:in `load_dependency'
3l5vrfv from /gems/ruby/2.7.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `require'
3l5vrfv from bin/rails:4:in `<main>'
3l5vrfv /usr/local/lib/ruby/2.7.0/logger/log_device.rb:95:in `initialize': No such file or directory @ rb_sysopen - /app/log/production.log (Errno::ENOENT)
3l5vrfv from /usr/local/lib/ruby/2.7.0/logger/log_device.rb:95:in `open'
3l5vrfv from /usr/local/lib/ruby/2.7.0/logger/log_device.rb:95:in `open_logfile'
3l5vrfv from /usr/local/lib/ruby/2.7.0/logger/log_device.rb:86:in `set_dev'
3l5vrfv from /usr/local/lib/ruby/2.7.0/logger/log_device.rb:18:in `initialize'
3l5vrfv from /usr/local/lib/ruby/2.7.0/logger.rb:389:in `new'
3l5vrfv from /usr/local/lib/ruby/2.7.0/logger.rb:389:in `initialize'
3l5vrfv from /gems/ruby/2.7.0/gems/activesupport-6.0.2.2/lib/active_support/logger.rb:81:in `initialize'
3l5vrfv from /app/config/environments/production.rb:91:in `new'
3l5vrfv from /app/config/environments/production.rb:91:in `block in <main>'
3l5vrfv from /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/railtie.rb:216:in `instance_eval'
3l5vrfv from /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/railtie.rb:216:in `configure'
3l5vrfv from /app/config/environments/production.rb:1:in `<main>'
3l5vrfv from /gems/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
3l5vrfv from /gems/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
3l5vrfv from /gems/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
3l5vrfv from /gems/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
3l5vrfv from /gems/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
3l5vrfv from /gems/ruby/2.7.0/gems/zeitwerk-2.3.0/lib/zeitwerk/kernel.rb:23:in `require'
3l5vrfv from /gems/ruby/2.7.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `block in require'
3l5vrfv from /gems/ruby/2.7.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:291:in `load_dependency'
3l5vrfv from /gems/ruby/2.7.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `require'
3l5vrfv from /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/engine.rb:612:in `block (2 levels) in <class:Engine>'
3l5vrfv from /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/engine.rb:611:in `each'
3l5vrfv from /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/engine.rb:611:in `block in <class:Engine>'
3l5vrfv from /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:32:in `instance_exec'
3l5vrfv from /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:32:in `run'
3l5vrfv from /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:61:in `block in run_initializers'
3l5vrfv from /usr/local/lib/ruby/2.7.0/tsort.rb:228:in `block in tsort_each'
3l5vrfv from /usr/local/lib/ruby/2.7.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
3l5vrfv from /usr/local/lib/ruby/2.7.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
3l5vrfv from /usr/local/lib/ruby/2.7.0/tsort.rb:431:in `each_strongly_connected_component_from'
3l5vrfv from /usr/local/lib/ruby/2.7.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
3l5vrfv from /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:50:in `each'
3l5vrfv from /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:50:in `tsort_each_child'
3l5vrfv from /usr/local/lib/ruby/2.7.0/tsort.rb:415:in `call'
3l5vrfv from /usr/local/lib/ruby/2.7.0/tsort.rb:415:in `each_strongly_connected_component_from'
3l5vrfv from /usr/local/lib/ruby/2.7.0/tsort.rb:349:in `block in each_strongly_connected_component'
3l5vrfv from /usr/local/lib/ruby/2.7.0/tsort.rb:347:in `each'
3l5vrfv from /usr/local/lib/ruby/2.7.0/tsort.rb:347:in `call'
3l5vrfv from /usr/local/lib/ruby/2.7.0/tsort.rb:347:in `each_strongly_connected_component'
3l5vrfv from /usr/local/lib/ruby/2.7.0/tsort.rb:226:in `tsort_each'
3l5vrfv from /usr/local/lib/ruby/2.7.0/tsort.rb:205:in `tsort_each'
3l5vrfv from /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:60:in `run_initializers'
3l5vrfv from /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/application.rb:363:in `initialize!'
3l5vrfv from /app/config/environment.rb:5:in `<main>'
3l5vrfv from /gems/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
3l5vrfv from /gems/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
3l5vrfv from /gems/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
3l5vrfv from /gems/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
3l5vrfv from /gems/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
3l5vrfv from /gems/ruby/2.7.0/gems/zeitwerk-2.3.0/lib/zeitwerk/kernel.rb:23:in `require'
3l5vrfv from /gems/ruby/2.7.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `block in require'
3l5vrfv from /gems/ruby/2.7.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:291:in `load_dependency'
3l5vrfv from /gems/ruby/2.7.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `require'
3l5vrfv from /gems/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:49:in `require_relative'
3l5vrfv from config.ru:3:in `block in <main>'
3l5vrfv from /gems/ruby/2.7.0/gems/rack-2.2.2/lib/rack/builder.rb:116:in `eval'
3l5vrfv from /gems/ruby/2.7.0/gems/rack-2.2.2/lib/rack/builder.rb:116:in `new_from_string'
3l5vrfv from /gems/ruby/2.7.0/gems/rack-2.2.2/lib/rack/builder.rb:105:in `load_file'
3l5vrfv from /gems/ruby/2.7.0/gems/rack-2.2.2/lib/rack/builder.rb:66:in `parse_file'
3l5vrfv from /gems/ruby/2.7.0/gems/rack-2.2.2/lib/rack/server.rb:349:in `build_app_and_options_from_config'
3l5vrfv from /gems/ruby/2.7.0/gems/rack-2.2.2/lib/rack/server.rb:249:in `app'
3l5vrfv from /gems/ruby/2.7.0/gems/rack-2.2.2/lib/rack/server.rb:422:in `wrapped_app'
3l5vrfv from /gems/ruby/2.7.0/gems/rack-2.2.2/lib/rack/server.rb:312:in `block in start'
3l5vrfv from /gems/ruby/2.7.0/gems/rack-2.2.2/lib/rack/server.rb:379:in `handle_profiling'
3l5vrfv from /gems/ruby/2.7.0/gems/rack-2.2.2/lib/rack/server.rb:311:in `start'
3l5vrfv from /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/commands/server/server_command.rb:39:in `start'
3l5vrfv from /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/commands/server/server_command.rb:147:in `block in perform'
3l5vrfv from /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/commands/server/server_command.rb:138:in `tap'
3l5vrfv from /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/commands/server/server_command.rb:138:in `perform'
3l5vrfv from /gems/ruby/2.7.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
3l5vrfv from /gems/ruby/2.7.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
3l5vrfv from /gems/ruby/2.7.0/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
3l5vrfv from /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/command/base.rb:69:in `perform'
3l5vrfv from /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/command.rb:46:in `invoke'
3l5vrfv from /gems/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/commands.rb:18:in `<main>'
3l5vrfv from /gems/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
3l5vrfv from /gems/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
3l5vrfv from /gems/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
3l5vrfv from /gems/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
3l5vrfv from /gems/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
3l5vrfv from /gems/ruby/2.7.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `block in require'
3l5vrfv from /gems/ruby/2.7.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:291:in `load_dependency'
3l5vrfv from /gems/ruby/2.7.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `require'
3l5vrfv from bin/rails:4:in `<main>'

Bug Critical

All 4 comments

The only version that works is v1.2.2

3l5vrfv /usr/local/lib/ruby/2.7.0/logger/log_device.rb:95:in `initialize': No such file or directory @ rb_sysopen - /app/log/production.log (Errno::ENOENT)

This looks like production.log is not generated or it is not available.

Could you please try setting RAILS_LOG_TO_STDOUT env variable to true and see if this works?

@pranavrajs you guys missed to include the directory log on last docker images releases...

I fixed by manually entering in both containers (sidekiq + rails). This also solved the issue #700

docker exec -it <CONTAINER_ID> sh and then mkdir log

Also, bear in mind the behaviour of docker is putting the service up and then it fails in the next 2 secs... So I had to be quick enough to enter the container and create the directory, which took me a few tries..

@whiteyhat Thanks for reporting this. We will review the logging mechanism in #701

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ckc picture ckc  路  3Comments

MaheshCasiraghi picture MaheshCasiraghi  路  5Comments

justinclift picture justinclift  路  4Comments

pranavrajs picture pranavrajs  路  5Comments

mr-karan picture mr-karan  路  3Comments