Sentry-debug-meta.properties file was not found

I have added Sentry to my android project following the installation guide here:

and here:

I also enabled debug for sentry in the manifest. Made sure the sentry.properties is under ./android. when I run the app I get the “sentry-debug-meta.properties file was not found” error in the logs. And the event is never sent to sentry dashboard. Here is the log :

2020-11-04 13:59:49.924 2379-2379/? W/ccc_guardian.q: Unexpected CPU variant for X86 using defaults: x86
2020-11-04 13:59:50.096 2379-2379/com.avecare.hwcccc_guardian.qa D/Sentry: Auto-init: true
2020-11-04 13:59:50.096 2379-2379/com.avecare.hwcccc_guardian.qa I/Sentry: Retrieving auto-init from AndroidManifest.xml
2020-11-04 13:59:50.113 2379-2379/com.avecare.hwcccc_guardian.qa D/Sentry: debug read: true
2020-11-04 13:59:50.113 2379-2379/com.avecare.hwcccc_guardian.qa D/Sentry: anrEnabled read: true
2020-11-04 13:59:50.113 2379-2379/com.avecare.hwcccc_guardian.qa D/Sentry: sessionTrackingEnabled read: true
2020-11-04 13:59:50.113 2379-2379/com.avecare.hwcccc_guardian.qa D/Sentry: sampleRate read: -1.0
2020-11-04 13:59:50.113 2379-2379/com.avecare.hwcccc_guardian.qa D/Sentry: anrReportInDebug read: false
2020-11-04 13:59:50.113 2379-2379/com.avecare.hwcccc_guardian.qa D/Sentry: anrTimeoutIntervalMillis read: 5000
2020-11-04 13:59:50.114 2379-2379/com.avecare.hwcccc_guardian.qa D/Sentry: NDK read: true
2020-11-04 13:59:50.114 2379-2379/com.avecare.hwcccc_guardian.qa D/Sentry: ndkScopeSync read: false
2020-11-04 13:59:50.114 2379-2379/com.avecare.hwcccc_guardian.qa D/Sentry: release read: null
2020-11-04 13:59:50.114 2379-2379/com.avecare.hwcccc_guardian.qa D/Sentry: environment read: null
2020-11-04 13:59:50.114 2379-2379/com.avecare.hwcccc_guardian.qa D/Sentry: sessionTrackingTimeoutIntervalMillis read: 30000
2020-11-04 13:59:50.115 2379-2379/com.avecare.hwcccc_guardian.qa D/Sentry: enableActivityLifecycleBreadcrumbs read: true
2020-11-04 13:59:50.115 2379-2379/com.avecare.hwcccc_guardian.qa D/Sentry: enableAppLifecycleBreadcrumbs read: true
2020-11-04 13:59:50.115 2379-2379/com.avecare.hwcccc_guardian.qa D/Sentry: enableSystemEventBreadcrumbs read: true
2020-11-04 13:59:50.115 2379-2379/com.avecare.hwcccc_guardian.qa D/Sentry: enableAppComponentBreadcrumbs read: true
2020-11-04 13:59:50.115 2379-2379/com.avecare.hwcccc_guardian.qa D/Sentry: enableUncaughtExceptionHandler read: true
2020-11-04 13:59:50.115 2379-2379/com.avecare.hwcccc_guardian.qa I/Sentry: Retrieving configuration from AndroidManifest.xml
2020-11-04 13:59:50.126 2379-2379/com.avecare.hwcccc_guardian.qa I/Sentry: Initializing
2020-11-04 13:59:50.132 2379-2415/com.avecare.hwcccc_guardian.qa I/Sentry: sentry-debug-meta.properties file was not found.

What is going wrong?

this is only a debug message, not a bug, this file won’t exist if you don’t enable proguard/r8 in your app and apply the sentry gradle plugin which is documented here https://docs.sentry.io/platforms/android/proguard/

Thanks for the quick response!

I enabled progaurd/r8 and the message went away. However after setting everything as per instructions its still not uploading the events to the dashboard. It show the error “E/Sentry: Envelope submission failed”. Below are the logs:

2020-11-04 17:15:54.317 25010-25010/? D/Sentry: ANR timeout in milliseconds: 5000
2020-11-04 17:15:54.317 25010-25010/? D/Sentry: AnrIntegration installed.
2020-11-04 17:15:54.318 25010-25010/? D/Sentry: enableSessionTracking enabled: true
2020-11-04 17:15:54.318 25010-25010/? D/Sentry: enableAppLifecycleBreadcrumbs enabled: true
2020-11-04 17:15:54.318 25010-25010/? D/Sentry: AppLifecycleIntegration installed.
2020-11-04 17:15:54.318 25010-25010/? D/Sentry: ActivityBreadcrumbsIntegration enabled: true
2020-11-04 17:15:54.318 25010-25010/? D/Sentry: ActivityBreadcrumbsIntegration installed.
2020-11-04 17:15:54.318 25010-25010/? D/Sentry: AppComponentsBreadcrumbsIntegration enabled: true
2020-11-04 17:15:54.319 25010-25010/? D/Sentry: AppComponentsBreadcrumbsIntegration installed.
2020-11-04 17:15:54.319 25010-25010/? D/Sentry: SystemEventsBreadcrumbsIntegration enabled: true
2020-11-04 17:15:54.319 25010-25010/? D/Sentry: SystemEventsBreadcrumbsIntegration installed.
2020-11-04 17:15:54.320 25010-25010/? D/Sentry: enableSystemEventsBreadcrumbs enabled: true
2020-11-04 17:15:54.320 25010-25037/? D/Sentry: Processing 10 items from cache dir /data/user/0/com.avecare.hwcccc_guardian.qa/cache/sentry
2020-11-04 17:15:54.320 25010-25037/? D/Sentry: Processing file: /data/user/0/com.avecare.hwcccc_guardian.qa/cache/sentry/e0d54f71af524317886451324b9d7e23.envelope
2020-11-04 17:15:54.323 25010-25037/? D/Sentry: Captured Envelope is already cached
2020-11-04 17:15:54.327 25010-25010/? I/Sentry: TYPE_AMBIENT_TEMPERATURE is not available.
2020-11-04 17:15:54.327 25010-25010/? D/Sentry: enableSystemEventBreadcrumbs enabled: true
2020-11-04 17:15:54.343 25010-25042/? E/Sentry: Envelope submission failed

are there more logs after Envelope submission failed?

are you using sentry.io or on-premise?

which version of the SDK are you trying out?

We are using on premise and 20.8.0.dev0.

sentry-android-gradle-plugin:1.7.32

io.sentry:sentry-android:3.1.0

On the app launch I get this log:
2020-11-05 00:58:34.100 17964-17964/? I/Sentry: Not possible to read external files directory
2020-11-05 00:58:39.137 18072-18072/? D/Sentry: Auto-init: true
2020-11-05 00:58:39.138 18072-18072/? I/Sentry: Retrieving auto-init from AndroidManifest.xml
2020-11-05 00:58:39.163 18072-18086/? I/Sentry: sentry-debug-meta.properties file was not found.
2020-11-05 00:58:39.168 18072-18086/? D/Sentry: SU doesn’t exist.
java.io.IOException: Cannot run program “/system/xbin/which”: error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at java.lang.Runtime.exec(Runtime.java:692)
at java.lang.Runtime.exec(Runtime.java:560)
at io.sentry.android.core.util.RootChecker.checkSUExist(Unknown Source:12)
at io.sentry.android.core.util.RootChecker.isDeviceRooted(Unknown Source:12)
at io.sentry.android.core.DefaultAndroidEventProcessor.loadContextData(Unknown Source:18)
at io.sentry.android.core.DefaultAndroidEventProcessor.a(Unknown Source:0)
at io.sentry.android.core.f.call(Unknown Source:2)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)
Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.(UNIXProcess.java:133)
at java.lang.ProcessImpl.start(ProcessImpl.java:128)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
at java.lang.Runtime.exec(Runtime.java:692)
at java.lang.Runtime.exec(Runtime.java:560)
at io.sentry.android.core.util.RootChecker.checkSUExist(Unknown Source:12)
at io.sentry.android.core.util.RootChecker.isDeviceRooted(Unknown Source:12)
at io.sentry.android.core.DefaultAndroidEventProcessor.loadContextData(Unknown Source:18)
at io.sentry.android.core.DefaultAndroidEventProcessor.a(Unknown Source:0)
at io.sentry.android.core.f.call(Unknown Source:2)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)
2020-11-05 00:58:41.424 18072-18072/? I/Sentry: Not possible to read external files directory
2020-11-05 01:00:31.680 18189-18189/? D/Sentry: Auto-init: true
2020-11-05 01:00:31.680 18189-18189/? I/Sentry: Retrieving auto-init from AndroidManifest.xml
2020-11-05 01:00:31.830 18189-18213/? D/Sentry: Proguard UUID found: 76129692-6241-5769-8c09-3b62405b628d

And logs when it tries to send and event :
2020-11-05 09:57:16.807 19877-19877/? D/Sentry: Capturing event: 5043bea427e043989afa03e28bbaf6ce

2020-11-05 09:57:16.828 19877-19877/? I/Sentry: Not possible to read external files directory

2020-11-05 09:57:16.831 19877-19903/? W/Sentry: Cache folder if full (respecting maxSize). Rotating files

2020-11-05 09:57:16.836 19877-19903/? D/Sentry: Session fbf8ccb5-53eb-4c0d-8e90-bcc92ed9d9c7 has 2 times the init flag.

2020-11-05 09:57:16.837 19877-19903/? D/Sentry: Adding Envelope to offline storage: /data/user/0/com.avecare.hwcccc_guardian.qa/cache/sentry/5043bea427e043989afa03e28bbaf6ce.envelope

2020-11-05 09:57:17.149 19877-19903/? D/Sentry: Hint is not Retryable

2020-11-05 09:57:17.150 19877-19903/? E/Sentry: Envelope submission failed

2020-11-05 09:57:24.961 19989-19989/? D/Sentry: Auto-init: true

2020-11-05 09:57:24.961 19989-19989/? I/Sentry: Retrieving auto-init from AndroidManifest.xml

2020-11-05 09:57:25.046 19989-19989/? D/Sentry: debug read: true

2020-11-05 09:57:25.046 19989-19989/? D/Sentry: anrEnabled read: true

2020-11-05 09:57:25.046 19989-19989/? D/Sentry: sessionTrackingEnabled read: true

2020-11-05 09:57:25.046 19989-19989/? D/Sentry: sampleRate read: -1.0

2020-11-05 09:57:25.046 19989-19989/? D/Sentry: anrReportInDebug read: false

2020-11-05 09:57:25.046 19989-19989/? D/Sentry: anrTimeoutIntervalMillis read: 5000

2020-11-05 09:57:25.046 19989-19989/? D/Sentry: NDK read: true

2020-11-05 09:57:25.046 19989-19989/? D/Sentry: ndkScopeSync read: false

2020-11-05 09:57:25.047 19989-19989/? D/Sentry: release read: null

2020-11-05 09:57:25.047 19989-19989/? D/Sentry: environment read: null

2020-11-05 09:57:25.047 19989-19989/? D/Sentry: sessionTrackingTimeoutIntervalMillis read: 30000

2020-11-05 09:57:25.047 19989-19989/? D/Sentry: enableActivityLifecycleBreadcrumbs read: true

2020-11-05 09:57:25.047 19989-19989/? D/Sentry: enableAppLifecycleBreadcrumbs read: true

2020-11-05 09:57:25.047 19989-19989/? D/Sentry: enableSystemEventBreadcrumbs read: true

2020-11-05 09:57:25.047 19989-19989/? D/Sentry: enableAppComponentBreadcrumbs read: true

2020-11-05 09:57:25.047 19989-19989/? D/Sentry: enableUncaughtExceptionHandler read: true

2020-11-05 09:57:25.047 19989-19989/? I/Sentry: Retrieving configuration from AndroidManifest.xml

2020-11-05 09:57:25.099 19989-20008/? D/Sentry: Proguard UUID found: 76129692-6241-5769-8c09-3b62405b628d

2020-11-05 09:57:25.099 19989-19989/? I/Sentry: GlobalHubMode: 'true’

2020-11-05 09:57:25.108 19989-19989/? D/Sentry: UncaughtExceptionHandlerIntegration enabled: true

2020-11-05 09:57:25.108 19989-19989/? D/Sentry: default UncaughtExceptionHandler class='com.android.internal.os.RuntimeInit$KillApplicationHandler’

2020-11-05 09:57:25.108 19989-19989/? D/Sentry: UncaughtExceptionHandlerIntegration installed.

2020-11-05 09:57:25.110 19989-19989/? D/Sentry: SendCachedEventFireAndForgetIntegration installed.

2020-11-05 09:57:25.110 19989-19989/? D/Sentry: NdkIntegration enabled: true

2020-11-05 09:57:25.111 19989-19989/? I/sentry-native: using database path "/data/data/com.avecare.hwcccc_guardian.qa/cache/sentry/.sentry-native"

2020-11-05 09:57:25.111 19989-19989/? D/sentry-native: starting backend

2020-11-05 09:57:25.115 19989-19989/? D/Sentry: NdkIntegration installed.

2020-11-05 09:57:25.115 19989-19989/? D/Sentry: Registering EnvelopeFileObserverIntegration for path: /data/user/0/com.avecare.hwcccc_guardian.qa/cache/sentry/outbox

We updated the server to latest version, 20.10.1

Also I tried creating an account on cloud and setup for that and it works but not on-premise.

Also its work mentioning that it works for on-premise for other SDKs, i.e. iOS, and python.

The problem only exists with the android Sentry SDK