mirror of
https://github.com/go-shiori/shiori.git
synced 2026-04-25 06:25:54 +03:00
[GH-ISSUE #787] Having Postgres Set up for Other Things Causes Non-Start of Shiori v1.6* with Sqlite. #378
Labels
No labels
component:backend
component:builds
component:builds
component:extension
component:frontend
component:readability
database
database:mysql
database:postgres
database:sqlite
feature:ebooks
github_actions
good first issue
hacktoberfest
note:duplicate?
note:fixed?
note:out-of-scope?
os:windows
priority:high
priority:low
pull-request
resolution:as-intended
resolution:cant-reproduce
resolution:duplicate
resolution:fixed
resolution:wontfix
tag:TBD
tag:big-task
tag:help-wanted
tag:huge-data
tag:meta
tag:more-info
tag:next
tag:no-stale
tag:requires-migrations
tag:research
tag:security 🛡️
tag:stale
tag:waiting-for-assignee
type:bug
type:documentation
type:enhancement
type:meta
type:ux
user:cli
user:web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shiori#378
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @oemmerson on GitHub (Nov 26, 2023).
Original GitHub issue: https://github.com/go-shiori/shiori/issues/787
Originally assigned to: @fmartingr on GitHub.
Data
Describe the bug / actual behavior
Upgrading from the last v1.5.5 stable to the the v1.6 RCs and having DATABASE_URL set for Postgres (for other services) causes non-start of Shiori when it is used with Sqlite.
The v.1.5.5 either gave higher precedence to SQLite or wasn't parsing DATABASE_URL as this issue was not present.
A workaround is to set SHIORI_DATABASE_URL to the URL of your Shiori SQLite database.
Expected behavior
I would expect Shiori to start with SQLite by default as this is what was happening in the current stable version.
Also configuring Postgres is documented as setting SHIORI_DATABASE_URL on the configuration page in in docs. Parsing of DATABASE_URL is not mentioned that I could see.
To Reproduce
Steps to reproduce the behavior:
Steps to reproduce the workaround behavior:
@fmartingr commented on GitHub (Dec 9, 2023):
We enabled several lookupers in the configuration for migration and backwards compatibilities purposes, which is causing this unexpected behaviour. I would need to review the configuration environment variables and check if we can safely disable the lookuper that is causing this issue.