Exception occurred when deploying new testflight build
Closed this issue ยท 14 comments
This didn't used to occur on older releases. I've literally just updated and now I get the following:
17:12:59.501 /Library/Ruby/Gems/2.0.0/gems/spaceship-0.19.4/lib/spaceship/tunes/tunes_client.rb:207:in `handle_itc_response': [!] operation_failed (Spaceship::TunesClient::ITunesConnectError)
17:12:59.501 from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.19.4/lib/spaceship/tunes/tunes_client.rb:526:in `update_build_trains!'
17:12:59.501 from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.19.4/lib/spaceship/tunes/build_train.rb:105:in `update_testing_status!'
17:12:59.502 from /Library/Ruby/Gems/2.0.0/gems/pilot-1.3.0/lib/pilot/build_manager.rb:110:in `distribute_build'
17:12:59.502 from /Library/Ruby/Gems/2.0.0/gems/pilot-1.3.0/lib/pilot/build_manager.rb:22:in `upload'
17:12:59.502 from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.57.0/lib/fastlane/actions/pilot.rb:18:in `run'
17:12:59.502 from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.57.0/lib/fastlane/runner.rb:143:in `block (2 levels) in execute_action'
17:12:59.502 from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.57.0/lib/fastlane/actions/actions_helper.rb:35:in `execute_action'
17:12:59.502 from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.57.0/lib/fastlane/runner.rb:129:in `block in execute_action'
17:12:59.502 from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.57.0/lib/fastlane/runner.rb:128:in `chdir'
17:12:59.502 from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.57.0/lib/fastlane/runner.rb:128:in `execute_action'
17:12:59.502 from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.57.0/lib/fastlane/fast_file.rb:149:in `method_missing'
17:12:59.502 from Fastfile:36:in `block (2 levels) in parsing_binding'
17:12:59.503 from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.57.0/lib/fastlane/lane.rb:36:in `call'
17:12:59.503 from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.57.0/lib/fastlane/lane.rb:36:in `call'
17:12:59.503 from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.57.0/lib/fastlane/runner.rb:52:in `block in execute'
17:12:59.503 from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.57.0/lib/fastlane/runner.rb:46:in `chdir'
17:12:59.503 from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.57.0/lib/fastlane/runner.rb:46:in `execute'
17:12:59.503 from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.57.0/lib/fastlane/lane_manager.rb:46:in `cruise_lane'
17:12:59.503 from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.57.0/lib/fastlane/command_line_handler.rb:30:in `handle'
17:12:59.503 from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.57.0/bin/fastlane:38:in `block (2 levels) in run'
17:12:59.503 from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
17:12:59.503 from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
17:12:59.504 from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'
17:12:59.504 from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'
17:12:59.504 from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.36.1/lib/fastlane_core/ui/fastlane_runner.rb:23:in `run!'
17:12:59.504 from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'
17:12:59.504 from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.57.0/bin/fastlane:150:in `run'
17:12:59.504 from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.57.0/bin/fastlane:156:in `<top (required)>'
17:12:59.504 from /usr/local/bin/fastlane:23:in `load'
17:12:59.504 from /usr/local/bin/fastlane:23:in `<main>'
17:12:59.763 [go] Current job status: failed.
thanks for raising the issue @lyptt ! would you mind sharing the config you use to call pilot?
If you mean my lane steps, here's that:
sigh
increment_build_number({
xcodeproj: './project.xcodeproj',
build_number: latest_testflight_build_number + 1
})
gym(scheme: 'beta')
pilot(changelog: File.exist?('metadata/beta-changelog.txt') ? File.read('metadata/beta-changelog.txt') : '', distribute_external: false, wait_processing_interval: 120)
commit_version_bump(
message: 'Increment build number for beta build',
xcodeproj: './project.xcodeproj'
)
add_git_tag(
tag: "release-beta/v#{get_version_number(xcodeproj: "project.xcodeproj")}.#{get_build_number(xcodeproj: "project.xcodeproj")}#{(ENV['GO_PIPELINE_COUNTER'] ? '_' + ENV['GO_PIPELINE_COUNTER'] : '')}"
)
push_to_git_remote(
remote: 'origin',
local_branch: 'release-beta',
remote_branch: 'release-beta',
force: false
)
push_git_tags
Note that it's the pilot step that didn't finish. It didn't get to the git stuff at the end.
As far as I know this should be fixed with this pull request (work in progress): fastlane-old/spaceship#235
That's good to hear! This is happening consistently on each invocation of this lane, so getting this fixed up soon would be great. While this doesn't prevent me deploying my app, it does cause my deployments to be much more fiddly.
+1 same here - deploys find but error's at the end, wich messes up the CI - any chances this will get fixed soon? @KrauseFx
I'm seeing the same error. Similar pilot config:
pilot(distribute_external:false)
Pilot logs that it has successfully uploaded the ipa, says it's distributing the ipa to testers, and then errors out with the stack above. I can provide any additional information you require.
Also, thanks for the great tool. We have used a wide array of custom scripts written and it looks like fastlane can replace them all!
Same here:
[12:55:37]: fastlane finished with errors
-------------------------------------------------------------------------------------------
๐จ An error occured. Please enable crash reports using `fastlane enable_crash_reporting`.
๐ This makes resolving issues much easier and helps improve fastlane.
๐ The reports will be stored securely on getsentry.com.
๐ More information about privacy: https://github.com/fastlane/fastlane/releases/tag/1.33.3
-------------------------------------------------------------------------------------------
/Library/Ruby/Gems/2.0.0/gems/spaceship-0.19.4/lib/spaceship/tunes/tunes_client.rb:207:in `handle_itc_response': [!] operation_failed (Spaceship::TunesClient::ITunesConnectError)
from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.19.4/lib/spaceship/tunes/tunes_client.rb:526:in `update_build_trains!'
from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.19.4/lib/spaceship/tunes/build_train.rb:105:in `update_testing_status!'
from /Library/Ruby/Gems/2.0.0/gems/pilot-1.3.0/lib/pilot/build_manager.rb:110:in `distribute_build'
from /Library/Ruby/Gems/2.0.0/gems/pilot-1.3.0/lib/pilot/build_manager.rb:22:in `upload'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.59.0/lib/fastlane/actions/pilot.rb:18:in `run'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.59.0/lib/fastlane/runner.rb:143:in `block (2 levels) in execute_action'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.59.0/lib/fastlane/actions/actions_helper.rb:35:in `execute_action'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.59.0/lib/fastlane/runner.rb:129:in `block in execute_action'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.59.0/lib/fastlane/runner.rb:128:in `chdir'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.59.0/lib/fastlane/runner.rb:128:in `execute_action'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.59.0/lib/fastlane/fast_file.rb:149:in `method_missing'
from Fastfile:46:in `block (2 levels) in parsing_binding'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.59.0/lib/fastlane/lane.rb:36:in `call'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.59.0/lib/fastlane/lane.rb:36:in `call'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.59.0/lib/fastlane/runner.rb:52:in `block in execute'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.59.0/lib/fastlane/runner.rb:46:in `chdir'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.59.0/lib/fastlane/runner.rb:46:in `execute'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.59.0/lib/fastlane/lane_manager.rb:46:in `cruise_lane'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.59.0/lib/fastlane/command_line_handler.rb:30:in `handle'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.59.0/bin/fastlane:38:in `block (2 levels) in run'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'
from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.36.4/lib/fastlane_core/ui/fastlane_runner.rb:23:in `run!'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.59.0/bin/fastlane:150:in `run'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.59.0/bin/fastlane:156:in `<top (required)>'
from /usr/local/bin/fastlane:23:in `load'
from /usr/local/bin/fastlane:23:in `<main>'````
WRT to fastlane-old/spaceship#235 fixing this, 2 ways:
- either it's related to the too short timeout in 0.19.4 (Apple server takes time to answer, we repeat the request, and the second one fails because not idempotent)
- either it's server side related and it won't recover because we don't treat
operation_failed
as something to retry
this seems to be fixed, atleast for me upgrading spaceship
and pilot
๐
@hjanuschka if the error was due to transcient connection issues, then as fastlane-old/spaceship#235 isn't yet merged, it might reappear.
ok - right now i did 3 submits with success where as the last view days 100% failed
Von meinem iPhone gesendet
Am 19.02.2016 um 11:49 schrieb Jerome Lacoste notifications@github.com:
@hjanuschka if the error was due to transcient connection issues, then as fastlane-old/spaceship#235 isn't yet merged, it might reappear.
โ
Reply to this email directly or view it on GitHub.
hi everyone! thanks for keeping this up-to-date! looks like that PR was merged two days ago! going to close this for now, but please reopen if you have any more issues!
Still having this issue:
usr/local/lib/ruby/gems/2.3.0/gems/spaceship-0.22.0/lib/spaceship/tunes/tunes_client.rb:219:in `handle_itc_response': [!] operation_failed (Spaceship::TunesClient::ITunesConnectError)
from /usr/local/lib/ruby/gems/2.3.0/gems/spaceship-0.22.0/lib/spaceship/tunes/tunes_client.rb:538:in `update_build_trains!'
from /usr/local/lib/ruby/gems/2.3.0/gems/spaceship-0.22.0/lib/spaceship/tunes/build_train.rb:118:in `update_testing_status!'
from /usr/local/lib/ruby/gems/2.3.0/gems/pilot-1.4.1/lib/pilot/build_manager.rb:124:in `distribute_build'
from /usr/local/lib/ruby/gems/2.3.0/gems/pilot-1.4.1/lib/pilot/build_manager.rb:26:in `upload'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-1.66.0/lib/fastlane/actions/pilot.rb:18:in `run'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-1.66.0/lib/fastlane/actions/testflight.rb:5:in `run'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-1.66.0/lib/fastlane/runner.rb:143:in `block (2 levels) in execute_action'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-1.66.0/lib/fastlane/actions/actions_helper.rb:35:in `execute_action'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-1.66.0/lib/fastlane/runner.rb:129:in `block in execute_action'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-1.66.0/lib/fastlane/runner.rb:128:in `chdir'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-1.66.0/lib/fastlane/runner.rb:128:in `execute_action'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-1.66.0/lib/fastlane/fast_file.rb:149:in `method_missing'
from Fastfile:80:in `block (2 levels) in parsing_binding'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-1.66.0/lib/fastlane/lane.rb:36:in `call'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-1.66.0/lib/fastlane/runner.rb:52:in `block in execute'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-1.66.0/lib/fastlane/runner.rb:46:in `chdir'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-1.66.0/lib/fastlane/runner.rb:46:in `execute'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-1.66.0/lib/fastlane/lane_manager.rb:46:in `cruise_lane'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-1.66.0/lib/fastlane/command_line_handler.rb:30:in `handle'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-1.66.0/bin/fastlane:38:in `block (2 levels) in run'
from /usr/local/lib/ruby/gems/2.3.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
from /usr/local/lib/ruby/gems/2.3.0/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'
from /usr/local/lib/ruby/gems/2.3.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane_core-0.37.0/lib/fastlane_core/ui/fastlane_runner.rb:23:in `run!'
from /usr/local/lib/ruby/gems/2.3.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-1.66.0/bin/fastlane:156:in `run'
from /usr/local/lib/ruby/gems/2.3.0/gems/fastlane-1.66.0/bin/fastlane:162:in `<top (required)>'
from /usr/local/bin/fastlane:23:in `load'
from /usr/local/bin/fastlane:23:in `<main>'
I have fastlane updated the the latest build and the same with pilot.
Here is the code causing it:
desc "Responsible for building and signing the app"
private_lane :build_app do
unless ENV["NO_GIT_CHECKS"]
ensure_git_status_clean
ensure_git_branch branch: "develop"
end
# Download the provisioning profile for the app
sigh output_path: "./fastlane/profiles" # Distribution Profile
# Version bump
increment_build_number(
build_number: latest_testflight_build_number + 1
)
gym(
scheme: "adhawk-new",
output_directory: "./fastlane/ipa"
)
end
desc "Push the version bump to github and tag it"
private_lane :commit do
commit_version_bump(
message: 'Build Version Bump by fastlane',
force: true
)
add_git_tag(tag: "#{build_number}-#{lane_tag}")
push_to_git_remote
end
desc "Submit a new Internal Build to Apple Testflight"
lane :internal do
build_app
testflight(
skip_submission: false,
distribute_external: false,
ipa: "./fastlane/ipa/adhawk-new.ipa"
)
commit
end
This issue was migrated to fastlane/fastlane#3249. Please post all further comments there.
fastlane
is now a mono repo, you can read more about the change in our blog post. All tools are now available in the fastlane main repo ๐