Skip to content

client dashboard 404 #3741

Closed
Closed

Description

@msmicker

With 2.15.0 of dask and dask distributed I now get 404 errors in the client dashboard. When downgrading, everything works fine. I am using a cluster.

Activity

  1. mrocklin commented on Apr 26, 2020

    @mrocklin
    Member

    Thank you for reporting. Were there any log messages that came out of the scheduler process?

  2. mrocklin commented on Apr 26, 2020

    @mrocklin
    Member

    Those will be helpful to determine what went wrong.

  3. jrbourbeau commented on Apr 28, 2020

    @jrbourbeau
    Member

    I'm going to close this issue for now as I suspect the 404 errors were related to #3746. @msmicker feel free to re-open if you're still experiencing issues

  4. msmicker commented on Apr 29, 2020

    @msmicker
    Author

    I still see this error with 2.15.1. @mrocklin apologies but how do I check distributed logs? I am not yet scheduling anything. Simply starting the cluster and client and then opening the dashboard.

    from dask_jobqueue import SGECluster
    from dask.distributed import Client
    
    cluster = SGECluster(...)
    
    cluster.adapt(minimum_jobs=5, maximum_jobs=150)
    
    client = Client(cluster)
    client

    client.get_scheduler_logs()

    (('INFO', 'distributed.scheduler - INFO - Clear task state'),
     ('INFO',
      'distributed.scheduler - INFO -   Scheduler at: tcp://157.206.230.212:38448'),
     ('INFO',
      'distributed.scheduler - INFO -   dashboard at:                     :8787'),
     ('INFO',
      'distributed.scheduler - INFO - Receive client connection: Client-cc91b07d-89c3-11ea-9dc8-94f128bfa670'),
     ('INFO',
      "distributed.scheduler - INFO - Register worker <Worker 'tcp://157.206.230.55:42049', name: 3, memory: 0, processing: 0>"),
     ('INFO',
      'distributed.scheduler - INFO - Starting worker compute stream, tcp://157.206.230.55:42049'),
     ('INFO',
      "distributed.scheduler - INFO - Register worker <Worker 'tcp://157.206.230.76:34078', name: 0, memory: 0, processing: 0>"),
     ('INFO',
      'distributed.scheduler - INFO - Starting worker compute stream, tcp://157.206.230.76:34078'),
     ('INFO',
      "distributed.scheduler - INFO - Register worker <Worker 'tcp://157.206.230.76:33739', name: 1, memory: 0, processing: 0>"),
     ('INFO',
      'distributed.scheduler - INFO - Starting worker compute stream, tcp://157.206.230.76:33739'),
     ('INFO',
      "distributed.scheduler - INFO - Register worker <Worker 'tcp://157.206.230.76:32793', name: 2, memory: 0, processing: 0>"),
     ('INFO',
      'distributed.scheduler - INFO - Starting worker compute stream, tcp://157.206.230.76:32793'),
     ('INFO',
      "distributed.scheduler - INFO - Register worker <Worker 'tcp://157.206.230.55:34488', name: 4, memory: 0, processing: 0>"),
     ('INFO',
      'distributed.scheduler - INFO - Starting worker compute stream, tcp://157.206.230.55:34488'))
    

    client.get_worker_logs()

    {'tcp://157.206.230.55:34488': (('INFO',
       'distributed.worker - INFO -       Start worker at: tcp://157.206.230.55:34488'),
      ('INFO',
       'distributed.worker - INFO -          Listening to: tcp://157.206.230.55:34488'),
      ('INFO',
       'distributed.worker - INFO -          dashboard at:       157.206.230.55:34286'),
      ('INFO',
       'distributed.worker - INFO - Waiting to connect to: tcp://157.206.230.212:38448'),
      ('INFO',
       'distributed.worker - INFO - -------------------------------------------------'),
      ('INFO',
       'distributed.worker - INFO -               Threads:                          1'),
      ('INFO',
       'distributed.worker - INFO -                Memory:                   24.00 GB'),
      ('INFO',
       'distributed.worker - INFO -       Local Directory: '),
      ('INFO',
       'distributed.worker - INFO - -------------------------------------------------'),
      ('INFO',
       'distributed.worker - INFO -         Registered to: tcp://157.206.230.212:38448'),
      ('INFO',
       'distributed.worker - INFO - -------------------------------------------------')),
     'tcp://157.206.230.55:42049': (('INFO',
       'distributed.worker - INFO -       Start worker at: tcp://157.206.230.55:42049'),
      ('INFO',
       'distributed.worker - INFO -          Listening to: tcp://157.206.230.55:42049'),
      ('INFO',
       'distributed.worker - INFO -          dashboard at:       157.206.230.55:39319'),
      ('INFO',
       'distributed.worker - INFO - Waiting to connect to: tcp://157.206.230.212:38448'),
      ('INFO',
       'distributed.worker - INFO - -------------------------------------------------'),
      ('INFO',
       'distributed.worker - INFO -               Threads:                          1'),
      ('INFO',
       'distributed.worker - INFO -                Memory:                   24.00 GB'),
      ('INFO',
       'distributed.worker - INFO -       Local Directory: '),
      ('INFO',
       'distributed.worker - INFO - -------------------------------------------------'),
      ('INFO',
       'distributed.worker - INFO -         Registered to: tcp://157.206.230.212:38448'),
      ('INFO',
       'distributed.worker - INFO - -------------------------------------------------')),
     'tcp://157.206.230.76:32793': (('INFO',
       'distributed.worker - INFO -       Start worker at: tcp://157.206.230.76:32793'),
      ('INFO',
       'distributed.worker - INFO -          Listening to: tcp://157.206.230.76:32793'),
      ('INFO',
       'distributed.worker - INFO -          dashboard at:       157.206.230.76:34934'),
      ('INFO',
       'distributed.worker - INFO - Waiting to connect to: tcp://157.206.230.212:38448'),
      ('INFO',
       'distributed.worker - INFO - -------------------------------------------------'),
      ('INFO',
       'distributed.worker - INFO -               Threads:                          1'),
      ('INFO',
       'distributed.worker - INFO -                Memory:                   24.00 GB'),
      ('INFO',
       'distributed.worker - INFO -       Local Directory: '),
      ('INFO',
       'distributed.worker - INFO - -------------------------------------------------'),
      ('INFO',
       'distributed.worker - INFO -         Registered to: tcp://157.206.230.212:38448'),
      ('INFO',
       'distributed.worker - INFO - -------------------------------------------------')),
     'tcp://157.206.230.76:33739': (('INFO',
       'distributed.worker - INFO -       Start worker at: tcp://157.206.230.76:33739'),
      ('INFO',
       'distributed.worker - INFO -          Listening to: tcp://157.206.230.76:33739'),
      ('INFO',
       'distributed.worker - INFO -          dashboard at:       157.206.230.76:37945'),
      ('INFO',
       'distributed.worker - INFO - Waiting to connect to: tcp://157.206.230.212:38448'),
      ('INFO',
       'distributed.worker - INFO - -------------------------------------------------'),
      ('INFO',
       'distributed.worker - INFO -               Threads:                          1'),
      ('INFO',
       'distributed.worker - INFO -                Memory:                   24.00 GB'),
      ('INFO',
       'distributed.worker - INFO -       Local Directory: '),
      ('INFO',
       'distributed.worker - INFO - -------------------------------------------------'),
      ('INFO',
       'distributed.worker - INFO -         Registered to: tcp://157.206.230.212:38448'),
      ('INFO',
       'distributed.worker - INFO - -------------------------------------------------')),
     'tcp://157.206.230.76:34078': (('INFO',
       'distributed.worker - INFO -       Start worker at: tcp://157.206.230.76:34078'),
      ('INFO',
       'distributed.worker - INFO -          Listening to: tcp://157.206.230.76:34078'),
      ('INFO',
       'distributed.worker - INFO -          dashboard at:       157.206.230.76:38661'),
      ('INFO',
       'distributed.worker - INFO - Waiting to connect to: tcp://157.206.230.212:38448'),
      ('INFO',
       'distributed.worker - INFO - -------------------------------------------------'),
      ('INFO',
       'distributed.worker - INFO -               Threads:                          1'),
      ('INFO',
       'distributed.worker - INFO -                Memory:                   24.00 GB'),
      ('INFO',
       'distributed.worker - INFO -       Local Directory: '),
      ('INFO',
       'distributed.worker - INFO - -------------------------------------------------'),
      ('INFO',
       'distributed.worker - INFO -         Registered to: tcp://157.206.230.212:38448'),
      ('INFO',
       'distributed.worker - INFO - -------------------------------------------------'))}
    
  5. mrocklin commented on Apr 29, 2020

    @mrocklin
    Member

    With SGECluster there may be a silence_logs=False keyword option. I don't remember exactly though.

  6. msmicker commented on May 6, 2020

    @msmicker
    Author

    @mrocklin just to check if logs I added via update were enough or should I try for more (e.g. with silence_logs=True)

  7. lenaWitterauf commented on May 7, 2020

    @lenaWitterauf

    I have the same problem. I'm using dask-jobqueue with a HTCondor Cluster.

  8. TomAugspurger commented on May 7, 2020

    @TomAugspurger
    Member

    @msmicker @lenaWitterauf can you try with 2.15.2? It includes a second fix that others have reported success with.

  9. lenaWitterauf commented on May 7, 2020

    @lenaWitterauf

    @TomAugspurger I just updated dask distributed to 2.15.2 and the dashboard worked! Thanks a lot :-)

  10. msmicker commented on May 8, 2020

    @msmicker
    Author

    Same, all is good with 2.15.2, thanks!

  11. elanmart commented on May 28, 2020

    @elanmart

    For anyone stumbling upon this issue by searching for dask dashboard 404:

    You will see 404 if you try to run it in an environment without bokeh installed.

  12. jrbourbeau commented on May 28, 2020

    @jrbourbeau
    Member

    Thanks for engaging @elanmart. There's an open PR (xref dask/dask#6215) to add a note to the docs about getting 404 errors when bokeh isn't installed. Hopefully that will help others running into this issue

  13. elanmart commented on May 28, 2020

    @elanmart

    @jrbourbeau oops, in that case apologies for adding noise, thanks for the reference!

  14. mrocklin commented on May 28, 2020

    @mrocklin
    Member
  15. 1 remaining item

  16. jrbourbeau commented on May 28, 2020

    @jrbourbeau
    Member

    That seems like a nice improvement @mrocklin. I've opened up a separate issue (xref #3836) for tracking

  17. ruslaniv commented on Jun 15, 2020

    @ruslaniv

    For anyone stumbling upon this issue by searching for dask dashboard 404:

    You will see 404 if you try to run it in an environment without bokeh installed.

    I have bokeh installed but unfortunately I'm still getting 404: Not Found when visiting dashboard address.

  18. relaxbox commented on Jun 16, 2020

    @relaxbox

    Same here:

    $ /deploy/env/bin/pip freeze | grep bokeh
    bokeh==2.1.0
    $ curl localhost:8787
    <html><title>404: Not Found</title><body>404: Not Found</body></html>
    
  19. relaxbox commented on Jun 16, 2020

    @relaxbox

    If it helps, this reliably reproduces it for me:

    $ virtualenv -p python3 dask
    $ source dask/bin/activate
    $ pip install 'dask[distributed,diagnostics]'
    $ pip freeze | grep bokeh
    bokeh==2.1.0
    $ pip freeze | grep dask
    dask==2.18.1
    $ dask-scheduler
    # localhost:8787 now 404s
    
  20. mrocklin commented on Jun 16, 2020

    @mrocklin
    Member

    Yes, reproduced. It looks like an internal function in bokeh moved in bokeh 2.1.0. I'll resolve this on our end. In the meantime, I recommend downgrading to bokeh 2.0.

    In the future, I also recommend raising a new issue rather than commenting on an old one, although the symptoms are the same as this old issue, the cause is entirely new.

  21. relaxbox commented on Jun 16, 2020

    @relaxbox

    Thanks! Apologies, the issue seemed pretty fresh.

  22. mrocklin commented on Jun 16, 2020

    @mrocklin
    Member

    No need to apologize, and thank you for providing explicit steps to reproduce. This is a serious issue and I thank you for catching and reporting it.

  23. added a commit that references this issue on Jun 16, 2020
  24. mrocklin commented on Jun 16, 2020

    @mrocklin
    Member

    OK, the critical fix is in here: #3904

    Additionally, it looks like there is a deserialiation warning here: #3905

  25. added a commit that references this issue on Jun 16, 2020
  26. CMCDragonkai commented on Oct 9, 2020

    @CMCDragonkai

    I'm seeing this as well, and I've got bokeh installed (distributed 2.18.0).

    Also shouldn't this issue be reopened?

  27. jrbourbeau commented on Oct 9, 2020

    @jrbourbeau
    Member

    @CMCDragonkai I'd recommend opening a new issue with a minimal reproducer

  28. ahuang11 commented on Nov 20, 2020

    @ahuang11
    Contributor

    Nevermind, upgrading distributed to 2.30 works!

    I am also getting this:
    image

    from dask.distributed import Client
    
    client = Client()
    client
    

    image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions