Hej
I migrated my Dolibarr 17 environment from a FreeBSD jail to Docker (via Portainer on TrueNAS Scale).
Everything looked fine at first. I started with an Apache setup but noticed that I get a timeout/ECONNRESET whenever the request body (a JSON string) sent to an API endpoint exceeds a certain size.
While debugging, I found that in restler.php, inside the getRequestStream() function, the script always gets stuck at streamcopyto_stream. It stops after the first 64 KB (exactly 65,536 bytes) and apparently never loads the next chunk.
I switched to Nginx, but the same issue occurs — except that the debugger doesn’t even trigger when the body is larger.
I’ve already tried different Docker networking modes: MACVLAN, IPVLAN, Host (Bridge!?).
I believe I’ve already adjusted every relevant parameter for Nginx, Apache, PHP, etc. It seems like the issue is happening on a layer above all of that.
Nothing has changed on the client side (a Node.js script that simply sends a large text payload via fetch).
Does anyone have an idea what else I could test or configure?
Thanks!