# Is there a setting to attempt to keep ParaView alive after a server disconnect?

**URL:** https://discourse.paraview.org/t/is-there-a-setting-to-attempt-to-keep-paraview-alive-after-a-server-disconnect/16106
**Category:** ParaView Support
**Created:** [February 4, 2025, 8:41pm UTC](https://discourse.paraview.org/t/is-there-a-setting-to-attempt-to-keep-paraview-alive-after-a-server-disconnect/16106 "2025-02-04T20:41:21Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![GregVernon](https://discourse.paraview.org/user_avatar/discourse.paraview.org/gregvernon/32/1494_2.png) [@GregVernon](https://discourse.paraview.org/u/GregVernon)
#### Post date: [February 4, 2025, 8:41pm UTC](https://discourse.paraview.org/t/is-there-a-setting-to-attempt-to-keep-paraview-alive-after-a-server-disconnect/16106/1 "2025-02-04T20:41:21Z")

</div>

I often run into the issue where ParaView client/server will disconnect for some reason, e.g., put my client (laptop) to sleep/hibernate, WiFi network blips / changes. Whenever the server disconnects, you get the message that ParaView will `quit since it may be in an unrecoverable state`:

 ![image](https://discourse.paraview.org/uploads/default/original/2X/f/f48fa810b6ca2d5d0676a76dd50c52df513b163a.png)

My question is whether it’s possible to ask it _not_ to quit, but to either

1. Attempt to reconnect to the server
2. Issue a “Reset Session” command and attempt to stay alive.

Either one of these being possible would save me considerable pain.

---

<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: [February 5, 2025, 9:48am UTC](https://discourse.paraview.org/t/is-there-a-setting-to-attempt-to-keep-paraview-alive-after-a-server-disconnect/16106/2 "2025-02-05T09:48:44Z")

</div>

> [@GregVernon](#):
>
> Whenever the server disconnects, you get the message that ParaView will `quit since it may be in an unrecoverable state`:

Is the server still running ?

In any case, there is no server recovery code in ParaView where a disconnected server and client could reconnect. This is maybe implementable.

The dialog you see is usually received when the server stopped for some reason, which is a typical usecase with HPC node reserver finishing.

---

<div class="post-metadata">

### Author: ![GregVernon](https://discourse.paraview.org/user_avatar/discourse.paraview.org/gregvernon/32/1494_2.png) [@GregVernon](https://discourse.paraview.org/u/GregVernon)
#### Post date: [February 6, 2025, 2:02am UTC](https://discourse.paraview.org/t/is-there-a-setting-to-attempt-to-keep-paraview-alive-after-a-server-disconnect/16106/3 "2025-02-06T02:02:37Z")

</div>

> [@mwestphal](#):
>
> Is the server still running ?

In many cases, yes (or at least it appears to be). Here’s an example where I’ve spun up `pvserver` via my workstation (VS Code remote shell) and then connected a ParaView client on my laptop. After connecting I then disconnected and reconnected the laptop’s VPN temporarily, simulating going through a short tunnel while on the train – causing the client to crash (note the VPN has reconnected):

Here’s the VS Code session on the workstation that launched `pvserver` in the background. Note that I’ve aliased my `pvserver` command:

```auto
alias pvserver='/path/to/paraview_headless/bin/mpiexec -n 8 /path/to/paraview_headless/bin/pvserver --server-port=14774'

```

This screenshot was taken ~30 seconds after the client ParaView crashed… looks like pvserver is still running.

 ![image](https://discourse.paraview.org/uploads/default/original/2X/1/1537b436b613b9a7dd79f00dbf49958993a40863.png)

Though launching a new client and trying to connect fails to connect:

 ![{403F16A1-D2FC-4480-AF61-F951730F5E79}](https://discourse.paraview.org/uploads/default/original/2X/5/5178b535be8c9734944328f6d138deb902fe5994.png)

---

<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: [February 6, 2025, 8:14am UTC](https://discourse.paraview.org/t/is-there-a-setting-to-attempt-to-keep-paraview-alive-after-a-server-disconnect/16106/4 "2025-02-06T08:14:25Z")

</div>

> In many cases, yes (or at least it appears to be).

Then it truly means that there is a transient disconnection that unsynchronize the server and the client.

I see two ways forward:

1. Being more resilient to disconnection
2. Add some kind of recovery code so that client and server can reset session and connect again
