Missing Username Errors

Problem

While provisioning an account on a cPanel & WHM server using the cPanel module, you see the following error:

No user name supplied: "username" is a required argument

Cause

This indicates that the username under the client’s Products/Services tab is empty.

Solution

Enter a username, save the changes, and then run the Create command again.

To prevent this issue in the future, make sure to check Require Domains for the product at Configuration () > System Settings > Products/Services.

Last modified: October 29, 2024