SOLVED [CPANEL-20866] Cannot access feature list file on DNSOnly server

WaldoPepper

Member
May 3, 2012
18
3
53
cPanel Access Level
Root Administrator
Since the update to 11.70.0.42 of CPanel DNSOnly I receive a huge amount of log entries in LFD's log scanner daily report stating:

Code:
warn [cpanel] Cannot access feature list file: /var/cpanel/features/default: No such file or directory at /usr/local/cpanel/Cpanel/Features/Cpanel.pm line 85, <$lisc_fh> line 1.
    Cpanel::Features::Cpanel::calculate_cache_file_name_and_maxmtime(ARRAY(0x3807ca0)) called at /usr/local/cpanel/Cpanel/Features/Cpanel.pm line 141
    Cpanel::Features::Cpanel::augment_hashref_with_features(undef, HASH(0x3807a48)) called at /usr/local/cpanel/Cpanel.pm line 129
    Cpanel::initcp() called at cpanel.pl line 3394
As the directory /var/cpanel/features does in fact not exist the warning appears to be logical.

But is this working as designed or is it a flaw or misconfiguration?

Thanks in advance.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
As the directory /var/cpanel/features does in fact not exist the warning appears to be logical.
Hello @WaldoPepper,

The /var/cpanel/features directory and the /var/cpanel/features/default file should exist on DNSOnly systems. I've confirmed they exist upon new installations of cPanel DNSOnly. It's likely they were not installed as part of the initial installation of DNSOnly on your system (an issue that has since been solved). You can run the following commands to prevent those error messages from occurring:

Code:
mkdir /var/cpanel/features
touch /var/cpanel/features/default
Thank you.
 

WaldoPepper

Member
May 3, 2012
18
3
53
cPanel Access Level
Root Administrator
Thanks for the hint.

I had to add two additional directories.

Code:
touch /var/cpanel/features/disabled
touch /var/cpanel/features/Mail Only
Now the warnings are gone.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
Hello @WaldoPepper,

I was able able to reproduce the issue on new installations of cPanel & WHM versions 70 and 72. I've opened internal case CPANEL-20866 to report this behavior, and will update this thread with more information as it becomes available. In the meantime, manually creating the disabled feature list will act as a workaround:

Code:
touch /var/cpanel/features/disabled
Thank you.

Update: This was fixed in cPanel & WHM version 74.