truecharts / public

Community Helm Chart Repository
https://truecharts.org
GNU Affero General Public License v3.0
1.14k stars 617 forks source link

OpenSpeedTest does not report upload properly behind Traefik #10520

Closed DGamesta closed 1 year ago

DGamesta commented 1 year ago

App Name

OpenSpeedTest

SCALE Version

22.12.2

App Version

latest_4.0.25

Application Events

No Recent Events.

Application Logs

## Nothing useful ##

2023-07-04 03:05:44.309463+00:002023/07/03 23:05:44 [notice] 13#13: using the "epoll" event method
2023-07-04 03:05:44.309501+00:002023/07/03 23:05:44 [notice] 13#13: nginx/1.24.0
2023-07-04 03:05:44.309509+00:002023/07/03 23:05:44 [notice] 13#13: built by gcc 12.2.1 20220924 (Alpine 12.2.1_git20220924-r4) 
2023-07-04 03:05:44.309515+00:002023/07/03 23:05:44 [notice] 13#13: OS: Linux 5.15.107+truenas
2023-07-04 03:05:44.309525+00:002023/07/03 23:05:44 [notice] 13#13: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2023-07-04 03:05:44.309565+00:002023/07/03 23:05:44 [notice] 13#13: start worker processes
2023-07-04 03:05:44.309615+00:002023/07/03 23:05:44 [notice] 13#13: start worker process 15
2023-07-04 03:05:44.309693+00:002023/07/03 23:05:44 [notice] 13#13: start worker process 16
2023-07-04 03:05:44.309804+00:002023/07/03 23:05:44 [notice] 13#13: start worker process 17
2023-07-04 03:05:44.309969+00:002023/07/03 23:05:44 [notice] 13#13: start worker process 18

Application Configuration

Standard except for these changes:

Describe the bug

OpenSpeedTest will produce accurate results when accessed directed from the Load Balancer IP and port address, however once you try to access it behind Ingress through Traefik, the upload test will be hilariously wrong.

To Reproduce

  1. Switch Service Type over to Load Balancer for the purposes of this demonstration.
  2. Access OpenSpeedTest directly through LB IP:Port
  3. Run a speed test and observe accurate results.

  4. Access OpenSpeedTest behind Traefik with the Ingress FQDN for OpenSpeedTest
  5. Run a speed test and observe incorrect upload results.

Expected Behavior

Expected results would be for the same metrics to be returned regardless of how OpenSpeedTest app was accessed.

Screenshots

Accessing Directly with LB IP: Screenshot 2023-07-15 223712

Accessing it through Ingress behind Traefik: Screenshot 2023-07-15 2239142

Additional Context

I found https://github.com/truecharts/charts/issues/5633 which I believe is the same issue however it's closed. I'm not sure if this is just a case that the upstream needs to address or should TrueCharts make middleware changes to correct for this?

Anyways Cheers.

I've read and agree with the following

PrivatePuffin commented 1 year ago

I found #5633 which I believe is the same issue however it's closed

Same issue and not closed at all.