# Error in rendering and visualization from docker image for different versions

**URL:** https://discourse.paraview.org/t/error-in-rendering-and-visualization-from-docker-image-for-different-versions/8335
**Category:** Web Support
**Created:** [November 5, 2021, 10:29am UTC](https://discourse.paraview.org/t/error-in-rendering-and-visualization-from-docker-image-for-different-versions/8335 "2021-11-05T10:29:24Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [November 6, 2021, 2:33pm UTC](https://discourse.paraview.org/t/error-in-rendering-and-visualization-from-docker-image-for-different-versions/8335/2 "2021-11-06T14:33:02Z")

</div>

Hi,

**Update from previous message**

1. I have read this documentation [docker paraview web](http://kitware.github.io/paraviewweb/docs/docker_cheatsheet.html) and ran the docker container as below for paraview5.6 version.
2. \<APP\_ROOT\> = /pvw
3. I am getting the error as “Web socket error” where the image is posted in [websocket\_error](https://discourse.paraview.org/t/websocket-connection-error-in-paraview-web-osmesa-docker-image/8310)

**run.sh file**

```auto
#!/bin/bash
export PORT=9000
export DATA=/home/Sunag/pvw/data
export DEPLOY=/home/Sunag/pvw
export SERVER_NAME=localhost:80
export PROTOCOL=ws

sudo docker run --name model_osmesa \
	-p 0.0.0.0:${PORT}:80	\
	-v ${DATA}:/data	\
	-v ${DEPLOY}:/pvw	\
	-e "SERVER_NAME=${SERVER_NAME}"\
	-e "PROTOCOL=${PROTOCOL}"\
	-ti kitware/paraviewweb:pvw-v5.6.0-osmesa

```

My **config.json** file is as follows:

```auto
{
  "resources": [{"port_range": [9001, 9103], "host": "localhost"} ],
  "sessionData": {
    "updir": "/Home"
   },
  "configuration": {
    "log_dir": "/pvw/launcher/log",
    "host": "localhost",
    "endpoint": "paraview",
    "sessionURL": "SESSION_URL_ROOT/proxy?sessionId=${id}&path=ws",
    "timeout": 60,
    "upload_dir":"/data/upload",
    "fields": [],
    "port": 9000,
    "proxy_file": "/opt/launcher/proxy-mapping.txt",
    "sanitize": {
      "version": {
          "type": "regexp",
          "regexp": "^v[0-9]+.[0-9]+.[0-9]+$",
          "default": "v0.0.0"
      },
      "file": {
          "type": "regexp",
          "regexp": "^[-\\\\w./]+$",
          "default": "emptyFile"
      }
    }
  },
  "properties": {
    "dataDir": "/data",
    "webapps_dir": "/opt/paraview/share/paraview-5.6/web",
    "python_exec": "/opt/paraview/bin/pvpython"
  },
  "apps": {
    "visualizer": {
      "cmd": [
        "${python_exec}",
        EXTRA_PVPYTHON_ARGS
        "${webapps_dir}/visualizer/server/pvw-visualizer.py",
        "--port", "${port}",
        "--data", "${dataDir}",
        "--authKey", "${secret}"
      ],
      "ready_line" : "Starting factory"
    }
  }
}

```

My **endpoints.txt** is as follows. Testing only for visualizer as of now.

```auto
visualizer /opt/paraview/share/paraview-5.6/web/visualizer/www
DOCUMENT-ROOT-DIRECTORY /pvw/www/

```

1. When I got onto “[http://localhost:9000/visualizer](http://localhost:9000/visualizer)”, I get the same error as shown in the below link:  
[websocket\_error](https://discourse.paraview.org/t/websocket-connection-error-in-paraview-web-osmesa-docker-image/8310)

2. I looked into this issue [#523](https://github.com/Kitware/paraviewweb/issues/523) and worked towards the config file and rest.

3. I am getting the unique id in proxy and logs are obtained as same as presented in the previous message.

4. What is wrong in my files and what work around needs to be done? Any suggestions will be helpful.

Regards,  
Sunag R A.

---

_[View the full topic](https://discourse.paraview.org/t/error-in-rendering-and-visualization-from-docker-image-for-different-versions/8335)._
