kaltura / platform-install-packages

Official deployment packages to install the Kaltura platform on a server or cluster environments using native OS package managers
GNU Affero General Public License v3.0
521 stars 242 forks source link

Kaltura redirecting to an old domain #612

Closed syedwaseemjan closed 7 years ago

syedwaseemjan commented 7 years ago

I had previously configured kaltura with domain name sspilotkaltura which is also the hostname of the server it is installed on and to play the videos from my machine I would add sspilotkaltura in /etc/hosts like this

192.168.90.105 sspilotkaltura

it worked but adding it to every client was becoming a problem for us so instead I decided to reconfigure kaltura with IP address of the server instead of domain name. After re-configuring (kaltura-config-all), everything seems to be working fine except when a video is played. When someone click the play button on a video, Kaltura sends a request like this

http://192.168.90.105/p/101/sp/10100/playManifest/entryId/0_s5ba3ck5/flavorId/0_ozmk47q3/format/url/protocol/http/a.mp4?referrer=aHR0cDovLzE5Mi4xNjguOTAuMTA4OjU1NTU=&playSessionId=16457d12-2dcf-102d-d662-099ec7877ee5&clientTag=html5:v2.60&uiConfId=23448189

which gets redirecred to

http://sspilotkaltura/p/101/sp/10100/serveFlavor/entryId/0_s5ba3ck5/v/2/flavorId/0_ozmk47q3/forceproxy/true/name/a.mp4

Why is it getting redirected to sspilotkaltura from 192.168.90.105.

Some of the files which has entry sspilotkaltura are

[dev@sspilotkaltura kaltura]$ sudo grep -r -l "sspilotkaltura"
[sudo] password for dev: 
app/configurations/local.ini.backup
app/configurations/sphinx/populate/sspilotkaltura.ini
app/configurations/batch/scheduler.conf
app/configurations/batch/batch.ini.backup
app/configurations/batch/scheduler.conf.backup
app/configurations/batch/batch.ini
app/configurations/monit/monit.avail/sphinx.populate.rc.backup
app/configurations/monit/monit.avail/sphinx.populate.rc
app/configurations/monit/monit.rc
app/configurations/monit/monit.rc.backup
app/deployment/base/scripts/init_data/07.DeliveryProfile.ini
app/deployment/base/scripts/init_content/04.dropFolder.-4.xml
app/deployment/updates/scripts/xml/responseProfiles/polls_response_profile.xml
app/deployment/updates/scripts/xml/responseProfiles/qna_response_profiles.xml
app/deployment/updates/scripts/xml/2017_06_20_AddMediaEntryReadyTemplate.xml
app/deployment/updates/scripts/xml/notifications/public_qna_notification.xml
app/deployment/updates/scripts/xml/notifications/code_qna_notification.xml
app/deployment/updates/scripts/xml/notifications/polls_qna_notification.xml
app/deployment/updates/scripts/xml/notifications/user_qna_notification.xml
web/html5/html5lib/v2.60/cache/f/d/fdf9b00587e8a51d24ba99f3d6c8afdec40ec978
web/html5/html5lib/v2.60/cache/f/7/f7675cd90a045eaecf510d7a1392b7fc5f2f1b67
web/html5/html5lib/v2.60/cache/6/8/6893cc254eaeab7512e5173d9bba1d6709b26176
web/html5/html5lib/v2.60/cache/1/4/146d5b2e57e40be544d2eb80407c88e586e73487
web/html5/html5lib/v2.60/cache/1/b/1b1cdbe904e713d3b8ddaf6f851824be766f0718
web/html5/html5lib/v2.60/cache/7/8/780aeeaf5dce57b106f7f93381479fbcc82468b8
web/html5/html5lib/v2.60/cache/7/7/7772af959404b1282dd3efa8223552e7486b2f4f
web/html5/html5lib/v2.60/cache/5/a/5a1ebf029439b7a98244e0d6391e576f913e113b
web/content/generatedUiConf/23/448/ui_conf_23448192__2.config.xml
web/content/generatedUiConf/23/448/ui_conf_23448134__2.config.xml
web/content/generatedUiConf/23/448/ui_conf_23448281__2.config.xml
web/content/generatedUiConf/23/448/ui_conf_23448236__2.config.xml
log/sphinx/kaltura_sphinx_query.log
log/kaltura_api_v3.log
log/batch/dbcleanup-0-2017-10-20.log
log/batch/kschedulehelper-0-2017-10-20.log
log/batch/dropfolderwatcher-0-2017-10-20.log
log/batch/jobsuspender-0-2017-10-20.log
log/batch/synchronizedistribution-0-2017-10-20.log
log/batch/clearcuepoints-0-2017-10-20.log
log/batch/validatelivemediaservers-0-2017-10-20.log
log/batch/partnerloadcleanup-0-2017-10-20.log

Libs

[dev@sspilotkaltura kaltura]$ rpm -qa "kaltura*"
kaltura-libopencore-amr-0.1.2-2.x86_64
kaltura-sshpass-1.05-1.x86_64
kaltura-kdp3wrapper-v37.0-1.noarch
kaltura-kdp3-v3.9.9-2.noarch
kaltura-libmediainfo-0.7.61-7.x86_64
kaltura-segmenter-1.0-2.x86_64
kaltura-kmc-v5.42.3-2.noarch
kaltura-pentaho-4.2.1-2.x86_64
kaltura-libfaac-1.26-1.x86_64
kaltura-libmemcached-1.0.16-2.x86_64
kaltura-kvpm-v1.0.6-1.noarch
kaltura-flexwrapper-v1.2-1.noarch
kaltura-mediainfo-0.7.61-7.x86_64
kaltura-sphinx-2.2.1-21.x86_64
kaltura-postinst-1.0.33-17.noarch
kaltura-batch-13.1.0-1.noarch
kaltura-kupload-v1.2.16-2.noarch
kaltura-dwh-12.14.0-1.noarch
kaltura-release-13.3.0-1.noarch
kaltura-x264-0.140-2.20140104.x86_64
kaltura-a52dec-0.7.4-11.x86_64
kaltura-lame-3.99.5-3.x86_64
kaltura-kclip-v1.1.2.1-2.noarch
kaltura-kdpwrapper-v11.0-1.noarch
kaltura-kcw-1.0.0-6.noarch
kaltura-fdk-acc-0.1.3-1.x86_64
kaltura-mencoder-3.4.6-9.x86_64
kaltura-html5-studio-v2.1.0-1.noarch
kaltura-monit-5.23.0-1.x86_64
kaltura-base-13.1.0-18.noarch
kaltura-ffmpeg-3.2-1.x86_64
kaltura-front-13.1.0-1.noarch
kaltura-clipapp-1.3-2.noarch
kaltura-server-13.1.0-1.noarch
kaltura-libass-0.9.11-2.x86_64
kaltura-libmcrypt-2.5.7-5.x86_64
kaltura-libmcrypt-devel-2.5.7-5.x86_64
kaltura-krecord-1.0.0-1.noarch
kaltura-kdp-v2.7.0-1.noarch
kaltura-widgets-1.0.0-8.noarch
kaltura-librtmp-2.3-3.x86_64
kaltura-html5lib-v2.60-1.noarch
kaltura-ffmpeg-aux-2.1.3-1.x86_64
kaltura-nginx-1.12.0-6.x86_64
kaltura-red5-1.0.6-1.x86_64
jessp01 commented 7 years ago

Hi @syedwaseemjan,

Please see the section about the kaltura.delivery_profile here: https://github.com/kaltura/platform-install-packages/blob/c09a944f9ca83aff854f4c6b2a184e2365abd82c/doc/kaltura-packages-faq.md#changing-apache-configurations-post-install

This also needs to be changed when changing the Kaltura service URL/endpoint.

syedwaseemjan commented 7 years ago

O yes updating db entries resolved the problem. Thanks alot.

jessp01 commented 7 years ago

Most welcome.