I'm trying to run bundle exec jekyll serve on my project with Ubuntu (WSL) on Windows 11, but I keep getting the following message:
Traceback (most recent call last):
40: from /home/davyk17/.rbenv/versions/2.7.3/bin/bundle:23:in `<main>'
39: from /home/davyk17/.rbenv/versions/2.7.3/bin/bundle:23:in `load'
38: from /home/davyk17/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/bundler-2.3.13/exe/bundle:36:in `<top (required)>'
37: from /home/davyk17/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/bundler-2.3.13/lib/bundler/friendly_errors.rb:103:in `with_friendly_errors'
36: from /home/davyk17/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/bundler-2.3.13/exe/bundle:48:in `block in <top (required)>'
35: from /home/davyk17/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/bundler-2.3.13/lib/bundler/cli.rb:25:in `start'
34: from /home/davyk17/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/bundler-2.3.13/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
33: from /home/davyk17/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/bundler-2.3.13/lib/bundler/cli.rb:31:in `dispatch'
32: from /home/davyk17/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/bundler-2.3.13/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
31: from /home/davyk17/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/bundler-2.3.13/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
30: from /home/davyk17/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/bundler-2.3.13/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
29: from /home/davyk17/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/bundler-2.3.13/lib/bundler/cli.rb:483:in `exec'
28: from /home/davyk17/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/bundler-2.3.13/lib/bundler/cli/exec.rb:23:in `run'
27: from /home/davyk17/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/bundler-2.3.13/lib/bundler/cli/exec.rb:58:in `kernel_load'
26: from /home/davyk17/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/bundler-2.3.13/lib/bundler/cli/exec.rb:58:in `load'
25: from /home/davyk17/.rbenv/versions/2.7.3/bin/jekyll:23:in `<top (required)>'
24: from /home/davyk17/.rbenv/versions/2.7.3/bin/jekyll:23:in `load'
23: from /home/davyk17/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/jekyll-4.2.2/exe/jekyll:15:in `<top (required)>'
22: from /home/davyk17/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/mercenary-0.4.0/lib/mercenary.rb:21:in `program'
21: from /home/davyk17/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/mercenary-0.4.0/lib/mercenary/program.rb:44:in `go'
20: from /home/davyk17/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `execute'
19: from /home/davyk17/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `each'
18: from /home/davyk17/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `block in execute'
17: from /home/davyk17/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/jekyll-4.2.2/lib/jekyll/commands/serve.rb:86:in `block (2 levels) in init_with_program'
16: from /home/davyk17/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/jekyll-4.2.2/lib/jekyll/command.rb:91:in `process_with_graceful_fail'
15: from /home/davyk17/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/jekyll-4.2.2/lib/jekyll/command.rb:91:in `each'
14: from /home/davyk17/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/jekyll-4.2.2/lib/jekyll/command.rb:91:in `block in process_with_graceful_fail'
13: from /home/davyk17/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/jekyll-4.2.2/lib/jekyll/commands/build.rb:36:in `process'
12: from /home/davyk17/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/jekyll-4.2.2/lib/jekyll/commands/build.rb:65:in `build'
11: from /home/davyk17/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/jekyll-4.2.2/lib/jekyll/command.rb:28:in `process_site'
10: from /home/davyk17/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/jekyll-4.2.2/lib/jekyll/site.rb:82:in `process'
9: from /home/davyk17/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/jekyll-4.2.2/lib/jekyll/site.rb:230:in `write'
8: from /home/davyk17/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/jekyll-4.2.2/lib/jekyll/site.rb:356:in `each_site_file'
7: from /home/davyk17/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/jekyll-4.2.2/lib/jekyll/site.rb:356:in `each'
6: from /home/davyk17/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/jekyll-4.2.2/lib/jekyll/site.rb:357:in `block in each_site_file'
5: from /home/davyk17/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/jekyll-4.2.2/lib/jekyll/site.rb:357:in `each'
4: from /home/davyk17/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/jekyll-4.2.2/lib/jekyll/site.rb:358:in `block (2 levels) in each_site_file'
3: from /home/davyk17/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/jekyll-4.2.2/lib/jekyll/site.rb:231:in `block in write'
2: from /home/davyk17/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/jekyll-4.2.2/lib/jekyll/static_file.rb:110:in `write'
1: from /home/davyk17/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/jekyll-4.2.2/lib/jekyll/static_file.rb:204:in `copy_file'
/home/davyk17/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/jekyll-4.2.2/lib/jekyll/static_file.rb:204:in `utime': Operation not permitted # apply2files - /mnt/c/Users/davyk/Documents/Web development/explore.batterywholesale.com/_site/assets/custom.css (Errno::EPERM)
I initially thought it was a permission issue that could be solved with sudo chmod and sudo chown but those haven't worked.
Seems like it was a permissions issue after all. I gave my user account on my Windows PC administrator privileges, ran VS Code as an administrator and bundle exec jekyll serve started working again.
Related
I'm trying to update middleman version(3.4.1 -> 4.4.3) in my project. I'm using bundle version(2.3.26), and ruby(2.7.7). After upgrading when trying to run - bundle exec middleman, I'm getting the below error. My project is in macos system.
bundler: failed to load command: middleman (/Users/suparna.dey/Dev/ProjectB/main/src/user_interface/frontend_ui/dev/vendor/bundle/ruby/2.7.0/bin/middleman)
Traceback (most recent call last):
27: from /opt/homebrew/opt/ruby#2.7/bin/bundle:23:in `<main>'
26: from /opt/homebrew/opt/ruby#2.7/bin/bundle:23:in `load'
25: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.26/exe/bundle:36:in `<top (required)>'
24: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.26/lib/bundler/friendly_errors.rb:120:in `with_friendly_errors'
23: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.26/exe/bundle:48:in `block in <top (required)>'
22: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.26/lib/bundler/cli.rb:25:in `start'
21: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.26/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
20: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.26/lib/bundler/cli.rb:31:in `dispatch'
19: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.26/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
18: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.26/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
17: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.26/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
16: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.26/lib/bundler/cli.rb:486:in `exec'
15: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.26/lib/bundler/cli/exec.rb:23:in `run'
14: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.26/lib/bundler/cli/exec.rb:58:in `kernel_load'
13: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.26/lib/bundler/cli/exec.rb:58:in `load'
12: from /Users/suparna.dey/Dev/BotSink/main/src/user_interface/frontend_ui/dev/vendor/bundle/ruby/2.7.0/bin/middleman:25:in `<top (required)>'
11: from /Users/suparna.dey/Dev/BotSink/main/src/user_interface/frontend_ui/dev/vendor/bundle/ruby/2.7.0/bin/middleman:25:in `load'
10: from /Users/suparna.dey/Dev/BotSink/main/src/user_interface/frontend_ui/dev/vendor/bundle/ruby/2.7.0/gems/middleman-cli-4.4.3/bin/middleman:10:in `<top (required)>'
9: from /Users/suparna.dey/Dev/BotSink/main/src/user_interface/frontend_ui/dev/vendor/bundle/ruby/2.7.0/gems/middleman-core-4.4.3/lib/middleman-core/load_paths.rb:15:in `setup_load_paths'
8: from /Users/suparna.dey/Dev/BotSink/main/src/user_interface/frontend_ui/dev/vendor/bundle/ruby/2.7.0/gems/middleman-core-4.4.3/lib/middleman-core/load_paths.rb:35:in `setup_bundler'
7: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.26/lib/bundler.rb:186:in `require'
6: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.26/lib/bundler/runtime.rb:44:in `require'
5: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.26/lib/bundler/runtime.rb:44:in `each'
4: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.26/lib/bundler/runtime.rb:55:in `block in require'
3: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.26/lib/bundler/runtime.rb:55:in `each'
2: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.26/lib/bundler/runtime.rb:60:in `block (2 levels) in require'
1: from /opt/homebrew/lib/ruby/gems/2.7.0/gems/bundler-2.3.26/lib/bundler/runtime.rb:60:in `require'
/Users/suparna.dey/Dev/ProjectB/main/src/user_interface/frontend_ui/dev/vendor/bundle/ruby/2.7.0/bundler/gems/middleman-php-b4a6864f4a91/lib/middleman-php.rb:4:in `<top (required)>': undefined method `register' for Middleman::PhpExtension:Class (NoMethodError)
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.
I have updated my Ruby from ruby 2.5.1p57 (2018-03-29 revision 63029) [x64-mingw32] to ruby 2.7.4p191 (2021-07-07 revision a21a3b7d23) [x64-mingw32]. While trying to convert a .md file into .html file using jekyll serve, I got error like:
Conversion error: Jekyll::Converters::Markdown encountered an error while converting 'blazor/Release-Notes/v19.1.54.md':
No such file or directory - py
Traceback (most recent call last):
29: from C:/Ruby27-x64/bin/jekyll:23:in `<main>'
28: from C:/Ruby27-x64/bin/jekyll:23:in `load'
27: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/exe/jekyll:15:in `<top (required)>'
26: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/mercenary-0.4.0/lib/mercenary.rb:21:in `program'
25: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/mercenary-0.4.0/lib/mercenary/program.rb:44:in `go'
24: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `execute'
23: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `each'
22: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `block in execute'
21: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/commands/serve.rb:86:in `block (2 levels) in init_with_program'
20: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/command.rb:91:in `process_with_graceful_fail'
19: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/command.rb:91:in `each'
18: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/command.rb:91:in `block in process_with_graceful_fail'
17: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/commands/build.rb:36:in `process'
16: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/commands/build.rb:65:in `build'
15: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/command.rb:28:in `process_site'
14: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/site.rb:80:in `process'
13: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/site.rb:211:in `render'
12: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/site.rb:538:in `render_pages'
11: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/site.rb:538:in `each'
10: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/site.rb:539:in `block in render_pages'
9: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/site.rb:547:in `render_regenerated'
8: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/renderer.rb:63:in `run'
7: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/renderer.rb:84:in `render_document'
6: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/renderer.rb:104:in `convert'
5: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/renderer.rb:104:in `reduce'
4: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/renderer.rb:104:in `each'
3: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/renderer.rb:106:in `block in convert'
2: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/converters/markdown.rb:85:in `convert'
1: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/cache.rb:109:in `getset'
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/cache.rb:88:in `[]': unhandled exception
48: from C:/Ruby27-x64/bin/jekyll:23:in `<main>'
47: from C:/Ruby27-x64/bin/jekyll:23:in `load'
46: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/exe/jekyll:15:in `<top (required)>'
45: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/mercenary-0.4.0/lib/mercenary.rb:21:in `program'
44: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/mercenary-0.4.0/lib/mercenary/program.rb:44:in `go'
43: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `execute'
42: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `each'
41: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `block in execute'
40: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/commands/serve.rb:86:in `block (2 levels) in init_with_program'
39: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/command.rb:91:in `process_with_graceful_fail'
38: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/command.rb:91:in `each'
37: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/command.rb:91:in `block in process_with_graceful_fail'
36: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/commands/build.rb:36:in `process'
35: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/commands/build.rb:65:in `build'
34: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/command.rb:28:in `process_site'
33: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/site.rb:80:in `process'
32: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/site.rb:211:in `render'
31: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/site.rb:538:in `render_pages'
30: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/site.rb:538:in `each'
29: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/site.rb:539:in `block in render_pages'
28: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/site.rb:547:in `render_regenerated'
27: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/renderer.rb:63:in `run'
26: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/renderer.rb:84:in `render_document'
25: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/renderer.rb:104:in `convert'
24: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/renderer.rb:104:in `reduce'
23: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/renderer.rb:104:in `each'
22: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/renderer.rb:106:in `block in convert'
21: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/converters/markdown.rb:85:in `convert'
20: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/cache.rb:108:in `getset'
19: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/cache.rb:111:in `rescue in getset'
18: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.2.0/lib/jekyll/converters/markdown.rb:86:in `block in convert'
17: from D:/documentationautomation/website/_plugins/kramdown_pygments.rb:105:in `convert'
16: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/kramdown-2.3.1/lib/kramdown/document.rb:116:in `method_missing'
15: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/kramdown-2.3.1/lib/kramdown/converter/base.rb:107:in `convert'
14: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/kramdown-2.3.1/lib/kramdown/converter/html.rb:58:in `convert'
13: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/kramdown-2.3.1/lib/kramdown/converter/html.rb:373:in `convert_root'
12: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/kramdown-2.3.1/lib/kramdown/converter/html.rb:70:in `inner'
11: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/kramdown-2.3.1/lib/kramdown/converter/html.rb:70:in `each'
10: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/kramdown-2.3.1/lib/kramdown/converter/html.rb:71:in `block in inner'
9: from D:/documentationautomation/website/_plugins/kramdown_pygments.rb:49:in `convert_codeblock'
8: from D:/documentationautomation/website/_plugins/kramdown_pygments.rb:73:in `pygmentize'
7: from C:/Ruby27-x64/lib/ruby/2.7.0/forwardable.rb:235:in `highlight'
6: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/pygments.rb-2.2.0/lib/pygments/popen.rb:175:in `highlight'
5: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/pygments.rb-2.2.0/lib/pygments/popen.rb:253:in `mentos'
4: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/pygments.rb-2.2.0/lib/pygments/popen.rb:32:in `start'
3: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/pygments.rb-2.2.0/lib/pygments/popen.rb:184:in `popen4'
2: from C:/Ruby27-x64/lib/ruby/2.7.0/open3.rb:101:in `popen3'
1: from C:/Ruby27-x64/lib/ruby/2.7.0/open3.rb:213:in `popen_run'
C:/Ruby27-x64/lib/ruby/2.7.0/open3.rb:213:in `spawn': No such file or directory - py (Errno::ENOENT)
No such file or directory - py
------------------------------------------------
Jekyll 4.2.0 Please append `--trace` to the `serve` command
for any additional information or backtrace.
------------------------------------------------
How to fix this issue?
Running cli shopify create
https://github.com/Shopify/shopify-app-cli
Results in the following error:
/usr/lib/ruby/2.7.0/open3.rb:213:in `spawn': No such file or directory
- node (Errno::ENOENT)
On Windows (within Ubuntu WSL) I am getting the following error:
Traceback (most recent call last):
33: from /home/neil/.shopify-app-cli/bin/shopify:36:in `<main>'
32: from /home/neil/.shopify-app-cli/vendor/deps/cli-kit/lib/cli/kit/error_handler.rb:21:in `call'
31: from /home/neil/.shopify-app-cli/vendor/deps/cli-kit/lib/cli/kit/error_handler.rb:75:in `handle_abort'
30: from /home/neil/.shopify-app-cli/bin/shopify:37:in `block in <main>'
29: from /home/neil/.shopify-app-cli/lib/shopify-cli/core/entry_point.rb:18:in `call'
28: from /home/neil/.shopify-app-cli/lib/shopify-cli/core/monorail.rb:25:in `log'
27: from /home/neil/.shopify-app-cli/lib/shopify-cli/core/entry_point.rb:19:in `block in call'
26: from /home/neil/.shopify-app-cli/lib/shopify-cli/core/executor.rb:17:in `call'
25: from /home/neil/.shopify-app-cli/vendor/deps/cli-kit/lib/cli/kit/executor.rb:14:in `call'
24: from /home/neil/.shopify-app-cli/vendor/deps/cli-kit/lib/cli/kit/executor.rb:45:in `with_traps'
23: from /home/neil/.shopify-app-cli/vendor/deps/cli-kit/lib/cli/kit/executor.rb:57:in `twrap'
22: from /home/neil/.shopify-app-cli/vendor/deps/cli-kit/lib/cli/kit/executor.rb:46:in `block in with_traps'
21: from /home/neil/.shopify-app-cli/vendor/deps/cli-kit/lib/cli/kit/executor.rb:53:in `twrap'
20: from /home/neil/.shopify-app-cli/vendor/deps/cli-kit/lib/cli/kit/executor.rb:47:in `block (2 levels) in with_traps'
19: from /home/neil/.shopify-app-cli/vendor/deps/cli-kit/lib/cli/kit/executor.rb:15:in `block in call'
18: from /home/neil/.shopify-app-cli/vendor/deps/cli-kit/lib/cli/kit/executor.rb:37:in `with_logging'
17: from /home/neil/.shopify-app-cli/vendor/deps/cli-ui/lib/cli/ui.rb:143:in `log_output_to'
16: from /home/neil/.shopify-app-cli/vendor/deps/cli-kit/lib/cli/kit/executor.rb:38:in `block in with_logging'
15: from /home/neil/.shopify-app-cli/vendor/deps/cli-ui/lib/cli/ui/stdout_router.rb:164:in `with_id'
14: from /home/neil/.shopify-app-cli/vendor/deps/cli-kit/lib/cli/kit/executor.rb:39:in `block (2 levels) in with_logging'
13: from /home/neil/.shopify-app-cli/vendor/deps/cli-kit/lib/cli/kit/executor.rb:17:in `block (2 levels) in call'
12: from /home/neil/.shopify-app-cli/lib/shopify-cli/commands/create.rb:8:in `call'
11: from /home/neil/.shopify-app-cli/lib/shopify-cli/command.rb:24:in `call'
10: from /home/neil/.shopify-app-cli/lib/shopify-cli/commands/create.rb:25:in `call'
9: from /home/neil/.shopify-app-cli/lib/shopify-cli/sub_command.rb:12:in `call'
8: from /home/neil/.shopify-app-cli/lib/project_types/node/commands/create.rb:26:in `call'
7: from /home/neil/.shopify-app-cli/lib/project_types/node/commands/create.rb:72:in `check_node'
6: from /home/neil/.shopify-app-cli/lib/shopify-cli/context.rb:268:in `capture2e'
5: from /home/neil/.shopify-app-cli/vendor/deps/cli-kit/lib/cli/kit/system.rb:68:in `capture2e'
4: from /home/neil/.shopify-app-cli/vendor/deps/cli-kit/lib/cli/kit/system.rb:176:in `delegate_open3'
3: from /usr/lib/ruby/2.7.0/open3.rb:390:in `capture2e'
2: from /usr/lib/ruby/2.7.0/open3.rb:208:in `popen2e'
1: from /usr/lib/ruby/2.7.0/open3.rb:213:in `popen_run'
/usr/lib/ruby/2.7.0/open3.rb:213:in `spawn': No such file or directory - node (Errno::ENOENT)
Link to the issue at GitHub: https://github.com/Shopify/shopify-app-cli/issues/552
was able to fix it by installing node (nodejs on ubuntu) p.s. thanks to #tanema for pointing it out: https://github.com/Shopify/shopify-app-cli/issues/552
to install node:
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt-get install -y nodejs
https://github.com/nodesource/distributions/blob/master/README.md#debinstall