Error install KalturaCE during process elasticsearch-oss

Hi all, I need your kind help

I’m trying to install KalturaCE on google GCE
1vCPU 3.75GB memory, 20GB SSD persistent disk
Ubuntu 16.04

But the process stops because of error in elasticsearch-oss

Would appreciate you guidance on how to solve and what settings I’m possibly doing wrong?
Thank you

Below is the full error message

The following NEW packages will be installed:
kaltura-nginx
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 826 kB of archives.
After this operation, 2,282 kB of additional disk space will be used.
Get:1 http://installrepo.kaltura.org/repo/apt/xenial orion/main amd64 kaltura-nginx amd64 1.16.0-1 [826 kB]
Fetched 826 kB in 0s (9,339 kB/s)
Preconfiguring packages …
Selecting previously unselected package kaltura-nginx.
(Reading database … 142238 files and directories currently installed.)
Preparing to unpack …/kaltura-nginx_1.16.0-1_amd64.deb …
Unpacking kaltura-nginx (1.16.0-1) …
Processing triggers for ureadahead (0.100.0-19.1) …
Processing triggers for systemd (229-4ubuntu21.22) …
Setting up kaltura-nginx (1.16.0-1) …
Processing triggers for ureadahead (0.100.0-19.1) …
Processing triggers for systemd (229-4ubuntu21.22) …
Processing triggers for libc-bin (2.23-0ubuntu11) …
[ ok ] Starting kaltura-nginx (via systemctl): kaltura-nginx.service.
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following additional packages will be installed:
elasticsearch-oss
The following NEW packages will be installed:
elasticsearch-oss kaltura-elasticsearch
0 upgraded, 2 newly installed, 0 to remove and 5 not upgraded.
Need to get 34.6 MB of archives.
After this operation, 40.1 MB of additional disk space will be used.
Get:1 http://installrepo.kaltura.org/repo/apt/xenial orion/main amd64 elasticsearch-oss all 6.5.4 [34.2 MB]
Get:2 http://installrepo.kaltura.org/repo/apt/xenial orion/main amd64 kaltura-elasticsearch all 1.0.0-1+b6 [427 kB]
Fetched 34.6 MB in 8s (3,909 kB/s)
Selecting previously unselected package elasticsearch-oss.
(Reading database … 142280 files and directories currently installed.)
Preparing to unpack …/elasticsearch-oss_6.5.4_all.deb …
/usr/bin/java
Creating elasticsearch group… OK
Creating elasticsearch user… OK
Unpacking elasticsearch-oss (6.5.4) …
Processing triggers for ureadahead (0.100.0-19.1) …
Processing triggers for systemd (229-4ubuntu21.22) …
Setting up elasticsearch-oss (6.5.4) …
Exception in thread “main” java.security.spec.InvalidKeySpecException: Could not generate secret key
at javax.crypto.SecretKeyFactory.generateSecret(Unknown Source)
at org.elasticsearch.common.settings.KeyStoreWrapper.createCipher(KeyStoreWrapper.java:297)
at org.elasticsearch.common.settings.KeyStoreWrapper.encrypt(KeyStoreWrapper.java:372)
at org.elasticsearch.common.settings.KeyStoreWrapper.save(KeyStoreWrapper.java:482)
at org.elasticsearch.common.settings.CreateKeyStoreCommand.execute(CreateKeyStoreCommand.java:58)
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124)
at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:77)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124)
at org.elasticsearch.cli.Command.main(Command.java:90)
at org.elasticsearch.common.settings.KeyStoreCli.main(KeyStoreCli.java:40)
Caused by: java.lang.RuntimeException: Error deriving PBKDF2 keys
at com.ibm.crypto.provider.PBKDF2KeyImpl.a(Unknown Source)
at com.ibm.crypto.provider.PBKDF2KeyImpl.(Unknown Source)
at com.ibm.crypto.provider.bn.engineGenerateSecret(Unknown Source)
… 11 more
dpkg: error processing package elasticsearch-oss (–configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for ureadahead (0.100.0-19.1) …
Processing triggers for systemd (229-4ubuntu21.22) …
Errors were encountered while processing:
elasticsearch-oss
E: Sub-process /usr/bin/dpkg returned an error code (1)

root@video:~# journalctl -xn
– Logs begin at Sun 2019-09-29 04:26:56 UTC, end at Sun 2019-09-29 05:51:09 UTC. –
Sep 29 05:50:01 video CRON[32418]: pam_unix(cron:session): session opened for user root by (uid=0)
Sep 29 05:50:01 video CRON[32419]: (root) CMD ([ -x /usr/sbin/dma ] && /usr/sbin/dma -q1)
Sep 29 05:50:01 video CRON[32418]: pam_unix(cron:session): session closed for user root
Sep 29 05:50:15 video dma[453]: trying delivery
Sep 29 05:50:15 video dma[453]: trying remote delivery to kaltura-com.mail.eo.outlook.com [104.47.6.36] pref 10
Sep 29 05:50:19 video dma[21231]: trying delivery
Sep 29 05:50:19 video dma[21231]: trying remote delivery to kaltura-com.mail.eo.outlook.com [104.47.6.36] pref 10
Sep 29 05:50:24 video dma[21665]: trying delivery
Sep 29 05:50:25 video dma[21665]: trying remote delivery to kaltura-com.mail.eo.outlook.com [104.47.4.36] pref 10
Sep 29 05:51:09 video systemd[1]: Started memcached daemon.
– Subject: Unit memcached.service has finished start-up
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

– Unit memcached.service has finished starting up.

– The start-up result is done.

Hello @bobotto,

What package are you using for JRE? See https://github.com/elastic/elasticsearch/issues/32146

Cheers,

Hi Jess, thanks for the response

I’m following the instructions exactly as

Google GCE is using 16.04 LTS

I did not install any additional package for JRE.
If I’m required to install the JRE manually, could you guide me which step I should do that at?
If possible, do type out the exact text to input into the terminal as I am still new to this.

Do you need any additional info?
Do guide me on what to type to get the logs data that you need

Many thanks

Hi @bobotto,

What does the /etc/alternatives/java symlink point to?

root@video:~# which java
/usr/bin/java
root@video:~# file /usr/bin/java
/usr/bin/java: symbolic link to /etc/alternatives/java
root@video:~# file /etc/alternatives/java
/etc/alternatives/java: symbolic link to /usr/lib/jvm/java-ibm-x86_64-80/jre/bin/java

During the Kaltura CE installation phase, there is a window saying:


Configuring ibm-java80-jre

In order to install this package, you must accept the license terms. Not accepting will cancel the installation. Do you accept the terms of the License Agreement?

At this window, I typed “YES”

Is the correct answer supposed to be “NO” instead?

As the issue I referred you to states, the IMB JRE is not supported (by ES, has nothing to do with Kaltura). You should remove the ibm-java80-jre package and install either Oracle’s or OpenJDK’s.
In the Ubuntu 16.04 repos, the package name should be openjdk-8-jre-headless.
The ibm-java80-jre package does not come from the official Ubuntu 16.04 repos. I’m not exactly sure where you got it from but you can easily check with:

# apt show ibm-java80-jre

Please forgive me if I’m wrong, but maybe these codes are installing IBM JRE?
But these codes are automatically executed from the ./install_kaltura_all_in_1.sh command

What should I do to solve the problem?
Thanks


The following NEW packages will be installed:
kaltura-batch
0 upgraded, 1 newly installed, 0 to remove and 12 not upgraded.
Need to get 4,454 B of archives.
After this operation, 2,048 B of additional disk space will be used.
Get:1 http://installrepo.kaltura.org/repo/apt/xenial orion/main amd64 kaltura-batch all 15.7.0-1 [4,454 B]
Fetched 4,454 B in 0s (7,407 B/s)
Selecting previously unselected package kaltura-batch.
(Reading database … 128999 files and directories currently installed.)
Preparing to unpack …/kaltura-batch_15.7.0-1_all.deb …
Unpacking kaltura-batch (15.7.0-1) …
Processing triggers for ureadahead (0.100.0-19.1) …
Processing triggers for systemd (229-4ubuntu21.22) …
Setting up kaltura-batch (15.7.0-1) …
Processing triggers for ureadahead (0.100.0-19.1) …
Processing triggers for systemd (229-4ubuntu21.22) …
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following additional packages will be installed:
ca-certificates-java default-jre default-jre-headless fonts-dejavu-extra ibm-java80-jre java-common kaltura-pentaho libasound2 libasound2-data libasyncns0 libatk1.0-0
libatk1.0-data libflac8 libgif7 libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libnspr4 libnss3 libnss3-nssdb libpcsclite1
libpulse0 libsndfile1 libtxc-dxtn-s2tc0 libxcb-glx0 libxcomposite1 libxcursor1 libxdamage1 libxft2 libxi6 libxinerama1 libxrandr2 libxtst6 libxxf86vm1 openjdk-8-jre
openjdk-8-jre-headless x11-common
Suggested packages:
default-java-plugin ibm-java80-plugin libasound2-plugins alsa-utils gvfs pcscd pulseaudio icedtea-8-plugin libnss-mdns fonts-ipafont-gothic fonts-ipafont-mincho
fonts-wqy-microhei fonts-wqy-zenhei fonts-indic
The following NEW packages will be installed:
ca-certificates-java default-jre default-jre-headless fonts-dejavu-extra ibm-java80-jre java-common kaltura-dwh kaltura-pentaho libasound2 libasound2-data libasyncns0
libatk1.0-0 libatk1.0-data libflac8 libgif7 libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libnspr4 libnss3 libnss3-nssdb
libpcsclite1 libpulse0 libsndfile1 libtxc-dxtn-s2tc0 libxcb-glx0 libxcomposite1 libxcursor1 libxdamage1 libxft2 libxi6 libxinerama1 libxrandr2 libxtst6 libxxf86vm1
openjdk-8-jre openjdk-8-jre-headless x11-common
0 upgraded, 41 newly installed, 0 to remove and 12 not upgraded.
Need to get 412 MB of archives.

I have installed Kaltura CE successfully
Appreciate the guidance Jesse
You can close this thread

Glad to hear it.

Cheers,