Symptoms
You might see the following error occur while trying to set up Tomcat for a new user:
# /scripts/ea-tomcat85 add fpmtest2
Adding fpmtest2’s tomcat 8.5 instance …
Cpanel::Exception::IO::FileNotFound/(XID dy4d2v) The system cannot find a
file named “/home/fpmtest2/.ubic.cfg”.
at /usr/local/cpanel/Cpanel/LoadFile.pm line 70.
Cpanel::LoadFile::_open("/home/fpmtest2/.ubic.cfg") called at /usr/local/cpanel/Cpanel/LoadFile.pm line 118
Cpanel::LoadFile::_load_r(CODE(0x1ec83f0), "/home/fpmtest2/.ubic.cfg") called at /usr/local/cpanel/Cpanel/LoadFile.pm line 100
Cpanel::LoadFile::load("/home/fpmtest2/.ubic.cfg") called at /usr/local/cpanel/scripts/cpuser_service_manager line 177
scripts::cpuser_service_manager::_prepend_comment_to_ubic_cnf() called at /usr/local/cpanel/scripts/cpuser_service_manager line 93
scripts::cpuser_service_manager::add(App::CmdDispatch=HASH(0x16ec818), "ea-tomcat85", "--init-script=/opt/cpanel/ea-tomcat85/bin/user-init.sh") called at /usr/local/cpanel/3rdparty/perl/528/lib/perl5/cpanel_lib/App/CmdDispatch/Table.pm line 42
App::CmdDispatch::Table::run(App::CmdDispatch::Table=HASH(0x1717570), App::CmdDispatch=HASH(0x16ec818), "add", "ea-tomcat85", "--init-script=/opt/cpanel/ea-tomcat85/bin/user-init.sh") called at /usr/local/cpanel/3rdparty/perl/528/lib/perl5/cpanel_lib/App/CmdDispatch.pm line 59
eval {...} called at /usr/local/cpanel/3rdparty/perl/528/lib/perl5/cpanel_lib/App/CmdDispatch.pm line 62
App::CmdDispatch::run(App::CmdDispatch=HASH(0x16ec818), "add", "ea-tomcat85", "--init-script=/opt/cpanel/ea-tomcat85/bin/user-init.sh") called at /usr/local/cpanel/scripts/cpuser_service_manager line 54
scripts::cpuser_service_manager::run("add", "ea-tomcat85", "--init-script=/opt/cpanel/ea-tomcat85/bin/user-init.sh") called at /usr/local/cpanel/scripts/cpuser_service_manager line 49
Failed to add service management (exit 65280)
This will need done manually:
`/usr/local/cpanel/scripts/cpuser_service_manager add ea-tomcat85 --init-script=/opt/cpanel/ea-tomcat85/bin/user-init.sh`
Description
The above error is caused by the presence of a folder named "/etc/ubic" which is not compatible with our installation of ubic and Tomcat.
Workaround
The solution here would be to remove the folder in question. This is also known to create root cron jobs which can be removed but are not necessary to restore functionality. You can also just rename the folder with the following command run as root via SSH or WHM terminal.
mv -vi /etc/ubic{,.orig}
You may need to remove the user from Tomcat before attempting to add it again.