> For the complete documentation index, see [llms.txt](https://sealights-docs.tricentis.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sealights-docs.tricentis.com/setup-and-configuration/upgrading-abap-agent-version.md). Agents can also search and read this documentation through its [MCP server](https://sealights-docs.tricentis.com/~gitbook/mcp).

# Upgrading ABAP Agent version

When a new ABAP Agent release is available, it is distributed at the same download location as the original installation. See [Install WATCHER, SLABAPCLI and Server](https://sealights-docs.tricentis.com/setup-and-configuration/install-the-abap-agent/install-watcher-and-slabapcli.md).

Before upgrading, review the [ABAP Agent release notes](https://sealights-docs.tricentis.com/agent-release-notes) for version-specific changes and authorization requirements.

The ABAP Agent relies on scheduled tasks using the Windows Task Scheduler. The installer stops them and the server during the upgrade, and restores them afterwards. See [Upgrade steps](#upgrade-steps).

BUILDMAP tasks only run once. If they succeeded, they can be removed from the Windows Task Scheduler.

## Upgrading to 2.1.5

Check these before you upgrade to **2.1.5**:

* **Windows 10 isn't supported.** 2.1.5 setup stops on Windows 10. Move the agent to Windows 11, or Windows Server 2022 or later, first. See [Prerequisites & Limitations](https://sealights-docs.tricentis.com/setup-and-configuration/install-the-abap-agent/prerequisites-and-limitations.md).
* **The default test stage changes.** In 2.1.4, a test repository's test stage defaulted to `"{type} Tests"`, for example `tosca Tests`. In 2.1.5 it's the test repository name, so after the upgrade, results are reported under that name. For Tosca and Tosca Cloud, set **SeaLightsTestStageName** to the test repository name. See [Match the test stage in Tosca and the test repository](https://sealights-docs.tricentis.com/setup-and-configuration/test-tool-integrations/tosca/run-a-test-in-tosca.md#match-the-test-stage-in-tosca-and-the-test-repository).

## Upgrade steps

### 1. Before you start

Wait until no tests are running and no transports are being imported. The installer ends any agent task that is still running, so a Footprints or Build Modifications run in progress is cut off.

You don't need to stop the server or disable the scheduled tasks yourself. The installer does both and restores them after the upgrade. If you stop or disable them first, the installer records that state and leaves them stopped and disabled.

### 2. Run the installer

Download the latest agent ZIP file and extract the installer. Run `SeaLights_ABAP_Agent_Setup.exe` as an administrator over the existing installation.

Before it replaces any files, Setup:

1. Checks for the `SLABAPServer` Windows service and for `SLABAPServer.exe`, `SLABAPAdapterHost.exe`, or `watcher.exe` running from the selected installation's `bin` directory (not every similarly named process on the machine).
2. If any are running, asks whether to stop them and continue. Choosing **No** aborts the installation before any files are replaced.
3. Records whether the server is running and which agent scheduled tasks are enabled, then disables those tasks and ends any that are running.
4. Stops the service and the processes.

After lock holders are stopped, Setup replaces **all packaged agent files under the installation `bin` directory**, including files whose installed version matches the packaged version. Setup also deletes every DLL directly under `bin` that is not part of the agent or the SAP NW RFC SDK set (`sapnwrfc.dll`, `libsapucum.dll`, ICU), for example DLLs that older installers copied from the SAP folder. Don't keep your own files in `bin`. Setup does not wipe `%ProgramData%\Tricentis\SeaLights\ABAP Agent`. Configuration (`config.toml`), logs, and public and private userdata remain in place; Setup migrates the existing configuration after file replacement.

The installer then updates `config.toml` to the current schema version and runs `setup upgrade`. It starts the server again if it was running before, and enables the scheduled tasks that were enabled. You don't need to run anything yourself.

### 3. Verify the upgrade

1. Check that the server is running:

   The output should be `SLABAPServer is ready.` If the server was running before the upgrade and isn't now, see [Start the ABAP Agent Server](https://sealights-docs.tricentis.com/setup-and-configuration/command-line-interface/start-the-agent-server.md).
2. In **Windows Task Scheduler**, open the **SeaLights** folder and check that each agent task has the state it had before the upgrade: **Ready** for tasks that were enabled, **Disabled** for tasks that were disabled. If tasks stay disabled, see [Restoring scheduled tasks](#restoring-scheduled-tasks).
3. Check that all components are healthy:

   See [Validate Your Setup](https://sealights-docs.tricentis.com/setup-and-configuration/command-line-interface/validate-your-setup.md) for interpreting the output.

***

## Restoring scheduled tasks

The installer runs `slabapcli setup upgrade` automatically at the end of every upgrade. It restores the **SeaLights ABAP Server** service and each agent scheduled task to the state recorded before the files were replaced: a service that was running is started again, and tasks that were enabled are enabled again. Tasks that were disabled before the upgrade stay disabled. If a recorded task no longer exists, for example because you deleted it in Task Scheduler, `setup upgrade` logs a warning that names it, skips it, and restores the other tasks. You do not need to run `setup upgrade` yourself.

If the upgrade does not complete, the agent's scheduled tasks stay disabled. Rerun the installer, or re-enable the tasks in **Windows Task Scheduler** after you resolve the problem.

When you stop or replace a scheduled task through agent task management (for example with `slabapcli`), the agent disables the task, asks Task Scheduler to stop any running instance, waits up to 10 seconds for the watcher to exit, and then deletes the task. If the watcher has not exited by then, the agent logs a warning that a watcher instance may still be running; check for a leftover `watcher.exe` process before continuing. That cleanup is separate from the installer process-stop prompt described above.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://sealights-docs.tricentis.com/setup-and-configuration/upgrading-abap-agent-version.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
