CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [General] Error in rendering and visualization from Paraview web docker image (https://www.cfd-online.com/Forums/paraview/239471-error-rendering-visualization-paraview-web-docker-image.html)

sunagra27 November 8, 2021 03:35

Error in rendering and visualization from Paraview web docker image
 
Dear all,


I am trying to visualization from paraview web server using docker image.

1. I have read this documentation http://kitware.github.io/paraviewweb...heatsheet.html and ran the docker container from run.sh as shown below for paraview5.6 version.

2. <APP_ROOT> = /pvw

3. I am getting the error as shown in Error_Image_link below.


Commands:

run.sh file

Code:

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

3. I am getting "Websocket connection error for either visualizer or paraview lite" as shown in the image link below:

Error_image_link: https://drive.google.com/file/d/1bIf...ew?usp=sharing

4. The launcher configuration file is as presented below:
Code:

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

5. When I got onto “http://localhost:9000/visualizer”, the error occurs as presented in the error link above. All the logs are captured including a unique id in proxy-mapping.txt.

6. I am trying to make this work from past a week.

7. I tried with different versions of paraview such as 5.7,5.8 and 5.8 for both osmesa version and egl version in office system. But, getting same error.

Any suggestions or workaround will be appreciated.

Regards,
Sunag R A.


All times are GMT -4. The time now is 20:38.