Symptoms
When using the transfer tool with cPanel version 130.0.7, some user files end up owned by another user, causing account management and domain issues.
Description
We have found that during the restore on the destination server, some user files, such as "/etc/valiases/domain.tld" and "/etc/vfilters/domain.tld" are owned by the incorrect user, causing account-related issues such as website SSL warnings, Nginx configuration rebuild failures, and PHP-FPM configuration rebuild failures.
User “user”: Failed to find the domain(s): “domain.com”. at /usr/local/cpanel/Cpanel/PHP/Config.pm line 268, <__ANONIO__> line 22.
Cpanel::PHP::Config::_get_php_config_for_domains(0, ARRAY(0x4fff8f0)) called at /usr/local/cpanel/Cpanel/PHP/Config.pm line 288
Cpanel::PHP::Config::get_php_config_for_domains(ARRAY(0x4fff8f0)) called at /usr/local/cpanel/scripts/ea-nginx line 1989
scripts::ea_nginx::_render_and_append(HASH(0x5028fc0)) called at /usr/local/cpanel/scripts/ea-nginx line 1553
scripts::ea_nginx::_write_user_conf("kristora", HASH(0x346b7c0)) called at /usr/local/cpanel/scripts/ea-nginx line 3161
eval {...} called at /usr/local/cpanel/scripts/ea-nginx line 3161
We've opened an internal case for our development team to investigate this further. For reference, the case number is CPANEL-49012. Follow this article to receive an email notification when a solution is published in the product.
Workaround
Change the ownership of the files back to their correct user and group.
for x in $(awk '{print $2}' /etc/trueuserdomains); do /scripts/mailperm $x --verbose; done
Comments
0 comments
Article is closed for comments.