Skip to content
Discussion options

You must be logged in to vote

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…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@alspires
Comment options

@dosubot
Comment options

Answer selected by alspires
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant