question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Solution] 500 Internal Server Error due to tensorboard update

See original GitHub issue

Some info redacted.

Uncaught exception POST /api/tensorboard?XXXX
    HTTPServerRequest(protocol='http', host='', method='POST', uri='/api/tensorboard?XXXX', version='HTTP/1.1', remote_ip='')
    Traceback (most recent call last):
      File "/opt/conda/lib/python3.6/site-packages/tornado/web.py", line 1701, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/opt/conda/lib/python3.6/site-packages/tornado/web.py", line 3178, in wrapper
        return method(self, *args, **kwargs)
      File "/opt/conda/lib/python3.6/site-packages/jupyter_tensorboard/api_handlers.py", line 40, in post
        .new_instance(data["logdir"], reload_interval=reload_interval)
      File "/opt/conda/lib/python3.6/site-packages/jupyter_tensorboard/tensorboard_manager.py", line 221, in new_instance
        purge_orphaned_data=purge_orphaned_data)
      File "/opt/conda/lib/python3.6/site-packages/jupyter_tensorboard/tensorboard_manager.py", line 44, in create_tb_app
        return application.standard_tensorboard_wsgi(
    AttributeError: module 'tensorboard.backend.application' has no attribute 'standard_tensorboard_wsgi'

After some digging around, latest version of tensorboard does not have that attribute in error above: https://github.com/tensorflow/tensorboard/blob/master/tensorboard/backend/application.py

The latest one I saw was tensorboard==2.2

https://github.com/tensorflow/tensorboard/blob/2.2/tensorboard/backend/application.py .

Simple solution would be to tell users to pip install tensorboard==2.2.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:3
  • Comments:9

github_iconTop GitHub Comments

1reaction
RW21commented, Jan 14, 2021

Are the new patches going to be merged into this branch?

0reactions
mgomesborgescommented, Mar 15, 2021

For me it is working correctly using the following configuration (with TensorFlow 2.4.1 installed):

# Keep compatibility with jupyterlab_tensorboard
# jupyterlab==2.2.9 < 3.x
pip install jupyterlab==2.2.9 jupyterlab_widgets ipywidgets

# Tensorboard
pip install tensorboard==2.4.1 tensorboard_plugin_profile jupyter-tensorboard==0.2.0
jupyter labextension install jupyterlab_tensorboard --no-build

jupyter lab clean
jupyter lab build

jupyter labextension list
Read more comments on GitHub >

github_iconTop Results From Across the Web

[Solution] 500 Internal Server Error due to tensorboard update
Some info redacted. Uncaught exception POST /api/tensorboard?XXXX HTTPServerRequest(protocol='http', host='', method='POST', ...
Read more >
Tensorboard Invalid response: 500 Internal Server Error in ...
Currently, the easiest way to fix it will be to use a lower version of Tensorboard. The latest version where TensorBoardWSGI is available...
Read more >
How to Fix a 500 Internal Server Error on Your WordPress Site
The 500 Internal Server Error status code occurs when the server encounters an error that prevents it from fulfilling the request.
Read more >
Internal Server Error" on Amazon SageMaker - AWS
When I run an Amazon SageMaker processing, training, or prediction job, the request fails with the response "HTTP Error 500: Internal Server ......
Read more >
[Solved] Jupyter Notebook - 500 : Internal Server Error
I checked the Internet and found that the status code 500 means: the server encountered an unexpected error and made an error. What...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found