Pb à l'installation avec Docker

Bonjour,

Nous souhaitons tester pour le fablab du CEA de Grenoble Fabmanager. Nous avons suivi la procédure d’installation avec Docker sur un Intel NUC. Voila le problème que nous rencontrons dans /apps/fabmanager/log/app-stderr.log

/usr/src/app/app/controllers/users/omniauth_callbacks_controller.rb:4:in class:OmniauthCallbacksController’: undefined method strategy_name' for #<AuthProvider::SimpleAuthProvider:0x00000009026a08> (NoMethodError) from /usr/src/app/app/controllers/users/omniauth_callbacks_controller.rb:1:in <top (required)>’
from /usr/local/bundle/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in require' from /usr/local/bundle/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in block in require’
from /usr/local/bundle/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:240:in load_dependency' from /usr/local/bundle/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in require’
from /usr/local/bundle/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:360:in require_or_load' from /usr/local/bundle/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:317:in depend_on’
from /usr/local/bundle/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:233:in require_dependency' from /usr/local/bundle/gems/railties-4.2.5/lib/rails/engine.rb:472:in block (2 levels) in eager_load!’
from /usr/local/bundle/gems/railties-4.2.5/lib/rails/engine.rb:471:in each' from /usr/local/bundle/gems/railties-4.2.5/lib/rails/engine.rb:471:in block in eager_load!’
from /usr/local/bundle/gems/railties-4.2.5/lib/rails/engine.rb:469:in each' from /usr/local/bundle/gems/railties-4.2.5/lib/rails/engine.rb:469:in eager_load!’
from /usr/local/bundle/gems/railties-4.2.5/lib/rails/engine.rb:346:in eager_load!' from /usr/local/bundle/gems/railties-4.2.5/lib/rails/application/finisher.rb:56:in each’
from /usr/local/bundle/gems/railties-4.2.5/lib/rails/application/finisher.rb:56:in block in <module:Finisher>' from /usr/local/bundle/gems/railties-4.2.5/lib/rails/initializable.rb:30:in instance_exec’
from /usr/local/bundle/gems/railties-4.2.5/lib/rails/initializable.rb:30:in run' from /usr/local/bundle/gems/railties-4.2.5/lib/rails/initializable.rb:55:in block in run_initializers’
from /usr/local/lib/ruby/2.3.0/tsort.rb:228:in block in tsort_each' from /usr/local/lib/ruby/2.3.0/tsort.rb:350:in block (2 levels) in each_strongly_connected_component’
from /usr/local/lib/ruby/2.3.0/tsort.rb:431:in each_strongly_connected_component_from' from /usr/local/lib/ruby/2.3.0/tsort.rb:349:in block in each_strongly_connected_component’
from /usr/local/lib/ruby/2.3.0/tsort.rb:347:in each' from /usr/local/lib/ruby/2.3.0/tsort.rb:347:in call’
from /usr/local/lib/ruby/2.3.0/tsort.rb:347:in each_strongly_connected_component' from /usr/local/lib/ruby/2.3.0/tsort.rb:226:in tsort_each’
from /usr/local/lib/ruby/2.3.0/tsort.rb:205:in tsort_each' from /usr/local/bundle/gems/railties-4.2.5/lib/rails/initializable.rb:54:in run_initializers’
from /usr/local/bundle/gems/railties-4.2.5/lib/rails/application.rb:352:in initialize!' from /usr/src/app/config/environment.rb:5:in <top (required)>’
from /usr/local/bundle/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in require' from /usr/local/bundle/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in block in require’
from /usr/local/bundle/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:240:in load_dependency' from /usr/local/bundle/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in require’
from /usr/src/app/config.ru:3:in block in <main>' from /usr/local/bundle/gems/rack-1.6.8/lib/rack/builder.rb:55:in instance_eval’
from /usr/local/bundle/gems/rack-1.6.8/lib/rack/builder.rb:55:in initialize' from /usr/src/app/config.ru:in new’
from /usr/src/app/config.ru:in <main>' from /usr/local/bundle/gems/rack-1.6.8/lib/rack/builder.rb:49:in eval’
from /usr/local/bundle/gems/rack-1.6.8/lib/rack/builder.rb:49:in new_from_string' from /usr/local/bundle/gems/rack-1.6.8/lib/rack/builder.rb:40:in parse_file’
from /usr/local/bundle/gems/rack-1.6.8/lib/rack/server.rb:300:in build_app_and_options_from_config' from /usr/local/bundle/gems/rack-1.6.8/lib/rack/server.rb:209:in app’
from /usr/local/bundle/gems/railties-4.2.5/lib/rails/commands/server.rb:61:in app' from /usr/local/bundle/gems/rack-1.6.8/lib/rack/server.rb:337:in wrapped_app’
from /usr/local/bundle/gems/rack-1.6.8/lib/rack/server.rb:273:in start' from /usr/local/bundle/gems/railties-4.2.5/lib/rails/commands/server.rb:80:in start’
from /usr/local/bundle/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:80:in block in server' from /usr/local/bundle/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:75:in tap’
from /usr/local/bundle/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:75:in server' from /usr/local/bundle/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:39:in run_command!’
from /usr/local/bundle/gems/railties-4.2.5/lib/rails/commands.rb:17:in <top (required)>' from bin/rails:4:in require’
from bin/rails:4:in <main>'

Auriez-vous une idée ?
Merci d’avance,
Bien cordialement,

Stéphane Segard

Bonjour Stéphane,
Peux-tu préciser à quel étape du processus d’installation cette erreur apparaît et quels sont les symptômes de dysfonctionnement ?

Merci d’avance,
Sylvain

Bonjour Sylvain,

Merci pour ta réponse. Les différentes étapes de l’installation semblent avoir réussies. Les containers docker semblent correctement configurés et lancés.

En creusant, on se rend compte que l’appli rails du container fabmanager_fabmanager_1 ne démarre pas et génère les logs que je vous ai fourni au message précédent.

Je m’en suis assuré en tentant un démarrage manuel de l’appli :
→ sudo docker exec -i -t fabmanager_fabmanger_1 /bin/bash
->/usr/src/app/rails server

Auriez-vous une idée ? Je reste à disposition pour vous fournir plus d’éléments si besoin.

Cordialement,
Stéphane

Bonjour Stéphane,

Il est probable que la commande rake db:seed ne soit pas passée.
Je te conseille de relancer les commandes décrites ici en n’oubliant pas de remplacer les xxx par la valeur souhaitée.

Tiens moi au courant,
Sylvain