mirror of
https://github.com/go-shiori/shiori.git
synced 2026-04-25 14:35:52 +03:00
[GH-ISSUE #977] With Postgres 15.8 as DB in Kubernetes shiori fails to run the migration from 0.2.0 to 0.3.0 #427
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#427
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 @chairraver on GitHub (Sep 4, 2024).
Original GitHub issue: https://github.com/go-shiori/shiori/issues/977
Data
Describe the bug / actual behavior
The image is pulled and then started. Opening the logs with kubectl logs for instance, this messade is displayed:
time="2024-09-04T19:48:43Z" level=fatal msg="Error running migration" error="failed to run migration from 0.2.0 to 0.3.0: failed to add has_content column to bookmark table: pq: Spalte »has_content« von Relation »bookmark« existiert bereits"
Spalte »has_content« von Relation »bookmark« existiert bereits
in German translates to English:
Column »has_content« from relation »bookmark« already exists.
DATABASE_URL:
postgres://shiori:xxxxxx@omv-pg-rw.omv-pg.svc.cluster.local/shiori?sslmode=disable
Expected behavior
All migration run successful. Apparently a migration to 0.4.0 is to follow.
To Reproduce
Steps to reproduce the behavior:
@chairraver commented on GitHub (Sep 7, 2024):
As I look at the error message once again, I realize, that it's in German, which is probably the result of my Postgres instance running with German locale. So it might not actually be a problem of the migration process.
I'll try to dig a bit deeper. So it might not actually a problem at all.
@chairraver commented on GitHub (Sep 7, 2024):
Ok, fixed. For testing I modified the Postgres migration code to also include the checks for the German error messages. With that everything worked fine. Final solution was an
alter systemcommand to set lc_messages to 'C'.alter system set lc_messages = 'C';
With that I'm getting English messages again and the container starts with problems.