temporalio / ui

Temporal UI
https://docs.temporal.io/web-ui
MIT License
157 stars 59 forks source link

TEMPORAL_UI_PUBLIC_PATH not working on version 2.27.0 #2095

Closed chrism417 closed 1 week ago

chrism417 commented 1 week ago

Describe the bug

When setting TEMPORAL_UI_PUBLIC_PATH to a custom path, like /temporal per the documentation here, I cannot access the UI fromsomedomain.com/temporal, accessing the url by port-forwarding and going to http://localhost:8080/temporal doesn't load, despite 200's.

To Reproduce

  1. Set TEMPORAL_UI_PUBLIC_PATH to a custom path, like /temporal
  2. Port-forward to the temporal-web service, and go to http://localhost:/temporal

Expected behavior

When setting TEMPORAL_UI_PUBLIC_PATH to a custom path, like /temporal per the documentation here, I can access the UI fromsomedomain.com/temporal

Screenshots

The UI isn't accessible at all., despite getting 200's on the URLs: image

Desktop (please complete the following information):

Additional context This is running on kubernetes version 1.27.7, temporalio/ui:2.27.0.

logs:

{"time":"2024-05-08T13:06:57.942992027Z","id":"","remote_ip":"127.0.0.1","host":"localhost:8080","method":"GET","uri":"/temporal/_app/immutable/entry/start.32-2mPFG.js","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36","status":200,"error":"","latency":953203,"latency_human":"953.203µs","bytes_in":0,"bytes_out":68}
{"time":"2024-05-08T13:06:57.94394993Z","id":"","remote_ip":"127.0.0.1","host":"localhost:8080","method":"GET","uri":"/temporal/_app/immutable/chunks/entry.K0blCIxy.js","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36","status":200,"error":"","latency":1650105,"latency_human":"1.650105ms","bytes_in":0,"bytes_out":27197}
{"time":"2024-05-08T13:06:57.975028829Z","id":"","remote_ip":"127.0.0.1","host":"localhost:8080","method":"GET","uri":"/temporal/_app/immutable/chunks/index.G2Max4V_.js","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36","status":200,"error":"","latency":1874006,"latency_human":"1.874006ms","bytes_in":0,"bytes_out":5205}
{"time":"2024-05-08T13:06:58.002710918Z","id":"","remote_ip":"127.0.0.1","host":"localhost:8080","method":"GET","uri":"/temporal/_app/immutable/entry/app.80o4ikeL.js","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36","status":200,"error":"","latency":1103304,"latency_human":"1.103304ms","bytes_in":0,"bytes_out":30197}
{"time":"2024-05-08T13:06:58.003620021Z","id":"","remote_ip":"127.0.0.1","host":"localhost:8080","method":"GET","uri":"/temporal/_app/immutable/chunks/scheduler.78ThUSKQ.js","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36","status":200,"error":"","latency":1903307,"latency_human":"1.903307ms","bytes_in":0,"bytes_out":10098}
{"time":"2024-05-08T13:06:58.029020302Z","id":"","remote_ip":"127.0.0.1","host":"localhost:8080","method":"GET","uri":"/temporal/_app/immutable/chunks/control.pJ1mnnAb.js","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36","status":200,"error":"","latency":221201,"latency_human":"221.201µs","bytes_in":0,"bytes_out":336}
{"time":"2024-05-08T13:06:58.029471803Z","id":"","remote_ip":"127.0.0.1","host":"localhost:8080","method":"GET","uri":"/temporal/_app/immutable/chunks/paths.il28oM-G.js","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36","status":200,"error":"","latency":631302,"latency_human":"631.302µs","bytes_in":0,"bytes_out":174}
chrism417 commented 1 week ago

Looks like this has been broken since upgrading from 2.24.0 to 2.25.0: https://github.com/temporalio/ui-server/compare/v2.24.0...v2.25.0 PR #1903

Alex-Tideman commented 1 week ago

https://github.com/temporalio/ui/pull/2103