[Paraview] WebSocket connection failed: Error during WebSocket handshake: Unexpected response code: 404

Gabriel Álvarez Castro gabriel.alvarez at usc.es
Tue Mar 15 12:04:57 EDT 2016


Ok, in our case Paraview and “launcher” are in the same machine. But we have “two machines” launching configuration and perhaps “localhost” points to “lo” network interface instead “eth0”, and doesn’t work. With ${launcher_IP} is ok…

 

Thanks again,

 

                               Gabriel.

 

 

De: Sebastien Jourdain [mailto:sebastien.jourdain at kitware.com] 
Enviado el: martes, 15 de marzo de 2016 15:56
Para: Gabriel Álvarez Castro
CC: paraview at paraview.org
Asunto: Re: [Paraview] WebSocket connection failed: Error during WebSocket handshake: Unexpected response code: 404

 

localhost should work for the launcher unless you have several network interface.

 

Moreover, you can use the launcher to issue ssh command to start paraview on other machines, in which case the host, is not the paraview one.

 

Would it make more sense if ${launcher_hostname_or_ip_or_localhost}?

 

Seb

 

On Tue, Mar 15, 2016 at 7:03 AM, Gabriel Álvarez Castro <gabriel.alvarez at usc.es> wrote:

Hi,

 

We needed to change:

“configuration”:

“host”: “localhost”

by:

“configuration”:

“host”: “${Paraview_IP}”

 

In the launcher configuration file in order to get it working. It would be neccesary to correct it in updated documentation?

 

 

Regards,

 

                               Gabriel.

 

 

De: Sebastien Jourdain [mailto:sebastien.jourdain at kitware.com] 
Enviado el: lunes, 14 de marzo de 2016 18:08


Para: Gabriel Álvarez Castro
CC: paraview at paraview.org
Asunto: Re: [Paraview] WebSocket connection failed: Error during WebSocket handshake: Unexpected response code: 404

 

Thanks for your feedback and I'm glad that's working as expected now.

 

The updated version of that documentation is now available here:

 

http://kitware.github.io/paraviewweb/docs/guides/launching_examples.html

 

On Mon, Mar 14, 2016 at 9:39 AM, Gabriel Álvarez Castro <gabriel.alvarez at usc.es> wrote:

Hi,

 

                It’s working now! Thank you very much. I tryed to configure it as explained in http://paraviewweb.kitware.com/#!/guide/launching_examples “two machines”, but I understood “sessionURL” referred to the “launcher machine". Perhaps, it is not enough explained in the guide...

 

Thanks a lot. Regards,

 

                               Gabriel.

 

 

De: Sebastien Jourdain [mailto:sebastien.jourdain at kitware.com] 
Enviado el: lunes, 14 de marzo de 2016 15:28


Para: Gabriel Álvarez Castro
CC: paraview at paraview.org
Asunto: Re: [Paraview] WebSocket connection failed: Error during WebSocket handshake: Unexpected response code: 404

 

Your launcher config should be as follow:

 

"sessionURL": "ws://${ApacheHost_or_IP}:8088/proxy?sessionId=${id}",

 

Assuming that /var/visor/mapping/proxy.txt is the same file (network shared) with /mnt/nfs/mapping/proxy.txt.

 

Seb

 

On Mon, Mar 14, 2016 at 2:57 AM, Gabriel Álvarez Castro <gabriel.alvarez at usc.es> wrote:

Hi,

 

                No problem. I am attaching my Apache and launcher configurations… The VirtualHost is defined in front-end machine, and launcher configuration file of the second machine.

 

Regards,

 

                               Gabriel.

 

 

De: Sebastien Jourdain [mailto:sebastien.jourdain at kitware.com] 
Enviado el: viernes, 11 de marzo de 2016 16:03
Para: Gabriel Álvarez Castro
CC: paraview at paraview.org
Asunto: Re: [Paraview] WebSocket connection failed: Error during WebSocket handshake: Unexpected response code: 404

 

Hi Gabriel,

 

do you mind sharing (privately if you prefer) your apache config as well as your launcher config?

 

Thanks,

 

Seb

 

On Fri, Mar 11, 2016 at 4:12 AM, Gabriel Álvarez Castro <gabriel.alvarez at usc.es> wrote:

Hi:

 

We've installed ParaviewWeb 5.0 in a configuration of two machines: Apache on one machine (Ubuntu 14.04), and the launcher and the ParaViewWeb processes on a second machine (Ubuntu 15.10). We've the problem that when trying to access the Visualizer ('Post-processing' link at index.html) the '.../apps/Visualizer' tab opens but we receive the error 'WebSocket connection failed: Error during WebSocket handshake: Unexpected response code: 404'. We've tested before the same ParaviewWeb only in one machine (Ubuntu 15.10) and it worked fine. Could someone help us please?

 

Regards:

 

Gabriel.

 

 


_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview

 

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160315/b5c737d6/attachment.html>


More information about the ParaView mailing list