Can't get rid of snakeoil in kaltura apache ssl configuration file when installing

Hi Jeff,

Thanks for your help! I agree, to the best of my knowledge (which isn’t saying much I’m afraid) there shouldn’I have been anything left from previous apache2 installations. That’s why I looked into hostname and /etc/hostnames, but I understand from your message that this doesn’t explain it either. THe server can be accessed externally through the mydomain.eu address, that is just regularly registered through a hostingprovider and I’ve pointed the IPV4 pointer to the fixed IP address of this server. I could also easily access the main website through this address (at least before I removed apache and the /etc/apache2 directories :wink: ).

In order to see whether we can make further progress I tried the following experiment:

  • update/upgrade to make sure I’ve the latest versions of all current packages
  • reinstall apache2 from synaptic. This gave an error on an unmet dependency on libapache2-mod-php5 (even though synaptic indicated that this package was installed)
  • completely removed libapache2-mod-php5 and installed again. THen re-ran reinstall apache2. This time the error was about an unmet dependency for libapache2-mod-xsendfile, for which I did the same (remove, install, reran reinstall apache2). Now there were no error messages any more and apache was running happily on *:80 with the default conf.

I then re-ran the installation script. This time I think the script progressed further before running into problems. The first serious problem seems to be:
PHP Fatal error: Uncaught exception ‘Exception’ with message ‘Storage Profile [] not found’ in /opt/kaltura/app/alpha/apps/kaltura/lib/storage/kPathManager.php:77

This doesn’t ring a bell, I don’t think I’ve seen this message before. For completeness I’m once again including the complete transcript. Since this time the script did not ask for input, I did not edit it, there doesn’t seem to be any privacy-sensitive stuff in there:

–2015-09-17 17:59:03-- http://installrepo.kaltura.org/repo/apt/debian/kaltura-deb.gpg.key
Resolving installrepo.kaltura.org (installrepo.kaltura.org)… 54.230.130.165, 54.230.131.6, 54.230.131.70, …
Connecting to installrepo.kaltura.org (installrepo.kaltura.org)|54.230.130.165|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 1727 (1,7K) [text/plain]
Saving to: ‘STDOUT’

 0K .                                                     100%  240M=0s

2015-09-17 17:59:03 (240 MB/s) - written to stdout [1727/1727]

OK
/usr/bin/aptitude
Ign http://nl.archive.ubuntu.com trusty InRelease
Ign http://nl.archive.ubuntu.com trusty-updates InRelease
Ign http://nl.archive.ubuntu.com trusty-backports InRelease
Ign http://security.ubuntu.com trusty-security InRelease
Ign http://extras.ubuntu.com trusty InRelease
Hit http://nl.archive.ubuntu.com trusty Release.gpg
Ign http://ppa.launchpad.net trusty InRelease
Hit http://nl.archive.ubuntu.com trusty-updates Release.gpg
Hit http://security.ubuntu.com trusty-security Release.gpg
Hit http://extras.ubuntu.com trusty Release.gpg
Hit http://nl.archive.ubuntu.com trusty-backports Release.gpg
Ign http://ppa.launchpad.net trusty InRelease
Hit http://nl.archive.ubuntu.com trusty Release
Hit http://nl.archive.ubuntu.com trusty-updates Release
Hit http://extras.ubuntu.com trusty Release
Hit http://security.ubuntu.com trusty-security Release
Hit http://nl.archive.ubuntu.com trusty-backports Release
Ign http://ppa.launchpad.net trusty InRelease
Hit http://nl.archive.ubuntu.com trusty/main Sources
Hit http://ppa.launchpad.net trusty Release.gpg
Hit http://nl.archive.ubuntu.com trusty/restricted Sources
Hit http://ppa.launchpad.net trusty Release.gpg
Hit http://nl.archive.ubuntu.com trusty/universe Sources
Hit http://extras.ubuntu.com trusty/main Sources
Hit http://nl.archive.ubuntu.com trusty/multiverse Sources
Hit http://ppa.launchpad.net trusty Release.gpg
Hit http://security.ubuntu.com trusty-security/main Sources
Hit http://nl.archive.ubuntu.com trusty/main amd64 Packages
Hit http://nl.archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://ppa.launchpad.net trusty Release
Hit http://extras.ubuntu.com trusty/main amd64 Packages
Hit http://nl.archive.ubuntu.com trusty/universe amd64 Packages
Hit http://security.ubuntu.com trusty-security/restricted Sources
Hit http://nl.archive.ubuntu.com trusty/multiverse amd64 Packages
Hit http://ppa.launchpad.net trusty Release
Hit http://nl.archive.ubuntu.com trusty/main i386 Packages
Hit http://extras.ubuntu.com trusty/main i386 Packages
Hit http://security.ubuntu.com trusty-security/universe Sources
Hit http://nl.archive.ubuntu.com trusty/restricted i386 Packages
Hit http://ppa.launchpad.net trusty Release
Hit http://security.ubuntu.com trusty-security/multiverse Sources
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Hit http://security.ubuntu.com trusty-security/main amd64 Packages
Hit http://ppa.launchpad.net trusty/main i386 Packages
Hit http://security.ubuntu.com trusty-security/restricted amd64 Packages
Hit http://ppa.launchpad.net trusty/main Translation-en
Hit http://security.ubuntu.com trusty-security/universe amd64 Packages
Hit http://nl.archive.ubuntu.com trusty/universe i386 Packages
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Hit http://security.ubuntu.com trusty-security/multiverse amd64 Packages
Hit http://nl.archive.ubuntu.com trusty/multiverse i386 Packages
Hit http://ppa.launchpad.net trusty/main i386 Packages
Hit http://nl.archive.ubuntu.com trusty/main Translation-en
Hit http://security.ubuntu.com trusty-security/main i386 Packages
Hit http://ppa.launchpad.net trusty/main Translation-en
Hit http://nl.archive.ubuntu.com trusty/multiverse Translation-en
Hit http://security.ubuntu.com trusty-security/restricted i386 Packages
Hit http://nl.archive.ubuntu.com trusty/restricted Translation-en
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Hit http://installrepo.kaltura.org jupiter InRelease
Hit http://security.ubuntu.com trusty-security/universe i386 Packages
Hit http://nl.archive.ubuntu.com trusty/universe Translation-en
Hit http://ppa.launchpad.net trusty/main i386 Packages
Ign http://extras.ubuntu.com trusty/main Translation-en_US
Hit http://nl.archive.ubuntu.com trusty-updates/main Sources
Hit http://security.ubuntu.com trusty-security/multiverse i386 Packages
Hit http://nl.archive.ubuntu.com trusty-updates/restricted Sources
Hit http://ppa.launchpad.net trusty/main Translation-en
Hit http://nl.archive.ubuntu.com trusty-updates/universe Sources
Ign http://extras.ubuntu.com trusty/main Translation-en
Hit http://security.ubuntu.com trusty-security/main Translation-en
Hit http://nl.archive.ubuntu.com trusty-updates/multiverse Sources
Hit http://nl.archive.ubuntu.com trusty-updates/main amd64 Packages
Hit http://security.ubuntu.com trusty-security/multiverse Translation-en
Hit http://nl.archive.ubuntu.com trusty-updates/restricted amd64 Packages
Hit http://nl.archive.ubuntu.com trusty-updates/universe amd64 Packages
Hit http://nl.archive.ubuntu.com trusty-updates/multiverse amd64 Packages
Hit http://security.ubuntu.com trusty-security/restricted Translation-en
Hit http://nl.archive.ubuntu.com trusty-updates/main i386 Packages
Hit http://nl.archive.ubuntu.com trusty-updates/restricted i386 Packages
Hit http://nl.archive.ubuntu.com trusty-updates/universe i386 Packages
Hit http://nl.archive.ubuntu.com trusty-updates/multiverse i386 Packages
Hit http://security.ubuntu.com trusty-security/universe Translation-en
Hit http://nl.archive.ubuntu.com trusty-updates/main Translation-en
Hit http://nl.archive.ubuntu.com trusty-updates/multiverse Translation-en
Hit http://nl.archive.ubuntu.com trusty-updates/restricted Translation-en
Hit http://nl.archive.ubuntu.com trusty-updates/universe Translation-en
Hit http://nl.archive.ubuntu.com trusty-backports/main Sources
Hit http://nl.archive.ubuntu.com trusty-backports/restricted Sources
Hit http://nl.archive.ubuntu.com trusty-backports/universe Sources
Hit http://nl.archive.ubuntu.com trusty-backports/multiverse Sources
Hit http://nl.archive.ubuntu.com trusty-backports/main amd64 Packages
Hit http://nl.archive.ubuntu.com trusty-backports/restricted amd64 Packages
Hit http://nl.archive.ubuntu.com trusty-backports/universe amd64 Packages
Hit http://nl.archive.ubuntu.com trusty-backports/multiverse amd64 Packages
Hit http://nl.archive.ubuntu.com trusty-backports/main i386 Packages
Hit http://nl.archive.ubuntu.com trusty-backports/restricted i386 Packages
Hit http://installrepo.kaltura.org jupiter/main amd64 Packages
Hit http://nl.archive.ubuntu.com trusty-backports/universe i386 Packages
Hit http://nl.archive.ubuntu.com trusty-backports/multiverse i386 Packages
Hit http://nl.archive.ubuntu.com trusty-backports/main Translation-en
Hit http://nl.archive.ubuntu.com trusty-backports/multiverse Translation-en
Hit http://nl.archive.ubuntu.com trusty-backports/restricted Translation-en
Hit http://nl.archive.ubuntu.com trusty-backports/universe Translation-en
Ign http://nl.archive.ubuntu.com trusty/main Translation-en_US
Ign http://nl.archive.ubuntu.com trusty/multiverse Translation-en_US
Ign http://nl.archive.ubuntu.com trusty/restricted Translation-en_US
Ign http://nl.archive.ubuntu.com trusty/universe Translation-en_US
Ign http://installrepo.kaltura.org jupiter/main Translation-en_US
Ign http://installrepo.kaltura.org jupiter/main Translation-en
Reading package lists…
Reading package lists…
Building dependency tree…
Reading state information…
Reading extended state information…
Initializing package states…
Writing extended state information…
The following packages will be REMOVED:
kaltura-ffmpeg{u} kaltura-ffmpeg-aux{u}
0 packages upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 42,0 kB will be freed.
Writing extended state information…
(Reading database … 338245 files and directories currently installed.)
Removing kaltura-ffmpeg (2.1.3-1+b23) …
Removing kaltura-ffmpeg-aux (0.6-2+b1) …
Reading package lists…
Building dependency tree…
Reading state information…
Reading extended state information…
Initializing package states…
Writing extended state information…
‘multiverse’ distribution component is already enabled for all sources.
Reading package lists…
Building dependency tree…
Reading state information…
Reading extended state information…
Initializing package states…
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Writing extended state information…
Reading package lists…
Building dependency tree…
Reading state information…
Reading extended state information…
Initializing package states…
Reading package lists…
Building dependency tree…
Reading state information…
Reading extended state information…
Initializing package states…
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Writing extended state information…
Reading package lists…
Building dependency tree…
Reading state information…
Reading extended state information…
Initializing package states…
Reading package lists…
Building dependency tree…
Reading state information…
Reading extended state information…
Initializing package states…
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Writing extended state information…
Reading package lists…
Building dependency tree…
Reading state information…
Reading extended state information…
Initializing package states…
Reading package lists…
Building dependency tree…
Reading state information…
Reading extended state information…
Initializing package states…
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Writing extended state information…
Reading package lists…
Building dependency tree…
Reading state information…
Reading extended state information…
Initializing package states…
Reading package lists…
Building dependency tree…
Reading state information…
Reading extended state information…
Initializing package states…
The following NEW packages will be installed:
kaltura-ffmpeg{a} kaltura-ffmpeg-aux{a} kaltura-front
0 packages upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/18,8 MB of archives. After unpacking 50,2 kB will be used.
Writing extended state information…
Preconfiguring packages …
Selecting previously unselected package kaltura-ffmpeg.
(Reading database … 337897 files and directories currently installed.)
Preparing to unpack …/kaltura-ffmpeg_2.1.3-1+b23_amd64.deb …
Unpacking kaltura-ffmpeg (2.1.3-1+b23) …
Selecting previously unselected package kaltura-ffmpeg-aux.
Preparing to unpack …/kaltura-ffmpeg-aux_0.6-2+b1_amd64.deb …
Unpacking kaltura-ffmpeg-aux (0.6-2+b1) …
Selecting previously unselected package kaltura-front.
Preparing to unpack …/kaltura-front_10.19.0-1+b2_all.deb …
Unpacking kaltura-front (10.19.0-1+b2) …
Setting up kaltura-ffmpeg (2.1.3-1+b23) …
Setting up kaltura-ffmpeg-aux (0.6-2+b1) …
Setting up kaltura-front (10.19.0-1+b2) …
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0 0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
100 491 0 0 100 491 0 1067 --:–:-- --:–:-- --:–:-- 1065
Considering dependency setenvif for ssl:
Module setenvif already enabled
Considering dependency mime for ssl:
Module mime already enabled
Considering dependency socache_shmcb for ssl:
Enabling module socache_shmcb.
Enabling module ssl.
See /usr/share/doc/apache2/README.Debian.gz on how to configure SSL and create self-signed certificates.
To activate the new configuration, you need to run:
service apache2 restart
ERROR: No site found matching zzzkaltura*!
Enabling site zzzkaltura.ssl.
To activate the new configuration, you need to run:
service apache2 reload
Enabling site apps.
To activate the new configuration, you need to run:
service apache2 reload
Enabling site var.
To activate the new configuration, you need to run:
service apache2 reload
Enabling site admin.
To activate the new configuration, you need to run:
service apache2 reload

  • Reloading web server apache2

Site 000-default disabled.
To activate the new configuration, you need to run:
service apache2 reload
Site default-ssl already disabled

  • Reloading web server apache2
  • Restarting daemon monitor monit
    /etc/monit/conf.d/batch.rc:3: Warning: Program does not exist: ‘/etc/init.d/kaltura-batch’
    /etc/monit/conf.d/batch.rc:4: Warning: Program does not exist: ‘/etc/init.d/kaltura-batch’
    …done.
    PHP Fatal error: Uncaught exception ‘Exception’ with message ‘Storage Profile [] not found’ in /opt/kaltura/app/alpha/apps/kaltura/lib/storage/kPathManager.php:77
    Stack trace:
    #0 /opt/kaltura/app/alpha/apps/kaltura/lib/storage/kFileSyncUtils.class.php(954): kPathManager::getFilePathArr(Object(FileSyncKey))
    #1 /opt/kaltura/app/alpha/apps/kaltura/lib/storage/kFileSyncUtils.class.php(216): kFileSyncUtils::getLocalFilePathArrForKey(Object(FileSyncKey))
    #2 /opt/kaltura/app/alpha/lib/model/uiConf.php(340): kFileSyncUtils::file_put_contents(Object(FileSyncKey), ‘<layout id="def…’)
    #3 /opt/kaltura/app/alpha/lib/model/uiConf.php(143): uiConf->saveConfFileToDisk(’<layout id="def…’, NULL, false)
    #4 /opt/kaltura/app/deployment/uiconf/deploy_v2.php(356): uiConf->save()
    #5 /opt/kaltura/app/deployment/uiconf/deploy_v2.php(181): uiConfDeployment::addUiConfThroughPropel(Object(uiConf))
    #6 /opt/kaltura/app/deployment/uiconf/deploy_v2.php(49): uiConfDeployment::deploy(Object(Zend_Config_Ini))
    #7 {main}
    thrown in /opt/kaltura/app/alpha/apps/kaltura/lib/storage/kPathManager.php on line 77
    chown: cannot access ‘/opt/kaltura/web/content/generatedUiConf/’: No such file or directory
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
    100 493 0 0 100 493 0 1270 --:–:-- --:–:-- --:–:-- 1267
    100 493 0 0 100 493 0 1269 --:–:-- --:–:-- --:–:-- 1267
    Processing triggers for libc-bin (2.19-0ubuntu6.6) …
    Reading package lists…
    Building dependency tree…
    Reading state information…
    Reading extended state information…
    Initializing package states…
    Writing extended state information…
    Reading package lists…
    Building dependency tree…
    Reading state information…
    Reading extended state information…
    Initializing package states…
    The following NEW packages will be installed:
    kaltura-sphinx
    0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    Need to get 0 B/5528 kB of archives. After unpacking 15,5 MB will be used.
    Writing extended state information…
    Selecting previously unselected package kaltura-sphinx.
    (Reading database … 338246 files and directories currently installed.)
    Preparing to unpack …/kaltura-sphinx_2.2.1-3+b1_amd64.deb …
    Unpacking kaltura-sphinx (2.2.1-3+b1) …
    Processing triggers for ureadahead (0.100.0-16) …
    Setting up kaltura-sphinx (2.2.1-3+b1) …
    update-rc.d: warning: default start runlevel arguments (2 3 4 5) do not match kaltura-sphinx Default-Start values (none)
    update-rc.d: warning: default stop runlevel arguments (0 1 6) do not match kaltura-sphinx Default-Stop values (0 1 2 3 4 5 6)
    Adding system startup for /etc/init.d/kaltura-sphinx …
    /etc/rc0.d/K20kaltura-sphinx -> …/init.d/kaltura-sphinx
    /etc/rc1.d/K20kaltura-sphinx -> …/init.d/kaltura-sphinx
    /etc/rc6.d/K20kaltura-sphinx -> …/init.d/kaltura-sphinx
    /etc/rc2.d/S20kaltura-sphinx -> …/init.d/kaltura-sphinx
    /etc/rc3.d/S20kaltura-sphinx -> …/init.d/kaltura-sphinx
    /etc/rc4.d/S20kaltura-sphinx -> …/init.d/kaltura-sphinx
    /etc/rc5.d/S20kaltura-sphinx -> …/init.d/kaltura-sphinx
    System start/stop links for /etc/init.d/kaltura-populate already exist.
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
    100 492 0 0 100 492 0 1337 --:–:-- --:–:-- --:–:-- 1340
  • Starting daemon monitor monit
    /etc/monit/conf.d/batch.rc:3: Warning: Program does not exist: ‘/etc/init.d/kaltura-batch’
    /etc/monit/conf.d/batch.rc:4: Warning: Program does not exist: ‘/etc/init.d/kaltura-batch’
    …done.
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
    100 494 0 0 100 494 0 1302 --:–:-- --:–:-- --:–:-- 1303
    Processing triggers for libc-bin (2.19-0ubuntu6.6) …
    Reading package lists…
    Building dependency tree…
    Reading state information…
    Reading extended state information…
    Initializing package states…
    Writing extended state information…
    Reading package lists…
    Building dependency tree…
    Reading state information…
    Reading extended state information…
    Initializing package states…
    The following NEW packages will be installed:
    kaltura-db
    0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    Need to get 0 B/3984 B of archives. After unpacking 8192 B will be used.
    Writing extended state information…
    Preconfiguring packages …
    Selecting previously unselected package kaltura-db.
    (Reading database … 338264 files and directories currently installed.)
    Preparing to unpack …/kaltura-db_10.10.0+b3_all.deb …
    Unpacking kaltura-db (10.10.0+b3) …
    Setting up kaltura-db (10.10.0+b3) …
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0 0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
    100 488 0 0 100 488 0 1285 --:–:-- --:–:-- --:–:-- 1284
    Checking MySQL version…

e[?1049he[1;24re[4le[?25le(Be[me[37me[40me[1;24re[He[2Je[1;1He[1me[37me[45m e[2;1H e[3;1H e[4;1H e[5;1H e[6;1H e[7;1H e[8;1H e[9;1H e[10;1H e[11;1H e[12;1H e[13;1H e[14;1H e[15;1H e[16;1H e[17;1H e[18;1H e[19;1H e[20;1H e[21;1H e[22;1H e[23;1H e[24;1H e[24;79H e[4h e[4le[1;1He(Be[me[37me[45mPackage configuratione[8;16He[30me[47m┌──────────┤ e[31mConfiguring kaltura-dbe[30m ├───────────┐e[9;16H│ │e[1me[37me[40m e[10;16He(Be[me[30me[47m│ Do you wish to remove the existing DB? │e[1me[37me[40m e[11;16He(Be[me[30me[47m│ │e[1me[37me[40m e[12;16He(Be[me[30me[47m│ The kaltura DB seems to already be installed │e[1me[37me[40m e[13;16He(Be[me[30me[47m│ │e[1me[37me[40m e[14;16He(Be[me[30me[47m│ e[37me[41me[30me[47m │e[1me[37me[40m e[15;16He(Be[me[30me[47m│ │e[1me[37me[40m e[16;16He(Be[me[30me[47m└───────────────────────────────────────────────┘e[1me[37me[40m e[17;17H e[14;48He[14;28He(Be[me[37me[41me[14Ce[30me[47me[14;29He[14Ce[37me[41me[14;48He[?12le[?25he[24;1He[40me(Be[me[39;49m
e[K
e[?1049lReading package lists…
Building dependency tree…
Reading state information…
Reading extended state information…
Initializing package states…
Writing extended state information…
Reading package lists…
Building dependency tree…
Reading state information…
Reading extended state information…
Initializing package states…
The following NEW packages will be installed:
kaltura-batch
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/3892 B of archives. After unpacking 8192 B will be used.
Writing extended state information…
Selecting previously unselected package kaltura-batch.
(Reading database … 338264 files and directories currently installed.)
Preparing to unpack …/kaltura-batch_10.18.0-1_all.deb …
Unpacking kaltura-batch (10.18.0-1) …
Processing triggers for ureadahead (0.100.0-16) …
Setting up kaltura-batch (10.18.0-1) …
System start/stop links for /etc/init.d/kaltura-batch already exist.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
100 491 0 0 100 491 0 1037 --:–:-- --:–:-- --:–:-- 1038
ERROR: could not retreive partner.admin_secret for id -1. It probably means you did not yet run /opt/kaltura/app/kaltura-base-config.sh yet. Please do.
dpkg: error processing package kaltura-batch (–configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
kaltura-batch
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up kaltura-batch (10.18.0-1) …
System start/stop links for /etc/init.d/kaltura-batch already exist.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
100 491 0 0 100 491 0 1291 --:–:-- --:–:-- --:–:-- 1292
ERROR: could not retreive partner.admin_secret for id -1. It probably means you did not yet run /opt/kaltura/app/kaltura-base-config.sh yet. Please do.
dpkg: error processing package kaltura-batch (–configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
kaltura-batch
Reading package lists…
Building dependency tree…
Reading state information…
Reading extended state information…
Initializing package states…
Writing extended state information…

I sincerely hope this makes more sense to you than it does to me ;-). Thanks again!

 Peter

Hi Peter,

The attached output indicates that you have old DB left overs.
I suggest you connect to the MySQL and run:
mysql> show databases;
and then drop all the ones that have to do with Kaltura
also:
mysql> select user,host from mysql.user;
and then drop both the kaltura and etl users if they exist.
Then try to install again.

Hi Jess,

Indeed, that is correct. These are the fresh databases installed during the run of the script yesterday, so I assumed that they would be OK. But I have of course done as you propose. Both kaltura and etl users existed, and I saw more kaltura-related databases than ever before, which seems a good sign. After removing the databases and users I re-ran the script and now it complained about missing database ‘kaltura’ , which makes sense since I just removed it. Shouldn’t I have done that? But I would have expected the script to regenerate them, at least I seem to remember that happening on previous reinstalls.

There’s another really puzzling thing this time: the zzzkaltura.ssl.conf refers to port 8082 again, and for the life of me I can’t explain where this came from, I thought I really eradicated all traces of this old configuration - I “completely uninstalled” everyting apache2 related and for good measure deleted the /etc/apache2 directory. Also, the error about not finding the hostname and reverting to 127.0.0.1 is back, although the server is approachable from outside. Thinking back, this seems to happen whenever the script does not ask for input, so when it is using the answers file (if I understand it correctly). COuld it be that there is somewhere an old answers file that is mixing things up? It’s not in /tmp, that one does exist during the installation when the scripts asks for input, but disappears at the end of the run of the script. But the next time I don’t have to answer all these questions, so apparently it is saved somewhere - and maybe for some reason that is still a very old version?

Here’s the script output:

–2015-09-17 19:36:20-- http://installrepo.kaltura.org/repo/apt/debian/kaltura-deb.gpg.key
Resolving installrepo.kaltura.org (installrepo.kaltura.org)… 54.240.184.68, 54.240.184.103, 54.230.128.188, …
Connecting to installrepo.kaltura.org (installrepo.kaltura.org)|54.240.184.68|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 1727 (1,7K) [text/plain]
Saving to: ‘STDOUT’

 0K .                                                     100% 5,25M=0s

2015-09-17 19:36:20 (5,25 MB/s) - written to stdout [1727/1727]

OK
/usr/bin/aptitude
Ign http://nl.archive.ubuntu.com trusty InRelease
Ign http://nl.archive.ubuntu.com trusty-updates InRelease
Ign http://nl.archive.ubuntu.com trusty-backports InRelease
Ign http://extras.ubuntu.com trusty InRelease
Ign http://ppa.launchpad.net trusty InRelease
Ign http://ppa.launchpad.net trusty InRelease
Hit http://nl.archive.ubuntu.com trusty Release.gpg
Hit http://extras.ubuntu.com trusty Release.gpg
Ign http://ppa.launchpad.net trusty InRelease
Get: 1 http://nl.archive.ubuntu.com trusty-updates Release.gpg [933 B]
Hit http://nl.archive.ubuntu.com trusty-backports Release.gpg
Hit http://nl.archive.ubuntu.com trusty Release
Get: 2 http://nl.archive.ubuntu.com trusty-updates Release [63,5 kB]
Hit http://extras.ubuntu.com trusty Release
Hit http://ppa.launchpad.net trusty Release.gpg
Hit http://ppa.launchpad.net trusty Release.gpg
Hit http://nl.archive.ubuntu.com trusty-backports Release
Hit http://ppa.launchpad.net trusty Release.gpg
Hit http://ppa.launchpad.net trusty Release
Hit http://ppa.launchpad.net trusty Release
Hit http://ppa.launchpad.net trusty Release
Hit http://nl.archive.ubuntu.com trusty/main Sources
Hit http://extras.ubuntu.com trusty/main Sources
Hit http://nl.archive.ubuntu.com trusty/restricted Sources
Hit http://nl.archive.ubuntu.com trusty/universe Sources
Hit http://extras.ubuntu.com trusty/main amd64 Packages
Hit http://nl.archive.ubuntu.com trusty/multiverse Sources
Hit http://nl.archive.ubuntu.com trusty/main amd64 Packages
Hit http://extras.ubuntu.com trusty/main i386 Packages
Hit http://nl.archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://nl.archive.ubuntu.com trusty/universe amd64 Packages
Hit http://nl.archive.ubuntu.com trusty/multiverse amd64 Packages
Hit http://nl.archive.ubuntu.com trusty/main i386 Packages
Hit http://nl.archive.ubuntu.com trusty/restricted i386 Packages
Ign http://security.ubuntu.com trusty-security InRelease
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Hit http://installrepo.kaltura.org jupiter InRelease
Hit http://ppa.launchpad.net trusty/main i386 Packages
Hit http://ppa.launchpad.net trusty/main Translation-en
Hit http://nl.archive.ubuntu.com trusty/universe i386 Packages
Hit http://nl.archive.ubuntu.com trusty/multiverse i386 Packages
Hit http://nl.archive.ubuntu.com trusty/main Translation-en
Hit http://nl.archive.ubuntu.com trusty/multiverse Translation-en
Hit http://nl.archive.ubuntu.com trusty/restricted Translation-en
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Get: 3 http://security.ubuntu.com trusty-security Release.gpg [933 B]
Hit http://nl.archive.ubuntu.com trusty/universe Translation-en
Get: 4 http://nl.archive.ubuntu.com trusty-updates/main Sources [234 kB]
Ign http://extras.ubuntu.com trusty/main Translation-en_US
Hit http://ppa.launchpad.net trusty/main i386 Packages
Get: 5 http://nl.archive.ubuntu.com trusty-updates/restricted Sources [4725 B]
Get: 6 http://nl.archive.ubuntu.com trusty-updates/universe Sources [136 kB]
Ign http://extras.ubuntu.com trusty/main Translation-en
Hit http://ppa.launchpad.net trusty/main Translation-en
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Hit http://ppa.launchpad.net trusty/main i386 Packages
Get: 7 http://nl.archive.ubuntu.com trusty-updates/multiverse Sources [5143 B]
Get: 8 http://nl.archive.ubuntu.com trusty-updates/main amd64 Packages [619 kB]
Hit http://ppa.launchpad.net trusty/main Translation-en
Get: 9 http://nl.archive.ubuntu.com trusty-updates/restricted amd64 Packages [15,4 kB]
Get: 10 http://nl.archive.ubuntu.com trusty-updates/universe amd64 Packages [312 kB]
Get: 11 http://nl.archive.ubuntu.com trusty-updates/multiverse amd64 Packages [11,9 kB]
Get: 12 http://nl.archive.ubuntu.com trusty-updates/main i386 Packages [601 kB]
Get: 13 http://security.ubuntu.com trusty-security Release [63,5 kB]
Get: 14 http://nl.archive.ubuntu.com trusty-updates/restricted i386 Packages [15,1 kB]
Get: 15 http://nl.archive.ubuntu.com trusty-updates/universe i386 Packages [314 kB]
Get: 16 http://nl.archive.ubuntu.com trusty-updates/multiverse i386 Packages [12,1 kB]
Hit http://nl.archive.ubuntu.com trusty-updates/main Translation-en
Hit http://nl.archive.ubuntu.com trusty-updates/multiverse Translation-en
Hit http://installrepo.kaltura.org jupiter/main amd64 Packages
Hit http://nl.archive.ubuntu.com trusty-updates/restricted Translation-en
Hit http://nl.archive.ubuntu.com trusty-updates/universe Translation-en
Hit http://nl.archive.ubuntu.com trusty-backports/main Sources
Hit http://nl.archive.ubuntu.com trusty-backports/restricted Sources
Hit http://nl.archive.ubuntu.com trusty-backports/universe Sources
Hit http://nl.archive.ubuntu.com trusty-backports/multiverse Sources
Hit http://nl.archive.ubuntu.com trusty-backports/main amd64 Packages
Hit http://nl.archive.ubuntu.com trusty-backports/restricted amd64 Packages
Hit http://nl.archive.ubuntu.com trusty-backports/universe amd64 Packages
Hit http://nl.archive.ubuntu.com trusty-backports/multiverse amd64 Packages
Hit http://nl.archive.ubuntu.com trusty-backports/main i386 Packages
Hit http://nl.archive.ubuntu.com trusty-backports/restricted i386 Packages
Hit http://nl.archive.ubuntu.com trusty-backports/universe i386 Packages
Hit http://nl.archive.ubuntu.com trusty-backports/multiverse i386 Packages
Hit http://nl.archive.ubuntu.com trusty-backports/main Translation-en
Hit http://nl.archive.ubuntu.com trusty-backports/multiverse Translation-en
Hit http://nl.archive.ubuntu.com trusty-backports/restricted Translation-en
Hit http://nl.archive.ubuntu.com trusty-backports/universe Translation-en
Ign http://nl.archive.ubuntu.com trusty/main Translation-en_US
Ign http://nl.archive.ubuntu.com trusty/multiverse Translation-en_US
Ign http://nl.archive.ubuntu.com trusty/restricted Translation-en_US
Ign http://nl.archive.ubuntu.com trusty/universe Translation-en_US
Get: 17 http://security.ubuntu.com trusty-security/main Sources [94,6 kB]
Get: 18 http://security.ubuntu.com trusty-security/restricted Sources [2061 B]
Get: 19 http://security.ubuntu.com trusty-security/universe Sources [30,5 kB]
Get: 20 http://security.ubuntu.com trusty-security/multiverse Sources [2330 B]
Get: 21 http://security.ubuntu.com trusty-security/main amd64 Packages [344 kB]
Get: 22 http://security.ubuntu.com trusty-security/restricted amd64 Packages [8875 B]
Get: 23 http://security.ubuntu.com trusty-security/universe amd64 Packages [116 kB]
Ign http://installrepo.kaltura.org jupiter/main Translation-en_US
Get: 24 http://security.ubuntu.com trusty-security/multiverse amd64 Packages [3686 B]
Get: 25 http://security.ubuntu.com trusty-security/main i386 Packages [328 kB]
Ign http://installrepo.kaltura.org jupiter/main Translation-en
Get: 26 http://security.ubuntu.com trusty-security/restricted i386 Packages [8846 B]
Get: 27 http://security.ubuntu.com trusty-security/universe i386 Packages [116 kB]
Get: 28 http://security.ubuntu.com trusty-security/multiverse i386 Packages [3830 B]
Hit http://security.ubuntu.com trusty-security/main Translation-en
Hit http://security.ubuntu.com trusty-security/multiverse Translation-en
Hit http://security.ubuntu.com trusty-security/restricted Translation-en
Hit http://security.ubuntu.com trusty-security/universe Translation-en
Fetched 3467 kB in 3s (874 kB/s)
Reading package lists…
Reading package lists…
Building dependency tree…
Reading state information…
Reading extended state information…
Initializing package states…
The following partially installed packages will be configured:
kaltura-batch
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Writing extended state information…
Setting up kaltura-batch (10.18.0-1) …
System start/stop links for /etc/init.d/kaltura-batch already exist.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0 0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
100 491 0 0 100 491 0 1239 --:–:-- --:–:-- --:–:-- 1236
ERROR 1049 (42000): Unknown database ‘kaltura’

    Archving logs to /opt/kaltura/log/log_17_09_15_19_38.tar.gz...

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
100 482 0 0 100 482 0 1254 --:–:-- --:–:-- --:–:-- 1258
dpkg: error processing package kaltura-batch (–configure):
subprocess installed post-installation script returned error exit status 11
Errors were encountered while processing:
kaltura-batch
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up kaltura-batch (10.18.0-1) …
System start/stop links for /etc/init.d/kaltura-batch already exist.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
100 491 0 0 100 491 0 1317 --:–:-- --:–:-- --:–:-- 1319
ERROR 1049 (42000): Unknown database ‘kaltura’

    Archving logs to /opt/kaltura/log/log_17_09_15_19_42.tar.gz...

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
100 482 0 0 100 482 0 1264 --:–:-- --:–:-- --:–:-- 1265
dpkg: error processing package kaltura-batch (–configure):
subprocess installed post-installation script returned error exit status 11
Errors were encountered while processing:
kaltura-batch
Reading package lists…
Building dependency tree…
Reading state information…
Reading extended state information…
Initializing package states…

Dear Jeff,

I’ve tried reinstalling everything from scratch again. Also this time I ran into the port 8082 issue. To solve that, I manually edited all files in /opt/kaltura and below referring to this port, and made sure that there is no reference to this port in /etc/apache2 and below either. This time the installation script got beyond this error but I ran into a new error:

ERROR: could not retreive partner.admin_secret for id -1. It probably means you did not yet run /opt/kaltura/app/kaltura-base-config.sh yet. Please do.
dpkg: error processing package kaltura-batch (–configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
kaltura-batch

My conclusion at this point is that my Linux and Kaltura skills are so limited and/or the installation of Kaltura is so difficult that I cannot justify investing more time in trying to get Kaltura operational. Therefore I will now first look into alternatives, even though they probably are not be the best match for my requirements. Hopefully, in the future my skills will increase and the installation of Kaltura will become easier to the point where they are a good match and then I will try again.

Thanks for all your help and patience!

Best regards,

 Peter

Hi Peter,

The installation is not difficult but indeed, it requires some Linux administration skills.

ERROR: could not retreive partner.admin_secret for id -1. It probably means you did not yet run /opt/kaltura/app/kaltura-base-config.sh yet. Please do.
dpkg: error processing package kaltura-batch (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
kaltura-batch

Means the DB deployment phase, which is done as part of the kaltura-db postinst stage failed.
You can choose to go with our SaaS instead, where all is managed for you and no Linux admin skills are required or with OnPrem, which means you can self host the platform on your servers but our professional services team will manage it for you.
You can read more about that here:

Thanks,

Hi Jess,

Thanks a lot for your help - again! Yes, I will look into Kaltura SaaS or OnPrem, that might in the end be more cost-effective than spending more time on trying to do this myself with your help.

Best regards,

Peter