So after working with a couple other people, we have discovered both a solution and a minor flaw in the code:Turns out there is no real debug statements for CLI in the current code. A coworker added the following in bootstrap.php at line 266 to fix this:if(osTicket:()){ error_log($msg);}resulting in the following function: function croak($message) {
$msg = $message."\n\n".THISPAGE;
if(osTicket::is_cli())
{
error_log($msg);
}
Mailer::sendmail(ADMIN_EMAIL, 'osTicket Fatal Error', $msg,
sprintf('"osTicket Alerts"<%s>', ADMIN_EMAIL));
//Display generic error to the user
Http::response(500, "<b>Fatal Error:</b> Contact system administrator.");
}
After adding this, you get more significant error logs, and these let us to our problem. It had the error: Unable to connect to the database -Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)along with the previously mentioned error.With a little more digging it was found that it was trying to connect to mysql using the direct ip for that user/domain on our server. The solution was to allow MySQL connections from that ip, and to change the DBHOST in the ost-config file to either the direct ip or "127.0.0.1" instead of what we had, which was "localhost". It may still work with "localhost" but we had not tried that after adding the mysql connection.This is an issue that is likely to come up for a lot of other cPanel/hostgator users, so it might be worth looking into or documenting.