Skip to content
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

Fix SQLite support #210

Merged
merged 1 commit into from
May 24, 2022
Merged

Fix SQLite support #210

merged 1 commit into from
May 24, 2022

Conversation

haplo
Copy link
Contributor

@haplo haplo commented May 23, 2022

SQLite DB was not writable because it was always located in /usr/src/shynet/, which is owned by root and not writable by appuser. SQLite needs the parent directory containing the DB file to be writable by the running user.

The applied fix is to place the DB file in /var/local/shynet/db and to create that directory in the Docker image with the right permissions.

SQLite setup is now documented in README as an alternative to Postgres.

Fixes #208.

SQLite DB was not writable because it was always located in
/usr/src/shynet/, which is owned by root and not writable by
appuser. SQLite needs the parent directory containing the DB file to be
writable by the running user.

The applied fix is to place the DB file in /var/local/shynet/db and to
create that directory in the Docker image with the right permissions.

SQLite setup is now documented in README as an alternative to Postgres.
@milesmcc milesmcc merged commit 96c9c0f into milesmcc:master May 24, 2022
@milesmcc
Copy link
Owner

Thanks!

@haplo haplo deleted the sqlite-fix branch May 24, 2022 21:52
@0b11stan 0b11stan mentioned this pull request Oct 10, 2022
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.

Error when using a SQLite DB
2 participants