[Paraview] webserver write up

andrealphus andrealphus at gmail.com
Tue Nov 8 16:10:02 EST 2016


Version;
ParaView-5.2.0-RC3-Qt4-OpenGL2-MPI-Linux-64bit

changing the index fixed the application key issue so I can bring up;
mymachine/visualizer

(a blank grey static paraview box with no controls)

but not sure how I acutally get the paraview gui. from the old write up
mymachine/paraview would bring it up but this fails with a;
{"error": "id not provided in GET request"}


once I get this working, let me know if you want a modified version of the
writeup


relevant configs, sorry for the extended path locations...


startup.json

#!/bin/bash

export DISPLAY=:0.0
pvw_home=/home/ashton/Treetop/PROJECTS/LVC_modeling_group/paraview_webserver
$pvw_home/pv/pv-current/bin/pvpython
$pvw_home/pv/pv-current/lib/python2.7/site-packages/vtk/web/launcher.py
$pvw_home/pvw/conf/launcher.json &




001-pvw.conf

<VirtualHost *:80>
  ServerName   lanikai
  ServerAdmin  YOUR_EMAIL at COMPANY.COM
  DocumentRoot
/home/ashton/Treetop/PROJECTS/LVC_modeling_group/paraview_webserver/www

  #SSLEngine On
  #SSLCertificateFile /usr/local/share/ca-certificates/DOIRootCA.crt
  #SSLCertificateChainFile /usr/local/share/ca-certificates/DOIRootCA.crt

  ErrorLog
/home/ashton/Treetop/PROJECTS/LVC_modeling_group/paraview_webserver/logs/error.log
  CustomLog
/home/ashton/Treetop/PROJECTS/LVC_modeling_group/paraview_webserver/logs/access.log
combined

  <Directory
/home/ashton/Treetop/PROJECTS/LVC_modeling_group/paraview_webserver/www>
      Options Indexes FollowSymLinks
      Order allow,deny
      Allow from all
      AllowOverride None
      Require all granted
  </Directory>

  # Handle launcher forwarding
  ProxyPass /paraview http://localhost:8080/paraview

  # Handle WebSocket forwarding
  RewriteEngine On
  RewriteMap  session-to-port
 txt:/home/ashton/Treetop/PROJECTS/LVC_modeling_group/paraview_webserver/proxy.txt
  RewriteCond %{QUERY_STRING}  ^sessionId=(.*)$               [NC]
  RewriteRule ^/proxy.*$       ws://${session-to-port:%1}/ws  [P]
</VirtualHost>




launcher.json

  "resources": [ {"port_range": [9001, 9103], "host": "localhost"} ],
  "sessionData": {
    "updir":
"/home/ashton/Treetop/PROJECTS/LVC_modeling_group/paraview_webserver"
  },
  "configuration": {
    "log_dir":
"/home/ashton/Treetop/PROJECTS/LVC_modeling_group/paraview_webserver/pvw/logs",
    "host": "localhost",
    "endpoint": "paraview",
    "sessionURL": "ws://lanikai/proxy?sessionId=${id}&path=ws",
    "timeout": 25,
    "upload_dir":
"/home/ashton/Treetop/PROJECTS/LVC_modeling_group/paraview_webserver/pvw/upload",
    "fields": ["file", "host", "port", "updir"],
    "port": 8080,
    "proxy_file":
"/home/ashton/Treetop/PROJECTS/LVC_modeling_group/paraview_webserver/proxy.txt"
  },
  "properties": {
    "web_path":
"/home/ashton/Treetop/PROJECTS/LVC_modeling_group/paraview_webserver/pv/pv-current/share/paraview-5.2/web",
    "dataDir":
"/home/ashton/Treetop/PROJECTS/LVC_modeling_group/paraview_webserver/pvw/data",
    "python_exec":
"/home/ashton/Treetop/PROJECTS/LVC_modeling_group/paraview_webserver/pv/pv-current/bin/pvpython"
  },
  "apps": {
    "visualizer": {
      "cmd": [
        "${python_exec}",
        "-dr",
        "${web_path}/visualizer/server/pvw-visualizer.py",
        "--port", "${port}",
        "--data-dir", "${dataDir}",
        "-f",
        "--authKey", "${secret}"
      ],
      "ready_line" : "Starting factory"
    },
    "lightviz": {
      "cmd": [
        "${python_exec}",
        "-dr",
        "${web_path}/lightviz/server/pvw-light-viz.py",
        "--port", "${port}",
        "--data", "${dataDir}",
        "-f",
        "--authKey", "${secret}"
      ],
      "ready_line" : "Starting factory"
    }
  }
}





On Tue, Nov 8, 2016 at 1:00 PM, Sebastien Jourdain <
sebastien.jourdain at kitware.com> wrote:

> It should be a valid write up, but I may have failed to update visualizer
> and light-viz inside ParaView bundle.
> Which version of ParaView are you using?
>
> If you don't mind try to replace index.html inside /data/www/{visualizer/
> lightviz}/index.html by the one you can download here:
>
> https://github.com/Kitware/visualizer/blob/master/dist/index.html
> https://github.com/Kitware/light-viz/blob/master/dist/index.html
>
> Seb
>
> On Tue, Nov 8, 2016 at 1:53 PM, Sebastien Jourdain <
> sebastien.jourdain at kitware.com> wrote:
>
>> To fix the "Next/Previous" link issue, I had to move some files arounds.
>> If you remove /guides/ you should be good.
>>
>> Let me know if I missed a link to go to that page.
>>
>> Seb
>>
>> Link: https://kitware.github.io/paraviewweb/docs/ubuntu_14_04.html
>> #Installation-of-ParaViewWeb
>>
>> On Tue, Nov 8, 2016 at 1:40 PM, andrealphus <andrealphus at gmail.com>
>> wrote:
>>
>>> Sebastien,
>>>
>>> I followed the Ubuntu guide I found through the link you sent me at;
>>> https://kitware.github.io/paraviewweb/docs/guides/ubuntu_14_
>>> 04.html#Installation-of-ParaViewWeb
>>>
>>> although between this morning and now, it seems to have gone 404.
>>>
>>> is that not a valid write up?
>>>
>>> I keep getting a
>>> "ERROR: Launch request is missing application key."
>>>
>>> when I try and load;
>>> localhost/visualizer
>>> or
>>> localhost/lightviz
>>>
>>>
>>>
>>>
>>> On Tue, Nov 8, 2016 at 10:16 AM, Sebastien Jourdain <
>>> sebastien.jourdain at kitware.com> wrote:
>>>
>>>> Ashton,
>>>>
>>>> You should be able to download ParaView 5.2 RC3 or better RC4 (small
>>>> fixes went in)
>>>>
>>>> Then you should be able to run one of the following command line to try
>>>> it out.
>>>>
>>>> [image: Inline image 2]
>>>>
>>>> Otherwise building ParaView yourself will only require to turn Python
>>>> ON.
>>>>
>>>> Then you can get visualizer here: https://kitware.github.io/visualizer/
>>>>
>>>> Hope that help,
>>>>
>>>> Seb
>>>>
>>>> On Tue, Nov 8, 2016 at 11:08 AM, Sebastien Jourdain <
>>>> sebastien.jourdain at kitware.com> wrote:
>>>>
>>>>> The ParaViewWeb documentation has moved to https://kitware.github.io/p
>>>>> araviewweb/.
>>>>>
>>>>> We are still in the process of deprecating the previous documentation
>>>>> location.
>>>>>
>>>>> On Tue, Nov 8, 2016 at 10:58 AM, andrealphus <andrealphus at gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Could someone explain to me how to correctly set up a local paraview
>>>>>> webserver??
>>>>>>
>>>>>> I've tried to follow the write-ups here;
>>>>>> http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/ind
>>>>>> ex.html#!/guide/quick_start
>>>>>>
>>>>>> But they seem inaccuracte/out of date. I have tried both the
>>>>>> quickstart and Ububtu LTS writeups.
>>>>>>
>>>>>> I have an apache 2 server running.
>>>>>>
>>>>>> Ive tried installing PV from both the direct download page (source and
>>>>>> binaries) as well as a github clone.
>>>>>>
>>>>>>
>>>>>> In regards to the quickstart it also seems like the given paths have
>>>>>> changed? (can someone verify??)
>>>>>>
>>>>>> in the weite up
>>>>>> /bin/pvpython lib/paraview-4.1/site-packages
>>>>>> /paraview/web/pv_web_visualizer.py
>>>>>>  \
>>>>>>             --content ./share/paraview-4.1/www
>>>>>>             \
>>>>>>             --data-dir /path-to-share/
>>>>>>             \
>>>>>>             --port 8080 &
>>>>>>
>>>>>> to:
>>>>>> ./bin/pvpython share/paraview-5.2/web/visualizer/server/pvw-visualizer.py
>>>>>> \
>>>>>>  --content share/paraview-5.2/web/visualizer/www  \
>>>>>> --data-dir  /path-to-share
>>>>>> --port 8080
>>>>>>
>>>>>> I can get a visualizer window up and running, but there are no control
>>>>>> buttons to load buttons just a frozen screen of the paraview grey
>>>>>> background and axis (which I can not rotate).
>>>>>>
>>>>>> If I need to compile from source are there any specific flags I need
>>>>>> to set in ccmake beside paraview python?
>>>>>>
>>>>>>
>>>>>> Thanks!
>>>>>>
>>>>>> -ashton
>>>>>> _______________________________________________
>>>>>> 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/20161108/c0741c94/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Visualizer-startup.jpg
Type: image/jpeg
Size: 203468 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview/attachments/20161108/c0741c94/attachment-0001.jpg>


More information about the ParaView mailing list