# Problem starting pvserver using servers.pvsc file on desktop machine

**URL:** https://discourse.paraview.org/t/problem-starting-pvserver-using-servers-pvsc-file-on-desktop-machine/4495
**Category:** ParaView Support
**Created:** [June 3, 2020, 3:17pm UTC](https://discourse.paraview.org/t/problem-starting-pvserver-using-servers-pvsc-file-on-desktop-machine/4495 "2020-06-03T15:17:41Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Lorenzo\_Cozzi](https://discourse.paraview.org/user_avatar/discourse.paraview.org/lorenzo_cozzi/32/3171_2.png) [@Lorenzo\_Cozzi](https://discourse.paraview.org/u/Lorenzo_Cozzi)
#### Post date: [June 3, 2020, 3:17pm UTC](https://discourse.paraview.org/t/problem-starting-pvserver-using-servers-pvsc-file-on-desktop-machine/4495/1 "2020-06-03T15:17:41Z")

</div>

Dear all,  
I’m trying to start pvserver on a certain amount of cores on my desktop computer using servers.pvsc file. I tried both the direct and the reverse connection strategy but could not find a way to let it work.  
This is how my servers.pvsc looks like:

> ```
> <Servers>
> <Server name="DESKTOPMACHINE - REVERSE" resource="csrc://localhost">
> <CommandStartup>
> <Options>
> <Option name="PV_CONNECT_ID" label="Connect ID" readonly="true">
> <Range type="int" min="1" max="65535" step="1" default="random"/>
> </Option>
> <Option name="NPROC" label="Number of Processors:">
> <Range type="int" min="1" max="8" step="1" default="4"/>
> </Option>
> </Options>
> <Command exec="/usr/bin/mpirun -np $NPROC$ /opt/paraview_v5.8.0/bin/pvserver" delay="5" timeout="60">
> <Arguments>
> <Argument value="-rc"/>
> <Argument value="-ch=desktopMachineName"/>
> <Argument value="--connect-id=$PV_CONNECT_ID$"/>
> </Arguments>
> </Command>
> </CommandStartup>
> </Server>
> <Server name="DESKTOPMACHINE" resource="cs://localhost">
> <CommandStartup>
> <Options>
> <Option name="PV_CONNECT_ID" label="Connect ID" readonly="true">
> <Range type="int" min="1" max="65535" step="1" default="random"/>
> </Option>
> <Option name="NPROC" label="Number of Processors:">
> <Range type="int" min="1" max="8" step="1" default="4"/>
> </Option>
> </Options>
> <Command exec="/usr/bin/mpirun -np $NPROC$ /opt/paraview_v5.8.0/bin/pvserver" delay="5" timeout="60">
> <Arguments>
> <Argument value="--connect-id=$PV_CONNECT_ID$"/>
> </Arguments>
> </Command>
> </CommandStartup>
> </Server>
> </Servers>
> 
> ```

On the client dialog box, when connecting, no messages appear except “Command aborted.”  
The previously mentioned server settings work when I remove the mpirun -np NPROCS part from the exec command.  
Any idea about how to fix this?  
Thanks in advance,  
Lorenzo

---

<div class="post-metadata">

### Author: ![utkarsh.ayachit](https://discourse.paraview.org/user_avatar/discourse.paraview.org/utkarsh.ayachit/32/39_2.png) [@utkarsh.ayachit](https://discourse.paraview.org/u/utkarsh.ayachit)
#### Post date: [June 3, 2020, 3:27pm UTC](https://discourse.paraview.org/t/problem-starting-pvserver-using-servers-pvsc-file-on-desktop-machine/4495/2 "2020-06-03T15:27:46Z")

</div>

try passing all arguments you have in the `exec` attribute as e.g.

Instead of

```xml
<Command exec="/usr/bin/mpirun -np $NPROC$ /opt/paraview_v5.8.0/bin/pvserver" delay="5" timeout="60">
  <Arguments>
    <Argument value="--connect-id=$PV_CONNECT_ID$"/>
  </Arguments>
</Command>

```

Use

```xml
<Command exec="/usr/bin/mpirun" delay="5" timeout="60">
  <Arguments>
    <Argument value="-np" />
    <Argument value="$NPROC$" />
    <Argument value="/opt/paraview_v5.8.0/bin/pvserver" />
    <Argument value="--connect-id=$PV_CONNECT_ID$"/>
  </Arguments>
</Command>

```

---

<div class="post-metadata">

### Author: ![Lorenzo\_Cozzi](https://discourse.paraview.org/user_avatar/discourse.paraview.org/lorenzo_cozzi/32/3171_2.png) [@Lorenzo\_Cozzi](https://discourse.paraview.org/u/Lorenzo_Cozzi)
#### Post date: [June 3, 2020, 5:33pm UTC](https://discourse.paraview.org/t/problem-starting-pvserver-using-servers-pvsc-file-on-desktop-machine/4495/3 "2020-06-03T17:33:25Z")

</div>

It works,  
thanks a lot!

---

<div class="post-metadata">

### Author: ![Lorenzo\_Cozzi](https://discourse.paraview.org/user_avatar/discourse.paraview.org/lorenzo_cozzi/32/3171_2.png) [@Lorenzo\_Cozzi](https://discourse.paraview.org/u/Lorenzo_Cozzi)
#### Post date: [June 4, 2020, 6:47am UTC](https://discourse.paraview.org/t/problem-starting-pvserver-using-servers-pvsc-file-on-desktop-machine/4495/4 "2020-06-04T06:47:00Z")

</div>

Actually the modification worked on pv 5.8.0 installed on Ubuntu 18.04 LTS but did not on my office machine (debian 10 - testing) where I compiled the software from Source.  
This is the revised version of the file that I used as suggested:  
[servers.pvsc](https://discourse.paraview.org/uploads/short-url/3Ea6V1qLuOanCSpUMHtFPXZ4TG2.pvsc) (783 Bytes)  
Still getting the same output message: “Command aborted.”

---

<div class="post-metadata">

### Author: ![Lorenzo\_Cozzi](https://discourse.paraview.org/user_avatar/discourse.paraview.org/lorenzo_cozzi/32/3171_2.png) [@Lorenzo\_Cozzi](https://discourse.paraview.org/u/Lorenzo_Cozzi)
#### Post date: [June 4, 2020, 12:51pm UTC](https://discourse.paraview.org/t/problem-starting-pvserver-using-servers-pvsc-file-on-desktop-machine/4495/5 "2020-06-04T12:51:20Z")

</div>

Just to clarify a little more the situation, every command except mpirun|mpiexec is correctly performed when connecting.
