Closed petrmanek closed 7 years ago
It seems like this issue might be related to code signing :no_entry_sign:
Have you seen our new Code Signing Troubleshooting Guide? It will help you resolve the most common code signing issues :+1:
@fastlane-bot Nice. This one however has nothing to do with code signing. It's more likely that there is some quirk in iTunesConnect that spaceship
is not compatible with.
It looks like there over 30 minutes between logging in and setting the change log. 403 is usually an expired session. Does this happen consistently? Is there an easy way we can repro this? just thinking outloud: I bet we could detect this error and then try to re-login and re-execute the last thing that caused a 403
@taquitos Yes, afaik. It happened 5 times out of 5 attempts.
To reproduce, try throttling your outbound connection or upload extremely large package (our .ipa has ~150 MB).
By the way, is there a way to attempt force the reauthorization, so we can see íwhether it was the culprit?
I think you could probably call Spaceship directly, but I've never tried it in a fastfile
spaceship = Spaceship::Tunes.login
spaceship.select_team
@taquitos I'm not sure I know where to put this. When I execute it before calling Pilot, it does not change anything because Pilot calls it as well. When I execute it after calling Pilot, it's too late because the operation has already failed. Any suggestions?
My bad, you're right. Maybe fastlane should re-authorize (if it doesn't).
Same here, it's throws a 403 Forbidden
[!] Could not set changelog: <html>
<head>
<meta http-equiv=“Content-Type” content=“text/html;charset=ISO-8859-1"/>
<title>Error 403 </title>
</head>
<body>
<h2>HTTP ERROR: 403</h2>
<p>Problem accessing /v2/providers/283519/apps/325813155/builds/22925468. Reason:
<pre> Forbidden</pre></p>
<hr /><i><small>Powered by Jetty://</small></i>
</body>
</html>
We are waiting a fix for this. Thanks fastlane team!
We are also getting this error consistently
Is there any plan to fix this? Or any workaround?
Hey everyone, just want to make sure that we are all talking about the same issue here, @Sulfkain and @twobitlabs would you both mind sharing the output of your fastlane execution? I just want to see if it is the same thing that @petrmanek is seeing where there is a long time elapsed between the upload and the setting of the changelog. Thanks!! 🐙
Hi @ohayon, I have tried again an upload and the what_new was changed correctly without any error.
This is the output, Which is the "death time" elapsed between upload and setting the changelog? Maybe this time, the app uploaded faster?
[12:36:42]: If you want to skip waiting for the processing to be finished, use the `skip_waiting_for_build_processing` option
[12:36:52]: Waiting for iTunes Connect to finish processing the new build (6.1.0 - 2)
[12:37:24]: Waiting for iTunes Connect to finish processing the new build (6.1.0 - 2)
[12:37:55]: Waiting for iTunes Connect to finish processing the new build (6.1.0 - 2)
[12:38:26]: Waiting for iTunes Connect to finish processing the new build (6.1.0 - 2)
[12:38:57]: Build doesn't show up in the build list anymore, waiting for it to appear again
[12:39:28]: Build doesn't show up in the build list anymore, waiting for it to appear again
[12:39:59]: Build doesn't show up in the build list anymore, waiting for it to appear again
[12:40:30]: Build doesn't show up in the build list anymore, waiting for it to appear again
[12:41:01]: Build doesn't show up in the build list anymore, waiting for it to appear again
[12:41:31]: Build doesn't show up in the build list anymore, waiting for it to appear again
[12:42:03]: Build doesn't show up in the build list anymore, waiting for it to appear again
[12:42:34]: Build doesn't show up in the build list anymore, waiting for it to appear again
[12:43:05]: Build doesn't show up in the build list anymore, waiting for it to appear again
[12:43:36]: Build doesn't show up in the build list anymore, waiting for it to appear again
[12:44:07]: Build doesn't show up in the build list anymore, waiting for it to appear again
[12:44:38]: Build doesn't show up in the build list anymore, waiting for it to appear again
[12:45:09]: Build doesn't show up in the build list anymore, waiting for it to appear again
[12:45:41]: Build doesn't show up in the build list anymore, waiting for it to appear again
[12:46:11]: Build doesn't show up in the build list anymore, waiting for it to appear again
[12:46:42]: Build doesn't show up in the build list anymore, waiting for it to appear again
[12:47:14]: Build doesn't show up in the build list anymore, waiting for it to appear again
[12:47:44]: Build doesn't show up in the build list anymore, waiting for it to appear again
[12:48:16]: Successfully finished processing the build 6.1.0 - 2
[12:48:19]: Successfully set the changelog for build
Hmm thats entirely possible. It also looks like there have been a few outages in the iTC API over the past few days so its also possible something was happening on their end too? Let's wait until everyone has confirmed that they are successful before closing the issue. Thanks for reporting back @Sulfkain !! 🚀
We're still reliably getting it on one of our projects (but not on the other project):
[12:59:52]: Login successful
[12:59:53]: Ready to upload new build to TestFlight (App: 1200115798)...
[12:59:54]: Going to upload updated app to iTunes Connect
[12:59:54]: This might take a few minutes. Please don't interrupt the script.
[13:03:55]: iTunes Transporter successfully finished its job
[13:03:56]: ---------------------------------------------------------------------------------------------------------------
[13:03:56]: --- Successfully uploaded package to iTunes Connect. It might take a few minutes until it's visible online. ---
[13:03:56]: ---------------------------------------------------------------------------------------------------------------
[13:03:56]: Successfully uploaded the new binary to iTunes Connect
[13:03:56]: If you want to skip waiting for the processing to be finished, use the `skip_waiting_for_build_processing` option
[13:04:05]: Waiting for iTunes Connect to finish processing the new build (2.1.4 - 311)
[13:04:36]: Waiting for iTunes Connect to finish processing the new build (2.1.4 - 311)
[13:05:08]: Waiting for iTunes Connect to finish processing the new build (2.1.4 - 311)
[13:05:39]: Waiting for iTunes Connect to finish processing the new build (2.1.4 - 311)
[13:06:10]: Waiting for iTunes Connect to finish processing the new build (2.1.4 - 311)
[13:06:42]: Waiting for iTunes Connect to finish processing the new build (2.1.4 - 311)
[13:07:13]: Build doesn't show up in the build list anymore, waiting for it to appear again
[13:07:45]: Build doesn't show up in the build list anymore, waiting for it to appear again
[13:08:16]: Build doesn't show up in the build list anymore, waiting for it to appear again
[13:08:48]: Build doesn't show up in the build list anymore, waiting for it to appear again
[13:09:19]: Build doesn't show up in the build list anymore, waiting for it to appear again
[13:09:51]: Build doesn't show up in the build list anymore, waiting for it to appear again
[13:10:22]: Build doesn't show up in the build list anymore, waiting for it to appear again
[13:10:54]: Build doesn't show up in the build list anymore, waiting for it to appear again
[13:11:26]: Build doesn't show up in the build list anymore, waiting for it to appear again
[13:11:57]: Build doesn't show up in the build list anymore, waiting for it to appear again
[13:12:28]: Build doesn't show up in the build list anymore, waiting for it to appear again
[13:13:00]: Build doesn't show up in the build list anymore, waiting for it to appear again
[13:13:31]: Build doesn't show up in the build list anymore, waiting for it to appear again
[13:14:03]: Build doesn't show up in the build list anymore, waiting for it to appear again
[13:14:34]: Build doesn't show up in the build list anymore, waiting for it to appear again
[13:15:05]: Build doesn't show up in the build list anymore, waiting for it to appear again
[13:15:38]: Build doesn't show up in the build list anymore, waiting for it to appear again
[13:16:09]: Build doesn't show up in the build list anymore, waiting for it to appear again
[13:16:40]: Build doesn't show up in the build list anymore, waiting for it to appear again
[13:17:11]: Build doesn't show up in the build list anymore, waiting for it to appear again
[13:17:41]: Build doesn't show up in the build list anymore, waiting for it to appear again
[13:18:12]: Build doesn't show up in the build list anymore, waiting for it to appear again
[13:18:44]: Build doesn't show up in the build list anymore, waiting for it to appear again
[13:19:14]: Successfully finished processing the build 2.1.4 - 311
+-----------------------------+--------------------------------------------------------------------+
| Lane Context |
+-----------------------------+--------------------------------------------------------------------+
| DEFAULT_PLATFORM | ios |
| PLATFORM_NAME | ios |
| LANE_NAME | ios dev |
| GIT_REPO_WAS_CLEAN_ON_START | true |
| BUILD_NUMBER | 311 |
| IPA_OUTPUT_PATH | /Users/thuss/src/ios/mend/Mend/Development.ipa |
| DSYM_OUTPUT_PATH | /Users/thuss/src/ios/mend/Mend/Development.app.dSYM.zip |
| XCODEBUILD_ARCHIVE | /Users/thuss/Library/Developer/Xcode/Archives/2017-08-31/Developm |
| | ent 2017-08-31 12.57.51.xcarchive |
+-----------------------------+--------------------------------------------------------------------+
[13:19:15]: Could not set changelog: <html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 403 </title>
</head>
<body>
<h2>HTTP ERROR: 403</h2>
<p>Problem accessing /v2/providers/118077326/apps/1200115798/builds/23049408. Reason:
<pre> Forbidden</pre></p>
<hr /><i><small>Powered by Jetty://</small></i>
</body>
</html>
Interesting. We are uploading builds to TestFlight every second night at 4am CET. This is still happening consistently for us.
One thing to note is that the project that fails is owned by another developer account and we've been added to their team. On the projects that succeed, we're logging into the account that owns the app. Are others on this thread in the same position? I feel like it's caused permissions problems for us in the past.
That might be it. Our CI account does not own the app in ITC. It was merely granted Developer role and restricted to only access the app in question. We will try to expand its permissions for tonights's build and get back to you tomorrow.
So far, there has been no improvement whatsoever. After removing the restriction to only manage specific apps, the CI account in iTC (with Developer role) still consistently fails to set the changelog after uploading new builds with same error as before.
I will attempt to give it Admin permissions but I'm not too confident. In the meantime, is there something else we can do or try?
Have some news. Adding the Admin role to the CI account seems to have made all the difference! Since Admin is equivalent to all the roles available, I will now try incrementally remove the roles one by one and repeat my experiment. Hopefully, I can identify the bare minimum of roles Pilot can work without breakage.
I got the same error and scenario as @petrmanek. I'm surprised the error is about the change log as we don't set the changelog
option. @petrmanek do you use this option?
@tschob Yes, we do. Turns out that giving CI iTC account the App Manager role fixes the issue
wow. We are seeing similar error with an little bit different error message.
+------+------------------------+-------------+ | fastlane summary | +------+------------------------+-------------+ | Step | Action | Time (in s) | +------+------------------------+-------------+ | 1 | default_platform | 0 | | 2 | ensure_git_status_cle | 0 | | | an | | | 3 | xcversion | 2 | | 4 | cocoapods | 4 | | 5 | increment_build_numbe | 1 | | | r | | | 6 | commit_version_bump | 0 | | 7 | clean_build_artifacts | 0 | | 8 | clear_derived_data | 0 | | 9 | cert | 5 | | 10 | sigh | 5 | | 11 | gym | 288 | | 12 | changelog_from_git_co | 0 | | | mmits | | | 💥 | pilot | 1749 | +------+------------------------+-------------+
[20:00:59]: fastlane finished with errors
[!] Could not set changelog:
Problem accessing /v2/providers/307809/apps/1011970469/builds/23407301. Reason:
ERROR-1: The phone number is missing.
The above is the HTML error message. This is using an account setup specifically for the CI server though. I am going to try changing its role and see if this error goes away.
Update: The user does have Admin role already. Still seeing this issue, will try using another user.
Never mind. I am glad I took a look there.
So apparently this is checking on the "Beta Testing" info in TestFlight where I don't have a Phone number filled out. Although I am really only releasing to Internal Testers with the upload.
Seems Apple took down the "What's new" for Internal Testers for a while.
It appears adding the App Manager role has resolved it for us as well
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest fastlane
version and check if that solves the issue. Let us know if that works for you by adding a comment :+1:
This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem :+1:
New Issue Checklist
Issue Description
When running
pilot
to deploy build to TestFlight, archive and upload succeeds. Pilot then however fails similarly as in #9127 because of error:Complete output when running fastlane, including the stack trace and command used
Environment
🚫 fastlane environment 🚫
### Stack | Key | Value | | --------------------------- | -------------------------------------------------------------- | | OS | 10.12.6 | | Ruby | 2.0.0 | | Bundler? | false | | Git | git version 2.11.0 (Apple Git-81) | | Installation Source | /usr/local/bin/fastlane | | Host | Mac OS X 10.12.6 (16G29) | | Ruby Lib Dir | /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib | | OpenSSL Version | OpenSSL 0.9.8zc 19 Mar 2015 | | Is contained | false | | Is homebrew | false | | Is installed via Fabric.app | false | | Xcode Path | /Applications/Xcode.app/Contents/Developer/ | | Xcode Version | 8.3.3 | ### System Locale | Error | | --------------------------- | | No Locale with UTF8 found 🚫 | ### fastlane files:`./fastlane/Fastfile`
```ruby fastlane_version "2.44.0" default_platform :ios platform :ios do desc "Lints all the files" lane :lint do swiftlint( output_file: "swiftlint.result.html", reporter: "html", config_file: ".swiftlint.yml" ) end desc "Runs all the tests" lane :test do scan end desc "Deploy a new version to TestFlight" lane :beta do increment_build_number( build_number: ENV['CI_PIPELINE_ID'] ) gym changelog_from_git_commits( commits_count: 10, pretty: '• %s', merge_commit_filtering: 'exclude_merges' ) testflight( distribute_external: true ) end after_all do |lane| # This block is called, only if the executed lane was successful end error do |lane, exception| # Report error? end end ````./fastlane/Appfile`
```ruby app_identifier "redacted" # The bundle identifier of your app apple_id "redacted" # Your Apple email address apple_dev_portal_id "redacted" # Apple Developer Account itunes_connect_id "redacted" # iTunes Connect Account team_id "redacted" # Developer Portal Team ID ```Loaded gems
| Gem | Version | | ------------------------- | ------------ | | slack-notifier | 1.5.1 | | CFPropertyList | 2.3.5 | | claide | 1.0.2 | | colored2 | 3.1.2 | | nanaimo | 0.2.3 | | xcodeproj | 1.5.1 | | 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.1 | | 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.58.0 | | faraday | 0.13.0 | | 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 | | uber | 0.1.0 | | declarative | 0.0.9 | | 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 | | multi_json | 1.12.1 | | 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.12.0 | | json | 1.7.7 | | mini_magick | 4.5.1 | | 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.15.3 | | faraday_middleware | 0.12.2 |