CircleCI fastlane gym - bundler: failed to load command: fastlane - continuous-integration

Setting up CircleCI Pipeline for ios build using fastlane.
I'm running into an issue with the gym build process as per below with the gym process that's displaying the error message - bundler: failed to load command: fastlane (/Users/distiller/project/vendor/bundle/ruby/2.7.0/bin/fastlane)
FASTLANE GYM ERROR
+------+--------------------------------------+-------------+
| fastlane summary |
+------+--------------------------------------+-------------+
| Step | Action | Time (in s) |
+------+--------------------------------------+-------------+
| 1 | default_platform | 0 |
| 2 | setup_circle_ci | 0 |
| 3 | Switch to ios sync_certificates lane | 0 |
| 4 | app_store_connect_api_key | 0 |
| 5 | match | 1 |
| 6 | automatic_code_signing | 0 |
| 💥 | gym | 41 |
+------+--------------------------------------+-------------+
DEBUG [2022-07-28 03:10:48.07]: All plugins are up to date
ERROR [2022-07-28 03:10:48.07]: fastlane finished with errors
DEBUG [2022-07-28 03:10:48.07]: All plugins are up to date
bundler: failed to load command: fastlane (/Users/distiller/project/vendor/bundle/ruby/2.7.0/bin/fastlane)
Traceback (most recent call last):
49: from /Users/distiller/.gem/ruby/2.7.6/bin/bundle:23:in `<main>'
48: from /Users/distiller/.gem/ruby/2.7.6/bin/bundle:23:in `load'
47: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/exe/bundle:36:in `<top (required)>'
46: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/lib/bundler/friendly_errors.rb:120:in `with_friendly_errors'
45: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/exe/bundle:48:in `block in <top (required)>'
44: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/lib/bundler/cli.rb:25:in `start'
43: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
42: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/lib/bundler/cli.rb:31:in `dispatch'
41: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
40: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
39: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
38: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/lib/bundler/cli.rb:483:in `exec'
37: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/lib/bundler/cli/exec.rb:23:in `run'
36: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/lib/bundler/cli/exec.rb:58:in `kernel_load'
35: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/lib/bundler/cli/exec.rb:58:in `load'
34: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/bin/fastlane:23:in `<top (required)>'
33: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/bin/fastlane:23:in `load'
32: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/bin/fastlane:23:in `<top (required)>'
31: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/cli_tools_distributor.rb:123:in `take_off'
30: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/commands_generator.rb:43:in `start'
29: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/commands_generator.rb:354:in `run'
28: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!'
27: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in `run!'
26: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in `run_active_command'
25: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/commander-4.6.0/lib/commander/command.rb:157:in `run'
24: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/commander-4.6.0/lib/commander/command.rb:187:in `call'
23: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/commands_generator.rb:110:in `block (2 levels) in run'
22: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
21: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
20: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
19: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
18: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
17: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/lane.rb:33:in `call'
16: from Fastfile:41:in `block (2 levels) in parsing_binding'
15: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
14: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
13: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/runner.rb:229:in `execute_action'
12: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/runner.rb:229:in `chdir'
11: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action'
10: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/actions/actions_helper.rb:69:in `execute_action'
9: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action'
8: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/actions/build_app.rb:68:in `run'
7: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/gym/lib/gym/manager.rb:19:in `work'
6: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/gym/lib/gym/runner.rb:18:in `run'
5: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/gym/lib/gym/runner.rb:110:in `build_app'
4: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane_core/lib/fastlane_core/command_executor.rb:84:in `execute'
3: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/gym/lib/gym/runner.rb:114:in `block in build_app'
2: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/gym/lib/gym/error_handler.rb:73:in `handle_build_error'
1: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in `method_missing'
/Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane_core/lib/fastlane_core/ui/interface.rb:163:in `build_failure!': Error building the application - see the log above (FastlaneCore::Interface::FastlaneBuildFailure)
49: from /Users/distiller/.gem/ruby/2.7.6/bin/bundle:23:in `<main>'
48: from /Users/distiller/.gem/ruby/2.7.6/bin/bundle:23:in `load'
47: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/exe/bundle:36:in `<top (required)>'
46: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/lib/bundler/friendly_errors.rb:120:in `with_friendly_errors'
45: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/exe/bundle:48:in `block in <top (required)>'
44: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/lib/bundler/cli.rb:25:in `start'
43: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
42: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/lib/bundler/cli.rb:31:in `dispatch'
41: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
40: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
39: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
38: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/lib/bundler/cli.rb:483:in `exec'
37: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/lib/bundler/cli/exec.rb:23:in `run'
36: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/lib/bundler/cli/exec.rb:58:in `kernel_load'
35: from /Users/distiller/.gem/ruby/2.7.6/gems/bundler-2.3.17/lib/bundler/cli/exec.rb:58:in `load'
34: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/bin/fastlane:23:in `<top (required)>'
33: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/bin/fastlane:23:in `load'
32: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/bin/fastlane:23:in `<top (required)>'
31: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/cli_tools_distributor.rb:123:in `take_off'
30: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/commands_generator.rb:43:in `start'
29: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/commands_generator.rb:354:in `run'
28: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!'
27: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in `run!'
26: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in `run_active_command'
25: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/commander-4.6.0/lib/commander/command.rb:157:in `run'
24: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/commander-4.6.0/lib/commander/command.rb:187:in `call'
23: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/commands_generator.rb:110:in `block (2 levels) in run'
22: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
21: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
20: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
19: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
18: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
17: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/lane.rb:33:in `call'
16: from Fastfile:41:in `block (2 levels) in parsing_binding'
15: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
14: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
13: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/runner.rb:229:in `execute_action'
12: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/runner.rb:229:in `chdir'
11: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action'
10: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/actions/actions_helper.rb:69:in `execute_action'
9: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action'
8: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/actions/build_app.rb:68:in `run'
7: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/gym/lib/gym/manager.rb:19:in `work'
6: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/gym/lib/gym/runner.rb:18:in `run'
5: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/gym/lib/gym/runner.rb:110:in `build_app'
4: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane_core/lib/fastlane_core/command_executor.rb:84:in `execute'
3: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/gym/lib/gym/runner.rb:114:in `block in build_app'
2: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/gym/lib/gym/error_handler.rb:73:in `handle_build_error'
1: from /Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in `method_missing'
/Users/distiller/project/vendor/bundle/ruby/2.7.0/gems/fastlane-2.208.0/fastlane_core/lib/fastlane_core/ui/interface.rb:163:in `build_failure!': \e[31m[!] Error building the application - see the log above\e[0m (FastlaneCore::Interface::FastlaneBuildFailure)
Exited with code exit status 1
CircleCI received exit code 1
FASTFILE
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
# https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
# https://docs.fastlane.tools/plugins/available-plugins
#
# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane
default_platform(:ios)
platform :ios do
before_all do
setup_circle_ci
end
desc "Sync certificates"
lane :sync_certificates do
app_store_connect_api_key(
key_id: "redacted",
issuer_id: "redacted",
key_content: "redacted",
is_key_content_base64: true,
in_house: false #boolean value if team is Enterprise or not
)
#read-only disables match from overriding the existing certificates.
match({readonly: true, type: "development"})
end
desc "Create ipa"
lane :build do
#update profiles
sync_certificates
# Creates a signed file
disable_automatic_code_signing(path: "redacted-ios.xcodeproj")
gym(export_method: "development")
end
desc "Upload to TestFlight"
lane :beta do
sync_certificates
build
# pilot
end
end
CirclCI Config File
# .circleci/config.yml
version: 2.1
orbs:
ruby: circleci/ruby#1.8.0
slack: circleci/slack#4.10.1
aliases:
- &restore_gem_cache
name: Restore gem cache
keys:
- gem-cache-v1-{{ arch }}-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
- gem-cache-v1-{{ arch }}-{{ .Branch }}
# Fall back to using the latest cache if no exact match is found.
- gem-cache-v1
- &save_gem_cache
name: Save gem cache
key: gem-cache-v1-{{ arch }}-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
paths:
- vendor/bundle
- &bundle_install
name: Install Gems via Bundler
command: bundle install --path vendor/bundle
- &restore_pods_cache
name: Restore pods cache
key: 2-pods-{{ checksum "Podfile.lock" }}
- &pod_install
name: Install Pods
command: |
if [ ! -d "Pods" ]
then
curl https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh | bash -s cf
bundle exec pod install
fi
- &save_pods_cache
name: Save pods cache
key: 2-pods-{{ checksum "Podfile.lock" }}
paths: ./Pods
jobs:
test_app:
macos:
xcode: "14.0.0"
working_directory: /Users/distiller/project
environment:
FL_OUTPUT_DIR: output
FASTLANE_LANE: build
shell: /bin/bash --login -o pipefail
steps:
- checkout
- run: bundle install
- run: bundle update
- ruby/install-deps
- restore_cache: *restore_pods_cache
- run:
name: pod Install
command: pod install
- save_cache: *save_pods_cache
- run:
name: add to ssh pub
command: echo $SSH_PUB > ~/.ssh/redacted.pub
- run:
name: add to ssh pvt
command: echo $SSH_PVT > ~/.ssh/redacted
- run:
name: ssh check
command: cat ~/.ssh/known_hosts
- run:
name: check all env var
command: printenv
- run:
name: fastlane build
command: bundle exec fastlane $FASTLANE_LANE --verbose
- run:
name: check keychain status
command: security find-identity -v -p codesigning
- store_artifacts:
path: /Users/distiller/Library/Logs/gym
- store_test_results:
path: output/scan
# - slack/notify:
# event: pass
# template: basic_success_1
# - slack/notify:
# event: fail
# template: basic_fail_1
workflows:
verify:
jobs:
- test_app:
context:
- Slack Integration
Any help would be greatly appreciated!

Issue ended up being that match wasn't applying the certificate properly.

Related

`grape server` throws `cannot load such file -- grape` error even though grape is installed

I have been working on a non-rails Grape API project freelance, and when running grape server I am encountering the above error. I've pasted the stack trace below. It seems to be an issue of Rack not being able to find the path to the gem but I'm not sure how to troubleshoot. bundle runs as expected and when i use gem info grape it points to ~/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0
reed#reed-desktop:~/dev/project$ grape s
Starting Grape server...
Traceback (most recent call last):
19: from /home/reed/.rbenv/versions/2.7.6/bin/rackup:23:in `<main>'
18: from /home/reed/.rbenv/versions/2.7.6/bin/rackup:23:in `load'
17: from /home/reed/.gem/ruby/2.7.0/gems/rack-1.5.5/bin/rackup:4:in `<top (required)>'
16: from /home/reed/.gem/ruby/2.7.0/gems/rack-1.5.5/lib/rack/server.rb:141:in `start'
15: from /home/reed/.gem/ruby/2.7.0/gems/rack-1.5.5/lib/rack/server.rb:250:in `start'
14: from /home/reed/.gem/ruby/2.7.0/gems/rack-1.5.5/lib/rack/server.rb:314:in `wrapped_app'
13: from /home/reed/.gem/ruby/2.7.0/gems/rack-1.5.5/lib/rack/server.rb:199:in `app'
12: from /home/reed/.gem/ruby/2.7.0/gems/rack-1.5.5/lib/rack/server.rb:277:in `build_app_and_options_from_config'
11: from /home/reed/.gem/ruby/2.7.0/gems/rack-1.5.5/lib/rack/builder.rb:40:in `parse_file'
10: from /home/reed/.gem/ruby/2.7.0/gems/rack-1.5.5/lib/rack/builder.rb:49:in `new_from_string'
9: from /home/reed/.gem/ruby/2.7.0/gems/rack-1.5.5/lib/rack/builder.rb:49:in `eval'
8: from /home/reed/dev/tts-converter/config.ru:in `<main>'
7: from /home/reed/dev/tts-converter/config.ru:in `new'
6: from /home/reed/.gem/ruby/2.7.0/gems/rack-1.5.5/lib/rack/builder.rb:55:in `initialize'
5: from /home/reed/.gem/ruby/2.7.0/gems/rack-1.5.5/lib/rack/builder.rb:55:in `instance_eval'
4: from /home/reed/dev/tts-converter/config.ru:3:in `block in <main>'
3: from /home/reed/dev/tts-converter/config.ru:3:in `require_relative'
2: from /home/reed/dev/tts-converter/adalo_text_to_speech.rb:3:in `<top (required)>'
1: from /home/reed/.rbenv/versions/2.7.6/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require'
/home/reed/.rbenv/versions/2.7.6/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require': cannot load such file -- grape (LoadError)
57: from /home/reed/.rbenv/versions/2.7.6/bin/rackup:23:in `<main>'
56: from /home/reed/.rbenv/versions/2.7.6/bin/rackup:23:in `load'
55: from /home/reed/.gem/ruby/2.7.0/gems/rack-1.5.5/bin/rackup:4:in `<top (required)>'
54: from /home/reed/.gem/ruby/2.7.0/gems/rack-1.5.5/lib/rack/server.rb:141:in `start'
53: from /home/reed/.gem/ruby/2.7.0/gems/rack-1.5.5/lib/rack/server.rb:250:in `start'
52: from /home/reed/.gem/ruby/2.7.0/gems/rack-1.5.5/lib/rack/server.rb:314:in `wrapped_app'
51: from /home/reed/.gem/ruby/2.7.0/gems/rack-1.5.5/lib/rack/server.rb:199:in `app'
50: from /home/reed/.gem/ruby/2.7.0/gems/rack-1.5.5/lib/rack/server.rb:277:in `build_app_and_options_from_config'
49: from /home/reed/.gem/ruby/2.7.0/gems/rack-1.5.5/lib/rack/builder.rb:40:in `parse_file'
48: from /home/reed/.gem/ruby/2.7.0/gems/rack-1.5.5/lib/rack/builder.rb:49:in `new_from_string'
47: from /home/reed/.gem/ruby/2.7.0/gems/rack-1.5.5/lib/rack/builder.rb:49:in `eval'
46: from /home/reed/dev/tts-converter/config.ru:in `<main>'
45: from /home/reed/dev/tts-converter/config.ru:in `new'
44: from /home/reed/.gem/ruby/2.7.0/gems/rack-1.5.5/lib/rack/builder.rb:55:in `initialize'
43: from /home/reed/.gem/ruby/2.7.0/gems/rack-1.5.5/lib/rack/builder.rb:55:in `instance_eval'
42: from /home/reed/dev/tts-converter/config.ru:3:in `block in <main>'
41: from /home/reed/dev/tts-converter/config.ru:3:in `require_relative'
40: from /home/reed/dev/tts-converter/adalo_text_to_speech.rb:3:in `<top (required)>'
39: from /home/reed/.rbenv/versions/2.7.6/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:147:in `require'
38: from /home/reed/.rbenv/versions/2.7.6/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:158:in `rescue in require'
37: from /home/reed/.rbenv/versions/2.7.6/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:158:in `require'
36: from /home/reed/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/grape-1.6.2/lib/grape.rb:230:in `<top (required)>'
35: from /home/reed/.rbenv/versions/2.7.6/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:94:in `require'
34: from /home/reed/.rbenv/versions/2.7.6/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:94:in `require'
33: from /home/reed/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/grape-1.6.2/lib/grape/validations/validators/base.rb:3:in `<top (required)>'
32: from /home/reed/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/grape-1.6.2/lib/grape/validations/validators/base.rb:4:in `<module:Grape>'
31: from /home/reed/.rbenv/versions/2.7.6/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:94:in `require'
30: from /home/reed/.rbenv/versions/2.7.6/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:94:in `require'
29: from /home/reed/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/grape-1.6.2/lib/grape/validations.rb:7:in `<top (required)>'
28: from /home/reed/.rbenv/versions/2.7.6/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:94:in `require'
27: from /home/reed/.rbenv/versions/2.7.6/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:94:in `require'
26: from /home/reed/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/grape-1.6.2/lib/grape/validations/types.rb:3:in `<top (required)>'
25: from /home/reed/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/grape-1.6.2/lib/grape/validations/types.rb:3:in `require_relative'
24: from /home/reed/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/grape-1.6.2/lib/grape/validations/types/build_coercer.rb:3:in `<top (required)>'
23: from /home/reed/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/grape-1.6.2/lib/grape/validations/types/build_coercer.rb:3:in `require_relative'
22: from /home/reed/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/grape-1.6.2/lib/grape/validations/types/array_coercer.rb:3:in `<top (required)>'
21: from /home/reed/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/grape-1.6.2/lib/grape/validations/types/array_coercer.rb:3:in `require_relative'
20: from /home/reed/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/grape-1.6.2/lib/grape/validations/types/dry_type_coercer.rb:3:in `<top (required)>'
19: from /home/reed/.rbenv/versions/2.7.6/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:94:in `require'
18: from /home/reed/.rbenv/versions/2.7.6/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:94:in `require'
17: from /home/reed/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/dry-types-1.5.1/lib/dry-types.rb:3:in `<top (required)>'
16: from /home/reed/.rbenv/versions/2.7.6/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:94:in `require'
15: from /home/reed/.rbenv/versions/2.7.6/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:94:in `require'
14: from /home/reed/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/dry-types-1.5.1/lib/dry/types.rb:19:in `<top (required)>'
13: from /home/reed/.rbenv/versions/2.7.6/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:94:in `require'
12: from /home/reed/.rbenv/versions/2.7.6/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:94:in `require'
11: from /home/reed/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/dry-types-1.5.1/lib/dry/types/nominal.rb:209:in `<top (required)>'
10: from /home/reed/.rbenv/versions/2.7.6/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:94:in `require'
9: from /home/reed/.rbenv/versions/2.7.6/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:94:in `require'
8: from /home/reed/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/dry-types-1.5.1/lib/dry/types/hash.rb:137:in `<top (required)>'
7: from /home/reed/.rbenv/versions/2.7.6/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:94:in `require'
6: from /home/reed/.rbenv/versions/2.7.6/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:94:in `require'
5: from /home/reed/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/dry-types-1.5.1/lib/dry/types/schema.rb:5:in `<top (required)>'
4: from /home/reed/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/dry-types-1.5.1/lib/dry/types/schema.rb:6:in `<module:Dry>'
3: from /home/reed/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/dry-types-1.5.1/lib/dry/types/schema.rb:21:in `<module:Types>'
2: from /home/reed/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/dry-types-1.5.1/lib/dry/types/schema.rb:22:in `<class:Schema>'
1: from /home/reed/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/dry-types-1.5.1/lib/dry/types/fn_container.rb:20:in `register'
/home/reed/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/dry-container-0.11.0/lib/dry/container/mixin.rb:225:in `key?': undefined method `key?' for nil:NilClass (NoMethodError)
Here is the output of gem env.
reed#reed-desktop:~/dev/project$ gem env
RubyGems Environment:
- RUBYGEMS VERSION: 3.1.6
- RUBY VERSION: 2.7.6 (2022-04-12 patchlevel 219) [x86_64-linux]
- INSTALLATION DIRECTORY: /home/reed/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0
- USER INSTALLATION DIRECTORY: /home/reed/.gem/ruby/2.7.0
- RUBY EXECUTABLE: /home/reed/.rbenv/versions/2.7.6/bin/ruby
- GIT EXECUTABLE: /usr/bin/git
- EXECUTABLE DIRECTORY: /home/reed/.rbenv/versions/2.7.6/bin
- SPEC CACHE DIRECTORY: /home/reed/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /home/reed/.rbenv/versions/2.7.6/etc
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /home/reed/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0
- /home/reed/.gem/ruby/2.7.0
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- https://rubygems.org/
- SHELL PATH:
- /home/reed/.rbenv/versions/2.7.6/bin
- /home/reed/.rbenv/libexec
- /home/reed/.rbenv/plugins/ruby-build/bin
- /home/reed/.rbenv/shims
- /home/reed/.rbenv/bin
- /bin/bash
- line 1
- /home/reed/.zshrc
- No such file or directory
/home/reed/bin
- /home/reed/.rbenv/shims
- /home/reed/.rbenv/bin
- /home/reed/bin
- /usr/local/sbin
- /usr/local/bin
- /usr/sbin
- /usr/bin
- /sbin
- /bin
- /usr/games
- /usr/local/games
- /snap/bin
- /snap/bin
Solved this problem by whiping rbenv from my system, removing and reinstalling all ruby versions and gems. Don't know what the issue was but a hard reset fixed it.

first time trying to run a project on RubyMine and getting an error about incompatible library version

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?

Jekyll build and serve not working on Ubuntu (WSL)

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.

bundler: failed to load command: fastlane (/Users/<user>/Projects/iOSProject/vendor/bundle/ruby/2.7.0/bin/fastlane)

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.

/usr/lib/ruby/2.7.0/open3.rb:213:in `spawn': No such file or directory - node (Errno::ENOENT)

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

Resources