/scripts/upcp --force is not fixing it, restarting doesn't fix it either. Any ideas?

Can't use an undefined value as filehandle reference at /usr/local/cpanel/Cpanel/LegacyLogin.pm line 148.

at /usr/local/cpanel/Cpanel/LegacyLogin.pm line 148
Cpanel::LegacyLogin::login('IO::Socket::SSL=GLOB(0x25b74b0)', 'cpanel', 'goto_uri', '/', 'dest_uri', '/', 'user', undef, ...) called at cpsrvd-ssl line 8144
main::process_legacy_login('login', 'IO::Socket::SSL=GLOB(0x25b74b0)', 'cpanel', 'goto_uri', '/', 'dest_uri', '/', 'user', ...) called at cpsrvd-ssl line 2646
main::badpass() called at cpsrvd-ssl line 4728
main::handle_auth() called at cpsrvd-ssl line 999
main::handle_one_connection() called at cpsrvd-ssl line 869