Upgrade From 9.19.8-2 to 10.4.0-1 Problems - Unable To Access Publisher Console

I found what seems to be causing the problem. When I run  /opt/kaltura/bin/kaltura-config-all.sh it is changing the apache port to port 80, when I change it back to 443, I have my admin console back but it is throwing other errors

KMC.mxml, KMC uiconf load failed: Error #2032

Hi,

Whenever you upgrade, you need to run kaltura-config-all.sh, it does several important actions.
You should take the /tmp/kaltura_*ans created and keep it somewhere you don’t have to interactively input values again and again. Then you can pass the file as the first arg to the config script.
You can see this template as ref:
https://github.com/kaltura/platform-install-packages/blob/Jupiter-10.5.0/doc/kaltura.template.ans

If, after running this, you still have issues, please run kaltlog on the server side while trying to login and check the errors.

I apologize, I managed to delete half of my post without realizing it. Therefore, I will start again. I followed all the upgrade instructions and was unable to access either interface. Here was my results for sanity check

/opt/kaltura/bin/kaltura-sanity.sh

[Space on /] [PASSED, RC: 0] - [.003900831]
[Space on /opt/kaltura/web] [PASSED, RC: 0] - [.004163834]
[Check httpd daemon status] [PASSED, RC: 0] - [.021267273]
Napping 1 seconds to allow the daemon httpd to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon httpd to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon httpd to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon httpd to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon httpd to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon httpd to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon httpd to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon httpd to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon httpd to finish its init after monit restarted it…
[Check httpd daemon is started by Monit] [PASSED, RC: 0] - [9.362304706]
[check daemon httpd init status] [PASSED, RC: 0] - [.005229642]
[Check kaltura-sphinx daemon status] [PASSED, RC: 0] - [.024081196]
Napping 1 seconds to allow the daemon kaltura-sphinx to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon kaltura-sphinx to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon kaltura-sphinx to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon kaltura-sphinx to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon kaltura-sphinx to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon kaltura-sphinx to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon kaltura-sphinx to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon kaltura-sphinx to finish its init after monit restarted it…
[Check kaltura-sphinx daemon is started by Monit] [PASSED, RC: 0] - [8.822085713]
[check daemon kaltura-sphinx init status] [PASSED, RC: 0] - [.004762938]
[Check kaltura-batch daemon status] [PASSED, RC: 0] - [.022416381]
Napping 1 seconds to allow the daemon kaltura-batch to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon kaltura-batch to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon kaltura-batch to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon kaltura-batch to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon kaltura-batch to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon kaltura-batch to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon kaltura-batch to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon kaltura-batch to finish its init after monit restarted it…
[Check kaltura-batch daemon is started by Monit] [PASSED, RC: 0] - [8.233710831]
[check daemon kaltura-batch init status] [PASSED, RC: 0] - [.004695740]
[Check kaltura-monit daemon status] [PASSED, RC: 0] - [.020639068]
[check daemon kaltura-monit init status] [PASSED, RC: 0] - [.005385344]
[Check memcached daemon status] [PASSED, RC: 0] - [.018502951]
Napping 1 seconds to allow the daemon memcached to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon memcached to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon memcached to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon memcached to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon memcached to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon memcached to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon memcached to finish its init after monit restarted it…
[Check memcached daemon is started by Monit] [PASSED, RC: 0] - [7.291488173]
[check daemon memcached init status] [PASSED, RC: 0] - [.005484644]
[kaltura-html5lib ver in KMC config.ini] [PASSED, RC: 0] - [.174147316]
[kaltura-kdp3 ver in KDP3 config.ini] [PASSED, RC: 0] - [.044994766]
[kaltura-kmc ver in KMC config.ini] [PASSED, RC: 0] - [.053887639]
PHP Warning:  file_get_contents(https://emlnx-media1.emcc.edu:443/kmc): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
 in /opt/kaltura/bin/get_kmc_swfs.php on line 9
[Get KMC SWFs] [FAILED, RC: 255] - [.359072418]
curl: no URL specified!
curl: try ‘curl --help’ or ‘curl --manual’ for more information
[check_testme_page] [FAILED, RC: 1] - [.429198288]
[check_kmc_index_page] [FAILED, RC: 1] - [.205744673]
curl: no URL specified!
curl: try ‘curl --help’ or ‘curl --manual’ for more information
[check_admin_console_index_page] [FAILED, RC: 1] - [.194798884]
[check_studio_index_page] [FAILED, RC: 1] - [.718025736]
[Create Partner] [FAILED, RC: 255] - [.313124945]
Partner creation failed. I will skip all tests that require it.
[Red5 file upload] [PASSED, RC: 0] - [4.890637456]

I realized that the pache port being used was 80, not 443. When I changed that, I was then able to access the admin_console, but I keep receiving the error “KMC.mxml, KMC uiconf load failed: Error #2032” when trying to access the publisher console.

I ran kaltlog while trying to access the publisher console and this is the only information it gave

2015-02-18 10:33:34 [0.000266] [10.40.3.57] [1186224528] [PS2] [sfView->initialize] INFO: {sfView} initialize view for "kmc/kmc4"

2015-02-18 10:33:34 [0.000586] [10.40.3.57] [1186224528] [PS2] [sfPHPView->renderFile] INFO: {sfView} render "/opt/kaltura/app/alpha/apps/kaltura/modules/kmc/templates/kmc4Success.php"
2015-02-18 10:33:34 [0.001052] [10.40.3.57] [1186224528] [PS2] [sfPHPView->decorate] INFO: {sfView} decorate content with "/opt/kaltura/app/alpha/apps/kaltura/templates/kmclayout.php"
2015-02-18 10:33:34 [0.000125] [10.40.3.57] [1186224528] [PS2] [sfPHPView->renderFile] INFO: {sfView} render "/opt/kaltura/app/alpha/apps/kaltura/templates/kmclayout.php"
2015-02-18 10:33:34 [0.000518] [10.40.3.57] [1186224528] [PS2] [sfRenderingFilter->execute] INFO: {sfFilter} render to client

I hope my problem makes more sense now that I have provided all the information. Apologies again for posting that first mess.

Hey and np,

The output of kaltlog does not indicate any errors…
Run an HTTP sniffer when loading KMC and let us see what calls it is making…

For some reason, when it is making the call to get kmc.swf, it is doing it on port 80

OK, output for:
# apachectl -t -DDUMP_VHOSTS
# ls -al /etc/httpd/conf.d
# ls -al /opt/kaltura/app/configurations/apache/conf.d/enabled*
mysql>select * from permission WHERE permission.NAME=‘FEATURE_KMC_ENFORCE_HTTPS’\G

?

apachectl -t -DDUMP_VHOSTS

[Wed Feb 18 13:07:24 2015] [warn] NameVirtualHost *:443 has no VirtualHosts
VirtualHost configuration:
10.40.1.80:443         emlnx-media1.emcc.edu (/etc/httpd/conf.d/zzzkaltura.ssl.conf:18)
wildcard NameVirtualHosts and default servers:
*:80                   is a NameVirtualHost
         default server emlnx-media1.domain.edu (/etc/httpd/conf.d/kaltura.conf:1)
         port 80 namevhost emlnx-media1.domain.edu (/etc/httpd/conf.d/kaltura.conf:1)
         port 80 namevhost tiki.domain.edu (/etc/httpd/conf.d/tiki.conf:1)
         port 80 namevhost videos.domain.edu (/etc/httpd/conf/httpd.conf:1012)
Syntax OK

ls -al /etc/httpd/conf.d

total 32
drwxr-xr-x 2 root root 4096 Feb 18 09:50 .
drwxr-xr-x 4 root root 4096 Dec 10 11:03 …
-rw-r–r-- 1 root root  139 Feb 18 09:33 kaltura.conf
-rw-r–r-- 1 root root  674 Oct 30 16:17 php.conf
-rw-r–r-- 1 root root  392 Oct 16 10:49 README
-rw-r–r-- 1 root root 2630 Feb 18 09:22 ssl.conf
-rw-r–r-- 1 root root  171 Dec 15 13:39 tiki.conf
-rw-r–r-- 1 root root  299 Aug 15  2014 welcome.conf
lrwxrwxrwx 1 root root   55 Feb 18 09:50 zzzkaltura.ssl.conf -> /opt/kaltura/app/configurations/apache/kaltura.ssl.conf

 ls -al /opt/kaltura/app/configurations/apache/conf.d/enabled*

lrwxrwxrwx 1 root root    56 Feb 18 09:52 /opt/kaltura/app/configurations/apache/conf.d/enabled.admin.conf -> /opt/kaltura/app/configurations/apache/conf.d/admin.conf
lrwxrwxrwx 1 root root     9 Feb 18 09:52 /opt/kaltura/app/configurations/apache/conf.d/enabled.apps.conf -> apps.conf
-rw-r–r-- 1 root root 11080 Feb 18 09:52 /opt/kaltura/app/configurations/apache/conf.d/enabled.kaltura.conf
-rw-r–r-- 1 root root 11080 Feb 18 09:50 /opt/kaltura/app/configurations/apache/conf.d/enabled.kaltura.conf.backup
-rw-r–r-- 1 root root 10990 Feb  8 03:00 /opt/kaltura/app/configurations/apache/conf.d/enabled.kaltura.conf.template
lrwxrwxrwx 1 root root     8 Feb 18 09:52 /opt/kaltura/app/configurations/apache/conf.d/enabled.var.conf -> var.conf

select * from permission WHERE permission.NAME='FEATURE_KMC_ENFORCE_HTTPS'\G

*************************** 1. row ***************************
                         id: 243
                       type: 2
                       name: FEATURE_KMC_ENFORCE_HTTPS
              friendly_name: Force KMC HTTPS
                description:
                 partner_id: 0
                     status: 1
depends_on_permission_names:
                       tags:
                 created_at: 2014-12-10 11:51:28
                 updated_at: 2014-12-10 11:51:28
                custom_data: a:1:{s:13:“partner_group”;s:0:"";}
*************************** 2. row ***************************
                         id: 335
                       type: 2
                       name: FEATURE_KMC_ENFORCE_HTTPS
              friendly_name: NULL
                description: NULL
                 partner_id: 101
                     status: 1
depends_on_permission_names: NULL
                       tags: NULL
                 created_at: 2014-12-10 12:04:15
                 updated_at: 2015-02-18 09:41:18
                custom_data: NULL
2 rows in set (0.00 sec)

OK, this looks alright, what about:
# grep emlnx-media1.emcc.edu /opt/kaltura/app/configurations/*ini

grep emlnx-media1.domain.edu /opt/kaltura/app/configurations/*ini
    /opt/kaltura/app/configurations/admin.ini:settings.serviceUrl=https://emlnx-media1.domain.edu:443
    /opt/kaltura/app/configurations/broadcast.ini:domain = emlnx-media1.domain.edu:80
    /opt/kaltura/app/configurations/dc_config.ini:0.url = https://emlnx-media1.domain.edu:443
    /opt/kaltura/app/configurations/local.ini:cdn_host = emlnx-media1.domain.edu
    /opt/kaltura/app/configurations/local.ini:cdn_host_https = emlnx-media1.domain.edu
    /opt/kaltura/app/configurations/local.ini:www_host = emlnx-media1.domain.edu:80
    /opt/kaltura/app/configurations/local.ini:play_server_host = emlnx-media1.domain.edu:80
    /opt/kaltura/app/configurations/local.ini:cdn_api_host = emlnx-media1.domain.edu:80
    /opt/kaltura/app/configurations/local.ini:cdn_api_host_https = emlnx-media1.domain.edu:80
    /opt/kaltura/app/configurations/local.ini:stats_host = emlnx-media1.domain.edu:80
    /opt/kaltura/app/configurations/local.ini:stats_host_https = emlnx-media1.domain.edu:80
    /opt/kaltura/app/configurations/local.ini:api_cache_warmup_host = emlnx-media1.domain.edu:80
    /opt/kaltura/app/configurations/local.ini:html5lib_host = emlnx-media1.domain.edu:80
    /opt/kaltura/app/configurations/local.ini:apphome_url=https://emlnx-media1.domain.edu:443
    /opt/kaltura/app/configurations/local.ini:apphome_url_no_protocol = emlnx-media1.domain.edu
    /opt/kaltura/app/configurations/local.ini:admin_console_url=https://emlnx-media1.domain.edu:443
    /opt/kaltura/app/configurations/local.ini:default_email = customer_service@emlnx-media1.domain.edu
    /opt/kaltura/app/configurations/local.ini:partner_registration_confirmation_email = registration_confirmation@emlnx-media1.domain.edu
    /opt/kaltura/app/configurations/local.ini:partner_notification_email = customer_service@emlnx-media1.domain.edu
    /opt/kaltura/app/configurations/local.ini:partner_change_email_email = customer_service@emlnx-media1.domain.edu
    /opt/kaltura/app/configurations/local.ini:purchase_package_email = customer_service@emlnx-media1.domain.edu
    /opt/kaltura/app/configurations/local.ini:batch_download_video_sender_email = download_video@emlnx-media1.domain.edu
    /opt/kaltura/app/configurations/local.ini:batch_flatten_video_sender_email = download_video@emlnx-media1.domain.edu
    /opt/kaltura/app/configurations/local.ini:batch_notification_sender_email = notifications@emlnx-media1.domain.edu
    /opt/kaltura/app/configurations/local.ini:batch_alert_email = alert@emlnx-media1.domain.edu
    /opt/kaltura/app/configurations/local.ini:bulk_notification_sender_email = notifications@emlnx-media1.domain.edu
    /opt/kaltura/app/configurations/local.ini:live_report_sender_email = live_report@emlnx-media1.domain.edu
    /opt/kaltura/app/configurations/local.ini:remote_addr_header_server = emlnx-media1.domain.edu:80
    /opt/kaltura/app/configurations/local.ini:default = https://emlnx-media1.domain.edu:443/index.php/kmc/kmc/setpasshashkey/
    /opt/kaltura/app/configurations/local.ini:admin_console=https://emlnx-media1.domain.edu:443
    /opt/kaltura/app/configurations/system.ini:SERVICE_URL=https://emlnx-media1.domain.edu:443
    /opt/kaltura/app/configurations/system.ini:KALTURA_VIRTUAL_HOST_NAME=emlnx-media1.domain.edu
    /opt/kaltura/app/configurations/system.ini:RED5_HOST=emlnx-media1.domain.edu
    /opt/kaltura/app/configurations/var.ini:settings.serviceUrl=https://emlnx-media1.domain.edu:443

So this is the problem… every place that says ‘80’ should be ‘443’.
If you run the kaltura-config-all.sh script while passing an answer file with the correct choices [443 as port and ‘https’ as protocol, and the correct service_url, etc] it should correctly set it up. You can also manually replace but I recommend the first option.

I had created a new one referencing the one I used from version 9. One question I have is, what do I put for WWW_HOST= ?

Looks good Jessie, I will test everything to make sure all is good. I appreciate your help. This issue an be closed.

Good, happy to help:)