-
Notifications
You must be signed in to change notification settings - Fork 7
Is it possible to use volumes to persist sqlite database between restarts? #258
Copy link
Copy link
Closed
Description
I tried to setup a location for the database using
var temporalContainer = builder
.AddTemporalServerContainer(
"temporal",
opt => opt.WithDbFileName("/data/temporal.db")
)
.WithVolume(
name: VolumeNameGenerator.Generate(temporalContainer, "data"),
target: "/data"
)
.WithLifetime(ContainerLifetime.Persistent);;But when I start the server, I get the following error logs on the container
Added new ContainerNetworkConnection {"Container": "/temporal-c5dae37d", "Reconciliation": 28, "ContainerName": "temporal-c5dae37d", "Network": "/aspire-container-network"}
Failed to start Container {"Container": "/temporal-c5dae37d", "Reconciliation": 46, "ContainerID": "6774be3f68c7", "ContainerName": "temporal-c5dae37d", "error": "container 'temporal-c5dae37d' start failed (exit code 1)\nwriter is closed\nnot all requested objects were returned\nonly 0 out of 1 containers were successfully started"}
time=2025-12-23T10:08:51.677 level=ERROR msg="failed starting server: failed setting up schema: unable to create SQLite admin DB: unable to open database file: out of memory (14)"Do you think on anything I could try?
I used WithBindMount successfully, but I would like to have the data inside a docker volume.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels