zenml-io / zenml

ZenML 🙏: Build portable, production-ready MLOps pipelines. https://zenml.io.
https://zenml.io
Apache License 2.0
3.79k stars 414 forks source link

[BUG]: Unable to forward traffic from nginx to zenml server #2412

Open lokeish opened 5 months ago

lokeish commented 5 months ago

Contact Details [Optional]

lokeshdesai7@gmail.com

System Information

INFO: 172.18.0.1:56104 - "GET / HTTP/1.1" 200 OK INFO: 172.18.0.1:55640 - "GET / HTTP/1.0" 200 OK INFO: 172.18.0.1:45452 - "GET / HTTP/1.0" 200 OK INFO: 172.18.0.1:48570 - "GET / HTTP/1.1" 200 OK INFO: 172.18.0.1:44500 - "GET / HTTP/1.0" 200 OK INFO: 172.18.0.1:44510 - "GET / HTTP/1.0" 200 OK

What happened?

I have created zenml server locally using docker, now i want to route the traffic from nginx proxy to zenml server, which is running lcoally. Getting blank ui in browser after mapping. Dont know how to solve this.

For example: https://abc/zenmlserver -> localhost:8080, zenml server is not providing required response. currently when i visit the above website i get below logs from zenml server

INFO: 172.18.0.1:56104 - "GET / HTTP/1.1" 200 OK INFO: 172.18.0.1:55640 - "GET / HTTP/1.0" 200 OK INFO: 172.18.0.1:45452 - "GET / HTTP/1.0" 200 OK INFO: 172.18.0.1:48570 - "GET / HTTP/1.1" 200 OK INFO: 172.18.0.1:44500 - "GET / HTTP/1.0" 200 OK INFO: 172.18.0.1:44510 - "GET / HTTP/1.0" 200 OK

Reproduction steps

  1. Spin up a zenml server in docker container
  2. Add your zenml server address in proxy server, to get traffic routing from outside(browser).
  3. Open browser and visit the website.

Relevant log output

INFO:     172.18.0.1:56104 - "GET / HTTP/1.1" 200 OK
INFO:     172.18.0.1:55640 - "GET / HTTP/1.0" 200 OK
INFO:     172.18.0.1:45452 - "GET / HTTP/1.0" 200 OK
INFO:     172.18.0.1:48570 - "GET / HTTP/1.1" 200 OK
INFO:     172.18.0.1:44500 - "GET / HTTP/1.0" 200 OK
INFO:     172.18.0.1:44510 - "GET / HTTP/1.0" 200 OK

Code of Conduct

stefannica commented 1 month ago

@lokeish thanks for reporting this. Would you be so kind as to share your nginx proxy configuration ? it could help us determine whether this is an nginx misconfiguration or a ZenML server one. Thanks in advance!