# Runner session error "Another session is already executing"

**URL:** <https://forum.opentap.io/t/runner-session-error-another-session-is-already-executing/2672>\
**Category:** Technical\
**Tags:** opentap-sdk\
**Created:** [May 11, 2026, 9:51am UTC](https://forum.opentap.io/t/runner-session-error-another-session-is-already-executing/2672 "2026-05-11T09:51:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![frank](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@frank](https://forum.opentap.io/u/frank)\
**Post date:** [May 11, 2026, 9:51am UTC](https://forum.opentap.io/t/runner-session-error-another-session-is-already-executing/2672/1 "2026-05-11T09:51:08Z")

</div>

Hello all,

I’ve a problem where I need your help. I’ve started a runner with 2 sessions and I’m starting a test plan run in each session. The first one starts without issues the second one throws an exception with the message “Another session is already executing”. I can’t see the reason for it. Here is my code:

```csharp
string url = tbNatsUrl.Text.Trim();
var connection = new NatsConnection(new NatsOpts { Url = url });
await connection.ConnectAsync();
_natsConnection = connection;
string tapPlanXml1 = await File.ReadAllTextAsync(@"D:\TestPlans\Test1.TapPlan");
string tapPlanXml2 = await File.ReadAllTextAsync(@"D:\TestPlans\Test2.TapPlan");

var runner = new RunnerClient(_natsConnection);

// Zwei *separate* Runner-Sessions (jeweils eigener Prozess)
var session1 = await runner.StartSessionAsync();
var session2 = await runner.StartSessionAsync();

await session1.SetTestPlanXMLAsync(tapPlanXml1);
await session2.SetTestPlanXMLAsync(tapPlanXml2);

try
{

    await session1.RunTestPlanAsync([]);
    await session2.RunTestPlanAsync([]);

}
catch (Exception ex)
{
    Log($"Fehler beim Starten der Testpläne: {ex.Message}");
    MessageBox.Show(ex.Message);
}

}

```

---

<div class="post-metadata">

**Author:** ![frank](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@frank](https://forum.opentap.io/u/frank)\
**Post date:** [May 12, 2026, 5:49am UTC](https://forum.opentap.io/t/runner-session-error-another-session-is-already-executing/2672/2 "2026-05-12T05:49:15Z")

</div>

As an additional information, I’m working in the same company as the guy with this post:

> [@Timeout while starting Leafnode NATS Server](https://forum.opentap.io/t/timeout-while-starting-leafnode-nats-server/2653):
>
> Why am I getting a timeout error? I did everything exactly as described in the documentation.

and I had the same problem, which was solved with an update of the runner. I think it could be a simillar problem because I’m not alone in my company with that error. But a colleague who works at a subsidiary has no problems with the same code. We are using all the actual versions of the OpenTap software. For the Runner I’m using the version 2.4.0-beta.2. I have to use a beta because of the bug in the mentioned post.

---

<div class="post-metadata">

**Author:** ![alan\_copeland](https://avatars.discourse-cdn.com/v4/letter/a/b782af/32.png) [@alan\_copeland](https://forum.opentap.io/u/alan_copeland)\
**Post date:** [May 12, 2026, 2:11pm UTC](https://forum.opentap.io/t/runner-session-error-another-session-is-already-executing/2672/3 "2026-05-12T14:11:11Z")

</div>

Is there any more detail if you start the runner in verbose mode?  
`tap runner start -v`

---

<div class="post-metadata">

**Author:** ![frank](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@frank](https://forum.opentap.io/u/frank)\
**Post date:** [May 12, 2026, 2:22pm UTC](https://forum.opentap.io/t/runner-session-error-another-session-is-already-executing/2672/4 "2026-05-12T14:22:15Z")

</div>

[MyRunnerLog.txt](https://forum.opentap.io/uploads/short-url/xx9JNKRNSvPIvQwy1IdbocL3cbv.txt) (15.3 KB)

As you can see the session state of the second session never changes from Idle to Executing.

---

<div class="post-metadata">

**Author:** ![mavo1](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@mavo1](https://forum.opentap.io/u/mavo1)\
**Post date:** [May 13, 2026, 4:47pm UTC](https://forum.opentap.io/t/runner-session-error-another-session-is-already-executing/2672/5 "2026-05-13T16:47:27Z")

</div>

Hello frank,

this error usually occurs if in your Runner Settings you have “Allow Parallel Runs” set to false. Then you can’t run testplans on two sessions at the same time. Switch this to true, either over the Editor or in the Runner Settings xml itself, restart the runner, and then it should work.
