Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Tasks container doesn't work out of box in docker. #291

Open
SWATOPLUS opened this issue Jan 23, 2019 · 0 comments
Open

Tasks container doesn't work out of box in docker. #291

SWATOPLUS opened this issue Jan 23, 2019 · 0 comments

Comments

@SWATOPLUS
Copy link

Help me, please. I run it using docker for windows at my developing machine.

I think something wrong with chmod options.

This line in delayed_job.rb blows up container.

Delayed::Worker.logger = Logger.new(Rails.root.join('log', 'delayed_job.log'))

Also there is an error in log:

tasks_1  | Rails Error: Unable to access log file.
Please ensure that /crucible/log/development.log exists and is writable (ie, make it writable for user and group: chmod 0664 /crucible/log/development.log).
The log level has been raised to WARN and the output directed to STDERR until the problem is fixed.

I tried to fix it by adding at docker file end this line:

RUN /bin/bash -c "cd /crucible/log ; ls -la; chmod 777 *; ls -la"

And recive this output:

Step 10/10 : RUN /bin/bash -c "cd /crucible/log ; ls -la; chmod 777 development.log; ls -la"
 ---> Running in dd3569d2c413
total 1560
drwxrwxrwx 2 root root    4096 Jan 23 18:40 .
drwxr-xr-x 1 root root    4096 Jan 23 19:12 ..
-rwxrwxrwx 1 root root       0 Jan 22 15:11 .keep
-rwxrwxrwx 1 root root      66 Jan 22 16:48 delayed_job.log
-rwxrwxrwx 1 root root 1581538 Jan 23 19:00 development.log
total 1560
drwxrwxrwx 1 root root    4096 Jan 23 18:40 .
drwxr-xr-x 1 root root    4096 Jan 23 19:12 ..
-rwxrwxrwx 1 root root       0 Jan 22 15:11 .keep
-rwxrwxrwx 1 root root      66 Jan 22 16:48 delayed_job.log
-rwxrwxrwx 1 root root 1581538 Jan 23 19:00 development.log
Removing intermediate container dd3569d2c413

But it didn't help.

Full error log:

tasks_1  | I, [2019-01-23T19:00:21.578263 #15]  INFO -- : TestScriptEngine.parse_testscripts: Loaded /usr/local/bundle/bundler/gems/plan_executor-68901ddabdfc/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRClient/04-PatientHistory/connectathon-15-patient-fhirclient-04-history-xml.xml
tasks_1  | I, [2019-01-23T19:00:21.583244 #15]  INFO -- : TestScriptEngine.parse_testscripts: Loaded /usr/local/bundle/bundler/gems/plan_executor-68901ddabdfc/lib/tests/testscripts/scripts/connectathon/Patient-02-Formal/FHIRClient/04-PatientHistory/connectathon-15-patient-fhirclient-04-history-json.xml
tasks_1  | Rails Error: Unable to access log file. Please ensure that /crucible/log/development.log exists and is writable (ie, make it writable for user and group: chmod 0664 /crucible/log/development.log). The log level has been raised to WARN and the output directed to STDERR until the problem is fixed.
mongo_1  | 2019-01-23T19:00:27.359+0000 [initandlisten] connection accepted from 172.18.0.4:60796 #2 (2 connections now open)
tasks_1  |   MOPED: 172.18.0.2:27017 COMMAND      database=admin command={:ismaster=>1} runtime: 7.6277ms
tasks_1  |   MOPED: 172.18.0.2:27017 COMMAND      database=crucible_development command={:count=>"badges", :query=>{}} runtime: 2.6655ms
mongo_1  | 2019-01-23T19:00:37.376+0000 [PeriodicTaskRunner] task: DBConnectionPool-cleaner took: 4ms
mongo_1  | 2019-01-23T19:00:37.437+0000 [clientcursormon] mem (MB) res:20 virt:503
mongo_1  | 2019-01-23T19:00:37.437+0000 [clientcursormon]  mapped (incl journal view):320
mongo_1  | 2019-01-23T19:00:37.437+0000 [clientcursormon]  connections:2
tasks_1  | rake aborted!
tasks_1  | SystemStackError: stack level too deep
tasks_1  | /crucible/config/initializers/delayed_job.rb:1:in `new'
tasks_1  | /crucible/config/initializers/delayed_job.rb:1:in `<top (required)>'
tasks_1  | /usr/local/bundle/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:268:in `load'
tasks_1  | /usr/local/bundle/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:268:in `block in load'
tasks_1  | /usr/local/bundle/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:240:in `load_dependency'
tasks_1  | /usr/local/bundle/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:268:in `load'
tasks_1  | /usr/local/bundle/gems/railties-4.2.10/lib/rails/engine.rb:652:in `block in load_config_initializer'
tasks_1  | /usr/local/bundle/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument'
tasks_1  | /usr/local/bundle/gems/railties-4.2.10/lib/rails/engine.rb:651:in `load_config_initializer'
tasks_1  | /usr/local/bundle/gems/railties-4.2.10/lib/rails/engine.rb:616:in `block (2 levels) in <class:Engine>'
tasks_1  | /usr/local/bundle/gems/railties-4.2.10/lib/rails/engine.rb:615:in `each'
tasks_1  | /usr/local/bundle/gems/railties-4.2.10/lib/rails/engine.rb:615:in `block in <class:Engine>'
tasks_1  | /usr/local/bundle/gems/railties-4.2.10/lib/rails/initializable.rb:30:in `instance_exec'
tasks_1  | /usr/local/bundle/gems/railties-4.2.10/lib/rails/initializable.rb:30:in `run'
tasks_1  | /usr/local/bundle/gems/railties-4.2.10/lib/rails/initializable.rb:55:in `block in run_initializers'
tasks_1  | /usr/local/bundle/gems/railties-4.2.10/lib/rails/initializable.rb:44:in `each'
tasks_1  | /usr/local/bundle/gems/railties-4.2.10/lib/rails/initializable.rb:44:in `tsort_each_child'
tasks_1  | /usr/local/bundle/gems/railties-4.2.10/lib/rails/initializable.rb:54:in `run_initializers'
tasks_1  | /usr/local/bundle/gems/railties-4.2.10/lib/rails/application.rb:352:in `initialize!'
tasks_1  | /crucible/config/environment.rb:5:in `<top (required)>'
tasks_1  | /usr/local/bundle/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:274:in `require'
tasks_1  | /usr/local/bundle/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:274:in `block in require'
tasks_1  | /usr/local/bundle/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:240:in `load_dependency'
tasks_1  | /usr/local/bundle/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:274:in `require'
tasks_1  | /usr/local/bundle/gems/railties-4.2.10/lib/rails/application.rb:328:in `require_environment!'
tasks_1  | /usr/local/bundle/gems/railties-4.2.10/lib/rails/application.rb:457:in `block in run_tasks_blocks'
tasks_1  | /usr/local/bundle/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
tasks_1  | /usr/local/bin/bundle:30:in `block in <main>'
tasks_1  | /usr/local/bin/bundle:22:in `<main>'
tasks_1  | Tasks: TOP => jobs:work => jobs:environment_options => environment
tasks_1  | (See full trace by running task with --trace)
mongo_1  | 2019-01-23T19:00:39.604+0000 [conn2] end connection 172.18.0.4:60796 (1 connection now open)
tasks_1  | `health-data-standards` failed to load: C-CDA export disabled.
crucible_tasks_1 exited with code 1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant