I couldn’t find any solution for “/usr/local/bin/cstacks bootstrap-app” issue in ansible installation process…
TASK [controller_bootstrap : run bootstrap script] ***************
fatal: [Controller IP]: FAILED! => {“changed”: true, “cmd”: “/usr/local/bin/cstacks bootstrap-app”, “delta”: “0:00:11.185658”, “end”: “2024-12-18 10:10:14.345147”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2024-12-18 10:10:03.159489”, “stderr”: “”, “stderr_lines”: , “stdout”: “/usr/local/bundle/gems/zeitwerk-2.6.14/lib/zeitwerk/kernel.rb:34: warning: csv was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0. Add csv to your Gemfile or gemspec. Also contact author of httparty-0.21.0 to add csv into its gemspec.\r\nConfiguring App…\r\nCreating Sample Products\r\nLoading default Features…\r\nrake aborted!\r\nNoMethodError: undefined method le_server' for class Setting\r\n/usr/local/bundle/gems/activerecord-7.1.3.2/lib/active_record/dynamic_matchers.rb:22:in
method_missing’\r\n(eval at /usr/src/app/app/models/setting.rb:716):1:in block in setup!'\r\n/usr/src/app/app/models/setting.rb:716:in
eval’\r\n/usr/src/app/app/models/setting.rb:716:in block in setup!'\r\n/usr/src/app/app/models/setting.rb:715:in
each’\r\n/usr/src/app/app/models/setting.rb:715:in setup!'\r\n/usr/src/app/lib/tasks/default_settings.rake:4:in
block in <top (required)>‘\r\n/usr/src/app/lib/tasks/install.rake:11:in block in <top (required)>'\r\n/usr/src/app/lib/tasks/bootstrap.rake:44:in
block in <top (required)>’\r\n/usr/local/bundle/gems/rake-13.0.6/exe/rake:27:in <top (required)>'\r\n/usr/local/bin/bundle:25:in
load’\r\n/usr/local/bin/bundle:25:in <main>'\r\nTasks: TOP => bootstrap\r\n(See full trace by running task with --trace)", "stdout_lines": ["/usr/local/bundle/gems/zeitwerk-2.6.14/lib/zeitwerk/kernel.rb:34: warning: csv was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0. Add csv to your Gemfile or gemspec. Also contact author of httparty-0.21.0 to add csv into its gemspec.", "Configuring App...", "Creating Sample Products", "Loading default Features...", "rake aborted!", "NoMethodError: undefined method
le_server’ for class Setting”, “/usr/local/bundle/gems/activerecord-7.1.3.2/lib/active_record/dynamic_matchers.rb:22:in method_missing'", "(eval at /usr/src/app/app/models/setting.rb:716):1:in
block in setup!'”, “/usr/src/app/app/models/setting.rb:716:in eval'", "/usr/src/app/app/models/setting.rb:716:in
block in setup!'”, “/usr/src/app/app/models/setting.rb:715:in each'", "/usr/src/app/app/models/setting.rb:715:in
setup!'”, “/usr/src/app/lib/tasks/default_settings.rake:4:in block in <top (required)>'", "/usr/src/app/lib/tasks/install.rake:11:in
block in <top (required)>'”, “/usr/src/app/lib/tasks/bootstrap.rake:44:in block in <top (required)>'", "/usr/local/bundle/gems/rake-13.0.6/exe/rake:27:in
<top (required)>'”, “/usr/local/bin/bundle:25:in load'", "/usr/local/bin/bundle:25:in
'”, “Tasks: TOP => bootstrap”, “(See full trace by running task with --trace)”]}
debian@controller:~$ sudo /usr/local/bin/cstacks bootstrap-app
/usr/local/bundle/gems/zeitwerk-2.6.14/lib/zeitwerk/kernel.rb:34: warning: csv was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0. Add csv to your Gemfile or gemspec. Also contact author of httparty-0.21.0 to add csv into its gemspec.
Configuring App…
Creating Sample Products
Loading default Features…
rake aborted!
NoMethodError: undefined method le_server' for class Setting /usr/local/bundle/gems/activerecord-7.1.3.2/lib/active_record/dynamic_matchers.rb:22:in
method_missing’
(eval at /usr/src/app/app/models/setting.rb:716):1:in block in setup!' /usr/src/app/app/models/setting.rb:716:in
eval’
/usr/src/app/app/models/setting.rb:716:in block in setup!' /usr/src/app/app/models/setting.rb:715:in
each’
/usr/src/app/app/models/setting.rb:715:in setup!' /usr/src/app/lib/tasks/default_settings.rake:4:in
block in <top (required)>’
/usr/src/app/lib/tasks/install.rake:11:in block in <top (required)>' /usr/src/app/lib/tasks/bootstrap.rake:44:in
block in <top (required)>’
/usr/local/bundle/gems/rake-13.0.6/exe/rake:27:in <top (required)>' /usr/local/bin/bundle:25:in
load’
/usr/local/bin/bundle:25:in `’
Tasks: TOP => bootstrap