Conversation
…rgument Co-authored-by: hammar <68027+hammar@users.noreply.github.com>
Co-authored-by: hammar <68027+hammar@users.noreply.github.com>
Co-authored-by: hammar <68027+hammar@users.noreply.github.com>
hammar
left a comment
There was a problem hiding this comment.
From the release notes here: https://github.com/CommunityToolkit/Aspire/releases/tag/v13.1.1 it seems that updating the CommunityToolkit.Aspire nugets to 13.1.1 would resolve this issue. That seems a lot smoother path. Please test if it works before doing this kind of more complex workarounds.
Co-authored-by: hammar <68027+hammar@users.noreply.github.com>
You were right! Updating to CommunityToolkit.Aspire 13.1.1 was the cleaner solution. The package now includes the fix (PR #1061) that automatically passes the database path to sqlite-web. I've reverted the complex reflection-based workaround and simply updated both packages from 9.9.0 to 13.1.1. Build passes successfully. Commit: 407ce27 Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
The SQLite web container exits immediately on Windows with "Error: missing required path to database file". This issue was fixed in CommunityToolkit.Aspire.Hosting.SQLite version 13.1.1.
Changes
Version 13.1.1 includes a built-in fix (PR #1061) that automatically passes the database file path as a command-line argument to the sqlite-web container. No code changes are required - the fix is handled entirely by the updated library.
Why This Works
The sqlite-web container's entrypoint is
["sqlite_web", "-H", "0.0.0.0", "-x"]and requires the database file path appended as an argument. The updated package now automatically calls.WithArgs(builder.Resource.DatabaseFileName)internally whenWithSqliteWeb()is invoked.References
Testing
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.