WHMCS disk space calculation is not working for all customers assigned to the same Plesk server
In WHMCS, going to Utilities > Logs > Activity Log, the following error might be shown:
CONFIG_TEXT: Server Usage Update Failed: Error code: 1006. Error message: Permission denied. - Server ID: 1
With Plesk debug enabled, when the diskspace usage task is executed in WHMCS, it's not possible to retrieve the disk space usage for some subscriptions. The following error is shown in
/var/log/plesk/panel.log(Linux OS) or
CONFIG_TEXT: DEBUG [api-rpc] API-RPC response [a0b1f3170413493ab0123f2341cd7e0f]:
<?xml version="1.0" encoding="UTF-8"?>
In WHMCS, the owner of the subscription
example.comis assigned to a Plesk server.
In WHMCS, going to Setup > Products/Services > Servers > In the Plesk server where the customer is assigned, click on Login to panel option. Once in Plesk GUI, the subscription
example.comor the customer cannot be found.
In WHMCS, the login configured in the Plesk server/product doesn't have permission to manage the subscription
example.com and it fails to retrieve the disk usage for this subscription.
Due to this failed subscription, the Plesk WHMCS module doesn't retrieve the disk usage for the rest of the subscriptions assigned to the same server, even though the API response contains the disk usage of the subscriptions.
This has been considered a bug in Plesk WHMCS module with the ID #EXTWHMCS-57 which will be fixed in future updates.
Note: Subscribe to this article to get notified once the update will become available.
Make sure that the customer-owner of the subscription is owned by the login configured in WHMCS:
Log in to WHMCS
Identify which server is assigned to the subscription going to Clients > View/Search Clients > Search the customer-owner of the subscription
example.com> Products/Services tab. In the following image, the
example.comsubscription is assigned to
Check the configuration of the server assigned to the subscription going to Setup > Products/Services > Servers >
plesk.example.com> Click on icon:
Scroll down to the Server Details section to check which Username is configured. In this example, the login
Go to Customers > Search and select the Customer which owns the subscription
example.com> Click on Move To > Assign it to the Reseller with the login found in Step 4. In this example, the customer will be moved to