Can't load /config/yeti_web.yml

We have been following the directions for the 1.11 install. We reached the data initialization part of the web interface and we get the following error.

StandardError: Can’t load /config/yeti_web.yml, message: No such file or directory - bs_fetch:open_current_file:open

We installed the web interface with apt update && apt install yeti-web nginx
Created the /opt/yeti-web/config/database.yml
cd /opt/yeti-web
su -s /bin/bash yeti-web
RAILS_ENV=production ./bin/bundle.sh exec rake db:structure:load db:migrate

This is where we get the error

Debian 10.10

yeti-web@YETI:~$ RAILS_ENV=production ./bin/bundle.sh exec rake db:structure:load db:migrate
rake aborted!
StandardError: Can't load /config/yeti_web.yml, message: No such file or directory - bs_fetch:open_current_file:open
/opt/yeti-web/config/initializers/_config.rb:6:in `rescue in <main>'
/opt/yeti-web/config/initializers/_config.rb:3:in `<main>'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:50:in `load'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:50:in `load'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:285:in `block in load'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:257:in `load_dependency'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:285:in `load'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/railties-5.2.6/lib/rails/engine.rb:663:in `block in load_config_initializer'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.6/lib/active_support/notifications.rb:170:in `instrument'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/railties-5.2.6/lib/rails/engine.rb:662:in `load_config_initializer'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/railties-5.2.6/lib/rails/engine.rb:620:in `block (2 levels) in <class:Engine>'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/railties-5.2.6/lib/rails/engine.rb:619:in `each'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/railties-5.2.6/lib/rails/engine.rb:619:in `block in <class:Engine>'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/railties-5.2.6/lib/rails/initializable.rb:32:in `instance_exec'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/railties-5.2.6/lib/rails/initializable.rb:32:in `run'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/railties-5.2.6/lib/rails/initializable.rb:61:in `block in run_initializers'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/railties-5.2.6/lib/rails/initializable.rb:50:in `each'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/railties-5.2.6/lib/rails/initializable.rb:50:in `tsort_each_child'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/railties-5.2.6/lib/rails/initializable.rb:60:in `run_initializers'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/railties-5.2.6/lib/rails/application.rb:361:in `initialize!'
/opt/yeti-web/config/environment.rb:7:in `<main>'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:in `block in require'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:257:in `load_dependency'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:in `require'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/railties-5.2.6/lib/rails/application.rb:337:in `require_environment!'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/railties-5.2.6/lib/rails/application.rb:520:in `block in run_tasks_blocks'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/rake-13.0.3/exe/rake:27:in `<top (required)>'

Caused by:
Errno::ENOENT: No such file or directory - bs_fetch:open_current_file:open
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/compile_cache/yaml.rb:49:in `fetch'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/compile_cache/yaml.rb:49:in `block in install!'
/opt/yeti-web/config/initializers/_config.rb:4:in `<main>'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:50:in `load'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:50:in `load'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:285:in `block in load'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:257:in `load_dependency'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:285:in `load'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/railties-5.2.6/lib/rails/engine.rb:663:in `block in load_config_initializer'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.6/lib/active_support/notifications.rb:170:in `instrument'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/railties-5.2.6/lib/rails/engine.rb:662:in `load_config_initializer'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/railties-5.2.6/lib/rails/engine.rb:620:in `block (2 levels) in <class:Engine>'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/railties-5.2.6/lib/rails/engine.rb:619:in `each'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/railties-5.2.6/lib/rails/engine.rb:619:in `block in <class:Engine>'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/railties-5.2.6/lib/rails/initializable.rb:32:in `instance_exec'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/railties-5.2.6/lib/rails/initializable.rb:32:in `run'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/railties-5.2.6/lib/rails/initializable.rb:61:in `block in run_initializers'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/railties-5.2.6/lib/rails/initializable.rb:50:in `each'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/railties-5.2.6/lib/rails/initializable.rb:50:in `tsort_each_child'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/railties-5.2.6/lib/rails/initializable.rb:60:in `run_initializers'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/railties-5.2.6/lib/rails/application.rb:361:in `initialize!'
/opt/yeti-web/config/environment.rb:7:in `<main>'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:in `block in require'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:257:in `load_dependency'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:in `require'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/railties-5.2.6/lib/rails/application.rb:337:in `require_environment!'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/railties-5.2.6/lib/rails/application.rb:520:in `block in run_tasks_blocks'
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/rake-13.0.3/exe/rake:27:in `<top (required)>'
Tasks: TOP => db:structure:load => db:load_config => environment
(See full trace by running task with --trace)

@WolfraiderNW

/opt/yeti-web/config# cp yeti_web.yml.distr yeti_web.yml

2 Likes

la solution fonctionne bien avec cette correction merci.
Apres la correction ; je n’arrive pas à accéder à l’interface :slight_smile:

/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.6/lib/active_record/tasks/postgresql_database_tasks.rb:116:in run_cmd' /opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.6/lib/active_record/tasks/postgresql_database_tasks.rb:88:in structure_load’
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.6/lib/active_record/tasks/database_tasks.rb:234:in structure_load' /opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.6/lib/active_record/tasks/database_tasks.rb:247:in load_schema’
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.6/lib/active_record/tasks/database_tasks.rb:266:in block in load_schema_current' /opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.6/lib/active_record/tasks/database_tasks.rb:316:in block in each_current_configuration’
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.6/lib/active_record/tasks/database_tasks.rb:313:in each' /opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.6/lib/active_record/tasks/database_tasks.rb:313:in each_current_configuration’
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.6/lib/active_record/tasks/database_tasks.rb:265:in load_schema_current' /opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.6/lib/active_record/railties/databases.rake:300:in block (3 levels) in ’
/opt/yeti-web/vendor/bundle/ruby/2.6.0/gems/rake-13.0.3/exe/rake:27:in `<top (required)>’
Tasks: TOP => db:structure:load

hi guys
had same problem (with databases)
and I solved it using @dmitry.s 's suggestion
after that have same problem as @david : “We’re sorry, but something went wrong.” upon first login (with default username/password)
is there any solution for this?
thanks in advance

SOLVED
Simply need pass away from this part if you don’t need LDAP
https://yeti-switch.org/docs/en/installation-1.11/web.html#ldap-authentication