Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

an upstream response is buffered to a temporary file #176

Open
3 tasks done
newadventure079 opened this issue Jun 7, 2022 · 2 comments
Open
3 tasks done

an upstream response is buffered to a temporary file #176

newadventure079 opened this issue Jun 7, 2022 · 2 comments

Comments

@newadventure079
Copy link

newadventure079 commented Jun 7, 2022

Support guidelines

I've found a bug and checked that ...

  • ... the documentation does not mention anything about my problem
  • ... there are no open or closed issues that are related to my problem

Description

Once I got to more than 2,000 torrents added to rtorrent, I started seeing a ton of these messages

2022-06-07T22:12:20.774061877Z  stdout  2022/06/07 16:12:20 [warn] 1012#1012: *81634 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006300 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T22:12:11.251924542Z  stdout  2022/06/07 16:12:11 [info] 1007#1007: *81632 client 172.17.0.1 closed keepalive connection
2022-06-07T22:12:11.016052232Z  stdout  2022/06/07 16:12:11 [warn] 1007#1007: *81632 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006299 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T22:10:50.759956431Z  stdout  2022/06/07 16:10:50 [warn] 1007#1007: *81615 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006298 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T22:10:41.313785112Z  stdout  2022/06/07 16:10:41 [info] 1012#1012: *81613 client 172.17.0.1 closed keepalive connection
2022-06-07T22:10:41.031093427Z  stdout  2022/06/07 16:10:41 [warn] 1012#1012: *81613 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006297 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T22:09:20.747350840Z  stdout  2022/06/07 16:09:20 [warn] 1012#1012: *81596 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006296 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T22:09:11.280185543Z  stdout  2022/06/07 16:09:11 [info] 1007#1007: *81594 client 172.17.0.1 closed keepalive connection
2022-06-07T22:09:11.002763379Z  stdout  2022/06/07 16:09:11 [warn] 1007#1007: *81594 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006295 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T22:07:50.728472969Z  stdout  2022/06/07 16:07:50 [warn] 1007#1007: *81577 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006294 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T22:07:41.251523167Z  stdout  2022/06/07 16:07:41 [info] 1012#1012: *81575 client 172.17.0.1 closed keepalive connection
2022-06-07T22:07:40.974530582Z  stdout  2022/06/07 16:07:40 [warn] 1012#1012: *81575 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006293 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T22:06:11.263568339Z  stdout  2022/06/07 16:06:11 [info] 1007#1007: *81556 client 172.17.0.1 closed keepalive connection
2022-06-07T22:06:10.982648528Z  stdout  2022/06/07 16:06:10 [warn] 1007#1007: *81556 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006292 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T22:04:41.207695094Z  stdout  2022/06/07 16:04:41 [info] 1007#1007: *81498 client 172.17.0.1 closed keepalive connection
2022-06-07T22:04:40.924099826Z  stdout  2022/06/07 16:04:40 [warn] 1007#1007: *81498 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006291 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T22:03:20.620843724Z  stdout  2022/06/07 16:03:20 [warn] 1007#1007: *81486 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006290 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T22:03:11.166315611Z  stdout  2022/06/07 16:03:11 [info] 1012#1012: *81479 client 172.17.0.1 closed keepalive connection
2022-06-07T22:03:10.914718858Z  stdout  2022/06/07 16:03:10 [warn] 1012#1012: *81479 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006289 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T22:01:50.613430471Z  stdout  2022/06/07 16:01:50 [warn] 1010#1010: *81467 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006288 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T22:01:41.145704405Z  stdout  2022/06/07 16:01:41 [info] 1007#1007: *81460 client 172.17.0.1 closed keepalive connection
2022-06-07T22:01:40.894679701Z  stdout  2022/06/07 16:01:40 [warn] 1007#1007: *81460 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006287 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T22:00:20.593553736Z  stdout  2022/06/07 16:00:20 [warn] 1007#1007: *81448 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006286 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T22:00:11.142201796Z  stdout  2022/06/07 16:00:11 [info] 1012#1012: *81441 client 172.17.0.1 closed keepalive connection
2022-06-07T22:00:10.872656686Z  stdout  2022/06/07 16:00:10 [warn] 1012#1012: *81441 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006285 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T21:58:50.581014924Z  stdout  2022/06/07 15:58:50 [warn] 1008#1008: *81429 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006284 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T21:58:40.941908988Z  stdout  2022/06/07 15:58:40 [info] 1008#1008: *81422 client 172.17.0.1 closed keepalive connection
2022-06-07T21:58:40.680724796Z  stdout  2022/06/07 15:58:40 [warn] 1008#1008: *81422 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006283 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T21:57:20.556860444Z  stdout  2022/06/07 15:57:20 [warn] 1012#1012: *81410 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006282 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T21:57:10.918641794Z  stdout  2022/06/07 15:57:10 [info] 1008#1008: *81403 client 172.17.0.1 closed keepalive connection
2022-06-07T21:57:10.665068680Z  stdout  2022/06/07 15:57:10 [warn] 1008#1008: *81403 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006281 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T21:55:40.925094487Z  stdout  2022/06/07 15:55:40 [info] 1012#1012: *81384 client 172.17.0.1 closed keepalive connection

Expected behaviour

No errors or warnings should be shown and the image should be able to handle a large amount of torrents

Actual behaviour

2022-06-07T22:12:20.774061877Z  stdout  2022/06/07 16:12:20 [warn] 1012#1012: *81634 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006300 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T22:12:11.251924542Z  stdout  2022/06/07 16:12:11 [info] 1007#1007: *81632 client 172.17.0.1 closed keepalive connection
2022-06-07T22:12:11.016052232Z  stdout  2022/06/07 16:12:11 [warn] 1007#1007: *81632 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006299 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T22:10:50.759956431Z  stdout  2022/06/07 16:10:50 [warn] 1007#1007: *81615 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006298 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T22:10:41.313785112Z  stdout  2022/06/07 16:10:41 [info] 1012#1012: *81613 client 172.17.0.1 closed keepalive connection
2022-06-07T22:10:41.031093427Z  stdout  2022/06/07 16:10:41 [warn] 1012#1012: *81613 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006297 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T22:09:20.747350840Z  stdout  2022/06/07 16:09:20 [warn] 1012#1012: *81596 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006296 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T22:09:11.280185543Z  stdout  2022/06/07 16:09:11 [info] 1007#1007: *81594 client 172.17.0.1 closed keepalive connection
2022-06-07T22:09:11.002763379Z  stdout  2022/06/07 16:09:11 [warn] 1007#1007: *81594 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006295 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T22:07:50.728472969Z  stdout  2022/06/07 16:07:50 [warn] 1007#1007: *81577 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006294 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T22:07:41.251523167Z  stdout  2022/06/07 16:07:41 [info] 1012#1012: *81575 client 172.17.0.1 closed keepalive connection
2022-06-07T22:07:40.974530582Z  stdout  2022/06/07 16:07:40 [warn] 1012#1012: *81575 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006293 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T22:06:11.263568339Z  stdout  2022/06/07 16:06:11 [info] 1007#1007: *81556 client 172.17.0.1 closed keepalive connection
2022-06-07T22:06:10.982648528Z  stdout  2022/06/07 16:06:10 [warn] 1007#1007: *81556 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006292 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T22:04:41.207695094Z  stdout  2022/06/07 16:04:41 [info] 1007#1007: *81498 client 172.17.0.1 closed keepalive connection
2022-06-07T22:04:40.924099826Z  stdout  2022/06/07 16:04:40 [warn] 1007#1007: *81498 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006291 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T22:03:20.620843724Z  stdout  2022/06/07 16:03:20 [warn] 1007#1007: *81486 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006290 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T22:03:11.166315611Z  stdout  2022/06/07 16:03:11 [info] 1012#1012: *81479 client 172.17.0.1 closed keepalive connection
2022-06-07T22:03:10.914718858Z  stdout  2022/06/07 16:03:10 [warn] 1012#1012: *81479 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006289 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T22:01:50.613430471Z  stdout  2022/06/07 16:01:50 [warn] 1010#1010: *81467 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006288 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T22:01:41.145704405Z  stdout  2022/06/07 16:01:41 [info] 1007#1007: *81460 client 172.17.0.1 closed keepalive connection
2022-06-07T22:01:40.894679701Z  stdout  2022/06/07 16:01:40 [warn] 1007#1007: *81460 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006287 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T22:00:20.593553736Z  stdout  2022/06/07 16:00:20 [warn] 1007#1007: *81448 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006286 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T22:00:11.142201796Z  stdout  2022/06/07 16:00:11 [info] 1012#1012: *81441 client 172.17.0.1 closed keepalive connection
2022-06-07T22:00:10.872656686Z  stdout  2022/06/07 16:00:10 [warn] 1012#1012: *81441 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006285 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T21:58:50.581014924Z  stdout  2022/06/07 15:58:50 [warn] 1008#1008: *81429 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006284 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T21:58:40.941908988Z  stdout  2022/06/07 15:58:40 [info] 1008#1008: *81422 client 172.17.0.1 closed keepalive connection
2022-06-07T21:58:40.680724796Z  stdout  2022/06/07 15:58:40 [warn] 1008#1008: *81422 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006283 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T21:57:20.556860444Z  stdout  2022/06/07 15:57:20 [warn] 1012#1012: *81410 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006282 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T21:57:10.918641794Z  stdout  2022/06/07 15:57:10 [info] 1008#1008: *81403 client 172.17.0.1 closed keepalive connection
2022-06-07T21:57:10.665068680Z  stdout  2022/06/07 15:57:10 [warn] 1008#1008: *81403 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006281 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T21:55:40.925094487Z  stdout  2022/06/07 15:55:40 [info] 1012#1012: *81384 client 172.17.0.1 closed keepalive connection

Steps to reproduce

Add a large amount of torrents, between 2,000 and 5,000
Observe log messages showing nginx struggling

Docker info

Client:
 Context:    default
 Debug Mode: false

Server:
 Containers: 10
  Running: 10
  Paused: 0
  Stopped: 0
 Images: 10
 Server Version: 20.10.3
 Storage Driver: btrfs
  Build Version: Btrfs v4.0
  Library Version: 101
 Logging Driver: db
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs db fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 3fa00912415f3e9c6f82dd72119179d599efd13b
 runc version: 31cc25f16f5eba4d0f53e35374532873744f4b31
 init version: ed96d00 (expected: de40ad0)
 Security Options:
  apparmor
 Kernel Version: 4.4.180+
 OSType: linux
 Architecture: x86_64
 CPUs: 8
 Total Memory: 31.32GiB
 Name: DiskStation
 ID: TKJ6:OOPS:DLHP:LVJL:CDWA:JLVD:6O3A:OMQI:BHGE:VN4V:B7LE:JBLE
 Docker Root Dir: /volume3/@docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: No kernel memory TCP limit support
WARNING: No cpu cfs quota support
WARNING: No cpu cfs period support
WARNING: No blkio weight support
WARNING: No blkio weight_device support
WARNING: No blkio throttle.read_bps_device support
WARNING: No blkio throttle.write_bps_device support
WARNING: No blkio throttle.read_iops_device support
WARNING: No blkio throttle.write_iops_device support

Version

docker-compose version 1.28.5, build 24fb474e
Linux DiskStation 4.4.180+ #42661 SMP Fri Apr 1 15:31:10 CST 2022 x86_64 GNU/Linux synology_v1000_1821+

Docker compose

n/a

Container logs

2022-06-07T22:12:20.774061877Z  stdout  2022/06/07 16:12:20 [warn] 1012#1012: *81634 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006300 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T22:12:11.251924542Z  stdout  2022/06/07 16:12:11 [info] 1007#1007: *81632 client 172.17.0.1 closed keepalive connection
2022-06-07T22:12:11.016052232Z  stdout  2022/06/07 16:12:11 [warn] 1007#1007: *81632 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006299 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T22:10:50.759956431Z  stdout  2022/06/07 16:10:50 [warn] 1007#1007: *81615 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006298 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T22:10:41.313785112Z  stdout  2022/06/07 16:10:41 [info] 1012#1012: *81613 client 172.17.0.1 closed keepalive connection
2022-06-07T22:10:41.031093427Z  stdout  2022/06/07 16:10:41 [warn] 1012#1012: *81613 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006297 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T22:09:20.747350840Z  stdout  2022/06/07 16:09:20 [warn] 1012#1012: *81596 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006296 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T22:09:11.280185543Z  stdout  2022/06/07 16:09:11 [info] 1007#1007: *81594 client 172.17.0.1 closed keepalive connection
2022-06-07T22:09:11.002763379Z  stdout  2022/06/07 16:09:11 [warn] 1007#1007: *81594 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006295 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T22:07:50.728472969Z  stdout  2022/06/07 16:07:50 [warn] 1007#1007: *81577 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006294 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T22:07:41.251523167Z  stdout  2022/06/07 16:07:41 [info] 1012#1012: *81575 client 172.17.0.1 closed keepalive connection
2022-06-07T22:07:40.974530582Z  stdout  2022/06/07 16:07:40 [warn] 1012#1012: *81575 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006293 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T22:06:11.263568339Z  stdout  2022/06/07 16:06:11 [info] 1007#1007: *81556 client 172.17.0.1 closed keepalive connection
2022-06-07T22:06:10.982648528Z  stdout  2022/06/07 16:06:10 [warn] 1007#1007: *81556 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006292 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T22:04:41.207695094Z  stdout  2022/06/07 16:04:41 [info] 1007#1007: *81498 client 172.17.0.1 closed keepalive connection
2022-06-07T22:04:40.924099826Z  stdout  2022/06/07 16:04:40 [warn] 1007#1007: *81498 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006291 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T22:03:20.620843724Z  stdout  2022/06/07 16:03:20 [warn] 1007#1007: *81486 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006290 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T22:03:11.166315611Z  stdout  2022/06/07 16:03:11 [info] 1012#1012: *81479 client 172.17.0.1 closed keepalive connection
2022-06-07T22:03:10.914718858Z  stdout  2022/06/07 16:03:10 [warn] 1012#1012: *81479 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006289 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T22:01:50.613430471Z  stdout  2022/06/07 16:01:50 [warn] 1010#1010: *81467 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006288 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T22:01:41.145704405Z  stdout  2022/06/07 16:01:41 [info] 1007#1007: *81460 client 172.17.0.1 closed keepalive connection
2022-06-07T22:01:40.894679701Z  stdout  2022/06/07 16:01:40 [warn] 1007#1007: *81460 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006287 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T22:00:20.593553736Z  stdout  2022/06/07 16:00:20 [warn] 1007#1007: *81448 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006286 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T22:00:11.142201796Z  stdout  2022/06/07 16:00:11 [info] 1012#1012: *81441 client 172.17.0.1 closed keepalive connection
2022-06-07T22:00:10.872656686Z  stdout  2022/06/07 16:00:10 [warn] 1012#1012: *81441 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006285 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T21:58:50.581014924Z  stdout  2022/06/07 15:58:50 [warn] 1008#1008: *81429 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006284 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T21:58:40.941908988Z  stdout  2022/06/07 15:58:40 [info] 1008#1008: *81422 client 172.17.0.1 closed keepalive connection
2022-06-07T21:58:40.680724796Z  stdout  2022/06/07 15:58:40 [warn] 1008#1008: *81422 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006283 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T21:57:20.556860444Z  stdout  2022/06/07 15:57:20 [warn] 1012#1012: *81410 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006282 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T21:57:10.918641794Z  stdout  2022/06/07 15:57:10 [info] 1008#1008: *81403 client 172.17.0.1 closed keepalive connection
2022-06-07T21:57:10.665068680Z  stdout  2022/06/07 15:57:10 [warn] 1008#1008: *81403 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000006281 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:8000"
2022-06-07T21:55:40.925094487Z  stdout  2022/06/07 15:55:40 [info] 1012#1012: *81384 client 172.17.0.1 closed keepalive connection

Additional info

I've had this same issue with another docker image and increasing some nginx variables fixed it but I dont see any nginx configs in this image

@newadventure079
Copy link
Author

newadventure079 commented Jun 7, 2022

I also see client prematurely closed connection in the logs

2022-06-07T20:00:55.397868184Z	stdout	2022/06/07 14:00:55 [info] 1081#1081: *52063 epoll_wait() reported that client prematurely closed connection, so upstream connection is closed too while sending request to upstream, client: 172.17.0.1, server: , request: "POST /plugins/httprpc/action.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm7.sock:", host: "diskstation.local:9087", referrer: "http://diskstation.local:9087/"
2022-06-07T19:45:14.454338908Z	stdout	2022/06/07 13:45:14 [warn] 1079#1079: *51892 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000000108 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:10004"
2022-06-07T18:59:31.893869615Z	stdout	2022/06/07 12:59:31 [info] 1086#1086: *51445 epoll_wait() reported that client prematurely closed connection, so upstream connection is closed too while sending request to upstream, client: 172.17.0.1, server: , request: "POST /plugins/httprpc/action.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm7.sock:", host: "diskstation.local:9087", referrer: "http://diskstation.local:9087/"
2022-06-07T06:25:24.957150436Z	stdout	2022/06/07 00:25:24 [info] 1086#1086: *44905 epoll_wait() reported that client prematurely closed connection, so upstream connection is closed too while sending request to upstream, client: 172.17.0.1, server: , request: "POST /plugins/httprpc/action.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm7.sock:", host: "diskstation.local:9087", referrer: "http://diskstation.local:9087/"
2022-06-07T00:57:39.824056822Z	stdout	2022/06/06 18:57:39 [info] 1081#1081: *41871 epoll_wait() reported that client prematurely closed connection, so upstream connection is closed too while sending request to upstream, client: 172.17.0.1, server: , request: "POST /plugins/httprpc/action.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm7.sock:", host: "diskstation.local:9087", referrer: "http://diskstation.local:9087/"
2022-06-06T23:51:10.740124260Z	stdout	2022/06/06 17:51:10 [info] 1086#1086: *41194 epoll_wait() reported that client prematurely closed connection, so upstream connection is closed too while sending request to upstream, client: 172.17.0.1, server: , request: "POST /plugins/httprpc/action.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm7.sock:", host: "diskstation.local:9087", referrer: "http://diskstation.local:9087/"
2022-06-06T22:59:27.904921365Z	stdout	2022/06/06 16:59:27 [info] 1080#1080: *40670 epoll_wait() reported that client prematurely closed connection, so upstream connection is closed too while sending request to upstream, client: 172.17.0.1, server: , request: "POST /plugins/httprpc/action.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm7.sock:", host: "diskstation.local:9087", referrer: "http://diskstation.local:9087/"
2022-06-06T22:58:03.344877501Z	stdout	2022/06/06 16:58:03 [warn] 1086#1086: *40641 an upstream response is buffered to a temporary file /tmp/nginx-fastcgi/0000000107 while reading upstream, client: 172.17.0.1, server: , request: "POST /plugins/httprpc/action.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm7.sock:", host: "diskstation.local:9087", referrer: "http://diskstation.local:9087/"
2022-06-06T21:24:04.498161460Z	stdout	2022/06/06 15:24:04 [warn] 1086#1086: *39686 an upstream response is buffered to a temporary file /tmp/nginx-scgi/0000000106 while reading upstream, client: 172.17.0.1, server: , request: "POST /RPC2 HTTP/1.1", upstream: "scgi://unix:/var/run/rtorrent/scgi.socket:", host: "172.17.0.1:10004"

@newadventure079
Copy link
Author

This is still happening but I was able to reduce the amount of messages/timeouts

I've since seen that I had forgotten to include

--ulimit nproc=65535
--ulimit nofile=32000:40000

from the docker compose file. I had originally just set this up in the Synology GUI. I recreated this container with the ulimit commands and it's helped a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant