fastlane-community/fastlane-plugin-clean_testflight_testers

Failed to open TCP connection to 127.0.0.1:8888

jetersen opened this issue ยท 8 comments

PR is merged so I thought what the heck ๐Ÿš€
fastlane/fastlane#10186

WHAT?!?
[21:08:59]: Failed to open TCP connection to 127.0.0.1:8888 (Connection refused - connect(2) for "127.0.0.1" port 8888)
Edit: oh debug mode ๐Ÿ—ก

bundle exec fastlane ios clean_testers
+------------------------------------------+---------+--------------------------+
|                                 Used plugins                                  |
+------------------------------------------+---------+--------------------------+
| Plugin                                   | Version | Action                   |
+------------------------------------------+---------+--------------------------+
| fastlane-plugin-clean_testflight_testers | 0.1.0   | clean_testflight_testers |
+------------------------------------------+---------+--------------------------+

[21:08:46]: -------------------------------------------------
[21:08:46]: --- Step: Verifying required fastlane version ---
[21:08:46]: -------------------------------------------------
[21:08:46]: Your fastlane version 2.59.0 matches the minimum requirement of 2.39.2  โœ…
[21:08:46]: -----------------------
[21:08:46]: --- Step: xcversion ---
[21:08:46]: -----------------------
[21:08:46]: Setting Xcode version to /Applications/Xcode-9.app for all build steps
[21:08:46]: ------------------------------
[21:08:46]: --- Step: default_platform ---
[21:08:46]: ------------------------------
[21:08:46]: -------------------
[21:08:46]: --- Step: is_ci ---
[21:08:46]: -------------------
[21:08:46]: Driving the lane 'ios clean_testers' ๏ฟฝ
[21:08:46]: --------------------------------------
[21:08:46]: --- Step: clean_testflight_testers ---
[21:08:46]: --------------------------------------
[21:08:46]: Login to iTunes Connect (bob)
Warning: use of proxy(new_value) to set connection proxy have been DEPRECATED and will be removed in Faraday 1.0
Warning: use of proxy(new_value) to set connection proxy have been DEPRECATED and will be removed in Faraday 1.0
+------------------+-------------------+
|             Lane Context             |
+------------------+-------------------+
| DEFAULT_PLATFORM | ios               |
| PLATFORM_NAME    | ios               |
| LANE_NAME        | ios clean_testers |
+------------------+-------------------+
[21:08:59]: Failed to open TCP connection to 127.0.0.1:8888 (Connection refused - connect(2) for "127.0.0.1" port 8888)

+------+-------------------------------------+-------------+
|                     fastlane summary                     |
+------+-------------------------------------+-------------+
| Step | Action                              | Time (in s) |
+------+-------------------------------------+-------------+
| 1    | Verifying required fastlane version | 0           |
| 2    | xcversion                           | 0           |
| 3    | default_platform                    | 0           |
| 4    | is_ci                               | 0           |
| ๏ฟฝ   | clean_testflight_testers            | 12          |
+------+-------------------------------------+-------------+

[21:08:59]: fastlane finished with errors

Looking for related GitHub issues on fastlane/fastlane...

Found no similar issues. To create a new issue, please visit:
https://github.com/fastlane/fastlane/issues/new
Run `fastlane env` to append the fastlane environment to your issue
bundler: failed to load command: fastlane (/usr/local/lib/ruby/gems/2.4.0/bin/fastlane)
Faraday::ConnectionFailed: [!] Failed to open TCP connection to 127.0.0.1:8888 (Connection refused - connect(2) for "127.0.0.1" port 8888)
  /usr/local/Cellar/ruby/2.4.2/lib/ruby/2.4.0/net/http.rb:906:in `rescue in block in connect'
  /usr/local/Cellar/ruby/2.4.2/lib/ruby/2.4.0/net/http.rb:903:in `block in connect'
  /usr/local/Cellar/ruby/2.4.2/lib/ruby/2.4.0/timeout.rb:93:in `block in timeout'
  /usr/local/Cellar/ruby/2.4.2/lib/ruby/2.4.0/timeout.rb:103:in `timeout'
  /usr/local/Cellar/ruby/2.4.2/lib/ruby/2.4.0/net/http.rb:902:in `connect'
  /usr/local/Cellar/ruby/2.4.2/lib/ruby/2.4.0/net/http.rb:887:in `do_start'
  /usr/local/Cellar/ruby/2.4.2/lib/ruby/2.4.0/net/http.rb:876:in `start'
  /usr/local/Cellar/ruby/2.4.2/lib/ruby/2.4.0/net/http.rb:1407:in `request'
  /usr/local/lib/ruby/gems/2.4.0/gems/faraday-0.13.1/lib/faraday/adapter/net_http.rb:80:in `perform_request'
  /usr/local/lib/ruby/gems/2.4.0/gems/faraday-0.13.1/lib/faraday/adapter/net_http.rb:38:in `block in call'
  /usr/local/lib/ruby/gems/2.4.0/gems/faraday-0.13.1/lib/faraday/adapter/net_http.rb:85:in `with_net_http_connection'
  /usr/local/lib/ruby/gems/2.4.0/gems/faraday-0.13.1/lib/faraday/adapter/net_http.rb:33:in `call'
  /usr/local/lib/ruby/gems/2.4.0/gems/faraday-cookie_jar-0.0.6/lib/faraday/cookie_jar.rb:22:in `call'
  /usr/local/lib/ruby/gems/2.4.0/gems/faraday_middleware-0.12.2/lib/faraday_middleware/response_middleware.rb:31:in `call'
  /usr/local/lib/ruby/gems/2.4.0/gems/faraday_middleware-0.12.2/lib/faraday_middleware/response_middleware.rb:31:in `call'
  /usr/local/lib/ruby/gems/2.4.0/gems/faraday_middleware-0.12.2/lib/faraday_middleware/response_middleware.rb:31:in `call'
  /usr/local/lib/ruby/gems/2.4.0/gems/faraday-0.13.1/lib/faraday/rack_builder.rb:141:in `build_response'
  /usr/local/lib/ruby/gems/2.4.0/gems/faraday-0.13.1/lib/faraday/connection.rb:387:in `run_request'
  /usr/local/lib/ruby/gems/2.4.0/gems/faraday-0.13.1/lib/faraday/connection.rb:174:in `post'
  /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.59.0/spaceship/lib/spaceship/client.rb:684:in `block in send_request'
  /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.59.0/spaceship/lib/spaceship/client.rb:520:in `with_retry'
  /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.59.0/spaceship/lib/spaceship/client.rb:683:in `send_request'
  /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.59.0/spaceship/lib/spaceship/client.rb:568:in `request'
  /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.59.0/spaceship/lib/spaceship/client.rb:443:in `send_shared_login_request'
  /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.59.0/spaceship/lib/spaceship/tunes/tunes_client.rb:111:in `send_login_request'
  /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.59.0/spaceship/lib/spaceship/client.rb:650:in `do_login'
  /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.59.0/spaceship/lib/spaceship/client.rb:395:in `login'
  /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.59.0/spaceship/lib/spaceship/client.rb:116:in `login'
  /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.59.0/spaceship/lib/spaceship/tunes/spaceship.rb:22:in `login'
  /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-plugin-clean_testflight_testers-0.1.0/lib/fastlane/plugin/clean_testflight_testers/actions/clean_testflight_testers_action.rb:9:in `run'
  /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.59.0/fastlane/lib/fastlane/runner.rb:252:in `block (2 levels) in execute_action'
  /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.59.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'
  /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.59.0/fastlane/lib/fastlane/runner.rb:230:in `block in execute_action'
  /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.59.0/fastlane/lib/fastlane/runner.rb:226:in `chdir'
  /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.59.0/fastlane/lib/fastlane/runner.rb:226:in `execute_action'
  /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.59.0/fastlane/lib/fastlane/runner.rb:148:in `trigger_action_by_name'
  /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.59.0/fastlane/lib/fastlane/fast_file.rb:146:in `method_missing'
  Fastfile:263:in `block (2 levels) in parsing_binding'
  /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.59.0/fastlane/lib/fastlane/lane.rb:33:in `call'
  /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.59.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
  /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.59.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
  /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.59.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
  /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.59.0/fastlane/lib/fastlane/lane_manager.rb:52:in `cruise_lane'
  /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.59.0/fastlane/lib/fastlane/command_line_handler.rb:30:in `handle'
  /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.59.0/fastlane/lib/fastlane/commands_generator.rb:104:in `block (2 levels) in run'
  /usr/local/lib/ruby/gems/2.4.0/gems/commander-fastlane-4.4.5/lib/commander/command.rb:178:in `call'
  /usr/local/lib/ruby/gems/2.4.0/gems/commander-fastlane-4.4.5/lib/commander/command.rb:153:in `run'
  /usr/local/lib/ruby/gems/2.4.0/gems/commander-fastlane-4.4.5/lib/commander/runner.rb:476:in `run_active_command'
  /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.59.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:64:in `run!'
  /usr/local/lib/ruby/gems/2.4.0/gems/commander-fastlane-4.4.5/lib/commander/delegates.rb:15:in `run!'
  /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.59.0/fastlane/lib/fastlane/commands_generator.rb:303:in `run'
  /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.59.0/fastlane/lib/fastlane/commands_generator.rb:42:in `start'
  /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.59.0/fastlane/lib/fastlane/cli_tools_distributor.rb:66:in `take_off'
  /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.59.0/bin/fastlane:20:in `<top (required)>'
  /usr/local/lib/ruby/gems/2.4.0/bin/fastlane:23:in `load'
  /usr/local/lib/ruby/gems/2.4.0/bin/fastlane:23:in `<top (required)>'
โœ… fastlane environment โœ…

Stack

Key Value
OS 10.12.6
Ruby 2.4.2
Bundler? false
Git git version 2.14.2
Installation Source /usr/local/bin/fastlane
Host Mac OS X 10.12.6 (16G29)
Ruby Lib Dir /usr/local/Cellar/ruby/2.4.2/lib
OpenSSL Version OpenSSL 1.0.2l 25 May 2017
Is contained false
Is homebrew false
Is installed via Fabric.app false
Xcode Path /Applications/Xcode-9.app/Contents/Developer/
Xcode Version 9.0

System Locale

Variable Value
LANG en_US.UTF-8 โœ…
LC_ALL
LANGUAGE

fastlane files:

`./fastlane/Fastfile`
platform :ios do
  lane :clean_testers do
    clean_testflight_testers(dry_run: true)
  end
end

fastlane gems

Gem Version Update-Status
fastlane 2.59.0 โœ… Up-To-Date

Loaded fastlane plugins:

Plugin Version Update-Status
fastlane-plugin-clean_testflight_testers 0.1.0 โœ… Up-To-Date
Loaded gems
Gem Version
did_you_mean 1.1.0
slack-notifier 1.5.1
CFPropertyList 2.3.5
claide 1.0.2
colored2 3.1.2
nanaimo 0.2.3
xcodeproj 1.5.2
rouge 2.0.7
xcpretty 0.2.8
terminal-notifier 1.8.0
unicode-display_width 1.3.0
terminal-table 1.8.0
plist 3.3.0
public_suffix 2.0.5
addressable 2.5.2
multipart-post 2.0.0
word_wrap 1.0.0
tty-screen 0.5.0
babosa 1.0.2
colored 1.2
highline 1.7.8
commander-fastlane 4.4.5
excon 0.59.0
faraday 0.13.1
unf_ext 0.0.7.4
unf 0.1.4
domain_name 0.5.20170404
http-cookie 1.0.3
faraday-cookie_jar 0.0.6
fastimage 2.1.0
gh_inspector 1.0.3
mini_magick 4.5.1
multi_json 1.12.2
multi_xml 0.6.0
rubyzip 1.2.1
security 0.1.3
xcpretty-travis-formatter 0.0.4
dotenv 2.2.1
bundler 1.14.6
faraday_middleware 0.12.2
uber 0.1.0
declarative 0.0.10
declarative-option 0.1.0
representable 3.0.4
retriable 3.1.1
mime-types-data 3.2016.0521
mime-types 3.1
little-plugger 1.1.4
logging 2.2.2
jwt 1.5.6
memoist 0.16.0
os 0.9.6
signet 0.7.3
googleauth 0.5.3
httpclient 2.8.3
google-api-client 0.13.6
json 2.1.0
io-console 0.4.6
openssl 2.0.5
fastlane-plugin-clean_testflight_testers 0.1.0

generated on: 2017-09-29

Awesome, thanks for the PR ๐Ÿ‘

Just shipped a new release, let me know if that works ๐Ÿ‘

It works ๐Ÿš€
Wonder if it's possible to do it for all testers perhaps even remove testers completely who are not assigned to any app?

I thought that's already the case?

Surprised that we have so few inactive testers than.

@KrauseFx I think my suggestion is still valid looking at the code again.
https://github.com/KrauseFx/fastlane-plugin-clean_testflight_testers/blob/5ac11aafa4426ec3666c241b649c5fcce4fcede7/lib/fastlane/plugin/clean_testflight_testers/actions/clean_testflight_testers_action.rb#L19
We are only removing for a specific app_identifier.

I would like to go through all my testers instead or at least be able to go through an array of app ids then.
Does that seem like a good idea?
I'd be happy to try and submit a PR.

As suspected trying it without an appfile it falls flat on no app id:
[10:42:26]: Couldn't find app '' on the account of 'mail@example.com' on iTunes Connect

Oh interesting, nice catch, do you mind submitting a new issue for this?