FeatureFuel
1

Bulk uploads from the web UI fail behind HTTP/2 reverse proxies, and a bigger DB pool doesn't scale

Source: paperless-ngx/paperless-ngx#14826 · opened by @Stadicus
Follow-up to #14788, which was closed as "not a bug". I agree the root cause is pool sizing versus concurrency, not HTTP/2 itself. I still think the behaviour deserves attention, because most self-hosters will run into it. What happens Paperless-ngx 3.4.1 behind Traefik (HTTP/2, the default in Traefik and Caddy). I dropped about 200 PDFs into "Upload" in the web UI. 182 of them failed with "HTTP error: 500" (psycopg_pool.PoolTimeout after 30 s, pool.max_size=20). The web UI starts all uploads at once. Over HTTP/1.1 the browser caps this at 6 connections per host, so it works. Over HTTP/2 every upload arrives in parallel. Who is affected Anyone who runs Paperless behind a modern HTTPS reverse proxy, which is the recommended setup. Only users who reach Paperless directly or over HTTP/1.1 are protected, and only by accident. What we tried • Bigger pool: helps for a few hundred files, but doesn't scale. Every web worker holds its own pool, a…

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