> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/server/knowledge-base/troubleshooting-articles/maintenance-tool-database-connection-is-invalid.md). Agents can also search and read this documentation through its [MCP server](https://docs.devolutions.net/~gitbook/mcp).

# Maintenance Tool database connection is invalid

Fixes the Maintenance Tool database connection is invalid message in the Devolutions Server Console when the Console cannot connect to the database.

The Devolutions Server Console displays the following message when an instance is selected in the list and the Console cannot connect to its database:

```
Maintenance Tool database connection is invalid.
Do you want to edit the connection parameters now?
```

The Devolutions Server Console uses its own database connection, the Console connection string saved in the configuration file of the instance. The message appears when the Console cannot open a connection with that connection string, for example:

* The database server is unreachable or the database name is wrong.
* The account used by the connection does not have access to the database. With the ***Integrated security*** option, the Console connects with the Windows account that runs the Devolutions Server Console.
* The configuration file of the instance cannot be read by the Windows account that runs the Console.

Select ***Yes*** to open the database connection parameters of the instance and correct them. When the configuration file of an older instance (`web.config`) cannot be found, the Console displays "Instance web.config file is not accessible." instead.

### Solution

1. Open a command prompt and enter `whoami` to see which Windows account runs the Devolutions Server Console.
2. Make sure this account has access to the database, and the ***Read*** permission on the files of the Devolutions Server web application folder, including `encryption.config` in the `App_Data` subfolder (for example, `C:\inetpub\wwwroot\dvls\App_Data`). To open the web application folder, select the instance, then select ***Server*** – ***Explore***.
3. Once the permissions are granted, restart the Devolutions Server Console.
4. If the message appears again, select ***Yes*** and check the server, the database, and the authentication of the connection.

{% hint style="info" %}
If the issue persists, check the permissions of the database owner account described in the [Pre-deployment account survey](https://docs.devolutions.net/server/knowledge-base/knowledge-base-articles/pre-deployment-account-survey.md).
{% endhint %}


---

# 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://docs.devolutions.net/server/knowledge-base/troubleshooting-articles/maintenance-tool-database-connection-is-invalid.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.
