When I am using this fastlane(v2.206.2) script in github actions to publish the flutter project to https://www.pgyer.com/:
- name: Deploy to TestFlight/PGY
run: |
cd ./ios
bundle exec fastlane beta
env:
FLUTTER_ROOT: ${{ secrets.FLUTTER_ROOT }}
APPLE_ID: ${{ secrets.APPLE_ID }}
GIT_URL: ${{ secrets.GIT_URL }}
PGY_USER_KEY: ${{ secrets.PGY_USER_KEY }}
PGY_API_KEY: ${{ secrets.PGY_API_KEY }}
TEAM_ID: ${{ secrets.TEAM_ID }}
ITC_TEAM_ID: ${{ secrets.ITC_TEAM_ID }}
FASTLANE_USER: ${{ secrets.FASTLANE_USER }}
FASTLANE_PASSWORD: ${{ secrets.FASTLANE_PASSWORD }}
FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD: ${{ secrets.FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD }}
FASTLANE_SESSION: ${{ secrets.FASTLANE_SESSION }}
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
MATCH_KEYCHAIN_NAME: ${{ secrets.MATCH_KEYCHAIN_NAME }}
MATCH_KEYCHAIN_PASSWORD: ${{ secrets.MATCH_KEYCHAIN_PASSWORD }}
DELIVER_ITMSTRANSPORTER_ADDITIONAL_UPLOAD_PARAMETERS: ${{ secrets.DELIVER_ITMSTRANSPORTER_ADDITIONAL_UPLOAD_PARAMETERS }}
shows error like this:
[16:01:53]: Operation timed out
+------+------------------+-------------+
| fastlane summary |
+------+------------------+-------------+
| Step | Action | Time (in s) |
+------+------------------+-------------+
| 1 | default_platform | 0 |
| 2 | xcode_select | 0 |
| 3 | is_ci | 0 |
| 4 | create_keychain | 0 |
| 5 | is_ci | 0 |
| 6 | match | 2 |
| 7 | build_app | 142 |
| 8 | gym | 102 |
| 💥 | pgyer | 1419 |
+------+------------------+-------------+
[16:01:53]: fastlane finished with errors
Looking for related GitHub issues on fastlane/fastlane...
➡️ [iTunes Transporter]: Read Timed Out - unable to upload app to TestFlight
https://github.com/fastlane/fastlane/issues/16892 [closed] 78 💬
bundler: failed to load command: fastlane (/Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/bin/fastlane)
a week ago
➡️ iTMSTransporter fails when uploading to store.
/usr/local/Cellar/ruby#3.0/3.0.4/lib/ruby/3.0.0/openssl/buffering.rb:205:in `sysread_nonblock': \e[31m[!] Operation timed out\e[0m (Faraday::TimeoutError)
https://github.com/fastlane/fastlane/issues/18619 [closed] 3 💬
from /usr/local/Cellar/ruby#3.0/3.0.4/lib/ruby/3.0.0/openssl/buffering.rb:205:in `read_nonblock'
29 Jun 2021
from /usr/local/Cellar/ruby#3.0/3.0.4/lib/ruby/3.0.0/net/protocol.rb:212:in `rbuf_fill'
from /usr/local/Cellar/ruby#3.0/3.0.4/lib/ruby/3.0.0/net/protocol.rb:193:in `readuntil'
➡️ Fastlane hangs on Waiting for the build to show up in the build list when distributing to external group
from /usr/local/Cellar/ruby#3.0/3.0.4/lib/ruby/3.0.0/net/protocol.rb:203:in `readline'
https://github.com/fastlane/fastlane/issues/15511 [closed] 20 💬
from /usr/local/Cellar/ruby#3.0/3.0.4/lib/ruby/3.0.0/net/http/response.rb:42:in `read_status_line'
18 Jul 2020
from /usr/local/Cellar/ruby#3.0/3.0.4/lib/ruby/3.0.0/net/http/response.rb:31:in `read_new'
from /usr/local/Cellar/ruby#3.0/3.0.4/lib/ruby/3.0.0/net/http.rb:1557:in `block in transport_request'
and 37 more at: https://github.com/fastlane/fastlane/search?q=Operation%20timed%20out&type=Issues&utf8=✓
from /usr/local/Cellar/ruby#3.0/3.0.4/lib/ruby/3.0.0/net/http.rb:1548:in `catch'
from /usr/local/Cellar/ruby#3.0/3.0.4/lib/ruby/3.0.0/net/http.rb:1548:in `transport_request'
🔗 You can ⌘ + double-click on links to open them directly in your browser.
from /usr/local/Cellar/ruby#3.0/3.0.4/lib/ruby/3.0.0/net/http.rb:1521:in `request'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/faraday-net_http-1.0.1/lib/faraday/adapter/net_http.rb:152:in `block in request_via_request_method'
from /usr/local/Cellar/ruby#3.0/3.0.4/lib/ruby/3.0.0/net/http.rb:960:in `start'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/faraday-net_http-1.0.1/lib/faraday/adapter/net_http.rb:146:in `request_via_request_method'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/faraday-net_http-1.0.1/lib/faraday/adapter/net_http.rb:131:in `request_with_wrapped_block'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/faraday-net_http-1.0.1/lib/faraday/adapter/net_http.rb:122:in `perform_request'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/faraday-net_http-1.0.1/lib/faraday/adapter/net_http.rb:66:in `block in call'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/faraday-1.10.2/lib/faraday/adapter.rb:50:in `connection'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/faraday-net_http-1.0.1/lib/faraday/adapter/net_http.rb:64:in `call'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/faraday_middleware-1.2.0/lib/faraday_middleware/response_middleware.rb:36:in `call'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/faraday-1.10.2/lib/faraday/request/url_encoded.rb:25:in `call'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/faraday-multipart-1.0.4/lib/faraday/multipart/middleware.rb:28:in `call'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/faraday-1.10.2/lib/faraday/rack_builder.rb:154:in `build_response'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/faraday-1.10.2/lib/faraday/connection.rb:516:in `run_request'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/faraday-1.10.2/lib/faraday/connection.rb:283:in `post'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-plugin-pgyer-0.2.3/lib/fastlane/plugin/pgyer/actions/pgyer_action.rb:106:in `run'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.209.1/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.209.1/fastlane/lib/fastlane/actions/actions_helper.rb:69:in `execute_action'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.209.1/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.209.1/fastlane/lib/fastlane/runner.rb:229:in `chdir'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.209.1/fastlane/lib/fastlane/runner.rb:229:in `execute_action'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.209.1/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.209.1/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
from Fastfile:72:in `block (2 levels) in parsing_binding'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.209.1/fastlane/lib/fastlane/lane.rb:33:in `call'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.209.1/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.209.1/fastlane/lib/fastlane/runner.rb:45:in `chdir'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.209.1/fastlane/lib/fastlane/runner.rb:45:in `execute'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.209.1/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.209.1/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.209.1/fastlane/lib/fastlane/commands_generator.rb:110:in `block (2 levels) in run'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/commander-4.6.0/lib/commander/command.rb:187:in `call'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/commander-4.6.0/lib/commander/command.rb:157:in `run'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in `run_active_command'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.209.1/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in `run!'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.209.1/fastlane/lib/fastlane/commands_generator.rb:354:in `run'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.209.1/fastlane/lib/fastlane/commands_generator.rb:43:in `start'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.209.1/fastlane/lib/fastlane/cli_tools_distributor.rb:123:in `take_off'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.209.1/bin/fastlane:23:in `<top (required)>'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/bin/fastlane:25:in `load'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/bin/fastlane:25:in `<top (required)>'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.20/lib/bundler/cli/exec.rb:58:in `load'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.20/lib/bundler/cli/exec.rb:58:in `kernel_load'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.20/lib/bundler/cli/exec.rb:23:in `run'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.20/lib/bundler/cli.rb:485:in `exec'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.20/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.20/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.20/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.20/lib/bundler/cli.rb:31:in `dispatch'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.20/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.20/lib/bundler/cli.rb:25:in `start'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.20/exe/bundle:48:in `block in <top (required)>'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.20/lib/bundler/friendly_errors.rb:120:in `with_friendly_errors'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.20/exe/bundle:36:in `<top (required)>'
from /usr/local/lib/ruby/gems/3.0.0/bin/bundle:25:in `load'
from /usr/local/lib/ruby/gems/3.0.0/bin/bundle:25:in `<main>'
/usr/local/Cellar/ruby#3.0/3.0.4/lib/ruby/3.0.0/openssl/buffering.rb:205:in `sysread_nonblock': Operation timed out (Errno::ETIMEDOUT)
from /usr/local/Cellar/ruby#3.0/3.0.4/lib/ruby/3.0.0/openssl/buffering.rb:205:in `read_nonblock'
from /usr/local/Cellar/ruby#3.0/3.0.4/lib/ruby/3.0.0/net/protocol.rb:212:in `rbuf_fill'
from /usr/local/Cellar/ruby#3.0/3.0.4/lib/ruby/3.0.0/net/protocol.rb:193:in `readuntil'
from /usr/local/Cellar/ruby#3.0/3.0.4/lib/ruby/3.0.0/net/protocol.rb:203:in `readline'
from /usr/local/Cellar/ruby#3.0/3.0.4/lib/ruby/3.0.0/net/http/response.rb:42:in `read_status_line'
from /usr/local/Cellar/ruby#3.0/3.0.4/lib/ruby/3.0.0/net/http/response.rb:31:in `read_new'
from /usr/local/Cellar/ruby#3.0/3.0.4/lib/ruby/3.0.0/net/http.rb:1557:in `block in transport_request'
from /usr/local/Cellar/ruby#3.0/3.0.4/lib/ruby/3.0.0/net/http.rb:1548:in `catch'
from /usr/local/Cellar/ruby#3.0/3.0.4/lib/ruby/3.0.0/net/http.rb:1548:in `transport_request'
from /usr/local/Cellar/ruby#3.0/3.0.4/lib/ruby/3.0.0/net/http.rb:1521:in `request'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/faraday-net_http-1.0.1/lib/faraday/adapter/net_http.rb:152:in `block in request_via_request_method'
from /usr/local/Cellar/ruby#3.0/3.0.4/lib/ruby/3.0.0/net/http.rb:960:in `start'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/faraday-net_http-1.0.1/lib/faraday/adapter/net_http.rb:146:in `request_via_request_method'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/faraday-net_http-1.0.1/lib/faraday/adapter/net_http.rb:131:in `request_with_wrapped_block'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/faraday-net_http-1.0.1/lib/faraday/adapter/net_http.rb:122:in `perform_request'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/faraday-net_http-1.0.1/lib/faraday/adapter/net_http.rb:66:in `block in call'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/faraday-1.10.2/lib/faraday/adapter.rb:50:in `connection'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/faraday-net_http-1.0.1/lib/faraday/adapter/net_http.rb:64:in `call'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/faraday_middleware-1.2.0/lib/faraday_middleware/response_middleware.rb:36:in `call'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/faraday-1.10.2/lib/faraday/request/url_encoded.rb:25:in `call'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/faraday-multipart-1.0.4/lib/faraday/multipart/middleware.rb:28:in `call'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/faraday-1.10.2/lib/faraday/rack_builder.rb:154:in `build_response'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/faraday-1.10.2/lib/faraday/connection.rb:516:in `run_request'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/faraday-1.10.2/lib/faraday/connection.rb:283:in `post'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-plugin-pgyer-0.2.3/lib/fastlane/plugin/pgyer/actions/pgyer_action.rb:106:in `run'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.209.1/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.209.1/fastlane/lib/fastlane/actions/actions_helper.rb:69:in `execute_action'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.209.1/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.209.1/fastlane/lib/fastlane/runner.rb:229:in `chdir'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.209.1/fastlane/lib/fastlane/runner.rb:229:in `execute_action'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.209.1/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.209.1/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
from Fastfile:72:in `block (2 levels) in parsing_binding'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.209.1/fastlane/lib/fastlane/lane.rb:33:in `call'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.209.1/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.209.1/fastlane/lib/fastlane/runner.rb:45:in `chdir'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.209.1/fastlane/lib/fastlane/runner.rb:45:in `execute'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.209.1/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.209.1/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.209.1/fastlane/lib/fastlane/commands_generator.rb:110:in `block (2 levels) in run'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/commander-4.6.0/lib/commander/command.rb:187:in `call'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/commander-4.6.0/lib/commander/command.rb:157:in `run'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in `run_active_command'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.209.1/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in `run!'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.209.1/fastlane/lib/fastlane/commands_generator.rb:354:in `run'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.209.1/fastlane/lib/fastlane/commands_generator.rb:43:in `start'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.209.1/fastlane/lib/fastlane/cli_tools_distributor.rb:123:in `take_off'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/gems/fastlane-2.209.1/bin/fastlane:23:in `<top (required)>'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/bin/fastlane:25:in `load'
from /Users/runner/work/cruise-open/cruise-open/ios/vendor/cache/ruby/3.0.0/bin/fastlane:25:in `<top (required)>'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.20/lib/bundler/cli/exec.rb:58:in `load'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.20/lib/bundler/cli/exec.rb:58:in `kernel_load'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.20/lib/bundler/cli/exec.rb:23:in `run'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.20/lib/bundler/cli.rb:485:in `exec'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.20/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.20/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.20/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.20/lib/bundler/cli.rb:31:in `dispatch'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.20/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.20/lib/bundler/cli.rb:25:in `start'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.20/exe/bundle:48:in `block in <top (required)>'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.20/lib/bundler/friendly_errors.rb:120:in `with_friendly_errors'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.20/exe/bundle:36:in `<top (required)>'
from /usr/local/lib/ruby/gems/3.0.0/bin/bundle:25:in `load'
from /usr/local/lib/ruby/gems/3.0.0/bin/bundle:25:in `<main>'
Error: Process completed with exit code 1.
what should I do to fixed this problem? this is the pyer fastfile config which was followed the manual from here https://github.com/shishirui/fastlane-plugin-pgyer:
gym
pgyer(
api_key: ENV['PGY_API_KEY']
)
Related
I am trying to install the react-rails gem to my project. When I type
rails g react:install
/home/leboroz/.rbenv/versions/3.1.1/lib/ruby/3.1.0/fileutils.rb:243:in `mkdir': Permission denied # dir_s_mkdir - /components (Errno::EACCES)
from /home/leboroz/.rbenv/versions/3.1.1/lib/ruby/3.1.0/fileutils.rb:243:in `fu_mkdir'
from /home/leboroz/.rbenv/versions/3.1.1/lib/ruby/3.1.0/fileutils.rb:221:in `block (2 levels) in mkdir_p'
from /home/leboroz/.rbenv/versions/3.1.1/lib/ruby/3.1.0/fileutils.rb:219:in `reverse_each'
from /home/leboroz/.rbenv/versions/3.1.1/lib/ruby/3.1.0/fileutils.rb:219:in `block in mkdir_p'
from /home/leboroz/.rbenv/versions/3.1.1/lib/ruby/3.1.0/fileutils.rb:211:in `each'
from /home/leboroz/.rbenv/versions/3.1.1/lib/ruby/3.1.0/fileutils.rb:211:in `mkdir_p'
from /home/leboroz/.rbenv/versions/3.1.1/lib/ruby/gems/3.1.0/gems/thor-1.2.1/lib/thor/actions/empty_directory.rb:52:in `block in invoke!'
from /home/leboroz/.rbenv/versions/3.1.1/lib/ruby/gems/3.1.0/gems/thor-1.2.1/lib/thor/actions/empty_directory.rb:117:in `invoke_with_conflict_check'
from /home/leboroz/.rbenv/versions/3.1.1/lib/ruby/gems/3.1.0/gems/thor-1.2.1/lib/thor/actions/empty_directory.rb:50:in `invoke!'
from /home/leboroz/.rbenv/versions/3.1.1/lib/ruby/gems/3.1.0/gems/thor-1.2.1/lib/thor/actions.rb:93:in `action'
from /home/leboroz/.rbenv/versions/3.1.1/lib/ruby/gems/3.1.0/gems/thor-1.2.1/lib/thor/actions/empty_directory.rb:14:in `empty_directory'
from /home/leboroz/.rbenv/versions/3.1.1/lib/ruby/gems/3.1.0/gems/react-rails-2.6.0/lib/generators/react/install_generator.rb:26:in `create_directory'
from /home/leboroz/.rbenv/versions/3.1.1/lib/ruby/gems/3.1.0/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
from /home/leboroz/.rbenv/versions/3.1.1/lib/ruby/gems/3.1.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
from /home/leboroz/.rbenv/versions/3.1.1/lib/ruby/gems/3.1.0/gems/thor-1.2.1/lib/thor/invocation.rb:134:in `block in invoke_all'
from /home/leboroz/.rbenv/versions/3.1.1/lib/ruby/gems/3.1.0/gems/thor-1.2.1/lib/thor/invocation.rb:134:in `each'
from /home/leboroz/.rbenv/versions/3.1.1/lib/ruby/gems/3.1.0/gems/thor-1.2.1/lib/thor/invocation.rb:134:in `map'
from /home/leboroz/.rbenv/versions/3.1.1/lib/ruby/gems/3.1.0/gems/thor-1.2.1/lib/thor/invocation.rb:134:in `invoke_all'
from /home/leboroz/.rbenv/versions/3.1.1/lib/ruby/gems/3.1.0/gems/thor-1.2.1/lib/thor/group.rb:232:in `dispatch'
from /home/leboroz/.rbenv/versions/3.1.1/lib/ruby/gems/3.1.0/gems/thor-1.2.1/lib/thor/base.rb:485:in `start'
from /home/leboroz/.rbenv/versions/3.1.1/lib/ruby/gems/3.1.0/gems/railties-7.0.3/lib/rails/generators.rb:263:in `invoke'
from /home/leboroz/.rbenv/versions/3.1.1/lib/ruby/gems/3.1.0/gems/railties-7.0.3/lib/rails/commands/generate/generate_command.rb:26:in `perform'
from /home/leboroz/.rbenv/versions/3.1.1/lib/ruby/gems/3.1.0/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
from /home/leboroz/.rbenv/versions/3.1.1/lib/ruby/gems/3.1.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
from /home/leboroz/.rbenv/versions/3.1.1/lib/ruby/gems/3.1.0/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
from /home/leboroz/.rbenv/versions/3.1.1/lib/ruby/gems/3.1.0/gems/railties-7.0.3/lib/rails/command/base.rb:87:in `perform'
from /home/leboroz/.rbenv/versions/3.1.1/lib/ruby/gems/3.1.0/gems/railties-7.0.3/lib/rails/command.rb:48:in `invoke'
from /home/leboroz/.rbenv/versions/3.1.1/lib/ruby/gems/3.1.0/gems/railties-7.0.3/lib/rails/commands.rb:18:in `<main>'
from /home/leboroz/.rbenv/versions/3.1.1/lib/ruby/gems/3.1.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from /home/leboroz/.rbenv/versions/3.1.1/lib/ruby/gems/3.1.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from bin/rails:4:in `<main>'
I get this error. I tried
$ sudo chown -R [user] ~/.rbenv
I have windows with WSL ubuntu22.04.1
Ruby3.1.1
I'm trying to implement a background job by using sidekiq & sidekiq-cron(for the repeated job).
However, when I execute both the app and sidekiq, the executions all failed.
Although I have had effort as much as I could do, I could not find any solution.
Is there anyone who can give me some advise?
The failed log and my configuration are following:
[The app execution failed log]
$ ./bin/rails server
=> Booting Puma
=> Rails 7.0.4 application starting in development
=> Run `bin/rails server --help` for more startup options
Exiting
/Users/test1234/projects/test-project/test_bg_job/config/initializers/sidekiq.rb:1:in `<main>': undefined method `options' for Sidekiq:Module (NoMethodError)
Sidekiq.options[:average_scheduled_poll_interval] = 10
^^^^^^^^
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.4/lib/rails/engine.rb:667:in `load'
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.4/lib/rails/engine.rb:667:in `block in load_config_initializer'
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-7.0.4/lib/active_support/notifications.rb:208:in `instrument'
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.4/lib/rails/engine.rb:666:in `load_config_initializer'
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.4/lib/rails/engine.rb:620:in `block (2 levels) in <class:Engine>'
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.4/lib/rails/engine.rb:619:in `each'
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.4/lib/rails/engine.rb:619:in `block in <class:Engine>'
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.4/lib/rails/initializable.rb:32:in `instance_exec'
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.4/lib/rails/initializable.rb:32:in `run'
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.4/lib/rails/initializable.rb:61:in `block in run_initializers'
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/tsort.rb:228:in `block in tsort_each'
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/tsort.rb:431:in `each_strongly_connected_component_from'
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.4/lib/rails/initializable.rb:50:in `each'
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.4/lib/rails/initializable.rb:50:in `tsort_each_child'
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/tsort.rb:415:in `call'
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/tsort.rb:415:in `each_strongly_connected_component_from'
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/tsort.rb:349:in `block in each_strongly_connected_component'
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/tsort.rb:347:in `each'
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/tsort.rb:347:in `call'
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/tsort.rb:347:in `each_strongly_connected_component'
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/tsort.rb:226:in `tsort_each'
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/tsort.rb:205:in `tsort_each'
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.4/lib/rails/initializable.rb:60:in `run_initializers'
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.4/lib/rails/application.rb:372:in `initialize!'
from /Users/test1234/projects/test-project/test_bg_job/config/environment.rb:5:in `<main>'
from config.ru:3:in `require_relative'
from config.ru:3:in `block in <main>'
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/rack-2.2.4/lib/rack/builder.rb:116:in `eval'
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/rack-2.2.4/lib/rack/builder.rb:116:in `new_from_string'
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/rack-2.2.4/lib/rack/builder.rb:105:in `load_file'
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/rack-2.2.4/lib/rack/builder.rb:66:in `parse_file'
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/rack-2.2.4/lib/rack/server.rb:349:in `build_app_and_options_from_config'
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/rack-2.2.4/lib/rack/server.rb:249:in `app'
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/rack-2.2.4/lib/rack/server.rb:422:in `wrapped_app'
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.4/lib/rails/commands/server/server_command.rb:76:in `log_to_stdout'
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.4/lib/rails/commands/server/server_command.rb:36:in `start'
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.4/lib/rails/commands/server/server_command.rb:143:in `block in perform'
from <internal:kernel>:90:in `tap'
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.4/lib/rails/commands/server/server_command.rb:134:in `perform'
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.4/lib/rails/command/base.rb:87:in `perform'
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.4/lib/rails/command.rb:48:in `invoke'
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.4/lib/rails/commands.rb:18:in `<main>'
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
from /Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
from ./bin/rails:4:in `<main>'
[sidekiq execution failed log]
undefined method `[]' for Sidekiq:Module
new_version? ? Sidekiq[key] : Sidekiq.options[key]
^^^^^
/Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/sidekiq-cron-1.8.0/lib/sidekiq/options.rb:6:in `[]'
/Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/sidekiq-cron-1.8.0/lib/sidekiq/cron/schedule_loader.rb:7:in `block in <main>'
/Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/sidekiq-7.0.1/lib/sidekiq.rb:98:in `configure_server'
/Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/sidekiq-cron-1.8.0/lib/sidekiq/cron/schedule_loader.rb:6:in `<main>'
/Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
/Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
/Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/sidekiq-cron-1.8.0/lib/sidekiq/cron.rb:4:in `<main>'
/Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
/Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
/Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/sidekiq-cron-1.8.0/lib/sidekiq-cron.rb:2:in `<main>'
/Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
/Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
/Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/bundler/runtime.rb:60:in `block (2 levels) in require'
/Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/bundler/runtime.rb:55:in `each'
/Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/bundler/runtime.rb:55:in `block in require'
/Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/bundler/runtime.rb:44:in `each'
/Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/bundler/runtime.rb:44:in `require'
/Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/bundler.rb:176:in `require'
/Users/test1234/projects/test-project/test_bg_job/config/application.rb:7:in `<top (required)>'
/Users/test1234/projects/test-project/test_bg_job/config/environment.rb:2:in `require_relative'
/Users/test1234/projects/test-project/test_bg_job/config/environment.rb:2:in `<top (required)>'
/Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/sidekiq-7.0.1/lib/sidekiq/cli.rb:301:in `require'
/Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/sidekiq-7.0.1/lib/sidekiq/cli.rb:301:in `boot_application'
/Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/sidekiq-7.0.1/lib/sidekiq/cli.rb:42:in `run'
/Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/sidekiq-7.0.1/bin/sidekiq:31:in `<top (required)>'
/Users/test1234/.asdf/installs/ruby/3.1.2/bin/sidekiq:25:in `load'
/Users/test1234/.asdf/installs/ruby/3.1.2/bin/sidekiq:25:in `<top (required)>'
/Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/bundler/cli/exec.rb:58:in `load'
/Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/bundler/cli/exec.rb:58:in `kernel_load'
/Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/bundler/cli/exec.rb:23:in `run'
/Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/bundler/cli.rb:484:in `exec'
/Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
/Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
/Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/bundler/cli.rb:31:in `dispatch'
/Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
/Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/bundler/cli.rb:25:in `start'
/Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.7/libexec/bundle:48:in `block in <top (required)>'
/Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/bundler/friendly_errors.rb:103:in `with_friendly_errors'
/Users/test1234/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.7/libexec/bundle:36:in `<top (required)>'
/Users/test1234/.asdf/installs/ruby/3.1.2/bin/bundle:25:in `load'
/Users/test1234/.asdf/installs/ruby/3.1.2/bin/bundle:25:in `<main>'
[config/sidekiq.yml]
:verbose: false
:concurrency: 5
:timeout: 8
:logfile: log/sidekiq.log
staging:
:concurrency: 5
production:
:concurrency: 5
:queues:
- default
[config/initializers/sidekiq.rb]
Sidekiq.options[:average_scheduled_poll_interval] = 10
Sidekiq.configure_server do |config|
config.redis = {url: ENV["REDIS_URL"]}
Rails.logger = Sidekiq.logger
ActiveRecord::Base.logger = Sidekiq.logger
schedule_file = "config/schedule.yml"
if File.exist?(schedule_file)
Rails.application.config.after_initialize do
Sidekiq::Cron::Job.load_from_hash! YAML.load_file(schedule_file)
end
end
end
Sidekiq.configure_client do |config|
config.redis = {url: ENV["REDIS_URL"]}
end
[config/schedule.yml]
my_bg_job:
cron: "* */1 * * * *"
class: "MyBgJob"
[Gemfile]
...
gem 'sidekiq'
gem 'sidekiq-cron'
...
I had the same problem.
Please try upgrading your current sidekiq-cron version to 1.9.0.
Version 1.9.0 is compatible with sidekiq7.0.
I solved the problem by upgrading the version of sidekiq-cron.
Here is the link to the pull request for version 1.9.0 of sidekiq-cron.
(https://github.com/sidekiq-cron/sidekiq-cron/pull/369/files)
Pronto fails to run in CircleCI build completes. I'm running Rails 4.2.9 and Ruby 2.4.0.
My circle.yml is:
test:
override:
- bundle exec rake test:all
post:
- if [[ ! -z $CI_PULL_REQUEST ]] ; then bundle exec pronto run -f github_pr -c origin/master ; fi
On running the pronto run command:
bundler: failed to load command: pronto(/home/ubuntu/app/vendor/bundle/ruby/2.4.0/bin/pronto)
Rugged::OdbError: object not found - no match for id (f61b491d0dbd5b3c13ad529587a06939fa1f54bc)
/home/ubuntu/app/vendor/bundle/ruby/2.4.0/gems/pronto-0.9.5/lib/pronto/git/repository.rb:52:in `new'
/home/ubuntu/app/vendor/bundle/ruby/2.4.0/gems/pronto-0.9.5/lib/pronto/git/repository.rb:52:in `blame'
/home/ubuntu/app/vendor/bundle/ruby/2.4.0/gems/pronto-0.9.5/lib/pronto/git/patch.rb:17:in `blame'
/home/ubuntu/app/vendor/bundle/ruby/2.4.0/gems/pronto-0.9.5/lib/pronto/git/line.rb:45:in `blame'
/home/ubuntu/app/vendor/bundle/ruby/2.4.0/gems/pronto-0.9.5/lib/pronto/git/line.rb:20:in `commit_sha'
/home/ubuntu/app/vendor/bundle/ruby/2.4.0/gems/pronto-0.9.5/lib/pronto/message.rb:18:in `initialize'
/home/ubuntu/app/vendor/bundle/ruby/2.4.0/gems/pronto-rubocop-0.9.0/lib/pronto/rubocop.rb:49:in `new'
/home/ubuntu/app/vendor/bundle/ruby/2.4.0/gems/pronto-rubocop-0.9.0/lib/pronto/rubocop.rb:49:in `new_message'
/home/ubuntu/app/vendor/bundle/ruby/2.4.0/gems/pronto-rubocop-0.9.0/lib/pronto/rubocop.rb:41:in `block (2 levels) in inspect'
/home/ubuntu/app/vendor/bundle/ruby/2.4.0/gems/pronto-rubocop-0.9.0/lib/pronto/rubocop.rb:41:in `map'
/home/ubuntu/app/vendor/bundle/ruby/2.4.0/gems/pronto-rubocop-0.9.0/lib/pronto/rubocop.rb:41:in `block in inspect'
/home/ubuntu/app/vendor/bundle/ruby/2.4.0/gems/pronto-rubocop-0.9.0/lib/pronto/rubocop.rb:38:in `map'
/home/ubuntu/app/vendor/bundle/ruby/2.4.0/gems/pronto-rubocop-0.9.0/lib/pronto/rubocop.rb:38:in `inspect'
/home/ubuntu/app/vendor/bundle/ruby/2.4.0/gems/pronto-rubocop-0.9.0/lib/pronto/rubocop.rb:18:in `block in run'
/home/ubuntu/app/vendor/bundle/ruby/2.4.0/gems/pronto-rubocop-0.9.0/lib/pronto/rubocop.rb:18:in `map'
/home/ubuntu/app/vendor/bundle/ruby/2.4.0/gems/pronto-rubocop-0.9.0/lib/pronto/rubocop.rb:18:in `run'
/home/ubuntu/app/vendor/bundle/ruby/2.4.0/gems/pronto-0.9.5/lib/pronto/runners.rb:20:in `block in run'
/home/ubuntu/app/vendor/bundle/ruby/2.4.0/gems/pronto-0.9.5/lib/pronto/runners.rb:13:in `each'
/home/ubuntu/app/vendor/bundle/ruby/2.4.0/gems/pronto-0.9.5/lib/pronto/runners.rb:13:in `run'
/home/ubuntu/app/vendor/bundle/ruby/2.4.0/gems/pronto-0.9.5/lib/pronto.rb:64:in `run'
/home/ubuntu/app/vendor/bundle/ruby/2.4.0/gems/pronto-0.9.5/lib/pronto/cli.rb:61:in `block in run'
/home/ubuntu/app/vendor/bundle/ruby/2.4.0/gems/pronto-0.9.5/lib/pronto/cli.rb:60:in `chdir'
/home/ubuntu/app/vendor/bundle/ruby/2.4.0/gems/pronto-0.9.5/lib/pronto/cli.rb:60:in `run'
/home/ubuntu/app/vendor/bundle/ruby/2.4.0/gems/thor-0.19.4/lib/thor/command.rb:27:in `run'
/home/ubuntu/app/vendor/bundle/ruby/2.4.0/gems/thor-0.19.4/lib/thor/invocation.rb:126:in `invoke_command'
/home/ubuntu/app/vendor/bundle/ruby/2.4.0/gems/thor-0.19.4/lib/thor.rb:369:in `dispatch'
/home/ubuntu/app/vendor/bundle/ruby/2.4.0/gems/thor-0.19.4/lib/thor/base.rb:444:in `start'
/home/ubuntu/app/vendor/bundle/ruby/2.4.0/gems/pronto-0.9.5/bin/pronto:6:in `<top (required)>'
/home/ubuntu/app/vendor/bundle/ruby/2.4.0/bin/pronto:23:in `load'
/home/ubuntu/app/vendor/bundle/ruby/2.4.0/bin/pronto:23:in `<top (required)>'
Any pointers on this issue would be super helpful! TIA.
I am launching Cuttlefish (https://cuttlefish.io/) SMTP process like this:
bundle exec rake cuttlefish:smtp RAILS_ENV=production
But when I try to send the test mail thru Cuttlefish's web, this process crashes with this last message:
Redis::CannotConnectError: Error connecting to Redis on 127.0.0.1:6379 (ECONNREFUSED)
What am I missing? Cuttlefish is connected to a MySQL DB, and this seems to be OK. Also, I have Postfix on the same machine, which has also been tested OK. How to make this SMTP process work?
Here is the full crash stack:
I'm listening for emails via SMTP on 0.0.0.0 port 2525
I'm in the production environment
rake aborted!
Redis::CannotConnectError: Error connecting to Redis on 127.0.0.1:6379 (ECONNREFUSED)
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:320:in `rescue in establish_connection'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:311:in `establish_connection'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:91:in `block in connect'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:273:in `with_reconnect'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:90:in `connect'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:337:in `ensure_connected'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:204:in `block in process'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:286:in `logging'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:203:in `process'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:174:in `call_pipelined'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:146:in `block in call_pipeline'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:273:in `with_reconnect'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:144:in `call_pipeline'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis.rb:2147:in `block in multi'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis.rb:37:in `block in synchronize'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis.rb:37:in `synchronize'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis.rb:2139:in `multi'
/soft/wordpress/home/tupromail/.gem/ruby/gems/sidekiq-3.3.0/lib/sidekiq/client.rb:180:in `block in raw_push'
/soft/wordpress/home/tupromail/.gem/ruby/gems/connection_pool-2.1.0/lib/connection_pool.rb:58:in `with'
/soft/wordpress/home/tupromail/.gem/ruby/gems/sidekiq-3.3.0/lib/sidekiq/client.rb:179:in `raw_push'
/soft/wordpress/home/tupromail/.gem/ruby/gems/sidekiq-3.3.0/lib/sidekiq/client.rb:68:in `push'
/soft/wordpress/home/tupromail/.gem/ruby/gems/sidekiq-3.3.0/lib/sidekiq/worker.rb:85:in `client_push'
/soft/wordpress/home/tupromail/.gem/ruby/gems/sidekiq-3.3.0/lib/sidekiq/worker.rb:40:in `perform_async'
/soft/wordpress/home/tupromail/cuttlefish-master/lib/cuttlefish_smtp_server.rb:117:in `receive_message'
/soft/wordpress/home/tupromail/.gem/ruby/gems/eventmachine-1.0.4/lib/em/protocols/smtpserver.rb:539:in `process_data_line'
/soft/wordpress/home/tupromail/.gem/ruby/gems/eventmachine-1.0.4/lib/em/protocols/smtpserver.rb:196:in `receive_line'
/soft/wordpress/home/tupromail/.gem/ruby/gems/eventmachine-1.0.4/lib/em/protocols/linetext2.rb:64:in `receive_data'
/soft/wordpress/home/tupromail/.gem/ruby/gems/eventmachine-1.0.4/lib/eventmachine.rb:187:in `run_machine'
/soft/wordpress/home/tupromail/.gem/ruby/gems/eventmachine-1.0.4/lib/eventmachine.rb:187:in `run'
/soft/wordpress/home/tupromail/cuttlefish-master/lib/cuttlefish_control.rb:22:in `smtp_start'
/soft/wordpress/home/tupromail/cuttlefish-master/lib/tasks/cuttlefish.rake:6:in `block (2 levels) in <top (required)>'
/soft/wordpress/home/tupromail/.gem/ruby/gems/rake-11.3.0/exe/rake:27:in `<top (required)>'
Errno::ECONNREFUSED: Connection refused - connect(2) for 127.0.0.1:6379
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/connection/ruby.rb:129:in `rescue in connect_addrinfo'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/connection/ruby.rb:121:in `connect_addrinfo'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/connection/ruby.rb:162:in `block in connect'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/connection/ruby.rb:160:in `each'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/connection/ruby.rb:160:in `each_with_index'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/connection/ruby.rb:160:in `connect'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/connection/ruby.rb:211:in `connect'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:316:in `establish_connection'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:91:in `block in connect'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:273:in `with_reconnect'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:90:in `connect'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:337:in `ensure_connected'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:204:in `block in process'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:286:in `logging'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:203:in `process'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:174:in `call_pipelined'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:146:in `block in call_pipeline'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:273:in `with_reconnect'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:144:in `call_pipeline'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis.rb:2147:in `block in multi'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis.rb:37:in `block in synchronize'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis.rb:37:in `synchronize'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis.rb:2139:in `multi'
/soft/wordpress/home/tupromail/.gem/ruby/gems/sidekiq-3.3.0/lib/sidekiq/client.rb:180:in `block in raw_push'
/soft/wordpress/home/tupromail/.gem/ruby/gems/connection_pool-2.1.0/lib/connection_pool.rb:58:in `with'
/soft/wordpress/home/tupromail/.gem/ruby/gems/sidekiq-3.3.0/lib/sidekiq/client.rb:179:in `raw_push'
/soft/wordpress/home/tupromail/.gem/ruby/gems/sidekiq-3.3.0/lib/sidekiq/client.rb:68:in `push'
/soft/wordpress/home/tupromail/.gem/ruby/gems/sidekiq-3.3.0/lib/sidekiq/worker.rb:85:in `client_push'
/soft/wordpress/home/tupromail/.gem/ruby/gems/sidekiq-3.3.0/lib/sidekiq/worker.rb:40:in `perform_async'
/soft/wordpress/home/tupromail/cuttlefish-master/lib/cuttlefish_smtp_server.rb:117:in `receive_message'
/soft/wordpress/home/tupromail/.gem/ruby/gems/eventmachine-1.0.4/lib/em/protocols/smtpserver.rb:539:in `process_data_line'
/soft/wordpress/home/tupromail/.gem/ruby/gems/eventmachine-1.0.4/lib/em/protocols/smtpserver.rb:196:in `receive_line'
/soft/wordpress/home/tupromail/.gem/ruby/gems/eventmachine-1.0.4/lib/em/protocols/linetext2.rb:64:in `receive_data'
/soft/wordpress/home/tupromail/.gem/ruby/gems/eventmachine-1.0.4/lib/eventmachine.rb:187:in `run_machine'
/soft/wordpress/home/tupromail/.gem/ruby/gems/eventmachine-1.0.4/lib/eventmachine.rb:187:in `run'
/soft/wordpress/home/tupromail/cuttlefish-master/lib/cuttlefish_control.rb:22:in `smtp_start'
/soft/wordpress/home/tupromail/cuttlefish-master/lib/tasks/cuttlefish.rake:6:in `block (2 levels) in <top (required)>'
/soft/wordpress/home/tupromail/.gem/ruby/gems/rake-11.3.0/exe/rake:27:in `<top (required)>'
IO::EINPROGRESSWaitWritable: Operation now in progress - connect(2) would block
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/connection/ruby.rb:122:in `connect_addrinfo'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/connection/ruby.rb:162:in `block in connect'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/connection/ruby.rb:160:in `each'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/connection/ruby.rb:160:in `each_with_index'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/connection/ruby.rb:160:in `connect'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/connection/ruby.rb:211:in `connect'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:316:in `establish_connection'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:91:in `block in connect'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:273:in `with_reconnect'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:90:in `connect'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:337:in `ensure_connected'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:204:in `block in process'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:286:in `logging'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:203:in `process'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:174:in `call_pipelined'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:146:in `block in call_pipeline'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:273:in `with_reconnect'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:144:in `call_pipeline'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis.rb:2147:in `block in multi'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis.rb:37:in `block in synchronize'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis.rb:37:in `synchronize'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis.rb:2139:in `multi'
/soft/wordpress/home/tupromail/.gem/ruby/gems/sidekiq-3.3.0/lib/sidekiq/client.rb:180:in `block in raw_push'
/soft/wordpress/home/tupromail/.gem/ruby/gems/connection_pool-2.1.0/lib/connection_pool.rb:58:in `with'
/soft/wordpress/home/tupromail/.gem/ruby/gems/sidekiq-3.3.0/lib/sidekiq/client.rb:179:in `raw_push'
/soft/wordpress/home/tupromail/.gem/ruby/gems/sidekiq-3.3.0/lib/sidekiq/client.rb:68:in `push'
/soft/wordpress/home/tupromail/.gem/ruby/gems/sidekiq-3.3.0/lib/sidekiq/worker.rb:85:in `client_push'
/soft/wordpress/home/tupromail/.gem/ruby/gems/sidekiq-3.3.0/lib/sidekiq/worker.rb:40:in `perform_async'
/soft/wordpress/home/tupromail/cuttlefish-master/lib/cuttlefish_smtp_server.rb:117:in `receive_message'
/soft/wordpress/home/tupromail/.gem/ruby/gems/eventmachine-1.0.4/lib/em/protocols/smtpserver.rb:539:in `process_data_line'
/soft/wordpress/home/tupromail/.gem/ruby/gems/eventmachine-1.0.4/lib/em/protocols/smtpserver.rb:196:in `receive_line'
/soft/wordpress/home/tupromail/.gem/ruby/gems/eventmachine-1.0.4/lib/em/protocols/linetext2.rb:64:in `receive_data'
/soft/wordpress/home/tupromail/.gem/ruby/gems/eventmachine-1.0.4/lib/eventmachine.rb:187:in `run_machine'
/soft/wordpress/home/tupromail/.gem/ruby/gems/eventmachine-1.0.4/lib/eventmachine.rb:187:in `run'
/soft/wordpress/home/tupromail/cuttlefish-master/lib/cuttlefish_control.rb:22:in `smtp_start'
/soft/wordpress/home/tupromail/cuttlefish-master/lib/tasks/cuttlefish.rake:6:in `block (2 levels) in <top (required)>'
/soft/wordpress/home/tupromail/.gem/ruby/gems/rake-11.3.0/exe/rake:27:in `<top (required)>'
Tasks: TOP => cuttlefish:smtp
Your app is failing due to redis connection, check if you are using redis in some module and install redis or else remove redis dependency
I solved the problem by launching Redis server:
redis-server&
I'm developing rails application and use sunspot gem for searching.
gem 'sunspot_solr'
I've configured it on my computer and it works great. Also I integrate my application to gitlab ci. Before I have configured search it has been build success. And now I add solr service to gitlab-ci.yml file, use start and reindex.
.gitlab-ci.yml
services:
- postgres
- solr
...
rake_test:
script:
- bundle exec sunspot-solr start -p 8983
- bundle exec rake db:create
- bundle exec rake db:test:prepare
- bundle exec rake db:migrate
- bundle exec rake sunspot:solr:reindex
config/sunspot.yml
production:
solr:
hostname: <%= ENV['SOLR_HOST'] || 'localhost' %>
port: <%= ENV['SOLR_PORT'] || '8983' %>
log_level: WARNING
path: <%= ENV['SOLR_PATH'] || '/var/solr' %>
# read_timeout: 2
# open_timeout: 0.5
development:
solr:
hostname: localhost
port: 8983
log_level: INFO
test:
solr:
hostname: localhost
port: 8983
log_level: WARNING
Log from gitlab build:
bundle exec sunspot-solr start -p 8983
bundle exec rake sunspot:solr:reindex
Skipping progress bar: for progress reporting, add gem 'progress_bar' to your Gemfile
rake aborted!
RSolr::Error::ConnectionRefused: Connection refused - {:data=>"<?xml version=\"1.0\" encoding=\"UTF-8\"?><delete><query>type:Product</query></delete>", :headers=>{"Content-Type"=>"text/xml"}, :method=>:post, :params=>{:wt=>:ruby}, :query=>"wt=ruby", :path=>"update", :uri=>#<URI::HTTP http://localhost:8983/solr/update?wt=ruby>, :open_timeout=>nil, :read_timeout=>nil, :retry_503=>nil, :retry_after_limit=>nil}
/usr/local/bundle/gems/rsolr-1.1.1/lib/rsolr/connection.rb:19:in `rescue in execute'
/usr/local/bundle/gems/rsolr-1.1.1/lib/rsolr/connection.rb:14:in `execute'
/usr/local/bundle/gems/rack-mini-profiler-0.10.1/lib/patches/db/rsolr.rb:4:in `execute_with_profiling'
/usr/local/bundle/gems/rsolr-1.1.1/lib/rsolr/client.rb:181:in `execute'
/usr/local/bundle/gems/rsolr-1.1.1/lib/rsolr/client.rb:175:in `send_and_receive'
/usr/local/bundle/gems/sunspot_rails-2.2.5/lib/sunspot/rails/solr_instrumentation.rb:16:in `block in send_and_receive_with_as_instrumentation'
/usr/local/bundle/gems/activesupport-4.2.7/lib/active_support/notifications.rb:164:in `block in instrument'
/usr/local/bundle/gems/activesupport-4.2.7/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/usr/local/bundle/gems/activesupport-4.2.7/lib/active_support/notifications.rb:164:in `instrument'
/usr/local/bundle/gems/sunspot_rails-2.2.5/lib/sunspot/rails/solr_instrumentation.rb:15:in `send_and_receive_with_as_instrumentation'
(eval):2:in `post'
/usr/local/bundle/gems/rsolr-1.1.1/lib/rsolr/client.rb:84:in `update'
/usr/local/bundle/gems/rsolr-1.1.1/lib/rsolr/client.rb:148:in `delete_by_query'
/usr/local/bundle/gems/sunspot-2.2.5/lib/sunspot/indexer.rb:68:in `remove_all'
/usr/local/bundle/gems/sunspot-2.2.5/lib/sunspot/session.rb:197:in `block in remove_all'
/usr/local/bundle/gems/sunspot-2.2.5/lib/sunspot/session.rb:197:in `each'
/usr/local/bundle/gems/sunspot-2.2.5/lib/sunspot/session.rb:197:in `remove_all'
/usr/local/bundle/gems/sunspot-2.2.5/lib/sunspot/session_proxy/abstract_session_proxy.rb:11:in `remove_all'
/usr/local/bundle/gems/sunspot-2.2.5/lib/sunspot/session_proxy/retry_5xx_session_proxy.rb:17:in `method_missing'
/usr/local/bundle/gems/sunspot-2.2.5/lib/sunspot/session_proxy/abstract_session_proxy.rb:11:in `remove_all'
/usr/local/bundle/gems/sunspot-2.2.5/lib/sunspot.rb:502:in `remove_all'
/usr/local/bundle/gems/newrelic_rpm-3.16.0.318/lib/new_relic/agent/method_tracer.rb:364:in `block in remove_all_with_trace_SolrClient_Sunspot_delete'
/usr/local/bundle/gems/newrelic_rpm-3.16.0.318/lib/new_relic/agent/method_tracer_helpers.rb:82:in `trace_execution_scoped'
/usr/local/bundle/gems/newrelic_rpm-3.16.0.318/lib/new_relic/agent/method_tracer.rb:362:in `remove_all_with_trace_SolrClient_Sunspot_delete'
/usr/local/bundle/gems/sunspot_rails-2.2.5/lib/sunspot/rails/searchable.rb:190:in `solr_remove_all_from_index'
/usr/local/bundle/gems/sunspot_rails-2.2.5/lib/sunspot/rails/searchable.rb:209:in `solr_reindex'
/usr/local/bundle/gems/sunspot_rails-2.2.5/lib/sunspot/rails/tasks.rb:60:in `block (4 levels) in <top (required)>'
/usr/local/bundle/gems/sunspot-2.2.5/lib/sunspot/class_set.rb:16:in `each'
/usr/local/bundle/gems/sunspot-2.2.5/lib/sunspot/class_set.rb:16:in `each'
/usr/local/bundle/gems/sunspot_rails-2.2.5/lib/sunspot/rails/tasks.rb:59:in `block (3 levels) in <top (required)>'
/usr/local/bundle/gems/sunspot_rails-2.2.5/lib/sunspot/rails/tasks.rb:71:in `with_session'
/usr/local/bundle/gems/sunspot_rails-2.2.5/lib/sunspot/rails/tasks.rb:19:in `block (2 levels) in <top (required)>'
/usr/local/bundle/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
/usr/local/bundle/bin/bundle:22:in `load'
/usr/local/bundle/bin/bundle:22:in `<main>'
Errno::ECONNREFUSED: Failed to open TCP connection to localhost:8983 (Connection refused - connect(2) for "localhost" port 8983)
/usr/local/bundle/gems/newrelic_rpm-3.16.0.318/lib/new_relic/agent/instrumentation/net.rb:27:in `block (2 levels) in request_with_newrelic_trace'
/usr/local/bundle/gems/newrelic_rpm-3.16.0.318/lib/new_relic/agent.rb:428:in `disable_all_tracing'
/usr/local/bundle/gems/newrelic_rpm-3.16.0.318/lib/new_relic/agent/instrumentation/net.rb:26:in `block in request_with_newrelic_trace'
/usr/local/bundle/gems/newrelic_rpm-3.16.0.318/lib/new_relic/agent/cross_app_tracing.rb:48:in `tl_trace_http_request'
/usr/local/bundle/gems/newrelic_rpm-3.16.0.318/lib/new_relic/agent/instrumentation/net.rb:23:in `request_with_newrelic_trace'
/usr/local/bundle/gems/rack-mini-profiler-0.10.1/lib/patches/net_patches.rb:7:in `block in request_with_mini_profiler'
/usr/local/bundle/gems/rack-mini-profiler-0.10.1/lib/mini_profiler/profiling_methods.rb:37:in `step'
/usr/local/bundle/gems/rack-mini-profiler-0.10.1/lib/patches/net_patches.rb:6:in `request_with_mini_profiler'
/usr/local/bundle/gems/rsolr-1.1.1/lib/rsolr/connection.rb:15:in `execute'
/usr/local/bundle/gems/rack-mini-profiler-0.10.1/lib/patches/db/rsolr.rb:4:in `execute_with_profiling'
/usr/local/bundle/gems/rsolr-1.1.1/lib/rsolr/client.rb:181:in `execute'
/usr/local/bundle/gems/rsolr-1.1.1/lib/rsolr/client.rb:175:in `send_and_receive'
/usr/local/bundle/gems/sunspot_rails-2.2.5/lib/sunspot/rails/solr_instrumentation.rb:16:in `block in send_and_receive_with_as_instrumentation'
/usr/local/bundle/gems/activesupport-4.2.7/lib/active_support/notifications.rb:164:in `block in instrument'
/usr/local/bundle/gems/activesupport-4.2.7/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/usr/local/bundle/gems/activesupport-4.2.7/lib/active_support/notifications.rb:164:in `instrument'
/usr/local/bundle/gems/sunspot_rails-2.2.5/lib/sunspot/rails/solr_instrumentation.rb:15:in `send_and_receive_with_as_instrumentation'
(eval):2:in `post'
/usr/local/bundle/gems/rsolr-1.1.1/lib/rsolr/client.rb:84:in `update'
/usr/local/bundle/gems/rsolr-1.1.1/lib/rsolr/client.rb:148:in `delete_by_query'
/usr/local/bundle/gems/sunspot-2.2.5/lib/sunspot/indexer.rb:68:in `remove_all'
/usr/local/bundle/gems/sunspot-2.2.5/lib/sunspot/session.rb:197:in `block in remove_all'
/usr/local/bundle/gems/sunspot-2.2.5/lib/sunspot/session.rb:197:in `each'
/usr/local/bundle/gems/sunspot-2.2.5/lib/sunspot/session.rb:197:in `remove_all'
/usr/local/bundle/gems/sunspot-2.2.5/lib/sunspot/session_proxy/abstract_session_proxy.rb:11:in `remove_all'
/usr/local/bundle/gems/sunspot-2.2.5/lib/sunspot/session_proxy/retry_5xx_session_proxy.rb:17:in `method_missing'
/usr/local/bundle/gems/sunspot-2.2.5/lib/sunspot/session_proxy/abstract_session_proxy.rb:11:in `remove_all'
/usr/local/bundle/gems/sunspot-2.2.5/lib/sunspot.rb:502:in `remove_all'
/usr/local/bundle/gems/newrelic_rpm-3.16.0.318/lib/new_relic/agent/method_tracer.rb:364:in `block in remove_all_with_trace_SolrClient_Sunspot_delete'
/usr/local/bundle/gems/newrelic_rpm-3.16.0.318/lib/new_relic/agent/method_tracer_helpers.rb:82:in `trace_execution_scoped'
/usr/local/bundle/gems/newrelic_rpm-3.16.0.318/lib/new_relic/agent/method_tracer.rb:362:in `remove_all_with_trace_SolrClient_Sunspot_delete'
/usr/local/bundle/gems/sunspot_rails-2.2.5/lib/sunspot/rails/searchable.rb:190:in `solr_remove_all_from_index'
/usr/local/bundle/gems/sunspot_rails-2.2.5/lib/sunspot/rails/searchable.rb:209:in `solr_reindex'
/usr/local/bundle/gems/sunspot_rails-2.2.5/lib/sunspot/rails/tasks.rb:60:in `block (4 levels) in <top (required)>'
/usr/local/bundle/gems/sunspot-2.2.5/lib/sunspot/class_set.rb:16:in `each'
/usr/local/bundle/gems/sunspot-2.2.5/lib/sunspot/class_set.rb:16:in `each'
/usr/local/bundle/gems/sunspot_rails-2.2.5/lib/sunspot/rails/tasks.rb:59:in `block (3 levels) in <top (required)>'
/usr/local/bundle/gems/sunspot_rails-2.2.5/lib/sunspot/rails/tasks.rb:71:in `with_session'
/usr/local/bundle/gems/sunspot_rails-2.2.5/lib/sunspot/rails/tasks.rb:19:in `block (2 levels) in <top (required)>'
/usr/local/bundle/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
/usr/local/bundle/bin/bundle:22:in `load'
/usr/local/bundle/bin/bundle:22:in `<main>'
Errno::ECONNREFUSED: Connection refused - connect(2) for "localhost" port 8983
/usr/local/bundle/gems/newrelic_rpm-3.16.0.318/lib/new_relic/agent/instrumentation/net.rb:27:in `block (2 levels) in request_with_newrelic_trace'
/usr/local/bundle/gems/newrelic_rpm-3.16.0.318/lib/new_relic/agent.rb:428:in `disable_all_tracing'
/usr/local/bundle/gems/newrelic_rpm-3.16.0.318/lib/new_relic/agent/instrumentation/net.rb:26:in `block in request_with_newrelic_trace'
/usr/local/bundle/gems/newrelic_rpm-3.16.0.318/lib/new_relic/agent/cross_app_tracing.rb:48:in `tl_trace_http_request'
/usr/local/bundle/gems/newrelic_rpm-3.16.0.318/lib/new_relic/agent/instrumentation/net.rb:23:in `request_with_newrelic_trace'
/usr/local/bundle/gems/rack-mini-profiler-0.10.1/lib/patches/net_patches.rb:7:in `block in request_with_mini_profiler'
/usr/local/bundle/gems/rack-mini-profiler-0.10.1/lib/mini_profiler/profiling_methods.rb:37:in `step'
/usr/local/bundle/gems/rack-mini-profiler-0.10.1/lib/patches/net_patches.rb:6:in `request_with_mini_profiler'
/usr/local/bundle/gems/rsolr-1.1.1/lib/rsolr/connection.rb:15:in `execute'
/usr/local/bundle/gems/rack-mini-profiler-0.10.1/lib/patches/db/rsolr.rb:4:in `execute_with_profiling'
/usr/local/bundle/gems/rsolr-1.1.1/lib/rsolr/client.rb:181:in `execute'
/usr/local/bundle/gems/rsolr-1.1.1/lib/rsolr/client.rb:175:in `send_and_receive'
/usr/local/bundle/gems/sunspot_rails-2.2.5/lib/sunspot/rails/solr_instrumentation.rb:16:in `block in send_and_receive_with_as_instrumentation'
/usr/local/bundle/gems/activesupport-4.2.7/lib/active_support/notifications.rb:164:in `block in instrument'
/usr/local/bundle/gems/activesupport-4.2.7/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/usr/local/bundle/gems/activesupport-4.2.7/lib/active_support/notifications.rb:164:in `instrument'
/usr/local/bundle/gems/sunspot_rails-2.2.5/lib/sunspot/rails/solr_instrumentation.rb:15:in `send_and_receive_with_as_instrumentation'
(eval):2:in `post'
/usr/local/bundle/gems/rsolr-1.1.1/lib/rsolr/client.rb:84:in `update'
/usr/local/bundle/gems/rsolr-1.1.1/lib/rsolr/client.rb:148:in `delete_by_query'
/usr/local/bundle/gems/sunspot-2.2.5/lib/sunspot/indexer.rb:68:in `remove_all'
/usr/local/bundle/gems/sunspot-2.2.5/lib/sunspot/session.rb:197:in `block in remove_all'
/usr/local/bundle/gems/sunspot-2.2.5/lib/sunspot/session.rb:197:in `each'
/usr/local/bundle/gems/sunspot-2.2.5/lib/sunspot/session.rb:197:in `remove_all'
/usr/local/bundle/gems/sunspot-2.2.5/lib/sunspot/session_proxy/abstract_session_proxy.rb:11:in `remove_all'
/usr/local/bundle/gems/sunspot-2.2.5/lib/sunspot/session_proxy/retry_5xx_session_proxy.rb:17:in `method_missing'
/usr/local/bundle/gems/sunspot-2.2.5/lib/sunspot/session_proxy/abstract_session_proxy.rb:11:in `remove_all'
/usr/local/bundle/gems/sunspot-2.2.5/lib/sunspot.rb:502:in `remove_all'
/usr/local/bundle/gems/newrelic_rpm-3.16.0.318/lib/new_relic/agent/method_tracer.rb:364:in `block in remove_all_with_trace_SolrClient_Sunspot_delete'
/usr/local/bundle/gems/newrelic_rpm-3.16.0.318/lib/new_relic/agent/method_tracer_helpers.rb:82:in `trace_execution_scoped'
/usr/local/bundle/gems/newrelic_rpm-3.16.0.318/lib/new_relic/agent/method_tracer.rb:362:in `remove_all_with_trace_SolrClient_Sunspot_delete'
/usr/local/bundle/gems/sunspot_rails-2.2.5/lib/sunspot/rails/searchable.rb:190:in `solr_remove_all_from_index'
/usr/local/bundle/gems/sunspot_rails-2.2.5/lib/sunspot/rails/searchable.rb:209:in `solr_reindex'
/usr/local/bundle/gems/sunspot_rails-2.2.5/lib/sunspot/rails/tasks.rb:60:in `block (4 levels) in <top (required)>'
/usr/local/bundle/gems/sunspot-2.2.5/lib/sunspot/class_set.rb:16:in `each'
/usr/local/bundle/gems/sunspot-2.2.5/lib/sunspot/class_set.rb:16:in `each'
/usr/local/bundle/gems/sunspot_rails-2.2.5/lib/sunspot/rails/tasks.rb:59:in `block (3 levels) in <top (required)>'
/usr/local/bundle/gems/sunspot_rails-2.2.5/lib/sunspot/rails/tasks.rb:71:in `with_session'
/usr/local/bundle/gems/sunspot_rails-2.2.5/lib/sunspot/rails/tasks.rb:19:in `block (2 levels) in <top (required)>'
/usr/local/bundle/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
/usr/local/bundle/bin/bundle:22:in `load'
/usr/local/bundle/bin/bundle:22:in `<main>'
Tasks: TOP => sunspot:solr:reindex => sunspot:reindex
(See full trace by running task with --trace)
make: *** [solr_start] Error 1
Makefile:30: recipe for target 'solr_start' failed
ERROR: Build failed: exit code 1
As you can see, it starts good. But on indexing stage it could not connect.
I've also tried ps aux command
after starting solr:
ps aux | grep solr
root 15048 0.0 0.5 95024 22168 ? R 15:26 0:00 /usr/local/bundle/bin/sunspot-solr
root 15051 0.0 0.0 20128 2816 ? Ss 15:26 0:00 bash ./solr start -f -p 8983 -s /usr/local/bundle/gems/sunspot_solr-2.2.5/solr/solr
root 15056 0.0 0.0 11132 1000 ? S 15:26 0:00 grep solr
and after migrating db:
ps aux | grep solr
root 15066 0.0 0.0 11132 988 ? S 15:27 0:00 grep solr
In my case, I ended up extending StubSessionProxy
https://github.com/jaigouk/stub_solr
here is my rake file
https://github.com/jaigouk/stub_solr/blob/master/Rakefile#L21