FeatureFuel
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.

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests