<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi Seb,<br>
      <br>
      Thanks for the info. The client browser opens properly with
      "--authKey", "${secret}" removed. <br>
      <br>
      => <span style="font-size:13px;font-family:arial,sans-serif"> "sessionURL"
        :  "ws://192.168.120.8:${port}/</span><span
        style="font-size:13px;font-family:arial,sans-serif">proxy?sessionId=${id}"<br>
        ${port} should be there otherwise  "pvpython
        pv_web_visualizer.py" is not issued. <br>
        <br>
        Thanks! <br>
        <br>
        Ying <br>
        <br>
      </span><br>
      On 2014-12-2 0:53, Sebastien Jourdain wrote:<br>
    </div>
    <blockquote
cite="mid:CABObKxfuU+FKrg6iqsdG0NG6B7ngyvqhPMX+nDiPNNrD+yVO9w@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi Ying,
        <div><br>
        </div>
        <div>instead of pipeline, it should be Visualizer, but I've also
          noticed something strange in your launcher config.</div>
        <div><br>
        </div>
        <div>=> <span
            style="font-size:13px;font-family:arial,sans-serif"> "sessionURL"
            :  "ws://192.168.120.8:${port}/</span><span
            style="font-size:13px;font-family:arial,sans-serif">proxy?sessionId=${id}"</span></div>
        <div><span style="font-size:13px;font-family:arial,sans-serif"><br>
          </span></div>
        <div><font face="arial, sans-serif">Why do you have ${port} here
            is you are using apache to forward the web socket?</font></div>
        <div><font face="arial, sans-serif"><br>
          </font></div>
        <div><font face="arial, sans-serif">Another thing that you can
            do is remove all the [ </font><span
            style="font-family:arial,sans-serif;font-size:13px">"--authKey",
            "${secret}" ] inside the "cmd" sections.</span></div>
        <div><span style="font-family:arial,sans-serif;font-size:13px"><br>
          </span></div>
        <div><span style="font-family:arial,sans-serif;font-size:13px">Seb</span></div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Mon, Dec 1, 2014 at 9:31 AM, 研发-徐莹 <span
            dir="ltr"><<a moz-do-not-send="true"
              href="mailto:yxu@ssc.net.cn" target="_blank">yxu@ssc.net.cn</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div>
              <div>
                <div>Hi All</div>
                <div><br>
                </div>
                <div>I tried to install paraview web with apache as the
                  front end and followed the information on <a
                    moz-do-not-send="true"
href="http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/index.html#%21/guide/ubuntu_14_04"
                    target="_blank">http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/index.html#!/guide/ubuntu_14_04</a></div>
                <div><br>
                </div>
                <div>The web browser can open the index.html and when I
                  tried to open localhost:8080/apps/pipeline, the client
                  browser issues a warning "authentication error" and
                  pipeline page closed automatically. The backend opens
                  a "pvpython pv_web_visualizer.py --port ${PORT}
                  --data-dir ${data_dir}", but failed at </div>
                <div>"--authKey ${secret}"</div>
                <div><br>
                </div>
                <div>The OS is Suse 11.2 and I compiled apache 2.4.10 in
                  my home dir. </div>
                <div><br>
                </div>
                <div>httpd-vhost.conf is </div>
                <div><VirtualHost *:8080></div>
                <div>    ServerName 192.168.120.8</div>
                <div>    ServerAdmin <a moz-do-not-send="true"
                    href="mailto:yxu@ssc.net.cn" target="_blank">yxu@ssc.net.cn</a> </div>
                <div>    DocumentRoot /home/yxu/apache/pvw-test/www</div>
                <div>    ErrorLog
                  /home/yxu/apache/pvw-test/logs/pvw-error.log</div>
                <div>    LogLevel debug rewrite:trace3</div>
                <div>    CustomLog
                  /home/yxu/apache/pvw-test/logs/pvw-custom.log combined</div>
                <div><br>
                </div>
                <div>#     # Have Apache pass these requests to the
                  launcher</div>
                <div>      ProxyPass /paraview <a
                    moz-do-not-send="true"
                    href="http://localhost:8081/paraview"
                    target="_blank">http://localhost:8081/paraview</a></div>
                <div><br>
                </div>
                <div>      # Turn on the rewrite engine</div>
                <div>      RewriteEngine On</div>
                <div>      RewriteMap session-to-port
                  txt:/home/yxu/apache/pvw-test/proxy.txt</div>
                <div>      RewriteCond %{QUERY_STRING}    
                  ^sessionId=(.*)$ [NC]</div>
                <div>      RewriteRule     ^/proxy.*$
                   <a class="moz-txt-link-freetext" href="ws://$">ws://$</a>{session-to-port:%1}/ws  [P]</div>
                <div> </div>
                <div>#    <Directory "<MY-DOCUMENT-ROOT"></div>
                <div>    <Directory /home/yxu/apache/pvw-test/www></div>
                <div>        Options Indexes FollowSymLinks</div>
                <div><span style="white-space:pre-wrap"> </span>Order
                  allow,deny</div>
                <div>        Allow from all</div>
                <div>        AllowOverride None</div>
                <div>        Require all granted</div>
                <div>    </Directory></div>
                <div></VirtualHost></div>
                <div><br>
                </div>
                <div>the json file is </div>
                <div>{</div>
                <div>    "configuration": {</div>
                <div>        "log_dir":
                  "/home/yxu/apache/pvw-test/logs",</div>
                <div>        "host": "localhost",</div>
                <div>        "endpoint": "paraview",</div>
                <div>        "sessionURL" :
                   "ws://192.168.120.8:${port}/proxy?sessionId=${id}",</div>
                <div>        "timeout": 25,</div>
                <div>        "fields": ["file", "host", "port"],</div>
                <div>        "port": 8081,</div>
                <div>        "proxy_file":
                  "/home/yxu/apache/pvw-test/proxy.txt"</div>
                <div>    },</div>
                <div>    "resources": [{"port_range": [9001, 9003],
                  "host": "localhost"}],</div>
                <div>    "properties": {</div>
                <div>        "python_path":
"/home/yxu/apache/pvw-test/pv/ParaView-noqt-mesa-v4.1-bin/lib/paraview-4.1/site-packages/",</div>
                <div>        "data": "/home/yxu/apache/pvw-test/data",</div>
                <div>        "python_exec":
                  "/home/yxu/apache/pvw-test/pv/ParaView-noqt-mesa-v4.1-bin/bin/pvpython"</div>
                <div>    },</div>
                <div>    "apps": {</div>
                <div>        "pipeline": {</div>
                <div>            "cmd": ["${python_exec}",
                  "${python_path}/paraview/web/pv_web_visualizer.py",
                  "--port", "${port}", "--data-dir", "${data}", "-f",
                  "--authKey", "${secret}"],</div>
                <div>            "ready_line" : "Starting factory"</div>
                <div>         },</div>
                <div>         "visualizer": {</div>
                <div>            "cmd": ["${python_exec}",
                  "${python_path}/paraview/web/pv_web_visualizer.py",
                  "--port", "${port}", "--data-dir", "${data}", "-f",
                  "--authKey", "${secret}"],</div>
                <div>            "ready_line" : "Starting factory"</div>
                <div>         },</div>
                <div>         "loader": {</div>
                <div>            "cmd": ["${python_exec}",
                  "${python_path}/paraview/web/pv_web_file_loader.py",
                  "--port", "${port}", "--data-dir", "${data}", "-f",
                  "--authKey", "${secret}"],</div>
                <div>            "ready_line" : "Starting factory"</div>
                <div>         },</div>
                <div>         "data_prober": {</div>
                <div>            "cmd": ["${python_exec}",
                  "${python_path}/paraview/web/pv_web_data_prober.py",
                  "--port", "${port}", "--data-dir", "${data}", "-f",
                  "--authKey", "${secret}"],</div>
                <div>            "ready_line" : "Starting factory"</div>
                <div>         }</div>
                <div>     }</div>
                <div>}</div>
                <div><br>
                </div>
                <div>All comments and input are welcome. </div>
                <div><br>
                </div>
                <div>Thanks! </div>
                <div><br>
                </div>
                <div>Ying </div>
                <br>
                <br>
              </div>
              <div>---------------------------------------------------------------------------<br>
                徐莹<br>
                <br>
                上海超级计算中心  研发部<br>
                上海市郭守敬路585号,201203<br>
                email: <a moz-do-not-send="true"
                  href="mailto:yxu@ssc.net.cn" target="_blank">yxu@ssc.net.cn</a><br>
                tel: 021-61872248<br>
---------------------------------------------------------------------------<br>
              </div>
            </div>
            <br>
            _______________________________________________<br>
            Powered by <a moz-do-not-send="true"
              href="http://www.kitware.com" 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"
              target="_blank">http://www.kitware.com/opensource/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" target="_blank">http://paraview.org/Wiki/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"
              target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>