Interactive commands return 504 code
Closed this issue · 2 comments
n0nuser commented
Executing top
with a timeout of 100 seconds returns a 504 code.
Nginx log:
2022/05/17 17:08:20 [error] 22#22: *566 upstream timed out (110: Operation timed out) while reading response header from upstream, client: 192.168.1.1, server: monitor, request: "POST /host/1123254cab4022cab11a1b9f33e79c18b9ece2a5/execute/ HTTP/1.1", upstream: "http://172.18.0.3:8000/host/1123254cab4022cab11a1b9f33e79c18b9ece2a5/execute/", host: "nonuser.onthewifi.com", referrer: "http://nonuser.onthewifi.com/host/1123254cab4022cab11a1b9f33e79c18b9ece2a5/execute/"
192.168.1.1 - - [17/May/2022:17:08:20 +0000] "POST /host/1123254cab4022cab11a1b9f33e79c18b9ece2a5/execute/ HTTP/1.1" 504 167 "http://nonuser.onthewifi.com/host/1123254cab4022cab11a1b9f33e79c18b9ece2a5/execute/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0"
2022/05/17 17:19:07 [error] 23#23: *641 upstream timed out (110: Operation timed out) while reading response header from upstream, client: 192.168.1.1, server: monitor, request: "POST /host/a881fb101a6626460dd690838eb019a91525acdb/execute/ HTTP/1.1", upstream: "http://172.18.0.3:8000/host/a881fb101a6626460dd690838eb019a91525acdb/execute/", host: "nonuser.onthewifi.com", referrer: "http://nonuser.onthewifi.com/host/a881fb101a6626460dd690838eb019a91525acdb/execute/"
192.168.1.1 - - [17/May/2022:17:19:07 +0000] "POST /host/a881fb101a6626460dd690838eb019a91525acdb/execute/ HTTP/1.1" 504 167 "http://nonuser.onthewifi.com/host/a881fb101a6626460dd690838eb019a91525acdb/execute/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0"
2022/05/17 18:46:53 [error] 23#23: *1000 upstream timed out (110: Operation timed out) while reading response header from upstream, client: 192.168.1.1, server: monitor, request: "POST /host/1123254cab4022cab11a1b9f33e79c18b9ece2a5/execute/ HTTP/1.1", upstream: "http://172.18.0.3:8000/host/1123254cab4022cab11a1b9f33e79c18b9ece2a5/execute/", host: "nonuser.onthewifi.com", referrer: "http://nonuser.onthewifi.com/host/1123254cab4022cab11a1b9f33e79c18b9ece2a5/execute/"
192.168.1.1 - - [17/May/2022:18:46:53 +0000] "POST /host/1123254cab4022cab11a1b9f33e79c18b9ece2a5/execute/ HTTP/1.1" 504 167 "http://nonuser.onthewifi.com/host/1123254cab4022cab11a1b9f33e79c18b9ece2a5/execute/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0"
2022/05/17 18:47:54 [warn] 23#23: *1000 an upstream response is buffered to a temporary file /var/cache/nginx/proxy_temp/1/00/0000000001 while reading upstream, client: 192.168.1.1, server: monitor, request: "GET /host/1123254cab4022cab11a1b9f33e79c18b9ece2a5/execute/ HTTP/1.1", upstream: "http://172.18.0.3:8000/host/1123254cab4022cab11a1b9f33e79c18b9ece2a5/execute/", host: "nonuser.onthewifi.com", referrer: "http://nonuser.onthewifi.com/host/1123254cab4022cab11a1b9f33e79c18b9ece2a5/execute/"
Apparently the agent sent the info accordingly: POST 135275 bytes with a 200 response.
n0nuser commented
n0nuser commented
Check Nginx Deployment in Uvicorn docs.