1
[Feature Request] add waiting-for-db loop to the install script
Source: paperless-ngx/paperless-ngx#12809 · opened by @rosonaeldred
Description
To resolve the issues with the database taking too long to initialize and dumping unhelpful errors ( See: and let's adjust the script to wait and see if the database is ready.
Details:
Replace the fixed database startup sleep with an active readiness loop to reduce unnecessary wait time while keeping slow systems reliable.
• Add a database readiness function with configurable timeout and poll interval.
• Start DB container, then poll every few seconds until it reports ready.
• Use pg_isready for PostgreSQL and mariadb-admin ping for MariaDB.
• Exit early as soon as DB is ready instead of always waiting a fixed duration.
• Fail with a clear timeout error if readiness is not reached within the limit.
• This improves install speed on fast hosts and avoids brittle fixed-delay behavior.
Lines 426 -430 then become
where
Other
I have this working on my own computer, can open a pull request.
To resolve the issues with the database taking too long to initialize and dumping unhelpful errors ( See: and let's adjust the script to wait and see if the database is ready.
Details:
Replace the fixed database startup sleep with an active readiness loop to reduce unnecessary wait time while keeping slow systems reliable.
• Add a database readiness function with configurable timeout and poll interval.
• Start DB container, then poll every few seconds until it reports ready.
• Use pg_isready for PostgreSQL and mariadb-admin ping for MariaDB.
• Exit early as soon as DB is ready instead of always waiting a fixed duration.
• Fail with a clear timeout error if readiness is not reached within the limit.
• This improves install speed on fast hosts and avoids brittle fixed-delay behavior.
Lines 426 -430 then become
where
Other
I have this working on my own computer, can open a pull request.
No pledges yet. Be the first to back this.
Comments
Similar requests
[Feature Request] Preserve original file when pre-consume script modifies document (garbled PDF text detection)
4 votes · 0 comments
[Feature Request] Custom Action Buttons (Direct Workflow Triggers)
20 votes · 0 comments
[Feature Request] Check for duplicates after running a pre consume script
5 votes · 0 comments
Clarify PostgreSQL credentials in the Docker installation documentation
1 vote · 0 comments
[Feature Request] Allow greater control over password requirements
1 vote · 0 comments
No comments yet.