Dashboard not loading with Cythonized Scheduler
See original GitHub issueThis appears to have started recently. Possibly related to PR ( https://github.com/dask/distributed/pull/4651 ) ( cc @crusaderky )? In particular loading the dashboard shows a 500 error. Locally the following exception comes up when the Scheduler is Cythonized. The issue does not occur when pure Python is used.
cc @quasiben
What happened:
distributed.utils - ERROR - object.__new__(distributed.scheduler.MemoryState) is not safe, use distributed.scheduler.MemoryState.__new__()
Traceback (most recent call last):
File "/Users/jkirkham/Developer/distributed/distributed/utils.py", line 668, in log_errors
yield
File "/Users/jkirkham/Developer/distributed/distributed/dashboard/components/scheduler.py", line 296, in update
meminfo = self.scheduler.memory
File "distributed/scheduler.py", line 1913, in distributed.scheduler.SchedulerState.memory.__get__
File "distributed/scheduler.py", line 330, in distributed.scheduler.MemoryState.sum
TypeError: object.__new__(distributed.scheduler.MemoryState) is not safe, use distributed.scheduler.MemoryState.__new__()
What you expected to happen:
Minimal Complete Verifiable Example:
import webbrowser
from dask.distributed import Client
client = Client()
webbrowser.open(client.cluster.dashboard_link)
Anything else we need to know?:
Environment:
- Dask version: 2021.04.1
- Python version: 3.8.8
- Operating System: macOS
- Install method (conda, pip, source): Conda
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
Publish Cython build · Issue #4442 · dask/distributed - GitHub
The Cython work seems mature enough that we might want to make it more publicly ... Dashboard not loading with Cythonized Scheduler #4760....
Read more >Dask dashboard not starting when starting scheduler with api
Firstly, even when starting the scheduler within a python process, you may wish to consider using LocalCluster : cluster = dask.distributed.
Read more >Livestream: Accelerating the Dask Scheduler - Coiled
As we'll see in the post, there are ways to solve this problem. ... can be accessed in the “Profile” tab in Dask's...
Read more >Scheduling - Dask documentation
This scheduler was made first and is the default. It is simple and cheap to use, although it can only be used on...
Read more >Re: Problem with scheduled dashboard - Splunk Community
Did someone has the same problem and could fix it with an upgrade to a newer version of splunk? Or, does someone have...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Alright, I tried in a fresh env and was able to reproduce the 500 error
Fixed with PR ( https://github.com/dask/distributed/pull/4761 ). Also CI is now covering Cythonization correctly ( https://github.com/dask/distributed/pull/4764 ). Closing this out