Skip to content

A problem occurred starting sentry-cli-2.31.2.exe on Linux #728

Description

@listvin

Integration

sentry-android

Build System

Gradle

AGP Version

8.3.0

Proguard

Enabled

Version

io.sentry.android.gradle 4.7.1

Steps to Reproduce

bash:

  1. SENTRY_OFFLINE=1 ./gradlew assembleProdRelease_r8
  2. ./gradlew uploadSentryProguardMappingsProdRelease_r8

ProdRelease_r8 here is flavour (Prod) + buildType (Release_r8).
My build.gradle contains:

sentry {
    def v = System.getenv('SENTRY_OFFLINE')
    if (v != null && !v.isEmpty() && v != "0" && v.toLowerCase() != "false") {
        //noinspection GrDeprecatedAPIUsage
        autoUpload.set(false)
        includeSourceContext.set(false)
        autoUploadSourceContext.set(false)
        autoUploadProguardMapping.set(false)
        uploadNativeSymbols.set(false)
        autoUploadNativeSymbols.set(false)
    }
}

May be relevant: I am on LTE, good one, but still.

Expected Result

The first one should be able to complete build offline (with no connection to Internet), second uploads mappings.

It works as expected and never let me down before.

Actual Result

Now I just got following:

> Task :app:uploadSentryProguardMappingsProdRelease_r8 FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:uploadSentryProguardMappingsProdRelease_r8'.
> A problem occurred starting process 'command '/home/user/projectname/app/build/tmp/sentry-cli-2.31.2.exe''

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 1m 18s
57 actionable tasks: 10 executed, 47 up-to-date

I did rerun same task with --debug, but didn't see issue again. I can not reproduce it. In my build script I inserted --debug for last task and saving of log, but for now this is all I have.

It is frustrating bc my custom build pipeline does a lot of work (like 20 minutes?) before this last step and has to be restarted.

Is invoking .EXE file normal part of mapping upload from LINUX?

Metadata

Metadata

Assignees

Labels

No labels
No labels
No fields configured for issues without a type.

Projects

Status
No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions