# The client connection hangs when I do client/server visualization with ParaView 5.11.1 Server.

**URL:** https://discourse.paraview.org/t/the-client-connection-hangs-when-i-do-client-server-visualization-with-paraview-5-11-1-server/11881
**Category:** Development
**Created:** [April 14, 2023, 5:28am UTC](https://discourse.paraview.org/t/the-client-connection-hangs-when-i-do-client-server-visualization-with-paraview-5-11-1-server/11881 "2023-04-14T05:28:42Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![zunceng](https://discourse.paraview.org/user_avatar/discourse.paraview.org/zunceng/32/11377_2.png) [@zunceng](https://discourse.paraview.org/u/zunceng)
#### Post date: [April 14, 2023, 5:28am UTC](https://discourse.paraview.org/t/the-client-connection-hangs-when-i-do-client-server-visualization-with-paraview-5-11-1-server/11881/1 "2023-04-14T05:28:42Z")

</div>

The server was running in a container with OpenMPI. And the Windows(Win10) client is `ParaView-5.11.0-Windows-Python3.9-msvc2017-AMD64.zip` download from [https://www.paraview.org/download/](https://www.paraview.org/download/) .  
The client will be stuck in connecting even though I see a server output the client is connected.

By the way, I can use macOS version of ParaView Client 5.11.0 to connect to the same server.

Server Dockerfile

```auto
FROM ubuntu:20.04 as builder

RUN apt update -y 
RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install -y git cmake build-essential libgl1-mesa-dev libxt-dev qt5-default libqt5x11extras5-dev libqt5help5 qttools5-dev qtxmlpatterns5-dev-tools libqt5svg5-dev python3-dev python3-numpy libopenmpi-dev libtbb-dev ninja-build libxcursor-dev qtbase5-dev

WORKDIR /workspace
RUN git clone https://gitlab.kitware.com/paraview/paraview.git
RUN cd paraview && git checkout v5.11.1 && git submodule update --init --recursive

WORKDIR /workspace/build
RUN mkdir -p /opt/paraview
RUN strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
RUN cmake -GNinja -DPARAVIEW_USE_PYTHON=ON -DPARAVIEW_PLUGIN_DISABLE_XML_DOCUMENTATION=ON -DPARAVIEW_USE_MPI=ON -DVTK_SMP_IMPLEMENTATION_TYPE=TBB -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/opt/paraview /workspace/paraview
RUN ninja
RUN ninja install

FROM ubuntu:20.04

COPY --from=builder /opt/paraview /opt/paraview
ENV PATH=$PATH:/opt/paraview/bin
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/paraview/lib

RUN apt update -y && DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install -y bzip2 patch qtbase5-dev doxygen python3-numpy libosmesa6-dev python3-pandas libxcursor-dev openssh-client curl openmpi-bin openmpi-common libopenmpi-dev python3-dev libtbb2 libopengl0

```

Server singularity file

```auto
BootStrap: docker
## A private registry. We run it in LAN.
From: registry.intern.yuansuan.cn/euclid/paraview

%labels
    Version ParaView

%setup

%files

%environment

%runscript
SINGULARITYBIN=singularity
ORTED_BIN=$(which orted)

export OMPI_MCA_orte_launch_agent="$(cat <<EOF
$SINGULARITYBIN exec $SINGULARITY_CONTAINER $ORTED_BIN
EOF
)"

exec $@

%post

```

Server run command

```auto
singularity run /pathto/paraview.5.11.sif mpirun --host node1,node2 pvserver

```

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [April 14, 2023, 5:33am UTC](https://discourse.paraview.org/t/the-client-connection-hangs-when-i-do-client-server-visualization-with-paraview-5-11-1-server/11881/2 "2023-04-14T05:33:16Z")

</div>

How long do you wait ? Please wait a few minutes to be sure.

---

<div class="post-metadata">

### Author: ![zunceng](https://discourse.paraview.org/user_avatar/discourse.paraview.org/zunceng/32/11377_2.png) [@zunceng](https://discourse.paraview.org/u/zunceng)
#### Post date: [April 14, 2023, 5:45am UTC](https://discourse.paraview.org/t/the-client-connection-hangs-when-i-do-client-server-visualization-with-paraview-5-11-1-server/11881/3 "2023-04-14T05:45:42Z")

</div>

60 Seconds.  
The program seem no response. And I can only kill it in windows task manager.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [April 14, 2023, 5:46am UTC](https://discourse.paraview.org/t/the-client-connection-hangs-when-i-do-client-server-visualization-with-paraview-5-11-1-server/11881/4 "2023-04-14T05:46:42Z")

</div>

Wait longer
