In the kitchen.yml does not work the following
-['private_network', { type: '192.168.4.3'} ]
Whenever I use kitchen-converge the following error message appears
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: 1 actions failed.
>>>>>> Failed to complete #create action: [Expected process to exit with [0], but received '1'
---- Begin output of vagrant up --no-provision --provider virtualbox ----
STDOUT:
STDERR: /usr/share/rubygems-integration/all/gems/vagrant- 2.2.19/plugins/kernel_v2/config/vm.rb:319:in `network': wrong number of arguments (given 2, expected 1) (ArgumentError)
from /home/t/git/cookbooks/fu-kasm-workspace/.kitchen/kitchen-vagrant/kasm-vagrant/Vagrantfile:5:in `block in <top (required)>'
from /usr/share/rubygems-integration/all/gems/vagrant-2.2.19/lib/vagrant/config/v2/loader.rb:37:in `load'
from /usr/share/rubygems-integration/all/gems/vagrant-2.2.19/lib/vagrant/config/loader.rb:126:in `block (2 levels) in load'
from /usr/share/rubygems-integration/all/gems/vagrant-2.2.19/lib/vagrant/config/loader.rb:119:in `each'
from /usr/share/rubygems-integration/all/gems/vagrant-2.2.19/lib/vagrant/config/loader.rb:119:in `block in load'
from /usr/share/rubygems-integration/all/gems/vagrant-2.2.19/lib/vagrant/config/loader.rb:116:in `each'
from /usr/share/rubygems-integration/all/gems/vagrant-2.2.19/lib/vagrant/config/loader.rb:116:in `load'
from /usr/share/rubygems-integration/all/gems/vagrant-2.2.19/lib/vagrant/vagrantfile.rb:29:in `initialize'
from /usr/share/rubygems-integration/all/gems/vagrant-2.2.19/lib/vagrant/environment.rb:793:in `new'
from /usr/share/rubygems-integration/all/gems/vagrant-2.2.19/lib/vagrant/environment.rb:793:in `vagrantfile'
from /usr/share/rubygems-integration/all/gems/vagrant- 2.2.19/lib/vagrant/environment.rb:974:in `process_configured_plugins'
from /usr/share/rubygems-integration/all/gems/vagrant-2.2.19/lib/vagrant/environment.rb:178:in `initialize'
from /usr/share/rubygems-integration/all/gems/vagrant-2.2.19/bin/vagrant:194:in `new'
from /usr/share/rubygems-integration/all/gems/vagrant-2.2.19/bin/vagrant:194:in `<top (required)>'
from /usr/bin/vagrant:25:in `load'
from /usr/bin/vagrant:25:in `<main>' ---- End output of vagrant up --no-provision --provider virtualbox ----
Ran vagrant up --no-provision --provider virtualbox returned 1] on kasm-vagrant
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration
Have also tried to downgrade Vagrant and Chef without success.
Would be nice if someone could help me
Related
I'm trying to upgrade our applications acceptance tests to run on ruby version 3.1.2 from 2.5.3.
And getting this output when running tests through intellij:
/bin/bash -c "env RBENV_VERSION=3.1.2 /home/####/.rbenv/libexec/rbenv exec ruby -EUTF-8 /home/####/.rbenv/versions/3.1.2/bin/cucumber /home/####/git/PATH/TEST_NAME.feature --format 'Teamcity::Cucumber::Formatter' --expand --name '^VbV TEST_NAME ACCEPT$' --color -r features"
Testing started at 11:25 ...
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/cucumber-3.1.2/lib/cucumber/cli/profile_loader.rb:68: warning: Passing safe_level with the 2nd argument of ERB.new is deprecated. Do not use it, and specify other arguments as keyword arguments.
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/cucumber-3.1.2/lib/cucumber/cli/profile_loader.rb:68: warning: Passing trim_mode with the 3rd argument of ERB.new is deprecated. Use keyword argument like ERB.new(str, trim_mode: ...) instead.
wrong number of arguments (given 4, expected 3) (ArgumentError)
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/capybara-3.14.0/lib/capybara/selector/filters/node_filter.rb:9:in `initialize'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/capybara-3.14.0/lib/capybara/selector/filter_set.rb:115:in `new'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/capybara-3.14.0/lib/capybara/selector/filter_set.rb:115:in `add_filter'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/capybara-3.14.0/lib/capybara/selector/filter_set.rb:19:in `node_filter'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/capybara-3.14.0/lib/capybara/selector.rb:5:in `block in <top (required)>'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/capybara-3.14.0/lib/capybara/selector/filter_set.rb:15:in `instance_eval'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/capybara-3.14.0/lib/capybara/selector/filter_set.rb:15:in `initialize'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/capybara-3.14.0/lib/capybara/selector/filter_set.rb:77:in `new'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/capybara-3.14.0/lib/capybara/selector/filter_set.rb:77:in `add'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/capybara-3.14.0/lib/capybara/selector.rb:4:in `<top (required)>'
<internal:/home/####/.rbenv/versions/3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
<internal:/home/####/.rbenv/versions/3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/capybara-3.14.0/lib/capybara.rb:433:in `<module:Capybara>'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/capybara-3.14.0/lib/capybara.rb:9:in `<top (required)>'
<internal:/home/####/.rbenv/versions/3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:160:in `require'
<internal:/home/####/.rbenv/versions/3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:160:in `rescue in require'
<internal:/home/####/.rbenv/versions/3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:149:in `require'
/home/####/git/PATH/support/env.rb:7:in `<top (required)>'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/cucumber-3.1.2/lib/cucumber/glue/registry_and_more.rb:107:in `load'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/cucumber-3.1.2/lib/cucumber/glue/registry_and_more.rb:107:in `load_code_file'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/cucumber-3.1.2/lib/cucumber/runtime/support_code.rb:144:in `load_file'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/cucumber-3.1.2/lib/cucumber/runtime/support_code.rb:85:in `block in load_files!'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/cucumber-3.1.2/lib/cucumber/runtime/support_code.rb:84:in `each'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/cucumber-3.1.2/lib/cucumber/runtime/support_code.rb:84:in `load_files!'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/cucumber-3.1.2/lib/cucumber/runtime.rb:272:in `load_step_definitions'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/cucumber-3.1.2/lib/cucumber/runtime.rb:68:in `run!'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/cucumber-3.1.2/lib/cucumber/cli/main.rb:34:in `execute!'
/home/####/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/cucumber-3.1.2/bin/cucumber:9:in `<top (required)>'
/home/####/.rbenv/versions/3.1.2/bin/cucumber:25:in `load'
/home/####/.rbenv/versions/3.1.2/bin/cucumber:25:in `<main>'
Process finished with exit code 2
When fakeS3, using the license number, is used to simulate AWS S3 in MAC OS, for testing (as suggested in the documentation), the following error is received:
Command:
sudo fakes3 -r /mnt/fakes3_root -p 4567 --license <<license-number>>
Error Message:
ERROR Errno::EROFS: Read-only file system # dir_s_mkdir - /mnt
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/fileutils.rb:239:in `mkdir'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/fileutils.rb:239:in `fu_mkdir'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/fileutils.rb:217:in `block (2 levels) in mkdir_p'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/fileutils.rb:215:in `reverse_each'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/fileutils.rb:215:in `block in mkdir_p'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/fileutils.rb:200:in `each'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/fileutils.rb:200:in `mkdir_p'
/Library/Ruby/Gems/2.6.0/gems/fakes3-2.0.0/lib/fakes3/file_store.rb:64:in `create_bucket'
/Library/Ruby/Gems/2.6.0/gems/fakes3-2.0.0/lib/fakes3/server.rb:208:in `do_PUT'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/webrick/httpservlet/abstract.rb:105:in `service'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/webrick/httpserver.rb:140:in `service'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/webrick/httpserver.rb:96:in `run'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/webrick/server.rb:307:in `block in start_thread'
The error from the RubyMine terminal is:
/bin/zsh -c "bash -c 'env RBENV_VERSION=2.7.5 /usr/local/Cellar/rbenv/1.2.0/libexec/rbenv exec ruby -x /Users/user1/srccompanyl/bin/bundle exec ruby /Users/user1/srccompanyl/bin/rails server -b 0.0.0.0 -p 3000 -e development'"
Traceback (most recent call last):
27: from /Users/user1/srccompanyl/bin/rails:4:in `<main>'
26: from /Users/user1/srccompanyl/bin/rails:4:in `require'
25: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/railties-6.1.6.1/lib/rails/commands.rb:18:in `<top (required)>'
24: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/railties-6.1.6.1/lib/rails/command.rb:48:in `invoke'
23: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/railties-6.1.6.1/lib/rails/command/base.rb:69:in `perform'
22: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/thor-1.0.1/lib/thor.rb:392:in `dispatch'
21: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/thor-1.0.1/lib/thor/invocation.rb:127:in `invoke_command'
20: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/thor-1.0.1/lib/thor/command.rb:27:in `run'
19: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/railties-6.1.6.1/lib/rails/commands/server/server_command.rb:135:in `perform'
18: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/railties-6.1.6.1/lib/rails/commands/server/server_command.rb:135:in `tap'
17: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/railties-6.1.6.1/lib/rails/commands/server/server_command.rb:138:in `block in perform'
16: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in `require'
15: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:299:in `load_dependency'
14: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in `block in require'
13: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in `require'
12: from /Users/user1/srccompanyl/config/application.rb:16:in `<top (required)>'
11: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/bundler-1.17.3/lib/bundler.rb:114:in `require'
10: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/bundler-1.17.3/lib/bundler/runtime.rb:65:in `require'
9: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/bundler-1.17.3/lib/bundler/runtime.rb:65:in `each'
8: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/bundler-1.17.3/lib/bundler/runtime.rb:76:in `block in require'
7: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/bundler-1.17.3/lib/bundler/runtime.rb:76:in `each'
6: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/bundler-1.17.3/lib/bundler/runtime.rb:81:in `block (2 levels) in require'
5: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/bundler-1.17.3/lib/bundler/runtime.rb:81:in `require'
4: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/pg-1.2.3/lib/pg.rb:5:in `<top (required)>'
3: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in `require'
2: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:299:in `load_dependency'
1: from /Users/user1/.rvm/gems/ruby-2.7.5/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in `block in require'
/Users/user1/.rvm/gems/ruby-2.7.5/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in `require': incompatible library version - /Users/user1/.rvm/gems/ruby-2.7.5/gems/pg-1.2.3/lib/pg_ext.bundle (LoadError)
Process finished with exit code 1
How do I debug and fix? I tried running bundler install but same incompatible library version. Do I need to make sure the rbenv version match? How do I do that?
I am using the command bundle exec fastlane <some lane> in an iOS project and I get this error:
[17:19:50]: fastlane finished with errors
Looking for related GitHub issues on fastlane/fastlane...
➡️ Improve Beta Setup
https://github.com/fastlane/fastlane/pull/1 [closed] 1 💬
04 Feb 2017
➡️ Shell command exited with exit status 2 instead of 0.
https://github.com/fastlane/fastlane/issues/19339 [closed] 5 💬
4 weeks ago
➡️ create_keychain throwing Shell command exited with exit status 162 instead of 0
https://github.com/fastlane/fastlane/issues/19374 [closed] 4 💬
4 weeks ago
and 93 more at: https://github.com/fastlane/fastlane/search?q=Shell%20command%20exited%20with%20exit%20status%201%20instead%20of%200.&type=Issues&utf8=✓
🔗 You can ⌘ + double-click on links to open them directly in your browser.
bundler: failed to load command: fastlane (/Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/bin/fastlane)
Traceback (most recent call last):
51: from /opt/homebrew/opt/ruby#2.7/bin/bundle:25:in `<main>'
50: from /opt/homebrew/opt/ruby#2.7/bin/bundle:25:in `load'
49: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.5/exe/bundle:36:in `<top (required)>'
48: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.5/lib/bundler/friendly_errors.rb:103:in `with_friendly_errors'
47: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.5/exe/bundle:48:in `block in <top (required)>'
46: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.5/lib/bundler/cli.rb:25:in `start'
45: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.5/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
44: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.5/lib/bundler/cli.rb:31:in `dispatch'
43: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.5/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
42: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.5/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
41: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.5/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
40: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.5/lib/bundler/cli.rb:484:in `exec'
39: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.5/lib/bundler/cli/exec.rb:23:in `run'
38: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.5/lib/bundler/cli/exec.rb:58:in `kernel_load'
37: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.5/lib/bundler/cli/exec.rb:58:in `load'
36: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/bin/fastlane:25:in `<top (required)>'
35: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/bin/fastlane:25:in `load'
34: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/bin/fastlane:23:in `<top (required)>'
33: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/cli_tools_distributor.rb:122:in `take_off'
32: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/commands_generator.rb:42:in `start'
31: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/commands_generator.rb:353:in `run'
30: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!'
29: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in `run!'
28: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in `run_active_command'
27: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/commander-4.6.0/lib/commander/command.rb:157:in `run'
26: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/commander-4.6.0/lib/commander/command.rb:187:in `call'
25: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/commands_generator.rb:109:in `block (2 levels) in run'
24: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
23: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
22: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/runner.rb:45:in `execute'
21: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/runner.rb:45:in `chdir'
20: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
19: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/lane.rb:33:in `call'
18: from Fastfile:644:in `block (2 levels) in parsing_binding'
17: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
16: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/runner.rb:146:in `trigger_action_by_name'
15: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/runner.rb:204:in `try_switch_to_lane'
14: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/lane.rb:33:in `call'
13: from Fastfile:700:in `block (2 levels) in parsing_binding'
12: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
11: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/runner.rb:146:in `trigger_action_by_name'
10: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/runner.rb:204:in `try_switch_to_lane'
9: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/lane.rb:33:in `call'
8: from Fastfile:729:in `block (2 levels) in parsing_binding'
7: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/fast_file.rb:214:in `sh'
6: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/fast_file.rb:222:in `sh'
5: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/actions/actions_helper.rb:69:in `execute_action'
4: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/fast_file.rb:223:in `block in sh'
3: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/helper/sh_helper.rb:16:in `sh_no_action'
2: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane/lib/fastlane/helper/sh_helper.rb:80:in `sh_control_output'
1: from /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/gems/fastlane-2.204.3/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in `method_missing'
But when I go into /Users/ebucelik/Projects/AppSolutioniOS/vendor/bundle/ruby/2.7.0/bin/fastlane then I can execute the file. That's really strange.
I tried many things before like updating/reinstalling fastlane, gem, ruby, bundle install/update, deleting Gemfile.lock ...
My ruby version: ruby 2.7.5p203 (2021-11-24 revision f69aeb8314) [arm64-darwin21]
My fastlane version: fastlane 2.204.3
My bundler version: 2.3.5
My gem version: 3.3.9
The .zshrc contains the path: export PATH="/opt/homebrew/opt/ruby#2.7/bin:$PATH"
I have simply no idea what to do now because I can not work since I can not run this lane. Hope anyone can help me out. Thank you in advance!
If a lane is available with the same name, in my case it fails.
i.e.
lane match_nuke
match_nuke(...)
end
It will fail, but if you use:
i.e.
lane match_cleanup
match_nuke(...)
end
It will work.
I'm not available to provide any link of documentation so I didn't see it mentioned anywhere.
While installing chef-server on my VM I am getting the following error.
FATAL: Chef::Exceptions::JSON::EncodeError: Invalid UTF-8 string: cannot encode to UTF-8
and my chef-stacktrace.out is
Chef::Exceptions::JSON::EncodeError: Invalid UTF-8 string: cannot encode to UTF-8
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/json_compat.rb:107:in `rescue in to_json'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/json_compat.rb:104:in `to_json'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/http/json_input.rb:35:in `handle_request'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/http.rb:222:in `block in apply_request_middleware'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/http.rb:220:in `each'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/http.rb:220:in `inject'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/http.rb:220:in `apply_request_middleware'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/http.rb:141:in `request'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/http.rb:118:in `put'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/node.rb:512:in `save'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/client.rb:257:in `save_updated_node'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/client.rb:403:in `run'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/application.rb:243:in `run_with_graceful_exit_option'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/application.rb:220:in `block in run_chef_client'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/local_mode.rb:38:in `with_server_connectivity'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/application.rb:201:in `run_chef_client'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/application/client.rb:328:in `run_application'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/lib/chef/application.rb:58:in `run'
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.3/bin/chef-client:26:in `<top (required)>'
/opt/opscode/embedded/bin/chef-client:23:in `load'
/opt/opscode/embedded/bin/chef-client:23:in `<main>'
~
~
~
I have tried almost everything. I realised that the issue was related to encoding but couldn't solve it. Any help is appreciated.
thanks.
I believe this should be fixed in version 12.4.0
https://github.com/chef/chef/issues/3216