fastlane-plugin-appcenter: A problem occurred while extracting your app
I randomly get the error A problem occurred while extracting your app
while uploading an Android APK.
It’s usually fixed by re-running the workflow in the CI environment, but I’d like to know why it happens.
I’m using version 1.9.0
of this plugin.
Lane:
desc "Submit APK to AppCenter"
lane :android_alpha_apk do |options|
changeLogs = format_last_commit
appcenter_upload(
api_token: options[:apiToken],
owner_name: options[:ownerName],
app_name: options[:appName],
notify_testers: false,
destinations: options[:destinations],
release_notes: changeLogs,
file: options[:apkPath]
)
end
Logs:
[01:01:39]: [32m------------------------------[0m
[01:01:39]: [32m--- Step: appcenter_upload ---[0m
[01:01:39]: [32m------------------------------[0m
[01:01:40]: Starting release upload...
[01:01:41]: Setting Metadata...
[01:01:43]: Metadata set
[01:01:43]: Uploading release binary...
[01:01:45]: Chunk uploaded
[01:01:46]: Chunk uploaded
[01:01:47]: Chunk uploaded
[01:01:49]: Chunk uploaded
[01:01:50]: Chunk uploaded
[01:01:51]: Chunk uploaded
[01:01:53]: Chunk uploaded
[01:01:54]: Chunk uploaded
[01:01:56]: Chunk uploaded
[01:01:57]: Chunk uploaded
[01:01:58]: Chunk uploaded
[01:02:00]: Chunk uploaded
[01:02:01]: Chunk uploaded
[01:02:02]: Chunk uploaded
[01:02:04]: Chunk uploaded
[01:02:05]: Chunk uploaded
[01:02:05]: Binary uploaded
[01:02:05]: Finishing release...
[01:02:05]: Upload finished
[01:02:06]: Waiting for release to be ready...
[01:03:12]: [31mError fetching release: A problem occured while extracting your app. (Correlation ID: 8f37593f-e412-4a10-8aca-7ba8530dfdaf)[0m
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 5
- Comments: 24 (1 by maintainers)
This may or may not help some people. But ensure you have the App Name correct in your Ruby script. It’s may not be what it looks like in AppCenter, but it should be a specific name in the URL. I noticed this when I had an iOS version and then an Android version of the same app. Since Android was created second, the URL adds a “-1” at the end of the URL. For example:
https://appcenter.ms/orgs/COMPANYNAME/apps/APPNAME-1
So your appcenter_upload() would look something like…
After editing the app_name the ruby script I was able to successfully upload.
This continue happening !!! It fails each day !
@PawKanarek for us it was randomly: sometimes it was ok, sometimes - error
I worked it out to be on Android related to APK version being set correct
android/app/build.gradle
where version build is VERSION_BUILD = 8 VERSION_NAME = 1.1.0
For IOS
This was based on using Capacitor for creating Android and IOS build.
My organization has seen a big improvement in upload success of android APKs via fastlane app center plugin after we were able to drastically reduce the size of our app from ~340MB to ~180MB last week. We are still seeing upload failures but the failure rate has dropped dramatically. Just wanted to offer this data point since we’ve been struggling with this issue for a while.