Project

General

Profile

Actions

Bug #18679

closed

arvados-api fails to start if API.DisabledAPIs is not explicitly set in config.yml

Added by Javier Bértoli almost 3 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
API
Target version:
Story points:
-
Release relationship:
Auto

Description

The arvados API code fails to start, with this error:

==> error.log <==
App 38957 output: Error: The application encountered the following error: API.DisabledAPIs expected Hash but was NilClass (RuntimeError)
App 38957 output:     /var/www/arvados-api/current/lib/config_loader.rb:163:in `block in coercion_and_check'
App 38957 output:     /var/www/arvados-api/current/lib/config_loader.rb:80:in `each'
App 38957 output:     /var/www/arvados-api/current/lib/config_loader.rb:80:in `coercion_and_check'
App 38957 output:     /var/www/arvados-api/current/config/arvados_config.rb:229:in `<top (required)>'
App 38957 output:     /var/www/arvados-api/current/config/application.rb:53:in `require_relative'
App 38957 output:     /var/www/arvados-api/current/config/application.rb:53:in `<class:Application>'
App 38957 output:     /var/www/arvados-api/current/config/application.rb:50:in `<module:Server>'
App 38957 output:     /var/www/arvados-api/current/config/application.rb:48:in `<top (required)>'
App 38957 output:     /var/www/arvados-api/current/config/environment.rb:6:in `require_relative'
App 38957 output:     /var/www/arvados-api/current/config/environment.rb:6:in `<top (required)>'
App 38957 output:     config.ru:7:in `require'
App 38957 output:     config.ru:7:in `block in <main>'
App 38957 output:     /var/www/arvados-api/shared/vendor_bundle/ruby/2.7.0/gems/rack-2.2.3/lib/rack/builder.rb:125:in `instance_eval'
App 38957 output:     /var/www/arvados-api/shared/vendor_bundle/ruby/2.7.0/gems/rack-2.2.3/lib/rack/builder.rb:125:in `initialize'
App 38957 output:     config.ru:1:in `new'
App 38957 output:     config.ru:1:in `<main>'
App 38957 output:     /usr/share/passenger/helper-scripts/rack-preloader.rb:101:in `eval'
App 38957 output:     /usr/share/passenger/helper-scripts/rack-preloader.rb:101:in `preload_app'
App 38957 output:     /usr/share/passenger/helper-scripts/rack-preloader.rb:189:in `block in <module:App>'
App 38957 output:     /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:397:in `run_block_and_record_step_progress'
App 38957 output:     /usr/share/passenger/helper-scripts/rack-preloader.rb:188:in `<module:App>'
App 38957 output:     /usr/share/passenger/helper-scripts/rack-preloader.rb:30:in `<module:PhusionPassenger>'
App 38957 output:     /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `<main>'
[ E 2022-01-25 16:45:04.9413 12971/T183 age/Cor/App/Implementation.cpp:221 ]: Could not spawn process for application /var/www/arvados-api/current: The application encountered the following error: API.DisabledAPIs expected Hash but was NilClass (RuntimeError)
  Error ID: 63e03141
  Error details saved to: /tmp/passenger-error-oxPEB0.html

[ E 2022-01-25 16:45:04.9460 12971/Tc age/Cor/Con/CheckoutSession.cpp:281 ]: [Client 3-40] Cannot checkout session because a spawning error occurred. The identifier of the error is 63e03141. Please see earlier logs for details about the error.

Seems like it's only the api server that has trouble with this. Perhaps the bug is in the rails code that ingests the config via `arvados-server config-dump`.


Files

config.yml (3.24 KB) config.yml Javier Bértoli, 02/01/2022 10:34 PM

Subtasks 1 (0 open1 closed)

Task #18711: review 18679-handle-keys-with-null-values-in-configResolvedWard Vandewege02/02/2022Actions
Actions

Also available in: Atom PDF