When running AutoSSL for a user, you may encounter the following error during the HTTP DCV check:
# /usr/local/cpanel/bin/autossl_check --user=cpaneluser
Local HTTP DCV error (exampledomain.com): You do not have a document root for the domain “exampledomain.com”.
This error occurs when the domain in question is missing from the
/etc/userdatadomains file. Firstly, you will want to confirm domain is missing from this file:
# grep exampledomain.com /etc/userdatadomains
If the output from the below command is empty, it indicates the domain is missing from
/etc/userdatadomains file is built from the userdata stored within
/var/cpanel/userdata/cpaneluser (replace cpaneluser with the actual cPanel user for the domain). If the cPanel user's data within this directory exists and is valid, you can run
/scripts/updateuserdatacache to rebuild
/etc/userdatadomains, and then re-run AutoSSL to resolve the issue.
If the account's userdata is missing or corrupt, you would need to follow our documentation to rebuild it, then rerun AutoSSL: