root.json is non-existent or empty

root.json is non existent
Sometimes, you may get the error "root.json is non-existent or empty" when trying to add cPanel security questions. Here is the solution to fix this issue.

You may get the error “root.json is non-existent or empty” when trying to add cPanel security questions. ( WHM >> Security Center >> Security Questions >> Edit Question and Answers. )
You will see the error “[a fatal error or timeout occurred while processing this directive] security question”, and when you click on it, you will get the detailed error.


"'/var/cpanel/userhomes/cpanel/.cpanel/securitypolicy/questions/root.json' is non-existent or empty at /usr/local/cpanel/Cpanel/ line 88.
Cpanel::JSON::LoadFile('/var/cpanel/userhomes/cpanel/.cpanel/securitypolicy/questions/ro...') called at /usr/local/cpanel/Cpanel/Security/Policy/SourceIPCheck/ line 146
Cpanel::Security::Policy::SourceIPCheck::Util::loadsecquestions('/var/cpanel/userhomes/cpanel/.cpanel/securitypolicy', 'HASH(0x29bc7e0)', 'root') called at whostmgr/bin/whostmgr2 line 13302
main::edit_sourceipcheck() called at whostmgr/bin/whostmgr2 line 1142


You are getting this error most probably because the “/var/cpanel/userhomes/cpanel/.cpanel/securitypolicy/questions/root.json” file is empty. ( This is the file where cPanel store the security questions and it do have a format ). To fix this issue, you can simply move the “/var/cpanel/userhomes/cpanel/.cpanel/securitypolicy/questions/root.json” file to “root.json.bck”.

mv /var/cpanel/userhomes/cpanel/.cpanel/securitypolicy/questions/root.json /var/cpanel/userhomes/cpanel/.cpanel/securitypolicy/questions/root.json.bck


Everything will work fine after that.

Share this post

Services to Explore

Stay up to date!

Stay up to date with the Web Hosting, Cloud and Server Management Industry News and Tutorials!

We will send you only the relevant emails, and we respect your privacy. Please review our privacy policy for more info.

Linux Management Services

Focus on your business, and let us take care of your Linux Servers!
From what you are reading, it seems you are interested in Linux and related technologies. If you have a moment to spare, please take a look at our Linux Management Services plan, which might interest you even more!
Linux Management Plan

Value-Added Services

We have services that can help you run a successful business. With us, you don't have to worry about these areas because our experts will take care of it for you.

ServerHealers uses cookies.