Issue in upgrading Kaltura Community Edition 11.21.0-2 installed to deb based Linux dist

I did try to upgrade following the instruction from https://github.com/kaltura/platform-install-packages/blob/Lynx-12.0.0/doc/install-kaltura-deb-based.md#upgrade-kaltura . I am a Sudo user but still am getting the following errors while running this upgrade command:
aptitude install ~Nkaltura

I am a bit lost seeing the following errors:

kaltura-batch.postinst FAILED with: 2843 on line 93
Archving logs to /opt/kaltura/log/log_02_10_21_20_19.tar.gz...
dpkg: error processing package kaltura-batch (--configure):
 subprocess installed post-installation script returned error exit status 11
dpkg: dependency problems prevent configuration of kaltura-server:
 kaltura-server depends on kaltura-batch; however:
  Package kaltura-batch is not configured yet.
 kaltura-server depends on kaltura-sphinx; however:
  Package kaltura-sphinx is not configured yet.
dpkg: error processing package kaltura-server (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.19-0ubuntu6.15) ...
Errors were encountered while processing:
 kaltura-sphinx
 kaltura-batch
 kaltura-server

Here is the latest log from kaltura_batch.log :

2021-10-02 20:19:49 [0.000000] [957244127] [1] [BATCH] [KSchedulerConfig->load] NOTICE: loading configuration /opt/kaltura/app/configurations/batch at 1633216673
PHP Fatal error: Uncaught exception 'Zend_Config_Exception' with message 'Section 'ip-10-155-123-20' 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-155-123-2...', true)
#1 /opt/kaltura/app/batch/scheduler/KSchedulerConfig.class.php(42): KSchedulerConfig->load()
#2 /opt/kaltura/app/batch/scheduler/KGenericScheduler.class.php(88): KSchedulerConfig->__construct('/opt/kaltura/ap...')
#3 /opt/kaltura/app/batch/scheduler/KGenericScheduler.class.php(70): KGenericScheduler->loadConfig('/opt/kaltura/ap...')
#4 /opt/kaltura/app/batch/KGenericBatchMgr.class.php(37): KGenericScheduler->__construct('/usr/bin/php', '/opt/kaltura/ap...')
#5 {main}
thrown in /opt/kaltura/app/vendor/ZendFramework/library/Zend/Config/Ini.php on line 150

Additionally, i followed the following FAQ (Kaltura Installation Packages Project)

    • I’ve installed Kaltura. How can I tell if there are any errors?
    • You can use the following tail and grep combination to monitor the logs for errors:
      tail -f /opt/kaltura/log/*.log | grep “ERR:|PHP|trace|CRIT” --color=always

and ran the following command to get some errors:
tail -f /opt/kaltura/log/*.log | grep "ERR:\|PHP\|trace\|CRIT" --color=always

Error:

PHP Fatal error:  Uncaught exception 'Zend_Config_Exception' with message 'Section 'ip-10-165-81-123' 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:
Stack trace:
Stack trace: