Skip to content

Cannot connect to server in Open OnDemand  #130

Open

Description

@jasonleekungfu

High-level description

I am trying to develop an Open OnDemand (OOD) app for ParaViewWeb (Visualizer, Divvy, Lite). I was able to create a Singularity image with ParaView 5.12.1 (headless) package and a working OOD app running this image. I was able to successfully submit a job on cluster, and see ParaViewWeb service correctly running. However, when I tried to connect to Visualizer, the "Loading ParaView" logo flashed and disappeared. Nothing happens. Similar issue also happened to Divvy and Lite, presumably somehow the app was not correctly talking to the service.

I tried ssh tunneling from local machine to the node and was able to successfully launch the app in browser by visiting "localhost". So it looks like the service is correctly running. But OOD was not able to talk to it correctly.

Steps to reproduce

This is the line to run the service once job starts (port is correct):
singularity exec -B /work,/project,/usr/local/packages,/var/scratch /project/containers/images/paraviewweb-5.12.1.sif pvpython -m paraview.apps.visualizer --host 0.0.0.0 --port ${port} --timeout 0 -d

Detailed behavior

This is the output (debug) once a job starts:

image

When I tried to connect it in OOD, nothing changed in above output. As I described before, in browser, the "Loading ParaView" logo flashed and disappeared. The page is blank.

When I set up ssh tunneling and visited "localhost", the app was successfully launched. And I see below debug output:

image

So it looks like in OOD, it was unable to correctly talk to the service.

Expected behavior

OOD should be able to launch the app in browser.

Environment

  • Visualizer: (Whatever version comes with ParaView 5.12.1 headless egl)
  • OS: RHEL 8.1
  • Browser: Chrome

Activity

  1. jasonleekungfu commented on Nov 16, 2024

    @jasonleekungfu
    Author

    Any help is appreciated. Thank you very much!

  2. jourdain commented on Nov 16, 2024

    @jourdain
    Collaborator

    I'm really not sure what could be happening. Any log in the browser dev console? In the network tab of the dev console? That might give us a hint on what could be happening.

    I'll be at SuperComputing in Altlanta next week in case you or someone from your team wants to chat.

  3. jasonleekungfu commented on Nov 17, 2024

    @jasonleekungfu
    Author

    Thank you for the prompt response. I will have to try it again and see if I find anything in dev console.

    I am at SC as well. What is the best way to connect?

  4. jourdain commented on Nov 17, 2024

    @jourdain
    Collaborator
  5. jasonleekungfu commented on Nov 17, 2024

    @jasonleekungfu
    Author

    Great! Will do! Thank you very much!

    BTW I just checked and it looks like an issue with ws:

    Visualizer.js:1 Mixed Content: The page at 'https://ondemand.qbd.loni.org/XXX/XXX/XXXXX/index.html' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://ondemand.qbd.loni.org/ws'. This request has been blocked; this endpoint must be available over WSS.

    Any thoughts on this?

  6. jasonleekungfu commented on Nov 18, 2024

    @jasonleekungfu
    Author

    Oh great! It worked! Thank you very much!

    I read through the thread. Well I guess I will find you at your booth anyways. :) Thank you very much!

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