-
Notifications
You must be signed in to change notification settings - Fork 150
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
create sqlite database file if it does not exist #386
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
When a volume mount is used for /var/wwww/wallabag/data, as documented[^1], the container fails to start with the error messages: wc: /var/www/wallabag/data/db/wallabag.sqlite: No such file or directory Configuring the SQLite database ... In ExceptionConverter.php line 76: An exception occurred in the driver: SQLSTATE[HY000] [14] unable to open database file [..] In the volume mount the db directory and the empty db/wallabag.sqlite do not exist which causes the issue. Check in the entrypoint script if the file exist, if it does not create the db directory and the file and make nobody the owner. This fixes: wallabag#316 [^1]:https://github.com/wallabag/docker/tree/96dd9bc3e3d12b216471db03f5afacd6d1afac61#sqlite
A docker image containing the fix can be found here: https://github.com/fho/wallabag-docker/pkgs/container/wallabag. It will only be temporarily available. |
+1 as I just ran into this issue |
+1 ran into this issue, would love for it be fixed |
Merged
Superseded by #402 |
@Kdecherf thanks for merging a fix |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When a volume mount is used for /var/wwww/wallabag/data, as documented1, the container fails to start with the error messages:
In the volume mount the db directory and the empty db/wallabag.sqlite do not exist which causes the issue.
Check in the entrypoint script if the file exist, if it does not create the db directory and the file and make nobody the owner.
This fixes: #316
Footnotes
https://github.com/wallabag/docker/tree/96dd9bc3e3d12b216471db03f5afacd6d1afac61#sqlite ↩