Comments (9)
@antoinedc Sorry, that must be super frustrating!
Can you run DEBUG=true supply ...
and paste the full output here? I'm unfortunately not able to find that issue in sentry!
from supply.
No problem at all!
Here is the full output:
Command:
DEBUG=true SUPPLY_SKIP_UPLOAD_SCREENSHOTS=true SUPPLY_SKIP_UPLOAD_IMAGES=true SUPPLY_SKIP_UPLOAD_METADATA=true supply -p com.bannerman.BannermanClient -a beta -r 1.0 -j fastlane/key.json -b fastlane/bin/bannerman.apk
Output
[08:12:59]: DEPRECATED --key OPTION. Use --json_key instead
+-------------------------+-------------------------------+
| Summary for supply 0.5.1 |
+-------------------------+-------------------------------+
| package_name | com.bannerman.BannermanClient |
| track | beta |
| rollout | 1.0 |
| key | BannermanCI.p12 |
| json_key | fastlane/key.json |
| apk | fastlane/bin/bannerman.apk |
| skip_upload_apk | false |
| skip_upload_metadata | true |
| skip_upload_images | true |
| skip_upload_screenshots | true |
+-------------------------+-------------------------------+
[08:12:59]: Fetching a new access token from Google...
D, [2016-03-02T08:13:00.468681 #39678] DEBUG -- : Sending HTTP post https://www.googleapis.com/androidpublisher/v2/applications/com.bannerman.BannermanClient/edits?
D, [2016-03-02T08:13:01.484206 #39678] DEBUG -- : 200
D, [2016-03-02T08:13:01.484337 #39678] DEBUG -- : #<Hurley::Response POST https://www.googleapis.com/androidpublisher/v2/applications/com.bannerman.BannermanClient/edits == 200 (70 bytes) 985ms>
D, [2016-03-02T08:13:01.485023 #39678] DEBUG -- : Success - #<Google::Apis::AndroidpublisherV2::AppEdit:0x007fc083b6b7f0
@expiry_time_seconds="1456942380",
@id="18155977736933713300">
[08:13:01]: Preparing apk at path 'fastlane/bin/bannerman.apk' for upload...
D, [2016-03-02T08:13:01.486005 #39678] DEBUG -- : Sending upload start command to https://www.googleapis.com/upload/androidpublisher/v2/applications/com.bannerman.BannermanClient/edits/18155977736933713300/apks?
D, [2016-03-02T08:13:01.708537 #39678] DEBUG -- : Upload status active
D, [2016-03-02T08:13:01.708627 #39678] DEBUG -- : Sending upload command to https://www.googleapis.com/upload/androidpublisher/v2/applications/com.bannerman.BannermanClient/edits/18155977736933713300/apks?upload_id=AEnB2UoRingPC0jp9_poeBxny3GEHrDQHrUEuBSrZwtA5jUXy4kn8-WuEuVgw-8YKnDiN7qpBZi6My97YBP4schqmiaJesnRmA&upload_protocol=resumable
D, [2016-03-02T08:13:21.841791 #39678] DEBUG -- : Error - #<Hurley::Timeout: HTTPClient::SendTimeoutError>
D, [2016-03-02T08:13:22.720542 #39678] DEBUG -- : Sending upload query command to https://www.googleapis.com/upload/androidpublisher/v2/applications/com.bannerman.BannermanClient/edits/18155977736933713300/apks?upload_id=AEnB2UoRingPC0jp9_poeBxny3GEHrDQHrUEuBSrZwtA5jUXy4kn8-WuEuVgw-8YKnDiN7qpBZi6My97YBP4schqmiaJesnRmA&upload_protocol=resumable
D, [2016-03-02T08:13:22.934330 #39678] DEBUG -- : Upload status active
D, [2016-03-02T08:13:22.934416 #39678] DEBUG -- : Sending upload command to https://www.googleapis.com/upload/androidpublisher/v2/applications/com.bannerman.BannermanClient/edits/18155977736933713300/apks?upload_id=AEnB2UoRingPC0jp9_poeBxny3GEHrDQHrUEuBSrZwtA5jUXy4kn8-WuEuVgw-8YKnDiN7qpBZi6My97YBP4schqmiaJesnRmA&upload_protocol=resumable
D, [2016-03-02T08:13:43.108494 #39678] DEBUG -- : Error - #<Hurley::Timeout: HTTPClient::SendTimeoutError>
D, [2016-03-02T08:13:45.678483 #39678] DEBUG -- : Sending upload query command to https://www.googleapis.com/upload/androidpublisher/v2/applications/com.bannerman.BannermanClient/edits/18155977736933713300/apks?upload_id=AEnB2UoRingPC0jp9_poeBxny3GEHrDQHrUEuBSrZwtA5jUXy4kn8-WuEuVgw-8YKnDiN7qpBZi6My97YBP4schqmiaJesnRmA&upload_protocol=resumable
D, [2016-03-02T08:13:45.870807 #39678] DEBUG -- : Upload status active
D, [2016-03-02T08:13:45.870870 #39678] DEBUG -- : Sending upload command to https://www.googleapis.com/upload/androidpublisher/v2/applications/com.bannerman.BannermanClient/edits/18155977736933713300/apks?upload_id=AEnB2UoRingPC0jp9_poeBxny3GEHrDQHrUEuBSrZwtA5jUXy4kn8-WuEuVgw-8YKnDiN7qpBZi6My97YBP4schqmiaJesnRmA&upload_protocol=resumable
D, [2016-03-02T08:14:06.004580 #39678] DEBUG -- : Error - #<Hurley::Timeout: HTTPClient::SendTimeoutError>
D, [2016-03-02T08:14:09.580195 #39678] DEBUG -- : Sending upload query command to https://www.googleapis.com/upload/androidpublisher/v2/applications/com.bannerman.BannermanClient/edits/18155977736933713300/apks?upload_id=AEnB2UoRingPC0jp9_poeBxny3GEHrDQHrUEuBSrZwtA5jUXy4kn8-WuEuVgw-8YKnDiN7qpBZi6My97YBP4schqmiaJesnRmA&upload_protocol=resumable
D, [2016-03-02T08:14:09.756115 #39678] DEBUG -- : Upload status active
D, [2016-03-02T08:14:09.756204 #39678] DEBUG -- : Sending upload command to https://www.googleapis.com/upload/androidpublisher/v2/applications/com.bannerman.BannermanClient/edits/18155977736933713300/apks?upload_id=AEnB2UoRingPC0jp9_poeBxny3GEHrDQHrUEuBSrZwtA5jUXy4kn8-WuEuVgw-8YKnDiN7qpBZi6My97YBP4schqmiaJesnRmA&upload_protocol=resumable
D, [2016-03-02T08:14:29.882337 #39678] DEBUG -- : Error - #<Hurley::Timeout: HTTPClient::SendTimeoutError>
D, [2016-03-02T08:14:36.349501 #39678] DEBUG -- : Sending upload query command to https://www.googleapis.com/upload/androidpublisher/v2/applications/com.bannerman.BannermanClient/edits/18155977736933713300/apks?upload_id=AEnB2UoRingPC0jp9_poeBxny3GEHrDQHrUEuBSrZwtA5jUXy4kn8-WuEuVgw-8YKnDiN7qpBZi6My97YBP4schqmiaJesnRmA&upload_protocol=resumable
D, [2016-03-02T08:14:36.546816 #39678] DEBUG -- : Upload status active
D, [2016-03-02T08:14:36.546904 #39678] DEBUG -- : Sending upload command to https://www.googleapis.com/upload/androidpublisher/v2/applications/com.bannerman.BannermanClient/edits/18155977736933713300/apks?upload_id=AEnB2UoRingPC0jp9_poeBxny3GEHrDQHrUEuBSrZwtA5jUXy4kn8-WuEuVgw-8YKnDiN7qpBZi6My97YBP4schqmiaJesnRmA&upload_protocol=resumable
D, [2016-03-02T08:14:56.698927 #39678] DEBUG -- : Error - #<Hurley::Timeout: HTTPClient::SendTimeoutError>
D, [2016-03-02T08:15:13.528257 #39678] DEBUG -- : Sending upload query command to https://www.googleapis.com/upload/androidpublisher/v2/applications/com.bannerman.BannermanClient/edits/18155977736933713300/apks?upload_id=AEnB2UoRingPC0jp9_poeBxny3GEHrDQHrUEuBSrZwtA5jUXy4kn8-WuEuVgw-8YKnDiN7qpBZi6My97YBP4schqmiaJesnRmA&upload_protocol=resumable
D, [2016-03-02T08:15:13.721202 #39678] DEBUG -- : Upload status active
D, [2016-03-02T08:15:13.721292 #39678] DEBUG -- : Sending upload command to https://www.googleapis.com/upload/androidpublisher/v2/applications/com.bannerman.BannermanClient/edits/18155977736933713300/apks?upload_id=AEnB2UoRingPC0jp9_poeBxny3GEHrDQHrUEuBSrZwtA5jUXy4kn8-WuEuVgw-8YKnDiN7qpBZi6My97YBP4schqmiaJesnRmA&upload_protocol=resumable
D, [2016-03-02T08:15:33.859545 #39678] DEBUG -- : Error - #<Hurley::Timeout: HTTPClient::SendTimeoutError>
Successfully submitted a crash report. If this is a problem with one of the tools specifically,
please submit an issue on GitHub and attach the following number to it: 'f319e84d322a264462b56eb096fbcc89'
The crash report has been stored locally '/tmp/sentry_f319e84d322a264462b56eb096fbcc89.json'
/Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/2.3.0/openssl/buffering.rb:322:in `syswrite': [!] execution expired (Google::Apis::TransmissionError)
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/2.3.0/openssl/buffering.rb:322:in `do_write'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/2.3.0/openssl/buffering.rb:340:in `write'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/httpclient-2.7.1/lib/httpclient/ssl_socket.rb:92:in `<<'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/httpclient-2.7.1/lib/httpclient/http.rb:582:in `dump_file'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/httpclient-2.7.1/lib/httpclient/http.rb:508:in `dump'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/httpclient-2.7.1/lib/httpclient/http.rb:959:in `dump'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/httpclient-2.7.1/lib/httpclient/session.rb:503:in `block in query'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/2.3.0/timeout.rb:101:in `timeout'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/httpclient-2.7.1/lib/httpclient/session.rb:501:in `query'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/httpclient-2.7.1/lib/httpclient/session.rb:170:in `query'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/httpclient-2.7.1/lib/httpclient.rb:1238:in `do_get_block'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/httpclient-2.7.1/lib/httpclient.rb:1021:in `block in do_request'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/httpclient-2.7.1/lib/httpclient.rb:1129:in `protect_keep_alive_disconnected'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/httpclient-2.7.1/lib/httpclient.rb:1016:in `do_request'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/httpclient-2.7.1/lib/httpclient.rb:858:in `request'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/google-api-client-0.9.2/lib/google/apis/core/http_client_adapter.rb:17:in `block in call'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/hurley-0.2/lib/hurley/client.rb:252:in `initialize'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/google-api-client-0.9.2/lib/google/apis/core/http_client_adapter.rb:16:in `new'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/google-api-client-0.9.2/lib/google/apis/core/http_client_adapter.rb:16:in `call'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/hurley-0.2/lib/hurley/client.rb:122:in `call_with_redirects'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/hurley-0.2/lib/hurley/client.rb:89:in `call'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/hurley-0.2/lib/hurley/client.rb:71:in `post'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/google-api-client-0.9.2/lib/google/apis/core/upload.rb:244:in `send_upload_command'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/google-api-client-0.9.2/lib/google/apis/core/upload.rb:274:in `execute_once'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/google-api-client-0.9.2/lib/google/apis/core/http_command.rb:107:in `block (2 levels) in execute'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/retriable-2.1.0/lib/retriable.rb:54:in `block in retriable'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/retriable-2.1.0/lib/retriable.rb:48:in `times'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/retriable-2.1.0/lib/retriable.rb:48:in `retriable'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/google-api-client-0.9.2/lib/google/apis/core/http_command.rb:104:in `block in execute'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/retriable-2.1.0/lib/retriable.rb:54:in `block in retriable'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/retriable-2.1.0/lib/retriable.rb:48:in `times'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/retriable-2.1.0/lib/retriable.rb:48:in `retriable'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/google-api-client-0.9.2/lib/google/apis/core/http_command.rb:96:in `execute'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/google-api-client-0.9.2/lib/google/apis/core/base_service.rb:267:in `execute_or_queue_command'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/google-api-client-0.9.2/generated/google/apis/androidpublisher_v2/service.rb:660:in `upload_apk'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/supply-0.5.1/lib/supply/client.rb:187:in `upload_apk'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/supply-0.5.1/lib/supply/uploader.rb:91:in `upload_binary'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/supply-0.5.1/lib/supply/uploader.rb:26:in `perform_upload'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/supply-0.5.1/lib/supply/commands_generator.rb:39:in `block (2 levels) in run'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/fastlane_core-0.36.8/lib/fastlane_core/ui/fastlane_runner.rb:23:in `run!'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/supply-0.5.1/lib/supply/commands_generator.rb:57:in `run'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/supply-0.5.1/lib/supply/commands_generator.rb:15:in `start'
from /Users/Antoine/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/supply-0.5.1/bin/supply:6:in `<top (required)>'
from /Users/Antoine/.rbenv/versions/2.3.0/bin/supply:23:in `load'
from /Users/Antoine/.rbenv/versions/2.3.0/bin/supply:23:in `<main>'
Thanks for your help!
from supply.
Awesome thanks for the debugging output! It looks like retry property that was added is working! But it seems like the timeout is still low.
The time between messages here is about 20 seconds instead of the 300 seconds timeout we configured:
D, [2016-03-02T08:13:01.708627 #39678] DEBUG -- : Sending upload command to https://www.googleapis.com/upload/androidpublisher/v2/applications/com.bannerman.BannermanClient/edits/ ...
D, [2016-03-02T08:13:21.841791 #39678] DEBUG -- : Error - #<Hurley::Timeout: HTTPClient::SendTimeoutError>
It seems like the timeout from from Hurley
and not the google api as we had expected. I'm going to dig in, but could also use some help from @lacostej!
from supply.
Apparently Hurley has two timeout options: one for opening the connection (open_timeout_sec
) and one for each chunk of the binary to send (timeout_sec
), according to the doc here: https://github.com/lostisland/hurley/blob/master/lib/hurley/options.rb#L9
Google SDK seems to accept both (https://github.com/google/google-api-ruby-client/blob/master/lib/google/apis/core/base_service.rb#L297) so I tried setting Google::Apis::RequestOptions.default.open_timeout_sec = 300
in client.rb
and I was able to upload the APK.
Also, in my case, the upload still works when removing timeout_sec
but adding open_timeout_sec
. But it's probably best to set both values anyway!
Hope that helps
from supply.
Awesome! I was just seeing the same thing
I'm going to continue playing around with it locally but I agree that open_timeout_sec
is probably the awesome here 💥
from supply.
Just committed a proper fix for this! I'll do a release of supply
shortly that will include this change!
from supply.
Great! Thanks!
from supply.
0.5.2 has been released! Please give that a whirl and thanks for your patience and help in debugging 🎉
from supply.
This issue was migrated to fastlane/fastlane#3374. 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
from supply.
Related Issues (20)
- supply lacks support for uploading expansion files HOT 1
- promoting loaded apk HOT 6
- Uploading content ratings? HOT 5
- Whatsnew text is not getting updated when using supply. HOT 7
- Error "The current user has insufficient permissions to perform the requested operation" HOT 6
- Meta Data update sends all files instead of just updated one(s) HOT 2
- Error with supply init HOT 4
- supply crashed while uploading a new apk HOT 16
- Add Amazon App Store support HOT 3
- Running 'supply init' results in an "[!] no implicit conversion of nil into String (TypeError)" error HOT 5
- no implicit conversion of nil into String HOT 4
- Google::Apis::TransmissionError: execution expired HOT 3
- Publishing both x86 and armv7 apk's of the same app version HOT 2
- [No implicit conversion of nil into String] on supply init HOT 6
- [unsupportedListingLanguage] Provide better error messages HOT 3
- Not downloading existing Screenshots HOT 3
- There is no ''client_email" in Google Play Android Developer-*.json HOT 9
- Only update app (Beta) when versionCode is incremented HOT 2
- Dynamic apk path HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from supply.