Triple-T / gradle-play-publisher

GPP is Android's unofficial release automation Gradle Plugin. It can do anything from building, uploading, and then promoting your App Bundle or APK to publishing app listings and other metadata.
MIT License
4.09k stars 339 forks source link

Error: insufficient data written #1099

Closed eygraber closed 9 months ago

eygraber commented 10 months ago

Describe the bug

My nightly release is started failing today with the error:

A failure occurred while executing com.github.triplet.gradle.play.tasks.PublishBundle$BundleUploader
         > insufficient data written

How To Reproduce

Upload a bundle

Versions

Tasks executed

publishReleaseBundle

simas-trafi commented 10 months ago

We just ran into this issue as well. This is caused by an incomplete declaration of app's Financial features.

The deadline for that was August 31st. And it seems that they started rejecting builds into accounts that are not setup.

To fix this:

  1. Go to Google Play Store
  2. Open your app
  3. Go to App Content (under Policy and programs)
  4. Finish Financial Features declaration
  5. Submit changes for review (seems to take minutes)
  6. Publish your app
image
sorinirimies commented 10 months ago

We can confirm, we have encountered the same problem.

* What went wrong:
> A failure occurred while executing com.github.triplet.gradle.play.tasks.PublishBundle$Processor
   > There was a failure while executing work items
      > A failure occurred while executing com.github.triplet.gradle.play.tasks.PublishBundle$BundleUploader
         > insufficient data written
eygraber commented 10 months ago

Thanks that was it for us as well

casperbang commented 10 months ago

We also ran into this recently, although the problem was with a user-account deletion section recently added/modified for App Content. It would be nice if Google somehow disclosed this in the error for gradle-play-publisher to pick up on and report back, but I guess it's missing on Google's part.

LudoFarkas commented 10 months ago

We have this issue too, but it still persists even after declaring financial features and user-account deletion.

Our build generates multiple apks for different ABIs and it seems that 3 out of 4 apks are uploaded correctly. The publish task fails with "insufficient data written" error when uploading the 4th apk.

@SUPERCILEX , is there a switch to run the task in verbose mode with logging please?

Toubap commented 10 months ago

I had the same issue with the Data safety section Once submitted (even in review), it worked

SUPERCILEX commented 10 months ago

@LudoFarkas https://docs.gradle.org/current/userguide/logging.html#logLevels debug dumps the network requests IIRC.

spencerwhyte commented 10 months ago

@LudoFarkas We are in a similar situation, even after submitting all of our documentation, we are still seeing this issue (but not consistently)

LudoFarkas commented 10 months ago

@SUPERCILEX , thanks for the tip. It might have occurred to me.

However, I'm quite sure the problem is not just the incomplete store listing. Our store listing is updated according to the comments above, and the store console does not show any issues. In our case, there are 4 APKs to upload due to different ABIs. The sizes of the apks are from 70 to around 100 MB. So 'gradle-play-publisher' tries to upload 4 APKs and 4 times the same mapping = 8 files.

Here are my observations after setting the gradle log level to '--info' and observing the task multiple times:

So, if the gradle error is:


> A failure occurred while executing com.github.triplet.gradle.play.tasks.PublishApk$Processor
    > There were multiple failures while executing work items
       > A failure occurred while executing com.github.triplet.gradle.play.tasks.PublishApk$ApkUploader
             > insufficient data written
       > A failure occurred while executing com.github.triplet.gradle.play.tasks.PublishApk$ApkUploader
             > insufficient data written
       > A failure occurred while executing com.github.triplet.gradle.play.tasks.PublishApk$ApkUploader
             > insufficient data written

with 3 failed uploads, then there were 3 authentification calls during the task execution.

@SUPERCILEX , could you please have a look at it? Should I create a new issue?

eygraber commented 10 months ago

I'm reopening because this started happening again after filling out all required forms in the console and publishing that.

xserxses commented 10 months ago

Confirming: We are affected as well

anthonymonori commented 10 months ago

I suggest raising support tickets with Google Play as well, maybe we get a better answer and resolution as the issue seems to be more widespread and only affecting API usage (I was able to consistently upload via the web Console): https://support.google.com/googleplay/android-developer/contact/general_contact

trevjonez commented 10 months ago

Even seeing where some uploads work and others fail inside the same invocation of gradle. image

The stark difference in time spent before getting that error seems smelly to me.

ursusursus commented 10 months ago

We're seeing this as well. Is this a google issue?

mivittek commented 10 months ago

Howdy there!

sadly i am seeing same issue in my project :( Listing in play store looks fine

> A failure occurred while executing com.github.triplet.gradle.play.tasks.PublishApk$Processor
    > There were multiple failures while executing work items
       > A failure occurred while executing com.github.triplet.gradle.play.tasks.PublishApk$ApkUploader
             > insufficient data written

Any more ideas please ?

Vlado24 commented 10 months ago

same here 🤔😢

cyberdreamandroid commented 10 months ago

Same here. I am really relying on this. Uploading it manually with mulitple ABIS and bundles is not really an option. Any alternative? Is someone in contact with Google already?

spencerwhyte commented 10 months ago

I just finally got my act together and reached out to Google, I'll keep you posted when I hear back.

eygraber commented 10 months ago

I contacted Google yesterday. They said they need time to look into it. I pointed them to this issue, but the more reports they get, the more real it will be to them.

Fenris77 commented 10 months ago

Google seems to have fixed something in the meantime, because my apps got finally uploaded after many tries in the last three days.

LudoFarkas commented 10 months ago

I too can confirm that all of our uploads were successful yesterday.

cyberdreamandroid commented 10 months ago

Working again. What a relief 👍

sorinirimies commented 10 months ago

Confirming things are working again. The price for depending on centralized entities for our products.

github-actions[bot] commented 9 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.