-
Notifications
You must be signed in to change notification settings - Fork 0
Fix SQLite web interface failing on Windows due to missing database path argument #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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:
|
hammar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
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.