Article ID: 125152, created on Apr 7, 2015, last review on Apr 7, 2015

  • Applies to:
  • Operations Automation

Symptoms

While removing the QMail node from POA the task 'cleanup packages on host' with the following error:

The Qmail service #ID is in use by customer services

Cause

Task was scheduled for removal of the host which has customer services provisoned. Such behavior is considered to be a software issue with ID POA-85298, POA should not allow to remove QMail host in case if it has customer's services provisioned.

Resolution

If the host needs to be removed it is needed to unprovide customer's services from host. Please follow the steps below in order to obtain list of subscriptions provisioned to host which will be deleted:

  1. Get list of QMail configurations and QMail hosts they are associated with:

    plesk=> SELECT config_id,cluster_id,operation_host_id,hostname,role from cqmail_configurations ORDER BY config_id;
     config_id | cluster_id | operation_host_id |          hostname          | role
    -----------+------------+-------------------+----------------------------+------
             1 |          1 |                57 | mail.provider.com          | m
             2 |            |              2285 | mail02.provider.com        | m
             3 |            |              2286 | mail03.provider.com        | m
             8 |            |              2859 | mail01.reseller.com        | m
            12 |            |              2860 | mail02.reseller.com        | m
    
  2. For example, it is needed to remove host mail02.reseller.com. Get list of subscriptions provsioned to required host using the config_id obtained in step 1 by the following query (in our case config_id is 12):

    SELECT  subscription_id from cqmail_hostings where config_id = 12 OR incoming_config_id = 12 OR outgoing_config_id = 12;
     subscription_id
    -----------------
               100001
               100002
               100003
    

Provider can either destroy these subscriptions or, in case if subscription cannot be destroyed because it has Apache/IIS/APS services provisioned, unprovide Qmail hosting from particular subscription.

In order to unprovide Qmail hosting from particular subscription:

  1. Open required subscription in Provider's Control Panel;
  2. Go to Resources and click Edit;
  3. Set limit for QMail hosting resource to 0, click Submit and confirm resource unprovisioning.

Search Words

Host #116 is in deleting state.

Role cannot be changed because service is in use by customer services

is in use by customer services

completely remove qmail service from system, inc. ldap, whoson, drweb, and open xchange

The Qmail service #ID is in use by customer services

Task id 22050453 Queue name vps_operations_209 Task name cleanup packages on host 'ts-qm05.altai-hs.com' Task description Task that uninstall packages from host 'ts-qm05.altai-hs.com' Subscription ID 1 Queue status Failed Start not earlier than 03/10/2015 23:38 Method name cleanupHostPackages on SCREF:ppm:5 Last execution output The Qmail service 12 is in use by customer services

5356b422f65bdad1c3e9edca5d74a1ae caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07

Email subscription for changes to this article
Save as PDF