During the postinst phase of the kaltura-base deb and RPM, the ‘kaltura’ MySQL user’s passwd is taken from the DB1_PASS ENV var, which is set in /etc/kaltura.d/system.ini. Your output also suggests you’re missing the other DB1_.* vars.
Please check /etc/kaltura.d/system.ini.
I recommend that you edit:
/var/lib/dpkg/info/kaltura-base.postinst
so that:
#!/bin/bash
becomes:
#!/bin/bash -x
And then, either run:
# aptitude install -f
or
# dpkg-reconfigure kaltura-base
BASH will then output a lot of debug info to STDERR which will allow you to see exactly which line of code in the postinst script is failing and what ENV vars were set and what args were passed to the mysql client.
If you need help with the analysing the root cause, please paste that output here [minus the actual passwds of course].
Thank you @jess the DB1_PORT was missing for the kaltura-base setup and the SUPER_USER and SUPER_USER_PASSWD was missing for the kaltura-html5lib setup.
I entered the values to the system.ini and the installation went successfull throught.
After the setup were completed the values, which i entered weren’t in the system.ini anymore.
It seems that a script will overwrite this file after the setup and remove these vaules.
strange.
I entered the value once more for the next update.
Probably this happens only on a all-in-one installation. (Debian)
All these values are written to $BASE_DIR/app/configurations/system.ini which is symlinked to /etc/kaltura.d/system.ini, during the execution of /var/lib/dpkg/info/kaltura-base.postinst.
I have updated the upgrade instructions in the hope that they will now be clearer and easier to follow.
Please see:
or, in the event you’re running a cluster:
If you’re still not getting updates when running these commands, please paste the contents of /etc/apt/sources.list.d/kaltura.list here, as well as the output for each of the commands specified in the howto.
To only get INSTALLED kaltura packages but to be honest, it’s best to just use:
# aptitude dist-upgrade
since really, you also want to upgrade all the packages the Kaltura packages rely on, such as Apache, OpenSSL, PHP, etc. This is especially important from a security standpoint.
apt-key list complaints that one should not parse it’s output…
However these the following keys seems to belong to kaltura
uid [ unknown] Kaltura deb repo community@kaltura.com
sub rsa2048 2015-04-18 [E]
–
uid [ unknown] Kaltura deb repo community@kaltura.com
sub rsa2048 2015-01-01 [E]
I suggest you try to remove all the Kaltura keys you have and reimport.
I just tested on 2 of my ENVs [it’s not the same Debian version as yours but that shouldn’t make a difference in this respect] and had no issues.
For the purpose of debuging I tried apt-get update before importing the key.
That produced an error indicating a missing key ( NO_PUBKEY E7EEDECAA1174D5E )
After importing the keys again the message is different
The following signatures were invalid: AD4200615722734CBBE6C52FE7EEDECAA1174D5E
Only thing I can try to do is deploy on the exact same Debian version as you’re using, though again, the key handling should be the same regardless of the Debian/Ubuntu version, unless Ubuntu Xenial [16.04] is used, which has its own dedicated repo and thus a different GPG key. What version are you using?
Yes. Also, there are other issues with using Debian 9 [Stretch]. Please see a detailed explanation as to why, here:
For Debian, we only support 7 [Wheezy] and 8 [Jessie], for Ubuntu, both 14.04 and 16.04 are are supported.
If you want, you can deploy a Docker container of one of these versions on your actual machine, of course, a VM is fine too.
Note that the supported distros are always specified here: