Tensorboard: 404 on some images and fonts behind proxy

Created on 23 Feb 2019  路  6Comments  路  Source: tensorflow/tensorboard

I am using tensorboard behind a proxy at www.domain.com/tensorboard and it is making requests to paths such as www.domain.com/font-roboto/... and www.domain.com/tf-interactive-inference-dashboard/...

Can these be changed to have the /tensorboard prefix? FWIW, the --path_prefix option does not add the prefix to these urls.

For bug reports, please include the following:

  • TensorBoard version (from pip package, also printed out when running tensorboard): 1.12.2
  • TensorFlow version if different from TensorBoard: 1.12.0
  • OS Platform and version (e.g., Linux Ubuntu 16.04): Ubuntu 18.04
  • Python version (e.g. 2.7, 3.5): 3.6.7
  • For browser-related issues:

    • Browser type and version (e.g. Chrome 64.0.3282.140)

    • Screenshot if it's a visual issue

Please describe the bug as clearly as possible, and if possible provide a minimal example (code, data, and/or command line) to reproduce the issue. Thanks!

frontend awaiting tensorflower bug

Most helpful comment

The issue with font remains in 2.2.0. Also the profile plugin doesn't respect --path_prefix.

All 6 comments

I found the webfiles.zip in the python package installation and copied over font-roboto and tf-interactive-inference-dashboard to the root website so that nginx can serve these static files. But there is also a trace_viewer_index.html and I'm not sure if it is ok for nginx to serve that too.

Thanks for the report. The --path_prefix flag was broken in our 1.12 release, the imminent 1.13.0 release contains https://github.com/tensorflow/tensorboard/pull/1623 which I believe will fix this.

You can try this out by uninstalling tensorboard and installing our nightly build tb-nightly instead.

If for some reason that doesn't fix the issue, comment here and we can reopen and investigate.

Can repro on 1.13.0: tensorboard --logdir=x --path_prefix=/foo then
navigate to http://localhost:6006/foo/, and note that the UI is in
sans-serif rather than Roboto (probably doesn鈥檛 repro if you have Roboto
or Roboto-Regular as a system font). The JS routing was indeed fixed in

1623, and the What-If Tool鈥檚 images were fixed in #1738, but the fonts

are a separate issue; the CSS always loads from root:

https://github.com/tensorflow/tensorboard/blob/5c384acb499ecc33e992ebb7c8cca56775a249f7/third_party/fonts.bzl#L425

Hmm, thanks for catching this. Maybe we can just omit the leading / for those urls?

Any progress on this issue? Seem still not resolved in 2.0.1

The issue with font remains in 2.2.0. Also the profile plugin doesn't respect --path_prefix.

Was this page helpful?
0 / 5 - 0 ratings