<div dir="ltr">Hi all,<div><br></div><div>My name is Dmitry Duplyakin. I am a PhD student helping to build a ParaViewWeb system at University of Chicago.</div><div><br></div><div><div>We are building ParaView 4.1.0 (with OSMesa) on Amazon EC2 Ubuntu 12.04 instances.</div>
<div><br></div></div><div>We have verified that PV builds without errors and that PVW launcher is functioning (new entries are added to the proxy file, vis sessions are created and are listening to ports in the specified range, etc.)</div>
<div><br></div><div>We are trying to visualize a simple cone: </div><div>(added app in launch.json)</div><div>"cone"<span class="">: </span><span class="">{</span>"cmd"<span class="">: </span><span class="">[</span>"${python_exec}"<span class="">, </span>"/pv/src/VTK/Web/Applications/Cone/server/vtk_web_cone.py"<span class="">, </span>"--port"<span class="">, </span>"${port}"<span class="">]}}</span><span class="">,</span></div>
<div><br></div><div>We have verified that vtk_web_cone.py actually gets called. In order to test it, we used /pv/www/apps/TestApp/index.html as a template and created /pv/www/apps/Cone/index.html where we have:</div><div>
...<br> var config = {<br> sessionManagerURL: vtkWeb.properties.sessionManagerURL,<br> application: "cone"<br> };</div><div>...</div><div><br></div><div>Now when we access this app via a browser at: http://<hostname>/apps/Cone/ we either get a timeout or "connection can't be established" message.<br>
</div><div><br></div><div>In the apache error log we see: </div><div><div>[Sun Jul 20 16:04:15 2014] [error] [client 128.135.188.231] proxy: Error reading from remote server returned by /paraview/, referer: <a href="http://54.211.22.94/apps/Cone/">http://54.211.22.94/apps/Cone/</a></div>
<div>[Sun Jul 20 16:04:15 2014] [error] [client 128.135.188.231] File does not exist: /pv/www/ws</div></div>
<div><br></div><div>It appears that it has do to with Apache configuration, where we have:</div><div><div>ProxyPass /paraview <a href="http://localhost:8080/paraview">http://localhost:8080/paraview</a></div><div>ProxyPassReverse /paraview <a href="http://localhost:8080/paraview">http://localhost:8080/paraview</a></div>
<div>RewriteEngine On</div><div>RewriteMap session-to-port txt:/pv/conf/proxy.conf</div>RewriteCond %{QUERY_STRING} ^sessionId=(.*)$ [NC]<br>RewriteRule ^/proxy.*$ ws://${session-to-port:%1}/ws [P]<br><br>Do these Rewrite commands look right? How can their actions be logged and verified?</div>
<div><br></div><div>Do we actually need ProxyPassReverse here?<br></div><div><br></div><div>Is it possible that we are missing a module or some additional configuration in Apache?</div><div><div># apachectl -t -D DUMP_MODULES</div>
<div>...</div><div> proxy_module (shared)</div><div> proxy_http_module (shared)</div><div> proxy_wstunnel_module (shared)</div><div> rewrite_module (shared)</div><div>...</div><div>Syntax OK</div></div><div><br></div><div>
Any debugging advice?</div><div><br></div><div>Your help will be much appreciated and will allow to move forward with our isntallation.</div><div><br></div><div>-------------------------------------------------------------------------------<div dir="ltr">
<div><br></div><div>Dmitry Duplyakin </div><div>PhD student, CS at University of Colorado - Boulder</div></div></div><div> </div></div>