<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Ha! I got it - I had apache configured as SSL-only. That is: http
      at port 80 was hard redirected to https at port 443. I changed the
      config to only use http, and now it works. For now that's not
      critical -  this is an experimental server accessible only from
      our internal network, I can try to fix this later.</p>
    <p>Now I'll start playing with the visualizer app. So far it seems
      to work pretty well - I just need to make it use all available
      resources (it just runs sigle-core).<br>
    </p>
    <p><br>
    </p>
    <p>Thank you for your help, Sebastien!<br>
    </p>
    <p><br>
    </p>
    <p><br>
    </p>
    <p>For the record, this was the apache config that didn't work:</p>
    <p>NameVirtualHost *:80<br>
      <VirtualHost *:80><br>
          ServerName vbl-sim.eli-beams.eu<br>
          Redirect permanent / <a class="moz-txt-link-freetext" href="https://vbl-sim.eli-beams.eu/">https://vbl-sim.eli-beams.eu/</a><br>
      </VirtualHost><br>
      <br>
      NameVirtualHost *:443<br>
      <VirtualHost *:443><br>
      ServerName vbl-sim.eli-beams.eu<br>
      ServerAdmin <a class="moz-txt-link-abbreviated" href="mailto:jiri.vyskocil@eli-beams.eu">jiri.vyskocil@eli-beams.eu</a><br>
      DocumentRoot /usr/local/share/paraview-5.0/www/<br>
      <br>
      ErrorLog "logs/pv-error_log"<br>
      CustomLog "logs/pv-access_log" common<br>
      <br>
       <Location /usr/local/share/paraview-5.0/www/><br>
         SSLRequireSSL On<br>
         SSLVerifyClient optional<br>
         SSLVerifyDepth 1<br>
         SSLOptions +StdEnvVars +StrictRequire<br>
       </Location><br>
      <br>
      ProxyPass /paraview <a class="moz-txt-link-freetext" href="http://localhost:9000/paraview">http://localhost:9000/paraview</a><br>
      RewriteEngine On<br>
      RewriteMap session-to-port
      txt:/etc/httpd/paraview-mapping/proxy.txt<br>
      RewriteCond %{QUERY_STRING}     ^sessionId=(.*)$ [NC]<br>
      RewriteRule    ^/proxy.*$  <a class="moz-txt-link-freetext" href="ws://$">ws://$</a>{session-to-port:%1}/ws  [P]<br>
      <br>
      SSLEngine on<br>
      SSLCertificateFile /etc/pki/tls/certs/vblpar.crt<br>
      SSLCertificateKeyFile /etc/pki/tls/private/vblpar.key<br>
      <br>
          <Directory /usr/local/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>
      <br>
      </VirtualHost><br>
      <br>
      <br>
    </p>
    <p><br>
    </p>
    <p><br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 06/05/16 16:54, Sebastien Jourdain
      wrote:<br>
    </div>
    <blockquote
cite="mid:CABObKxeTmnhJ4Mz72F7SB2OXBr-K=++1BYQmhSF6mjS38yHdww@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <div dir="ltr">You are getting really close... 
        <div><br>
        </div>
        <div>Basically you have the ParaView process that properly
          started at the request of the client and waits to it to
          connect, which never happen.</div>
        <div><br>
        </div>
        <div>Usually that mean, you have a mistake either in your Apache
          config and/or in your launcher.</div>
        <div><br>
        </div>
        <div>Could you share your Apache virtual host with your launcher
          config along with the URL the web client connects to?</div>
        <div><br>
        </div>
        <div>Seb</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Fri, May 6, 2016 at 5:47 AM, Jiří
          Vyskočil <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:jiri.vyskocil@fjfi.cvut.cz" target="_blank">jiri.vyskocil@fjfi.cvut.cz</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000">
              <p>One more step closer to the goal it seems - if run:</p>
              <p><br>
              </p>
              <p>export XAUTHORITY=/var/run/slim/slim.auth<br>
                DISPLAY=:0 xhost +</p>
              <p><br>
              </p>
              <p>as root, I can get the launcher to start, and not die
                with an X-related error (cumbersome workaround, but I
                guess I can find a better way later). <br>
              </p>
              <p><br>
              </p>
              <p>[paraview@vbl-sim ~] $ cat
                /etc/httpd/paraview-mapping/proxy.txt <br>
                be12802a-137f-11e6-b12c-002590e6af35 <a
                  moz-do-not-send="true"
                  href="http://vbl-sim.eli-beams.eu:9003"
                  target="_blank">vbl-sim.eli-beams.eu:9003</a><br>
              </p>
              <p>[paraview@vbl-sim ~] $ ps aux | grep pvpython<br>
                paraview  1792  1.2  0.1 1393740 144956 pts/1  S+  
                13:42   0:02 /usr/local/lib/paraview-5.0/pvpython
                /usr/local/lib/paraview-5.0/site-packages/vtk/web/launcher.py
                /etc/httpd/paraview-launcher.config -d<br>
                paraview  1887  1.6  0.1 1519164 237520 pts/1  Sl+ 
                13:43   0:02 /usr/local/lib/paraview-5.0/pvpython -dr
/usr/local/lib/paraview-5.0/site-packages/paraview/web/pv_web_visualizer.py
                --port 9003 --data-dir /var/paraview/data -f --authKey
                3ZXwyWwTz7aPjT9p</p>
              <p><br>
              </p>
              <p>Now when I try to open an app from the browser, it
                still doesn't work (waits forever to load some part,
                etc.), and I see thist in the paraview log:</p>
              <p><br>
              </p>
              <p>[strazce@vbl-sim ~] $ cat
                /var/log/paraview-viz-logs/be12802a-137f-11e6-b12c-002590e6af35.txt
                <br>
                2016-05-06 13:43:27+0200 [-] Log opened.<br>
                2016-05-06 13:43:27+0200 [-] Site starting on 9003<br>
                2016-05-06 13:43:27+0200 [-] Starting factory
                <twisted.web.server.Site instance at
                0x7fd34014f3b0><br>
                2016-05-06 13:43:27+0200 [-]
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<br>
                2016-05-06 13:43:27+0200 [-]
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<br>
                <br>
              </p>
              <p><br>
              </p>
              and a lot of lines which contain just the repeating plus
              signs. <br>
              <span class="">
                <p><br>
                </p>
                <p><br>
                </p>
                <p><br>
                </p>
                <p><br>
                </p>
                <p><br>
                </p>
                <br>
                <div>On 05/05/16 16:23, Sebastien Jourdain wrote:<br>
                </div>
              </span>
              <div>
                <div class="h5">
                  <blockquote type="cite">
                    <div dir="ltr">You were on the right track with
                      DISPLAY=:0 but I'm wondering if you setup a
                      "virtual" monitor or if your "paraview" user is
                      auto logged in a X session or if it stuck at the
                      "login" panel?
                      <div><br>
                      </div>
                      <div>You can find some information about the
                        virtual screen here: (Search for "Screen")</div>
                      <div><br>
                      </div>
                      <div><a moz-do-not-send="true"
href="http://kitware.github.io/paraviewweb/docs/guides/graphics_on_ec2_g2.html"
                          target="_blank">http://kitware.github.io/paraviewweb/docs/guides/graphics_on_ec2_g2.html</a><br>
                      </div>
                      <div><br>
                      </div>
                      <div>And for the autologin if it is needed. (Note
                        on EC2 the user start X hence no need to
                        login...)</div>
                      <div><br>
                      </div>
                      <div><a moz-do-not-send="true"
href="https://github.com/Kitware/paraviewweb/blob/master/tools/ansible/roles/paraview/tasks/Ubuntu.yml"
                          target="_blank">https://github.com/Kitware/paraviewweb/blob/master/tools/ansible/roles/paraview/tasks/Ubuntu.yml</a><br>
                      </div>
                      <div><br>
                      </div>
                      <div>Seb</div>
                    </div>
                    <div class="gmail_extra"><br>
                      <div class="gmail_quote">On Thu, May 5, 2016 at
                        6:58 AM, Jiří Vyskočil <span dir="ltr"><<a
                            moz-do-not-send="true"
                            href="mailto:jiri.vyskocil@fjfi.cvut.cz"
                            target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:jiri.vyskocil@fjfi.cvut.cz">jiri.vyskocil@fjfi.cvut.cz</a></a>></span>
                        wrote:<br>
                        <blockquote class="gmail_quote" style="margin:0
                          0 0 .8ex;border-left:1px #ccc
                          solid;padding-left:1ex">Hello,<br>
                          <br>
                          <br>
                          I'm trying to set up a Paraview Web server on
                          a Fedora 23 machine. The serves is not
                          connected to a monitor or a keyboard (I only
                          have access through ssh), but it has a nvidia
                          GPU which I want to use for paraview.<br>
                          <br>
                          <br>
                          I have installed xdm to run the X server, and
                          verified that it is in fact running with the
                          correct nvidia drivers (by checking the
                          Xorg.0.log file). The problem is I don't know
                          how to run the paraview webserver on the X
                          display when there's no one physically logged
                          in - I can only get to the server via ssh.
                          When I log in, and switch to the paraview
                          user, the DISPLAY and XAUTHORITY variables are
                          empty.<br>
                          <br>
                          <br>
                          The webserver itself is running (apache + the
                          python launcher), but when I try to open any
                          of the example applications, I get an error
                          like this:<br>
                          <br>
                          <br>
                          $ ./launch-paraview.sh<br>
                          2016-05-05 14:54:17,528:<a
                            moz-do-not-send="true"><a class="moz-txt-link-freetext" href="INFO:twisted:Site">INFO:twisted:Site</a></a>
                          starting on 9000<br>
                          2016-05-05 14:54:17,528:<a
                            moz-do-not-send="true"><a class="moz-txt-link-freetext" href="INFO:twisted:Starting">INFO:twisted:Starting</a></a>
                          factory <twisted.web.server.Site instance
                          at 0x7fe20da6a998><br>
                          2016-05-05 14:55:09,655:<a
                            moz-do-not-send="true"><a class="moz-txt-link-freetext" href="INFO:twisted">INFO:twisted</a></a>:"127.0.0.1"
                          - - [05/May/2016:12:55:09 +0000] "POST
                          /paraview/ HTTP/1.1" 503 78 "<a
                            moz-do-not-send="true"
                            href="https://vbl-sim.eli-beams.eu/apps/Visualizer/"
                            rel="noreferrer" target="_blank"><a class="moz-txt-link-freetext" href="https://vbl-sim.eli-beams.eu/apps/Visualizer/">https://vbl-sim.eli-beams.eu/apps/Visualizer/</a></a>"
                          "Mozilla/5.0 (X11; Fedora; Linux x86_64;
                          rv:45.0) Gecko/20100101 Firefox/45.0"<br>
                          <br>
                          <br>
                          $ cat 965318f2-12c0-11e6-a3cb-002590e6af35.txt<br>
                          2016-05-05 14:55:06+0200 [-] Log opened.<br>
                          ERROR: In
/home/strazce/hax/ParaView-v5.0.0-source/VTK/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx,
                          line 333<br>
                          vtkXOpenGLRenderWindow (0x3f00be0): bad X
                          server connection. DISPLAY=<br>
                          <br>
                          <br>
                          Specifying DISPLAY=:0 when running the
                          launcher gives this error:<br>
                          <br>
                          $ cat e73921bc-12c0-11e6-b002-002590e6af35.txt<br>
                          2016-05-05 14:57:22+0200 [-] Log opened.<br>
                          No protocol specified<br>
                          No protocol specified<br>
                          No protocol specified<br>
                          ERROR: In
/home/strazce/hax/ParaView-v5.0.0-source/VTK/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx,
                          line 333<br>
                          vtkXOpenGLRenderWindow (0x4127c10): bad X
                          server connection. DISPLAY=:0. Aborting.<br>
                          <br>
                          <br>
                          <br>
                          Thanks for any hints,<br>
                          <br>
                          Jiri<br>
                          <br>
                          <br>
                          <br>
                          <br>
_______________________________________________<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"
                            target="_blank"><a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a></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/ParaView</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"><a class="moz-txt-link-freetext" href="http://markmail.org/search/?q=ParaView">http://markmail.org/search/?q=ParaView</a></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/mailman/listinfo/paraview</a><br>
                          <br>
                        </blockquote>
                      </div>
                      <br>
                    </div>
                  </blockquote>
                  <br>
                </div>
              </div>
            </div>
            <br>
            _______________________________________________<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"><a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a></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/ParaView</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=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/mailman/listinfo/paraview</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>