Exception while creating PDO object: role »www-data« does not exist

I’m running tt-rss for years without problems, but after the latest update (git pull origin master) I only get the following error:

Exception while creating PDO object:SQLSTATE[08006] [7] FATAL: role »www-data« does not exist

I’m wondering why “www-data”. In config.php I have set DB_USER as ttrss.


tt-rss version (including git commit id):

  • branch master → FETCH_HEAD
    2ae0b7059…46e650622 master → origin/master

Platform (i.e. Linux distro, PHP, PostgreSQL, etc) versions:
Devuan Beowulf, PHP 7.3, Postgresql 11

Had the same problem, you need to migrate your config file:

https://community.tt-rss.org/t/rip-config-php-hello-classes-config-php/4337

Thank you that solved it.