schema_version exists, but Miniflux tries to run migration #1817
Replies: 3 comments
-
If this is an installation issue, what should I do? Miniflux can't read the deployed table and assumes that there is nothing to run. |
Beta Was this translation helpful? Give feedback.
-
Had the same issue, turns out the tables and sequences in the miniflux db were not owned by the user used by miniflux. Here is the SQL I used to correct the ownership, probably a better/quicker way but it works: ALTER TABLE public."acme_cache" OWNER TO miniflux;
ALTER TABLE public."api_keys" OWNER TO miniflux;
ALTER TABLE public."categories" OWNER TO miniflux;
ALTER TABLE public."enclosures" OWNER TO miniflux;
ALTER TABLE public."entries" OWNER TO miniflux;
ALTER TABLE public."feed_icons" OWNER TO miniflux;
ALTER TABLE public."feeds" OWNER TO miniflux;
ALTER TABLE public."icons" OWNER TO miniflux;
ALTER TABLE public."integrations" OWNER TO miniflux;
ALTER TABLE public."schema_version" OWNER TO miniflux;
ALTER TABLE public."sessions" OWNER TO miniflux;
ALTER TABLE public."user_sessions" OWNER TO miniflux;
ALTER TABLE public."users" OWNER TO miniflux;
ALTER SEQUENCE public."api_keys_id_seq" OWNER TO miniflux;
ALTER SEQUENCE public."categories_id_seq" OWNER TO miniflux;
ALTER SEQUENCE public."enclosures_id_seq" OWNER TO miniflux;
ALTER SEQUENCE public."entries_id_seq" OWNER TO miniflux;
ALTER SEQUENCE public."feeds_id_seq" OWNER TO miniflux;
ALTER SEQUENCE public."icons_id_seq" OWNER TO miniflux;
ALTER SEQUENCE public."sessions_id_seq" OWNER TO miniflux;
ALTER SEQUENCE public."users_id_seq" OWNER TO miniflux; |
Beta Was this translation helpful? Give feedback.
-
I can also confirm that this is because of missing permissions. Do you think that adding operator friendly message will mitigate this issue for not happening in the future? |
Beta Was this translation helpful? Give feedback.
-
Hello,
I have migrated my Miniflux 2.0.36 instance of off managed PostgreSQL. I guess I successfully ran
pg_restore
without errors. Then I modified/etc/miniflux.conf
and I setDATABASE_URL
as a valid URI. However, Miniflux unit did not work properly but reporting thisThe table returns,
For future reference, I used following command to restore the PostgreSQL dump
If I set
RUN_MIGRATION=1
, then PostgreSQL returns asschema_version
exists. I have feeling that this report is related tov2/database/database.go
Lines 71 to 78 in ab3fdf5
I tried to give information what you might need. Please directly ping me when you write a comment.
Thanks for this great project.
Beta Was this translation helpful? Give feedback.
All reactions