KMC not found : /index.phpmodule=kmc/amp;action=kmc2

Hi,
When I click on the link to go to KMC I get a not found. The link is
http:///kmc, it redirects me to http:///index.phpmodule=kmc/amp;action=kmc2

If I go to the admin, click on a publisher to select a user and click on login I am able to display the dashboard and the URL is http:///index.php/kmc/kmc4#dashboard|

If I try with this URL is another browser (or in private tab) then it redirects me again to http:///index.phpmodule=kmc/amp;action=kmc2

If I logout I get the login page at this URL : http:///index.php/kmc/kmc#dashboard|. If I use this URL in any case, it works.

  • How can I avoid the bad redirects ?
  • How can I have the right URL on the http:///index.php ?

Hello,

I am unable to reproduce the issue, on all my ENVs, $HOSTNAME/kmc redirects to http://jessex/index.php/kmc/kmc4, as it should.

Considering how from Admin Console->Publishers->Your Partner->Actions->Manage it does work correctly, I wouldn’t spend much time debugging it. You can just edit /opt/kaltura/app/start/index.php and instead of:

<a href="/kmc" target="_blank">Kaltura Management Console (KMC)</a>

Set:

<a href="/kmc/kmc4" target="_blank">Kaltura Management Console (KMC)</a>

However, if you do want to debug it, a good place to start would be /opt/kaltura/log/kaltura_prod.log and /opt/kaltura/log/kaltura_apache_access.log

Thank you.

If someone else has the same problem this is what I set because /kmc/kmc4 is not working.

<a href="/index.php/kmc/kmc#dashboard|" target="_blank">Kaltura Management Console (KMC)</a>

For you information, this is what I got in the logs:

==> /opt/kaltura/log/kaltura_prod.log <==
2016-11-23 15:40:40 [0.009735] [10.0.2.2] [1682327522] [1] [PS2] [sfContext->initialize] INFO: {sfContext} initialization
2016-11-23 15:40:40 [0.000324] [10.0.2.2] [1682327522] [2] [PS2] [sfController->initialize] INFO: {sfController} initialization
2016-11-23 15:40:40 [0.000355] [10.0.2.2] [1682327522] [3] [PS2] [sfRouting->parse] INFO: {sfRouting} match route [kmc] "/kmc"
2016-11-23 15:40:40 [0.000155] [10.0.2.2] [1682327522] [4] [PS2] [sfWebRequest->loadParameters] INFO: {sfRequest} request parameters array (  'module' => 'kmc',  'action' => 'kmc',)
2016-11-23 15:40:40 [0.000182] [10.0.2.2] [1682327522] [5] [PS2] [sfFrontWebController->dispatch] INFO: {sfController} dispatch request
2016-11-23 15:40:40 [0.000529] [10.0.2.2] [1682327522] [6] [PS2] [sfFilterChain->execute] INFO: {sfFilter} executing filter "sfRenderingFilter"
2016-11-23 15:40:40 [0.000163] [10.0.2.2] [1682327522] [7] [PS2] [sfFilterChain->execute] INFO: {sfFilter} executing filter "myHealthCheckAndSecurityFilter"
2016-11-23 15:40:40 [0.000230] [10.0.2.2] [1682327522] [8] [PS2] [myHealthCheckAndSecurityFilter->basicSecureRequest] WARN: basicSecureRequest: took [0.00010204315185547] seconds
2016-11-23 15:40:40 [0.000132] [10.0.2.2] [1682327522] [9] [PS2] [sfFilterChain->execute] INFO: {sfFilter} executing filter "sfCommonFilter"
2016-11-23 15:40:40 [0.000131] [10.0.2.2] [1682327522] [10] [PS2] [sfFilterChain->execute] INFO: {sfFilter} executing filter "sfFlashFilter"
2016-11-23 15:40:40 [0.000142] [10.0.2.2] [1682327522] [11] [PS2] [sfFilterChain->execute] INFO: {sfFilter} executing filter "sfExecutionFilter"
2016-11-23 15:40:40 [0.000479] [10.0.2.2] [1682327522] [12] [PS2] [sfAction->redirect] INFO: {sfAction} redirect to "http://xxxxxxxmyhostxxxxxx.fr/index.phpmodule=kmc/amp;action=kmc2"
2016-11-23 15:40:40 [0.000193] [10.0.2.2] [1682327522] [13] [PS2] [sfWebResponse->sendHttpHeaders] INFO: {sfResponse} send status "HTTP/1.0 302 Found"
2016-11-23 15:40:40 [0.000143] [10.0.2.2] [1682327522] [14] [PS2] [sfWebResponse->sendHttpHeaders] INFO: {sfResponse} send header "Location": "http://xxxxxxxmyhostxxxxxx.fr/index.phpmodule=kmc/amp;action=kmc2"
2016-11-23 15:40:40 [0.000165] [10.0.2.2] [1682327522] [15] [PS2] [sfResponse->sendContent] INFO: {sfResponse} send content (144 o)

There is a line where it redirects :

sfAction->redirect] INFO: {sfAction} redirect to

Actually it is not working, this morning the link

<a href="/index.php/kmc/kmc#dashboard|" target="_blank">Kaltura Management Console (KMC)</a>

is redirecting me to

http://streaming.xxxxxxxxfr/index.phpmodule=kmc/amp;action=kmc2#dashboard|

That’s really strange, it is like when I used the admin console to force a login following by a logout then the login page is accessible… or it is link to my other problem to access to the admin console