fastlane: [!] Google Api Error: rolloutNotPermittedOnDraftApp: Only releases with status draft may be created on draft app.

New Issue Checklist

Issue Description

[!] Google Api Error: rolloutNotPermittedOnDraftApp: Only releases with status draft may be created on draft app. - Only releases with status draft may be created on draft app

Command executed
fastlane beta
Complete output when running fastlane, including the stack trace and command used

12:02:56: — Step: supply — 12:02:56: --------------------

±------------------------±------------------------------------------------------------------+ | Summary for supply 2.136.0 | ±------------------------±------------------------------------------------------------------+ | apk | ./platforms/android/app/build/outputs/apk/release/app-release.apk | | track | beta | | package_name | xxxxxx | | release_status | completed | | metadata_path | ./fastlane/metadata/android | | json_key | GPAD.json | | skip_upload_apk | false | | skip_upload_aab | false | | skip_upload_metadata | false | | skip_upload_changelogs | false | | skip_upload_images | false | | skip_upload_screenshots | false | | validate_only | false | | check_superseded_tracks | false | | timeout | 300 | | deactivate_on_promote | true | ±------------------------±------------------------------------------------------------------+

[12:02:57]: Preparing apk at path ‘./platforms/android/app/build/outputs/apk/release/app-release.apk’ for upload… [12:03:11]: Version Code: 10003 [12:03:11]: Updating track ‘beta’… [12:03:12]: Uploading all track and release changes to Google Play… ±-----------------±-------------+ | Lane Context | ±-----------------±-------------+ | DEFAULT_PLATFORM | android | | PLATFORM_NAME | android | | LANE_NAME | android beta | ±-----------------±-------------+ [12:03:14]: Google Api Error: rolloutNotPermittedOnDraftApp: Only releases with status draft may be created on draft app. - Only releases with status draft may be created on draft app.

±-----±-------------------------------------------±------------+ | fastlane summary | ±-----±-------------------------------------------±------------+ | Step | Action | Time (in s) | ±-----±-------------------------------------------±------------+ | 1 | default_platform | 0 | | 2 | ./node_modules/cordova/bin/cordova build | 40 | | | android --release - | | | 💥 | supply | 17 | ±-----±-------------------------------------------±------------+

[12:03:14]: fastlane finished with errors

[!] Google Api Error: rolloutNotPermittedOnDraftApp: Only releases with status draft may be created on draft app. - Only releases with status draft may be created on draft app.

Environment

✅ fastlane environment ✅

Stack

Key Value
OS debian_based buster/sid
Ruby 2.5.5
Bundler? false
Git git version 2.20.1
Installation Source /usr/local/bin/fastlane
Host Ubuntu 19.10 debian_based buster/sid (5.3.0-23-generic)
Ruby Lib Dir /usr/lib
OpenSSL Version OpenSSL 1.1.1c 28 May 2019
Is contained false
Is homebrew false
Is installed via Fabric.app false

System Locale

Variable Value
LANG en_US.UTF-8
LC_ALL en_US.UTF-8
LANGUAGE

fastlane files:

`./fastlane/Fastfile`
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
#     https://docs.fastlane.tools/actions
#

# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane

default_platform(:android)

platform :android do

  desc "BETA: Deploy android beta app on play store"
  lane :beta do
    Dir.chdir("..") do
      sh "./node_modules/cordova/bin/cordova  build android --release -- --keystore=../re.keystore --storePassword=noxxx --alias=xxx --password=xxx"
    end
    supply(
      apk: "./platforms/android/app/build/outputs/apk/release/app-release.apk",
      track: 'beta'
      )
  end

  desc "PRODUCTION: Deploy android app on play store"
  lane :deploy do
    Dir.chdir("..") do
      sh "./node_modules/cordova/bin/cordova  build android --release -- --keystore=../re.keystore --storePassword=noxxx --alias=xxx --password=xxx"
    end
    supply(
      apk: "./platforms/android/app/build/outputs/apk/release/app-release.apk",
      track: 'production'
      )
  end

end

`./fastlane/Appfile`
json_key_file("GPAD.json") # Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get one
package_name("xxxx") # e.g. com.krausefx.app

fastlane gems

Gem Version Update-Status
fastlane 2.136.0 ✅ Up-To-Date

Loaded fastlane plugins:

Plugin Version Update-Status
fastlane-plugin-cordova 2.2.1 ✅ Up-To-Date
Loaded gems
Gem Version
did_you_mean 1.2.1
slack-notifier 2.3.2
atomos 0.1.3
claide 1.0.2
colored2 3.1.2
nanaimo 0.2.6
xcodeproj 1.8.2
rouge 2.0.7
xcpretty 0.3.0
terminal-notifier 2.0.0
terminal-table 1.8.0
plist 3.4.0
public_suffix 2.0.5
addressable 2.5.2
multipart-post 2.0.0
word_wrap 1.0.0
tty-screen 0.6.4
tty-cursor 0.5.0
tty-spinner 0.8.0
babosa 1.0.2
colored 1.2
highline 1.7.10
commander-fastlane 4.4.6
http-cookie 1.0.3
faraday-cookie_jar 0.0.6
faraday 0.17.0
faraday_middleware 0.13.1
gh_inspector 1.1.3
json 2.1.0
mini_magick 4.9.5
multi_xml 0.6.0
rubyzip 1.3.0
security 0.1.3
xcpretty-travis-formatter 1.0.0
bundler 1.16.2
naturally 2.1.0
simctl 1.6.4
jwt 2.1.0
google-cloud-env 1.0.5
google-cloud-core 1.2.7
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
multi_json 1.13.1
signet 0.11.0
little-plugger 1.1.4
logging 2.2.2
memoist 0.16.0
os 0.9.6
googleauth 0.6.2
httpclient 2.8.3
google-api-client 0.23.9
digest-crc 0.4.1
google-cloud-storage 1.15.0
emoji_regex 0.1.1
CFPropertyList 3.0.0
unicode-display_width 1.3.2
excon 0.62.0
unf_ext 0.0.7.5
unf 0.1.4
domain_name 0.5.20180417
fastimage 2.1.3
dotenv 2.4.0
stringio 0.0.1
openssl 2.1.2
strscan 1.0.0
date 1.0.0
fileutils 1.0.2
etc 1.0.0
io-console 0.4.6
zlib 1.0.0
ipaddr 1.2.0
psych 3.0.2
fastlane-plugin-cordova 2.2.1

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 32 (5 by maintainers)

Commits related to this issue

Most upvoted comments

There were some changes in 2.137.0 that touched the parts of the code that this error is coming from and I wasn’t able to reproduce so I wasn’t sure if it was fixed or not 😬 I’ll take a closer look now that I know its still broken in 2.137.0 to see if I can find this 🕵

On it! Will have fix soon 😊

Hi, had the same issue on v2.137.0 with a brand new app never released on Play Market. What I did as a temporary fix is just to add release_status: ‘draft’ in my lane / supply() configuration. If it can help some people here…

@Ajaxy at this point I think you have no other option than updating to v2.135+ which is leveraging new Google Play Developer (v3). “Starting December 1, 2019, versions 1 and 2 of the Google Play Developer API will no longer be available so you need to update to version 3 ahead of this date.” (https://android-developers.googleblog.com/2019/03/changes-to-google-play-developer-api.html)

For a new App or Release, make sure in the Google Play Console your according track and Release is already published before uploading via Fastlane / CI. Like @nheu mentioned, release_status: ‘draft’ lets fastlane succeed but the release is not “released” automatically, you have to do it via the Play Console.

Same issue here and rolling back to 2.134 does not seem to be an option anymore: [!] Google Api Error: apiDeprecated: This API has been deprecated and is no longer available.

The error I get with 2.135 is: [!] Google Api Error: rolloutNotPermittedOnDraftApp: Only releases with status draft may be created on draft app. - Only releases with status draft may be created on draft app.

When I update to 2.136 or 2.137 I get the same error as 2.135: rolloutNotPermittedOnDraftApp