Skip to content

miniflux: Workaround a packaging bug with DB connection

The latest version of miniflux can't connect to the database after a fresh installation. This is due to incorrect ownership of /etc/miniflux/database file which is owned by root (and correctly having the permissions 0600). After changes in bug #1078416, miniflux no longer runs as root user and instead runs as miniflux user. This user can't read the database file. The daemon silently falls back to using built in defaults and fails to connect to PostgreSQL database. This is originally caught by functional tests in FreedomBox's miniflux integration.

Links:

  1. https://bugs.debian.org/1081562
  2. go-team/packages/miniflux!2 (closed)

Tests:

  • Freshly install miniflux with the patch and the daemon is running. Ownership for the file /etc/miniflux/database is as expected.

  • Install miniflux without the patch. Daemon is not running. Apply patch and restart service. miniflux app is updated. Daemon is running. Ownership for the file /etc/miniflux/database is as expected.

Signed-off-by: default avatarSunil Mohan Adapa sunil@medhas.org

Merge request reports

Loading