---
title: "Large Bulk Edit Failing to Complete"
description: "Bulk edit of many hosts in Opsview may fail to complete due to a database deadlock error. Increasing the MySQL/MariaDB innodb_lock_wait_timeout parameter can resolve this issue."
url: "https://docs.itrsgroup.com/docs/faq/opsview/18609164815389-opsview-large-bulk-edit-failing-to-complete/index.html"
---
## Related to

Bulk edit of opsview hosts, templates, hashtags

### Problem

When carrying out bulk edit within Opsview against many hundred/thousand hosts the process doesnt complete.

In the opsview logs on the master you should see any entry saying 'caught deadlock'.

### Possible Cause

The deadlock will be coming from the mysql/mariadb database.
Increasing the parameter 'innodb\_lock\_wait\_timeout' could resolve the issue.

### Possible Solution

Log into mysql/mariadb and run the following to capture the current setting.

```
MySQL [(none)]> show global variables like '%innodb_lock_wait_timeout%';
+--------------------------+-------+
| Variable_name | Value |
+--------------------------+-------+
| innodb_lock_wait_timeout | 50 |
+--------------------------+-------+
```

Increasing this value should resolve the problem

'120' seconds (2 mins).

```
MySQL [(none)]> SET GLOBAL innodb_lock_wait_timeout = 120;
```

## Related Articles

- Any existing FAQ / external website


