Error in rendering and visualization from docker image for different versions

Hi,

Update from previous message

  1. I have read this documentation docker paraview web 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

run.sh file

#!/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:

{
  "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.

visualizer /opt/paraview/share/paraview-5.6/web/visualizer/www
DOCUMENT-ROOT-DIRECTORY /pvw/www/
  1. When I got onto “http://localhost:9000/visualizer”, I get the same error as shown in the below link:
    websocket_error

  2. I looked into this issue #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.