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.
Comments
Similar requests
[Feature Request] Optional WebSocket heartbeat to keep status connections alive behind reverse proxies / CDNs
1 vote · 0 comments
[Feature Request] Bulk splits of document
4 votes · 0 comments
[Feature Request] Bulk action "Link" to link the selected documents to each other
1 vote · 0 comments
[Feature Request] Being able to enable secure session cookies
1 vote · 0 comments
[Feature Request] add crossorigin="use-credentials" to manifest link - Web manifest blocked behind auth proxies –
1 vote · 0 comments
No comments yet.