Skip to content

fix(native): report database path on creation failure - #2348

Merged
jpnurmi merged 1 commit into
v1from
jpnurmi/fix/database-path-warning
Nov 26, 2026
Merged

jpnurmi merged 1 commit into
v1from
jpnurmi/fix/database-path-warning

Conversation

@jpnurmi

@jpnurmi jpnurmi commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Native AOT apps failed to initialize the Native SDK in .NET's chiseled container images:

failed to create database directory or there is no write access to this directory

The warning can leave users baffled when they never configured a specific database directory, and nothing in the log says which one it means. Here it was .sentry-native in the working directory, the default in both sentry-native and the .NET SDK, and the apps run as a non-root user in the root-owned /app. The warning now names the directory:

failed to create database directory "/app/.sentry-native" or there is no write access to this directory

This matches the using database path "..." message that is logged when the directory can be created.

Ref: getsentry/sentry-dotnet#5999

#skip-changelog (insignificant)

Native AOT apps failed to initialize sentry-native in .NET's chiseled
container images:

```text
failed to create database directory or there is no write access to this directory
```

The warning leaves users baffled. They never configured a database
directory, and nothing in the log says which one it means. Here it was
`.sentry-native` in the working directory, the default in both
sentry-native and the .NET SDK, and the apps run as a non-root user in
the root-owned `/app`. The warning now names the directory:

```text
failed to create database directory "/app/.sentry-native" or there is no write access to this directory
```

This matches the `using database path "..."` message that is logged
when the directory can be created.

Ref: getsentry/sentry-dotnet#5999
@jpnurmi
jpnurmi merged commit 3547ec9 into v1 Nov 26, 2026
75 checks passed
@jpnurmi
jpnurmi deleted the jpnurmi/fix/database-path-warning branch November 26, 2026 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants