Nearly every time I run the config I break KMC in some form or another, I have a backup that I keep reverting to (and is what is causing the IP changes), so I’d really like a way to figure out my current config so I can see what the right config looks like. Cause everytime I run /opt/kaltura/bin/kaltura-base-config.sh it does NOT show me the current values. This would be immensely valuable so I could understand what is going wrong…is this easily accessible or would the settings be used throughout a lot of files?
So since i used the backup, I’ve got a new ip now (10.0.0.243), and wnat to change the config to match it…but I don’t want to run the config because I know I’ll break it again without knowing what the current settings are.
Anyway, for more specific issues, here are the ones showing up now after reverting:
2016-07-12 15:00:06 [0.000790] [45.59.236.158] [1124235870] [53] [PS2] [KalturaStatement->execute] DEBUG: Sql took - 0.00033402442932129 seconds
2016-07-12 15:00:06 [0.000597] [45.59.236.158] [1124235870] [54] [PS2] [KExternalErrors::dieError] ERR: exception ‘Exception’ with message ‘exiting on error 6 - requested flavor was not found’ in /opt/kaltura/app/infra/log/KalturaLog.php:83
Stack trace: #0 /opt/kaltura/app/alpha/apps/kaltura/lib/KExternalErrors.class.php(128): KalturaLog::err(‘exiting on erro…’)
2016-07-12 15:00:26 [0.000000] [868622144] [1] [BATCH] [KSchedulerConfig->load] NOTICE: loading configuration /opt/kaltura/app/configurations/batch at 1465256427
PHP Fatal error: Uncaught exception ‘Zend_Config_Exception’ with message ‘Section ‘ip-10-0-0-243’ cannot be found in /opt/kaltura/app/cache//batch/config.ini’ in /opt/kaltura/app/vendor/ZendFramework/library/Zend/Config/Ini.php:150
Stack trace: #0 /opt/kaltura/app/batch/scheduler/KSchedulerConfig.class.php(59): Zend_Config_Ini->__construct(’/opt/kaltura/ap…’, ‘ip-10-0-0-243’, true)
For the latter one, I definitely keep loading nano, changing “[ip-10-0-0-199 : mainTemplate]” to “[ip-10-0-0-243 : mainTemplate]”, saving those changes, confirming those changes, only to check back later to see it’s changed back to 199. Any idea why that is?
The other error appears to only be a missing flavor, but that’s probably not a critical error, just maybe some config inconsistencies between my settings somewhere sof expected flavors. Still, not sure where to resolve it.
It’s clear at this point I just need to be able to successfully run the config. But since I don’t know the current values we’re using, I need to find what we are currently using, so I see the deb config has the folders where these values are stored:
i.e. Template: kaltura-base/apache_hostname
Type: string
Default:
Description: Apache virtual hostname:
So I need to track down the kaltura-base folder (which according to git should be along the lines of /deb/kaltura-base/
So if I can find the deb or kaltura-base files, I should be able to find the values I’m currently using, and maybe edit them. Because changing them within the files generating errors is clearly getting updated from the values stored in the kaltura-base folder. I feel I’m very close, just digging through folders now.
EDIT: Got it figured out, managed to do something to the batch scheduler to get it to update to the correct IP.