fastlane icon indicating copy to clipboard operation
fastlane copied to clipboard

Fastlane supply failed

Open wiltwitt opened this issue 3 years ago • 4 comments

I am getting fastlane error. It talks about permission issues but not sure what kind of permission I need to get I am trying to publish my app using expo and this is the command I used "eas submit -p android"

Waiting for submission to complete. You can press Ctrl+C to exit. ✖ Something went wrong when submitting your app to Google Play Store.

We couldn't figure out what went wrong. See logs to learn more.

[logs] Starting the submit process [logs] Downloading archive [logs] Preparing artifact [logs] Submitting Android app to Play Store... [logs] Submitting the app with fastlane supply [logs] /var/lib/gems/2.7.0/gems/signet-0.17.0/lib/signet/oauth_2/client.rb:1028:in fetch_access_token': [!] Authorization failed. Server message: (Signet::AuthorizationError) [logs] {"error":"invalid_grant","error_description":"Invalid grant: account not found"} [logs] from /var/lib/gems/2.7.0/gems/signet-0.17.0/lib/signet/oauth_2/client.rb:1039:in fetch_access_token!' [logs] from /var/lib/gems/2.7.0/gems/googleauth-1.3.0/lib/googleauth/signet.rb:75:in block in fetch_access_token!' [logs] from /var/lib/gems/2.7.0/gems/googleauth-1.3.0/lib/googleauth/signet.rb:102:in retry_with_error'I [logs] from /var/lib/gems/2.7.0/gems/googleauth-1.3.0/lib/googleauth/signet.rb:74:in fetch_access_token!' [logs] from /var/lib/gems/2.7.0/gems/fastlane-2.191.0/supply/lib/supply/client.rb:53:in initialize' [logs] from /var/lib/gems/2.7.0/gems/fastlane-2.191.0/supply/lib/supply/client.rb:19:in new' [logs] from /var/lib/gems/2.7.0/gems/fastlane-2.191.0/supply/lib/supply/client.rb:19:in make_from_config' [logs] from /var/lib/gems/2.7.0/gems/fastlane-2.191.0/supply/lib/supply/uploader.rb:425:in client' [logs] from /var/lib/gems/2.7.0/gems/fastlane-2.191.0/supply/lib/supply/uploader.rb:7:in perform_upload' [logs] from /var/lib/gems/2.7.0/gems/fastlane-2.191.0/supply/lib/supply/commands_generator.rb:40:in block (2 levels) in run' [logs] from /var/lib/gems/2.7.0/gems/commander-4.6.0/lib/commander/command.rb:187:in call' [logs] from /var/lib/gems/2.7.0/gems/commander-4.6.0/lib/commander/command.rb:157:in run' [logs] from /var/lib/gems/2.7.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in run_active_command' [logs] from /var/lib/gems/2.7.0/gems/fastlane-2.191.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in run!' [logs] from /var/lib/gems/2.7.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in run!' [logs] from /var/lib/gems/2.7.0/gems/fastlane-2.191.0/supply/lib/supply/commands_generator.rb:61:in run' [logs] from /var/lib/gems/2.7.0/gems/fastlane-2.191.0/supply/lib/supply/commands_generator.rb:13:in start' [logs] from /var/lib/gems/2.7.0/gems/fastlane-2.191.0/fastlane/lib/fastlane/cli_tools_distributor.rb:114:in take_off' [logs] from /var/lib/gems/2.7.0/gems/fastlane-2.191.0/bin/fastlane:23:in <top (required)>' [logs] from /usr/local/bin/fastlane:23:in load' [logs] from /usr/local/bin/fastlane:23:in

' [logs] /var/lib/gems/2.7.0/gems/signet-0.17.0/lib/signet/oauth_2/client.rb:1028:in fetch_access_token': Authorization failed. Server message: (Signet::AuthorizationError) [logs] {"error":"invalid_grant","error_description":"Invalid grant: account not found"} [logs] from /var/lib/gems/2.7.0/gems/signet-0.17.0/lib/signet/oauth_2/client.rb:1039:in fetch_access_token!' [logs] from /var/lib/gems/2.7.0/gems/googleauth-1.3.0/lib/googleauth/signet.rb:75:in block in fetch_access_token!' [logs] from /var/lib/gems/2.7.0/gems/googleauth-1.3.0/lib/googleauth/signet.rb:102:in retry_with_error' [logs] from /var/lib/gems/2.7.0/gems/googleauth-1.3.0/lib/googleauth/signet.rb:74:in fetch_access_token!' [logs] from /var/lib/gems/2.7.0/gems/fastlane-2.191.0/supply/lib/supply/client.rb:53:in initialize' [logs] from /var/lib/gems/2.7.0/gems/fastlane-2.191.0/supply/lib/supply/client.rb:19:in new' [logs] from /var/lib/gems/2.7.0/gems/fastlane-2.191.0/supply/lib/supply/client.rb:19:in make_from_config' [logs] from /var/lib/gems/2.7.0/gems/fastlane-2.191.0/supply/lib/supply/uploader.rb:425:in client' [logs] from /var/lib/gems/2.7.0/gems/fastlane-2.191.0/supply/lib/supply/uploader.rb:7:in perform_upload' [logs] from /var/lib/gems/2.7.0/gems/fastlane-2.191.0/supply/lib/supply/commands_generator.rb:40:in block (2 levels) in run' [logs] from /var/lib/gems/2.7.0/gems/commander-4.6.0/lib/commander/command.rb:187:in call' [logs] from /var/lib/gems/2.7.0/gems/commander-4.6.0/lib/commander/command.rb:157:in run' [logs] from /var/lib/gems/2.7.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in run_active_command' [logs] from /var/lib/gems/2.7.0/gems/fastlane-2.191.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in run!' [logs] from /var/lib/gems/2.7.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in run!' [logs] from /var/lib/gems/2.7.0/gems/fastlane-2.191.0/supply/lib/supply/commands_generator.rb:61:in run' [logs] from /var/lib/gems/2.7.0/gems/fastlane-2.191.0/supply/lib/supply/commands_generator.rb:13:in start' [logs] from /var/lib/gems/2.7.0/gems/fastlane-2.191.0/fastlane/lib/fastlane/cli_tools_distributor.rb:114:in take_off' [logs] from /var/lib/gems/2.7.0/gems/fastlane-2.191.0/bin/fastlane:23:in <top (required)>' [logs] from /usr/local/bin/fastlane:23:in load' [logs] from /usr/local/bin/fastlane:23:in
' [logs] +---------------------------------+-------------------------------------------------------------------------------+ [logs] | Summary for supply 2.191.0 | [logs] +---------------------------------+-------------------------------------------------------------------------------+ [logs] | aab | /tmp/submissions/c836ac5b-4992-4d3b-be33-e8112d442dfa/application_archive.aab | [logs] | track | internal | [logs] | json_key | /tmp/submissions/c836ac5b-4992-4d3b-be33-e8112d442dfa/service-account.json | [logs] | package_name | com.angusenergy.GremlinTankMonitoring | [logs] | changes_not_sent_for_review | false | [logs] | release_status | completed | [logs] | skip_upload_apk | false | [logs] | skip_upload_aab | false | [logs] | skip_upload_metadata | false | [logs] | skip_upload_changelogs | false | [logs] | skip_upload_images | false | [logs] | skip_upload_screenshots | false | [logs] | validate_only | false | [logs] | check_superseded_tracks | false | [logs] | timeout | 300 | [logs] | deactivate_on_promote | true | [logs] | ack_bundle_installation_warning | false | [logs] +---------------------------------+-------------------------------------------------------------------------------+ [logs] [logs] [logs] Looking for related GitHub issues on fastlane/fastlane... [logs] [logs] Found no similar issues. To create a new issue, please visit: [logs] https://github.com/fastlane/fastlane/issues/new [logs] Run fastlane env to append the fastlane environment to your issue [logs] Fastlane supply failed [logs] Failed to submit the app

wiltwitt avatar Oct 26 '22 13:10 wiltwitt

It seems like you have not included the output of fastlane env To make it easier for us help you resolve this issue, please update the issue to include the output of fastlane env :+1:

fastlane-bot avatar Oct 26 '22 13:10 fastlane-bot

anyone?

wiltwitt avatar Oct 31 '22 21:10 wiltwitt

I'm also getting a similar error, have you found a fix?

covenantcodes avatar Dec 13 '22 17:12 covenantcodes

Follow these steps to generate valid and link a valid service account. https://github.com/expo/fyi/blob/main/creating-google-service-account.md

Then use the command eas credentials to re-upload the service account keys associated to EAS for your Google Play account.

adeubank avatar Jan 14 '23 19:01 adeubank