Blogs

Upgrading from Kaltura CE4 to CE5

June 19, 2012 by Arvind Das

After reading this blog entry one would able to upgrade from Kaltura CE4 to Kaltura CE5. In this entry , i briefly explained the steps needed for migration from Kaltura CE4 to Kaltura CE5

  • Export your CE 4 DataBase
  • Run the following command (replace [user] and [password] with relevant values:

    mysqldump kaltura -u[user] -p[password] > kaltura.sql
    
  • Install CE 5.0
  • Backup CE4 installation data and /opt/kaltura/web directory and install Kaltura CE5.

  • Replace values for (only) batch partner “-1” from new database with values in backup kaltura.sql file. Replace old values with new one in kaltura.sql
  • Import your CE4 DataBase
  • Run the following command (replace [user] and [password] with relevant values):

    mysql kaltura -u[user] -p[password] < kaltura.sql
    
  • Rsync backedup web directory to your CE5 web directory
  • For example

     
    rsync -r pathtobackup/web/* /opt/kaltura/web/
    
  • Run the migration scripts
    • run /opt/kaltura/app/deployment/updates/update.php
    • Run all sql scripts from /opt/kaltura/app/deployment/updates/sql
    • Run all php scritps from /opt/kaltura/app/deployment/updates/scripts with realrun param (for example: php script_name.php realrun)
    • Run all php scritps from /opt/kaltura/app/deployment/updates/scripts/add_permissions with realrun param (for example: php script_name.php realrun)
  • Deploy the KMC uiConf
  • Deploy kmc v4.0.12.5 ui conf by running:

    php /opt/kaltura/app/deployment/uiconf/deploy_v2.php --ini=/opt/kaltura/web/flash/kmc/v4.2.14.9/config.ini
    

    Also change permission of files

    chmod -R 777 /opt/kaltura/web/content/entry/data
    

    For CE5 to CE5 do not deploy UIconf and execute this script

    php /opt/kaltura/app/scripts/utils/updatePartnerEntries2Sphinx.php “partner_id”
    

    It should execute without errors else execute again.

    Execute the script below if you are unable to see newly uploaded content after rebooting server

    /usr/bin/php /opt/kaltura/app/plugins/sphinx_search/scripts/populateFromLog.php /opt/kaltura/app/plugins/sphinx_search/scripts/configs/server-sphinx.php
    
  • Run the Above script as a background process. Follow Instructions below
  • create a file as sphinx_server.sh and copy the above code into it as
  • #!/bin/sh
    /usr/bin/php /opt/kaltura/app/plugins/sphinx_search/scripts/populateFromLog.php /opt/kaltura/app/plugins/sphinx_search/scripts/configs/server-sphinx.php > /dev/null 2>&1 &
    
  • save and change its permissions to chmod +x sphinx_server.sh
  • Add the line below in /etc/rc.local so that it starts executing after server is rebooted

Comments

  • Posted : by slowflyer

    Run the migration scripts -- where are they? Add the line below in /etc/rc.local so that it starts executing after server is rebooted -- there is no line below?

  • Posted : by neuron005

    "Run the migration scripts " ---- steps below this line are for running migration scripts. In /etc/rc.local add this line at bottom-- sh /your_path_to_sphinx_server.sh/sphinx_server.sh

  • Posted : by Jon Stormont

    The blog and aboutus menu items wouldn't display for me in Google Chrome

  • Posted : by Jon Stormont

    Useful blog though. I had been meaning to write a script for deleting flavor videos files off disk and leaving the source by ls | grep 0_zjx4dvif | egrep -v mov | xargs rm in /opt/kaltura/web/content/entry/data/4/267

  • Posted : by Kinglok, Fong

    Would you mind explaining on "Replace values for (only) batch partner “-1”....Replace old values with new one in kaltura." You mean I have to set the batch partner value in the mysql dump file to -1?

  • Posted : by Michael Brennan

    as posted by kinglok, Fong I also do not understand what the batch partner value is. Where in the dumpfile would I look for it?

Leave a comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Follow Us

Recent Entries

Contact Us

We are based in Gurgaon,India.

For more information please email at info@oodlestechnologies.com, call +91.124.4053373 or write to us at Oodles Technologies Pvt Ltd, FF-E307, Sushant Arcade, Sushant Lok-I, Gurgaon , India, 122002.

You can also fill out the contact form below:

send copy to me