Skip to content

RavenDb: settings.WithLicense(string) results in no license being registered. #1027

@JohnGalt1717

Description

@JohnGalt1717

Describe the bug

        var license = File.ReadAllText(licensePath);

        settings.WithLicense(license, eulaAccepted: true);
        var ravenServer = builder
            .AddRavenDB(name, settings)

I have verified that license is a valid license file and is valid json.

As a result of this code, the instance still has no license registered on startup.

Regression

No response

Steps to reproduce

Create settings
Use settings.WithLicense(string, true) passing in a valid license.
Call AddRavenDb(name, settings)

Expected behavior

The license should be registered.

Screenshots

No response

IDE and version

VS Code

IDE version

1.106

Nuget packages

CommunityToolkit.Aspire.Hosting.RavenDB

Additional context

I'd help with this, but I have never been able to figure out what the docker container is doing for licenses. I can't figure out where it looks for the license.json by default, I've never been able to, based on the documentation inject one as a file, nor pass it as an environment variable.

Help us help you

No, just wanted to report this

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions