SSISDB.internal.cleanup_server_log will fail with
{
Integration Services server cannot be configured because there are active operations. Wait until there are no active operations, and then try to configure the server again.
}
SSISDB.internal.cleanup_server_log will fail with below error
{
Integration Services server cannot be configured because there are active operations. Wait until there are no active operations, and then try to configure the server again.
}
When you have pending or active operations in [internal].[operations] table.
Resolution
To resolve the issue identify all the operations with status 2 (running) or status 5 (pending) from Internal.operations table and then stop the running operations (SSMS->Integration Services CatalogsàSSISDBàRight click active operations). If there are any rows with status 5 they might be orphan records so check when they are started and delete them if they are orphan. You can use below query to identify running and pending operations.
SELECT * FROM [internal].[operations] where status=2 or status=5
Once all the rows with status 2 or 5 is removed/updated we can run SSISDB.internal.cleanup_server_log