Authenticator code on admin console + An error occurred

Hi

When I try to access to the admin console : http:///admin_console/
I now have a pop-up with email, password and a new field : authenticator code.
the authenticator code was not displayed before.
I read on the forum that I just need to not fill this field so I set my email and password but I get a white page with

An error occurred

(error code: Runtime:0)

Hi @fravetier,

Can you please run:
# kaltlog
from the shell while trying to login and tell me what you see?

Also, is this a cluster or a single machine?

when I try to run katlog I get command not found

It is a single machine

kaltlog is an alias defined in /etc/profile.d/kaltura-base.sh, run:

# . /etc/profile.d/kaltura-base.sh

this will source the alias onto your shell.
note that there’s a space between ‘.’ and ‘/etc/profile.d/kaltura-base.sh’

When I click on the link to go to admin console (from start) I get these logs

--
==> /opt/kaltura/log/kaltura_admin.log <==
2016-11-23 17:01:51 [0.000000] [1773259550] [1] [%context%] [InfraBootstrapper->_initNavigation] ERR: Exception: Class [KalturaInternalToolsPluginSystemHelperAction] requires permissions [Array
(
--
] in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace:
#0 /opt/kaltura/app/ui_infra/InfraBootstrapper.php(111): KalturaLog::err('Class [KalturaI...')
--
#6 {main}
2016-11-23 17:01:51 [0.000894] [1773259550] [2] [%context%] [InfraBootstrapper->_initNavigation] ERR: Exception: Class [VirusScanListAction] requires permissions [Array
(
--
] in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace:
#0 /opt/kaltura/app/ui_infra/InfraBootstrapper.php(111): KalturaLog::err('Class [VirusSca...')
--
#6 {main}
2016-11-23 17:01:51 [0.000172] [1773259550] [3] [%context%] [InfraBootstrapper->_initNavigation] ERR: Exception: Class [VirusScanConfigureAction] requires permissions [Array
(
--
] in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace:
#0 /opt/kaltura/app/ui_infra/InfraBootstrapper.php(111): KalturaLog::err('Class [VirusSca...')
--
#6 {main}
2016-11-23 17:01:51 [0.000196] [1773259550] [4] [%context%] [InfraBootstrapper->_initNavigation] ERR: Exception: Class [VirusScanSetStatusAction] requires permissions [Array
(
--
] in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace:
#0 /opt/kaltura/app/ui_infra/InfraBootstrapper.php(111): KalturaLog::err('Class [VirusSca...')
--
#6 {main}
2016-11-23 17:01:51 [0.000130] [1773259550] [5] [%context%] [InfraBootstrapper->_initNavigation] ERR: Exception: Class [DistributionProfileListAction] requires permissions [Array
(
--
] in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace:
#0 /opt/kaltura/app/ui_infra/InfraBootstrapper.php(111): KalturaLog::err('Class [Distribu...')
--
#6 {main}
2016-11-23 17:01:51 [0.000127] [1773259550] [6] [%context%] [InfraBootstrapper->_initNavigation] ERR: Exception: Class [DistributionProfileConfigureAction] requires permissions [Array
(
--
] in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace:
#0 /opt/kaltura/app/ui_infra/InfraBootstrapper.php(111): KalturaLog::err('Class [Distribu...')
--
#6 {main}
2016-11-23 17:01:51 [0.000126] [1773259550] [7] [%context%] [InfraBootstrapper->_initNavigation] ERR: Exception: Class [DistributionProfileUpdateStatusAction] requires permissions [Array
(
--
] in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace:
#0 /opt/kaltura/app/ui_infra/InfraBootstrapper.php(111): KalturaLog::err('Class [Distribu...')
--
#6 {main}
2016-11-23 17:01:51 [0.000159] [1773259550] [8] [%context%] [InfraBootstrapper->_initNavigation] ERR: Exception: Class [GenericDistributionProvidersListAction] requires permissions [Array
(
--
] in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace:
#0 /opt/kaltura/app/ui_infra/InfraBootstrapper.php(111): KalturaLog::err('Class [GenericD...')
--
#6 {main}
2016-11-23 17:01:51 [0.000170] [1773259550] [9] [%context%] [InfraBootstrapper->_initNavigation] ERR: Exception: Class [GenericDistributionProviderConfigureAction] requires permissions [Array
(
--
] in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace:
#0 /opt/kaltura/app/ui_infra/InfraBootstrapper.php(111): KalturaLog::err('Class [GenericD...')
--
#6 {main}
2016-11-23 17:01:51 [0.000160] [1773259550] [10] [%context%] [InfraBootstrapper->_initNavigation] ERR: Exception: Class [GenericDistributionProviderDeleteAction] requires permissions [Array
(
--
] in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace:
#0 /opt/kaltura/app/ui_infra/InfraBootstrapper.php(111): KalturaLog::err('Class [GenericD...')
--
#6 {main}
2016-11-23 17:01:51 [0.000169] [1773259550] [11] [%context%] [InfraBootstrapper->_initNavigation] ERR: Exception: Class [XsltTesterAction] requires permissions [Array
(
--
] in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace:
#0 /opt/kaltura/app/ui_infra/InfraBootstrapper.php(111): KalturaLog::err('Class [XsltTest...')
--
#6 {main}
2016-11-23 17:01:51 [0.000141] [1773259550] [12] [%context%] [InfraBootstrapper->_initNavigation] ERR: Exception: Class [XsltTesterApiAction] requires permissions [Array
(
--
] in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace:
#0 /opt/kaltura/app/ui_infra/InfraBootstrapper.php(111): KalturaLog::err('Class [XsltTest...')
--
#6 {main}
2016-11-23 17:01:51 [0.000140] [1773259550] [13] [%context%] [InfraBootstrapper->_initNavigation] ERR: Exception: Class [DropFolderListAction] requires permissions [Array
(
--
] in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace:
#0 /opt/kaltura/app/ui_infra/InfraBootstrapper.php(111): KalturaLog::err('Class [DropFold...')
--
#6 {main}
2016-11-23 17:01:51 [0.000142] [1773259550] [14] [%context%] [InfraBootstrapper->_initNavigation] ERR: Exception: Class [DropFolderConfigureAction] requires permissions [Array
(
--
] in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace:
#0 /opt/kaltura/app/ui_infra/InfraBootstrapper.php(111): KalturaLog::err('Class [DropFold...')
--
#6 {main}
2016-11-23 17:01:51 [0.000154] [1773259550] [15] [%context%] [InfraBootstrapper->_initNavigation] ERR: Exception: Class [DropFolderSetStatusAction] requires permissions [Array
(
--
] in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace:
#0 /opt/kaltura/app/ui_infra/InfraBootstrapper.php(111): KalturaLog::err('Class [DropFold...')
--
#6 {main}
2016-11-23 17:01:51 [0.000144] [1773259550] [16] [%context%] [InfraBootstrapper->_initNavigation] ERR: Exception: Class [EventNotificationTemplatesListAction] requires permissions [Array
(
--
] in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace:
#0 /opt/kaltura/app/ui_infra/InfraBootstrapper.php(111): KalturaLog::err('Class [EventNot...')
--
#6 {main}
2016-11-23 17:01:51 [0.000180] [1773259550] [17] [%context%] [InfraBootstrapper->_initNavigation] ERR: Exception: Class [EventNotificationTemplateConfigureAction] requires permissions [Array
(
--
] in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace:
#0 /opt/kaltura/app/ui_infra/InfraBootstrapper.php(111): KalturaLog::err('Class [EventNot...')
--
#6 {main}
2016-11-23 17:01:51 [0.000152] [1773259550] [18] [%context%] [InfraBootstrapper->_initNavigation] ERR: Exception: Class [EventNotificationTemplateUpdateStatusAction] requires permissions [Array
(
--
] in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace:
#0 /opt/kaltura/app/ui_infra/InfraBootstrapper.php(111): KalturaLog::err('Class [EventNot...')

Then when I set my email + password in the form I get in the logs

--
==> /opt/kaltura/log/kaltura_admin.log <==
2016-11-23 17:03:02 [0.000000] [559680315] [1] [%context%] [InfraBootstrapper->_initNavigation] ERR: Exception: Class [KalturaInternalToolsPluginSystemHelperAction] requires permissions [Array
(
--
] in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace:
#0 /opt/kaltura/app/ui_infra/InfraBootstrapper.php(111): KalturaLog::err('Class [KalturaI...')
--
#6 {main}
2016-11-23 17:03:02 [0.000909] [559680315] [2] [%context%] [InfraBootstrapper->_initNavigation] ERR: Exception: Class [VirusScanListAction] requires permissions [Array
(
--
] in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace:
#0 /opt/kaltura/app/ui_infra/InfraBootstrapper.php(111): KalturaLog::err('Class [VirusSca...')
--
#6 {main}
2016-11-23 17:03:02 [0.000274] [559680315] [3] [%context%] [InfraBootstrapper->_initNavigation] ERR: Exception: Class [VirusScanConfigureAction] requires permissions [Array
(
--
] in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace:
#0 /opt/kaltura/app/ui_infra/InfraBootstrapper.php(111): KalturaLog::err('Class [VirusSca...')
--
#6 {main}
2016-11-23 17:03:02 [0.000271] [559680315] [4] [%context%] [InfraBootstrapper->_initNavigation] ERR: Exception: Class [VirusScanSetStatusAction] requires permissions [Array
(
--
] in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace:
#0 /opt/kaltura/app/ui_infra/InfraBootstrapper.php(111): KalturaLog::err('Class [VirusSca...')
--
#6 {main}
2016-11-23 17:03:02 [0.000245] [559680315] [5] [%context%] [InfraBootstrapper->_initNavigation] ERR: Exception: Class [DistributionProfileListAction] requires permissions [Array
(
--
] in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace:
#0 /opt/kaltura/app/ui_infra/InfraBootstrapper.php(111): KalturaLog::err('Class [Distribu...')
--
#6 {main}
2016-11-23 17:03:02 [0.000268] [559680315] [6] [%context%] [InfraBootstrapper->_initNavigation] ERR: Exception: Class [DistributionProfileConfigureAction] requires permissions [Array
(
--
] in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace:
#0 /opt/kaltura/app/ui_infra/InfraBootstrapper.php(111): KalturaLog::err('Class [Distribu...')
--
#6 {main}
2016-11-23 17:03:02 [0.000264] [559680315] [7] [%context%] [InfraBootstrapper->_initNavigation] ERR: Exception: Class [DistributionProfileUpdateStatusAction] requires permissions [Array
(
--
] in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace:
#0 /opt/kaltura/app/ui_infra/InfraBootstrapper.php(111): KalturaLog::err('Class [Distribu...')
--
#6 {main}
2016-11-23 17:03:02 [0.000248] [559680315] [8] [%context%] [InfraBootstrapper->_initNavigation] ERR: Exception: Class [GenericDistributionProvidersListAction] requires permissions [Array
(
--
] in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace:
#0 /opt/kaltura/app/ui_infra/InfraBootstrapper.php(111): KalturaLog::err('Class [GenericD...')
--
#6 {main}
2016-11-23 17:03:02 [0.000242] [559680315] [9] [%context%] [InfraBootstrapper->_initNavigation] ERR: Exception: Class [GenericDistributionProviderConfigureAction] requires permissions [Array
(
--
] in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace:
#0 /opt/kaltura/app/ui_infra/InfraBootstrapper.php(111): KalturaLog::err('Class [GenericD...')
--
#6 {main}
2016-11-23 17:03:02 [0.000264] [559680315] [10] [%context%] [InfraBootstrapper->_initNavigation] ERR: Exception: Class [GenericDistributionProviderDeleteAction] requires permissions [Array
(
--
] in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace:
#0 /opt/kaltura/app/ui_infra/InfraBootstrapper.php(111): KalturaLog::err('Class [GenericD...')
--
#6 {main}
2016-11-23 17:03:02 [0.000255] [559680315] [11] [%context%] [InfraBootstrapper->_initNavigation] ERR: Exception: Class [XsltTesterAction] requires permissions [Array
(
--
] in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace:
#0 /opt/kaltura/app/ui_infra/InfraBootstrapper.php(111): KalturaLog::err('Class [XsltTest...')
--
#6 {main}
2016-11-23 17:03:02 [0.000234] [559680315] [12] [%context%] [InfraBootstrapper->_initNavigation] ERR: Exception: Class [XsltTesterApiAction] requires permissions [Array
(
--
] in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace:
#0 /opt/kaltura/app/ui_infra/InfraBootstrapper.php(111): KalturaLog::err('Class [XsltTest...')
--
#6 {main}
2016-11-23 17:03:02 [0.000243] [559680315] [13] [%context%] [InfraBootstrapper->_initNavigation] ERR: Exception: Class [DropFolderListAction] requires permissions [Array
(
--
] in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace:
#0 /opt/kaltura/app/ui_infra/InfraBootstrapper.php(111): KalturaLog::err('Class [DropFold...')
--
#6 {main}
2016-11-23 17:03:02 [0.000237] [559680315] [14] [%context%] [InfraBootstrapper->_initNavigation] ERR: Exception: Class [DropFolderConfigureAction] requires permissions [Array
(
--
] in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace:
#0 /opt/kaltura/app/ui_infra/InfraBootstrapper.php(111): KalturaLog::err('Class [DropFold...')
--
#6 {main}
2016-11-23 17:03:02 [0.000262] [559680315] [15] [%context%] [InfraBootstrapper->_initNavigation] ERR: Exception: Class [DropFolderSetStatusAction] requires permissions [Array
(
--
] in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace:
#0 /opt/kaltura/app/ui_infra/InfraBootstrapper.php(111): KalturaLog::err('Class [DropFold...')
--
#6 {main}
2016-11-23 17:03:02 [0.000238] [559680315] [16] [%context%] [InfraBootstrapper->_initNavigation] ERR: Exception: Class [EventNotificationTemplatesListAction] requires permissions [Array
(
--
] in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace:
#0 /opt/kaltura/app/ui_infra/InfraBootstrapper.php(111): KalturaLog::err('Class [EventNot...')
--
#6 {main}
2016-11-23 17:03:02 [0.000241] [559680315] [17] [%context%] [InfraBootstrapper->_initNavigation] ERR: Exception: Class [EventNotificationTemplateConfigureAction] requires permissions [Array
(
--
] in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace:
#0 /opt/kaltura/app/ui_infra/InfraBootstrapper.php(111): KalturaLog::err('Class [EventNot...')
--
#6 {main}
2016-11-23 17:03:02 [0.000250] [559680315] [18] [%context%] [InfraBootstrapper->_initNavigation] ERR: Exception: Class [EventNotificationTemplateUpdateStatusAction] requires permissions [Array
(
--
] in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace:
#0 /opt/kaltura/app/ui_infra/InfraBootstrapper.php(111): KalturaLog::err('Class [EventNot...')
--
==> /opt/kaltura/log/kaltura_apache_errors.log <==
[Wed Nov 23 17:03:02.153459 2016] [:error] [pid 19267] [client 10.20.0.202:42913] PHP Warning:  SimpleXMLElement::__construct(): Entity: line 1: parser error : Start tag expected, '&lt;' not found in /opt/kaltura/app/admin_console/lib/Kaltura/Client/UserService.php on line 179, referer: http://xxxxxxxmyhostxxxxxx.fr/admin_console/
[Wed Nov 23 17:03:02.153558 2016] [:error] [pid 19267] [client 10.20.0.202:42913] PHP Warning:  SimpleXMLElement::__construct(): REMOTE_ADDR header invalid signature in /opt/kaltura/app/admin_console/lib/Kaltura/Client/UserService.php on line 179, referer: http://xxxxxxxmyhostxxxxxx.fr/admin_console/
[Wed Nov 23 17:03:02.153574 2016] [:error] [pid 19267] [client 10.20.0.202:42913] PHP Warning:  SimpleXMLElement::__construct(): ^ in /opt/kaltura/app/admin_console/lib/Kaltura/Client/UserService.php on line 179, referer: http://xxxxxxxmyhostxxxxxx.fr/admin_console/

==> /opt/kaltura/log/kaltura_admin.log <==
2016-11-23 17:03:02 [0.000684] [559680315] [29] [%context%] [ErrorController->errorAction] ERR: Exception: String could not be parsed as XML in /opt/kaltura/app/admin_console/lib/Kaltura/Client/UserService.php:179
Stack trace:
#0 /opt/kaltura/app/admin_console/lib/Kaltura/Client/UserService.php(179): SimpleXMLElement->__construct('REMOTE_ADDR hea...')

Right. So the issue is here:
ed Nov 23 17:03:02.153459 2016] [:error] [pid 19267] [client 10.20.0.202:42913] PHP Warning: SimpleXMLElement::__construct(): Entity: line 1: parser error : Start tag expected, ‘<’ not found in /opt/kaltura/app/admin_console/lib/Kaltura/Client/UserService.php on line 179, referer: http://xxxxxxxmyhostxxxxxx.fr/admin_console/
[Wed Nov 23 17:03:02.153558 2016] [:error] [pid 19267] [client 10.20.0.202:42913] PHP Warning: SimpleXMLElement::__construct(): REMOTE_ADDR header invalid signature in /opt/kaltura/app/admin_console/lib/Kaltura/Client/UserService.php on line 179, referer: http://xxxxxxxmyhostxxxxxx.fr/admin_console/
[Wed Nov 23 17:03:02.153574 2016] [:error] [pid 19267] [client 10.20.0.202:42913] PHP Warning: SimpleXMLElement::__construct(): ^ in /opt/kaltura/app/admin_console/lib/Kaltura/Client/UserService.php on line 179, referer: http://xxxxxxxmyhostxxxxxx.fr/admin_console/

What’s the value for remote_addr_header_salt in /opt/kaltura/app/configurations/local.ini?

Do you want me to copy the salt here ?

I am using a VPN to connect to this server and for http I am using a proxy that may modify some headers but it was working yesterday and this afternoon until…

The salt is
;html5 settings
remote_addr_header_salt = "aHR0cD…yb3Vlbi5mcgo="
where … are only letters and numbers

HI @fravetier,

I don’t need the whole string… can you just make sure it is the same as the value for settings.remoteAddrHeaderSalt in /opt/kaltura/app/configurations/admin.ini?

Hello,
This parameter does not exists in this file

Hi @fravetier,

That will certainly account for the issue but I’m wondering how that can be…
Does it exist in /opt/kaltura/app/configurations/admin.template.ini?

This file comes from https://github.com/kaltura/server/blob/Lynx-12.6.0/configurations/admin.template.ini#L16
When running the post install script, the placeholders in this file are replaced with actual inputs and /opt/kaltura/app/configurations/admin.ini is created.

Anyhow, adding settings.remoteAddrHeaderSalt, setting it to the same value as remote_addr_header_salt in /opt/kaltura/app/configurations/local.ini and reload Apache should fix the issue.

Please let me know,

1 Like

Hi,

the template exists, it contains :

settings.remoteAddrHeaderSalt = @APP_REMOTE_ADDR_HEADER_SALT@

I added settings.remoteAddrHeaderSalt following by the right value into /opt/kaltura/app/configurations/local.ini. I reloaded apache.
Now the form still contains the authenticator code but I do not need to fill it and I am able to access to the admin console.

This issue is closed.

Thank you very much!