<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>I tried to run the launcher as described in the docs. But I am
still getting errors when running
<a class="moz-txt-link-freetext" href="http://localhost/apps/Visualizer/">http://localhost/apps/Visualizer/</a></p>
<p>Firefox console:</p>
<p>-------------------------------<br>
</p>
<p>1. when setting sessionManagerURL in html set to
vtkWeb.properties.sessionManagerURL:</p>
<p>POST <br>
XHR <br>
<a class="moz-txt-link-freetext" href="http://localhost/paraview/">http://localhost/paraview/</a> [HTTP/1.1 503 Service Unavailable 48ms]<br>
Object { error: "The process did not properly start.…" }
Visualizer:42:13</p>
<p><br>
</p>
<p>2. when setting sessionManagerURL in html to
<a class="moz-txt-link-freetext" href="http://localhost:8080/paraview">http://localhost:8080/paraview</a>:</p>
<p>Firefox can't establish a connection to the server at
<a class="moz-txt-link-freetext" href="ws://localhost/ws">ws://localhost/ws</a>. autobahn.min.js:114:0<br>
null Visualizer:42:13<br>
No launcher found. Attempting to connect using the direct WS url.
vtkweb-all.js:4456:19<br>
Use of getPreventDefault() is deprecated. Use defaultPrevented
instead. jquery-1.8.3.min.js:2:0<br>
Cross-Origin Request Blocked: The Same Origin Policy disallows
reading the remote resource at <a class="moz-txt-link-freetext" href="http://localhost:8080/paraview">http://localhost:8080/paraview</a>.
(Reason: CORS header 'Access-Control-Allow-Origin' missing).
<unknown><br>
GET <br>
<a class="moz-txt-link-freetext" href="http://localhost/ws">http://localhost/ws</a> [HTTP/1.1 404 Not Found 12ms]<br>
null</p>
<p><br>
</p>
<p>So the launcher can't start the pv webserver? But running
<a class="moz-txt-link-freetext" href="http://localhost:8080/paraview/1">http://localhost:8080/paraview/1</a> in browser works but says:
{"error": "No session with id: 1"}<br>
</p>
<p><br>
</p>
<p>My apache config:</p>
<p>-----------------------------<br>
</p>
<p><VirtualHost *:80><br>
ServerName localhost<br>
ServerAdmin <a class="moz-txt-link-abbreviated" href="mailto:info@seoaachen.de">info@seoaachen.de</a><br>
DocumentRoot
/home/daniel/salome_meca/V2016/prerequisites/Paraview-v501_EDF/share/paraview-5.0/www<br>
ErrorLog "logs/pv-error_log"<br>
CustomLog "logs/pv-access_log" common<br>
### The following commented lines could be useful when running<br>
### over https and wss:<br>
# SSLEngine On<br>
# SSLCertificateFile /etc/apache2/ssl/your_certificate.crt<br>
# SSLCertificateKeyFile /etc/apache2/ssl/your_domain_key.key<br>
# SSLCertificateChainFile /etc/apache2/ssl/DigiCertCA.crt<br>
#<br>
# <Location ${MY-DOCUMENT-ROOT} ><br>
# SSLRequireSSL On<br>
# SSLVerifyClient optional<br>
# SSLVerifyDepth 1<br>
# SSLOptions +StdEnvVars +StrictRequire<br>
# </Location><br>
# Have Apache pass these requests to the launcher :9000<br>
ProxyPass /paraview <a class="moz-txt-link-freetext" href="http://localhost:8080/paraview">http://localhost:8080/paraview</a><br>
# Turn on the rewrite engine<br>
RewriteEngine On<br>
# This is the path the mapping file Jetty creates<br>
RewriteMap session-to-port txt:/home/daniel/proxy.txt<br>
# This is the rewrite condition. Look for anything with a
sessionId= in the query part of the URL and capture the value to
use below.<br>
RewriteCond %{QUERY_STRING} ^sessionId=(.*)$ [NC]<br>
# This does the rewrite using the mapping file and the
sessionId<br>
RewriteRule ^/proxy.*$ <a class="moz-txt-link-freetext" href="ws://$">ws://$</a>{session-to-port:%1}/ws [P]<br>
<Directory
"/home/daniel/salome_meca/V2016/prerequisites/Paraview-v501_EDF/share/paraview-5.0/www"><br>
Options Indexes FollowSymLinks<br>
Order allow,deny<br>
Allow from all<br>
AllowOverride None<br>
Require all granted<br>
</Directory><br>
</VirtualHost></p>
<p><br>
</p>
<p><br>
</p>
<p>my launcher.json</p>
<p>----------------------------<br>
</p>
<p> "configuration": {<br>
"host" : "localhost",<br>
<br>
"port" : 8080,<br>
"endpoint": "paraview", <br>
"content": "/.../www", <br>
"proxy_file" : "/home/daniel/proxy.txt", <br>
"sessionURL":
<a class="moz-txt-link-rfc2396E" href="ws://localhost/proxy?sessionId=${id}">"ws://localhost/proxy?sessionId=${id}"</a>,<br>
<br>
"timeout" : 25, <br>
"log_dir" : "/home/daniel", <br>
"upload_dir" : "/home/daniel", <br>
"fields" : ["file", "host", "port", "updir"] <br>
},<br>
</p>
<p><br>
</p>
<p>What am I doing wrong?</p>
<p><br>
</p>
<pre class="moz-signature" cols="72">Daniel Zuidinga
Dipl.-Ing.
SEO Aachen
Passstr. 5
52070 Aachen
Tel : 0241 / 450 912 67
E-Mail: <a class="moz-txt-link-abbreviated" href="mailto:info@seoaachen.de">info@seoaachen.de</a>
Web : <a class="moz-txt-link-freetext" href="http://www.seoaachen.de">http://www.seoaachen.de</a> (nur zum Teil aktuell)
Xing : <a class="moz-txt-link-freetext" href="https://www.xing.com/profile/Daniel_Zuidinga">https://www.xing.com/profile/Daniel_Zuidinga</a>
Bald online: Software Tools für Konstrukteure und Bauteilhersteller
<a class="moz-txt-link-freetext" href="http://www.engineeringonline.de">http://www.engineeringonline.de</a></pre>
<div class="moz-cite-prefix">Am 22.08.2016 um 22:32 schrieb
Sebastien Jourdain:<br>
</div>
<blockquote
cite="mid:CABObKxfFNcGOG0cm6AYgXBOb3VrdzS+d_XiWxTh_s-iPHy_5Ug@mail.gmail.com"
type="cite">
<div dir="ltr">Hi Daniel,
<div class="gmail_extra"><br>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">I
want to use paraview web with SSL. As far as I understand
I need apache as a proxy server for that? Or is it
possible with pvpython?<br>
</blockquote>
<div><br>
</div>
<div>It might be possible with pvpython, but I've never done
it, I've always used apache to rely on a single opened
port and handle the encryption. </div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">I
have my own launcher which opens pvpython with a different
port for each user. Is this the right way? Will this work
with ssl?<br>
</blockquote>
<div><br>
</div>
<div>If pvpython directly support the wss connection, you
can be good. Usually the setup, that I do is that I have
Apache serving only the port 443 (https) for both the
static content and the (wss) websocket endpoint. And I use
a mapping file between the Websocket endpoint that get
returned by my launcher and the host/port I should connect
to on the backend to establish the link between the client
and the actual ParaViewWeb server instance.</div>
<div><br>
</div>
<div>But that does not mean, that's the only way to do it
and if you don't mind having several port open, I don't
see why it could not work.</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Concerning:<br>
<br>
<a moz-do-not-send="true"
href="https://kitware.github.io/visualizer/docs/"
rel="noreferrer" target="_blank">https://kitware.github.io/visu<wbr>alizer/docs/</a><br>
<br>
The web visuailzer should work via npm installation? It
does not work for me:<br>
C:\Users\danie\AppData\Roaming<wbr>\npm\node_modules\pvw-visualiz<wbr>er\bin\pvw-visualizer-cli.js:<wbr>41<br>
var pvPythonExecs = find(paraview).filter(function<wbr>(file)
{ return file.match(/pvpython$/) ||
file.match(/pvpython.exe$/); });<br>
^<br>
<br>
TypeError: find(...).filter is not a function<br>
at Object.<anonymous>
(C:\Users\danie\AppData\Roamin<wbr>g\npm\node_modules\pvw-visuali<wbr>zer\bin\pvw-visualizer-cli.js:<wbr>41:36)<br>
at Module._compile (module.js:409:26)<br>
at Object.Module._extensions..js (module.js:416:10)<br>
at Module.load (module.js:343:32)<br>
at Function.Module._load (module.js:300:12)<br>
at Function.Module.runMain (module.js:441:10)<br>
at startup (node.js:139:18)<br>
at node.js:968:3<br>
</blockquote>
<div><br>
</div>
<div>Well, I guess I haven't tried to run the new Visualizer
server on a Windows machine. </div>
<div>But with ParaView 5.2 (yet to be released), we should
have a ParaViewWeb back in the binaries. So we should make
sure our Visualizer command line tool work on that
platform as well.</div>
<div>Although, the command line is more for beginners than
anything else as it only simplify the demo usage. In real
word deployment, with a launcher, the true pvpython
command line should be used instead.</div>
<div><br>
</div>
<div>Here is an example of what you should see in a working
environment:</div>
<div><br>
</div>
<div>
<div>$ Visualizer -d ~/Downloads/</div>
<div><br>
</div>
<div>===============================================================================</div>
<div>| Execute:</div>
<div>| $ /Applications/paraview.app/Contents/bin/pvpython</div>
<div>| -dr</div>
<div>|
/Users/seb/Documents/code/Web2/visualizer/server/pvw-visualizer.py</div>
<div>| --content</div>
<div>| /Users/seb/Documents/code/Web2/visualizer/dist</div>
<div>| --port</div>
<div>| 8080</div>
<div>| --data</div>
<div>| /Users/seb/Downloads/</div>
<div>===============================================================================</div>
<div><br>
</div>
<div>[...]</div>
<div><br>
</div>
-- <br>
Daniel Zuidinga<br>
Dipl.-Ing.<br>
<br>
SEO Aachen<br>
Passstr. 5<br>
52070 Aachen<br>
<br>
Tel : 0241 / 450 912 67<br>
E-Mail: <a moz-do-not-send="true"
href="mailto:info@seoaachen.de" target="_blank">info@seoaachen.de</a><br>
Web : <a moz-do-not-send="true"
href="http://www.seoaachen.de" rel="noreferrer"
target="_blank">http://www.seoaachen.de</a> (nur zum
Teil aktuell)<br>
Xing : <a moz-do-not-send="true"
href="https://www.xing.com/profile/Daniel_Zuidinga"
rel="noreferrer" target="_blank">https://www.xing.com/profile/D<wbr>aniel_Zuidinga</a><br>
<br>
Bald online: Software Tools für Konstrukteure und
Bauteilhersteller<br>
<a moz-do-not-send="true"
href="http://www.engineeringonline.de" rel="noreferrer"
target="_blank">http://www.engineeringonline.d<wbr>e</a><br>
<br>
______________________________<wbr>_________________<br>
Powered by <a moz-do-not-send="true"
href="http://www.kitware.com" rel="noreferrer"
target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a
moz-do-not-send="true"
href="http://www.kitware.com/opensource/opensource.html"
rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki
at: <a moz-do-not-send="true"
href="http://paraview.org/Wiki/ParaView"
rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaV<wbr>iew</a><br>
<br>
Search the list archives at: <a moz-do-not-send="true"
href="http://markmail.org/search/?q=ParaView"
rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a moz-do-not-send="true"
href="http://public.kitware.com/mailman/listinfo/paraview"
rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/paraview</a><br>
</div>
</div>
<br>
</div>
</div>
</blockquote>
<br>
</body>
</html>