-
|
Hi all, I've been using Ragflow without any issues until I upgraded to v0.21.0, but after changing to this tag, I get the exception "psycopg2.ProgrammingError: invalid dsn: invalid connection option "max_retries"" every time our container starts. We are using an AWS hosted psql instance for DB transactions. These are the logs: Could anyone give me a hand in figuring this one out, please? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
This error is caused by Ragflow v0.21.0 introducing new database connection options, specifically 'max_retries' and 'retry_delay', which are not valid parameters for psycopg2 (the PostgreSQL driver). These options were incorrectly passed to psycopg2.connect, resulting in the "invalid connection option 'max_retries'" exception. The fix, implemented in a later update, is to use a custom database class that removes these parameters before connecting to PostgreSQL, mirroring the MySQL implementation. To resolve this on v0.21.0, you can either remove 'max_retries' and 'retry_delay' from your PostgreSQL connection configuration, or upgrade to a version where the fix is present and these parameters are handled correctly. More details and the fix are described in this pull request. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
This error is caused by Ragflow v0.21.0 introducing new database connection options, specifically 'max_retries' and 'retry_delay', which are not valid parameters for psycopg2 (the PostgreSQL driver). These options were incorrectly passed to psycopg2.connect, resulting in the "invalid connection option 'max_retries'" exception. The fix, implemented in a later update, is to use a custom database class that removes these parameters before connecting to PostgreSQL, mirroring the MySQL implementation.
To resolve this on v0.21.0, you can either remove 'max_retries' and 'retry_delay' from your PostgreSQL connection configuration, or upgrade to a version where the fix is present and these parame…