# Problem in Kitware paraview lite multi-user using Apache

**URL:** https://discourse.paraview.org/t/problem-in-kitware-paraview-lite-multi-user-using-apache/7662
**Category:** Web Support
**Created:** [July 22, 2021, 4:41am UTC](https://discourse.paraview.org/t/problem-in-kitware-paraview-lite-multi-user-using-apache/7662 "2021-07-22T04:41:50Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![rasunag27](https://discourse.paraview.org/user_avatar/discourse.paraview.org/rasunag27/32/4636_2.png) [@rasunag27](https://discourse.paraview.org/u/rasunag27)
#### Post date: [July 22, 2021, 4:41am UTC](https://discourse.paraview.org/t/problem-in-kitware-paraview-lite-multi-user-using-apache/7662/1 "2021-07-22T04:41:50Z")

</div>

Hello,  
I am working with OpenFOAM Simulations with Ubuntu 16.04. I wanted to use paraview web as a visualizer.

For this, I followed this documentation to set up a paraViewWeb server instance: [http://kitware.github.io/paraviewweb/docs/ubuntu\_14\_04.html](http://kitware.github.io/paraviewweb/docs/ubuntu_14_04.html)  
Based on the setup, the webpage runs well, but when I attempt “connect to paraview”, I got “Session timed out” error when I try with “[http://localhost/lite](http://localhost/lite)”. As per the issue seen in Paraview web configuration issue, I created the folder directory as suggested in /opt. Still I am facing the same problem.

Below are the details of my launcher.json file and the apache2 configuration file details. I have also given permission as explained in the document.

**Launcher.json**

```auto
{
    "resources": [{"port_range": [9001, 9103], "host": "localhost"} ],
    "configuration": {
      "log_dir": "/opt/data/pvw/logs",
      "host": "localhost",
      "proxy_file": "/opt/data/proxy.txt",
      "endpoint": "paraview",
      "sessionURL": "ws://localhost:8080/proxy?sessionId=${id}&path=ws",
      "timeout": 25,
      "upload_dir": "/opt/data/pvw/upload",
      "fields": [],
      "port": 8080,
      "dataFile": "/opt/data/pvw/data/37_left/"
    },
    "properties": {
      "web_path": "/opt/data/pv/pv-5.6.2/share/paraview-5.6/web",
      "python_exec": "/opt/data/pv/pv-5.6.2/bin/pvpython",
      "content": "/opt/data/pv/pv-5.6.2/share/paraview-5.6/web/lite/www",
      "dataDir": "/opt/data/pvw/data"
    },
    "apps": {
      "paraview-lite": {
        "cmd": [
          "${python_exec}", 
          "-dr",
	  "${web_path}/lite/server/pvw-lite.py",
          "--port", "${port}",
	  "--data", "${dataDir}",
	  "--load-file", "${dataFile}",  
          "--authKey", "${secret}",
	  "--content", "${content}"
        ],
        "ready_line" : "Starting factory"
      }
  }
}

```

**start.sh file**

```auto
#!/bin/bash
  export DISPLAY=:0.0
  /opt/data/pv/pv-5.6.2/bin/pvpython /opt/data/pv/pv-5.6.2/lib/python2.7/site-packages/wslink/launcher.py /opt/data/pvw/conf/launcher.json &

```

**Apache2 config file**

```auto
  <VirtualHost *:80>
      ServerName localhost
      ServerAdmin sunag.ra@company.com
      DocumentRoot /opt/data/www

      ErrorLog /opt/data/logs/apache_error.log
      CustomLog /opt/data/logs/apache_access.log combined

      <Directory /opt/data/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:/opt/data/proxy.txt
      RewriteCond %{QUERY_STRING} ^sessionId=(.*)&path=(.*)$ [NC]
      RewriteRule ^/proxy.*$ ws://${session-to-port:%1}/%2 [P]
    </VirtualHost>

```

**Also, when I trackback in "[http://localhost/paraview](http://localhost/paraview), I get error as shown below**

```auto

{"error": "id not provided in GET request"}

```

What is wrong in the process…? **I have placed this content in Kitware paraview lite github as in below link**  
[Issue\_paraview\_lite](https://github.com/Kitware/paraview-lite/issues/11)

Any leads will be appreciated.

---

<div class="post-metadata">

### Author: ![jourdain](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jourdain/32/11_2.png) [@jourdain](https://discourse.paraview.org/u/jourdain)
#### Post date: [July 29, 2021, 8:09pm UTC](https://discourse.paraview.org/t/problem-in-kitware-paraview-lite-multi-user-using-apache/7662/2 "2021-07-29T20:09:39Z")

</div>

That topic was discussed [here](https://github.com/Kitware/paraview-lite/issues/11) and a solution was found.
