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.

Dashboard not loading with Cythonized Scheduler

See original GitHub issue

This 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:

Screen Shot 2021-04-27 at 5 24 17 PM
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:closed
  • Created 2 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jrbourbeaucommented, Apr 28, 2021

Alright, I tried in a fresh env and was able to reproduce the 500 error

0reactions
jakirkhamcommented, Apr 29, 2021

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

Read more comments on GitHub >

github_iconTop 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 >

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