Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kaltura-playkit-bundler service setup failed causing kalutra all-in-one install to fail #690

Open
pravynandas opened this issue Dec 11, 2020 · 7 comments

Comments

@pravynandas
Copy link

Ubuntu: 20.04 LTS Server - Fresh installation.

$ sudo -i
$ iptables -F

$ wget -O - http://installrepo.kaltura.org/repo/aptn/focal/kaltura-deb-256.gpg.key|apt-key add -
$ echo "deb [arch=amd64] http://installrepo.kaltura.org/repo/aptn/focal propus main" > /etc/apt/sources.list.d/kaltura.list

$ wget http://installrepo.origin.kaltura.org/repo/aptn/focal/install_kaltura_all_in_1.sh
$ chmod +x install_kaltura_all_in_1.sh
$ ./install_kaltura_all_in_1.sh

Job for kaltura-playkit-bundler.service failed because the control process exited with error code.
See "systemctl status kaltura-playkit-bundler.service" and "journalctl -xe" for details.
invoke-rc.d: initscript kaltura-playkit-bundler, action "restart" failed.
● kaltura-playkit-bundler.service - LSB: Start/stop Kaltura Bundle-builder-api.
Loaded: loaded (/etc/init.d/kaltura-playkit-bundler; generated)
Active: failed (Result: exit-code) since Fri 2020-12-11 21:45:12 UTC; 8ms ago
Docs: man:systemd-sysv-generator(8)
Process: 25411 ExecStart=/etc/init.d/kaltura-playkit-bundler start (code=exited, status=2)

Dec 11 21:45:12 kaltura systemd[1]: Starting LSB: Start/stop Kaltura Bundle-builder-api....
Dec 11 21:45:12 kaltura kaltura-playkit-bundler[25412]: /etc/kaltura.d/system.ini: line 28: URL: command not found
Dec 11 21:45:12 kaltura kaltura-playkit-bundler[25411]: Need to install the forever npm module. Exiting.
Dec 11 21:45:12 kaltura systemd[1]: kaltura-playkit-bundler.service: Control process exited, code=exited, status=2/INVALIDARGUMENT
Dec 11 21:45:12 kaltura systemd[1]: kaltura-playkit-bundler.service: Failed with result 'exit-code'.
Dec 11 21:45:12 kaltura systemd[1]: Failed to start LSB: Start/stop Kaltura Bundle-builder-api..
dpkg: error processing package kaltura-playkit-bundler (--configure):
installed kaltura-playkit-bundler package post-installation script subprocess returned error exit status 1

@pravynandas
Copy link
Author

Noticed a corrupted config value for SERVICE_URL key

$ cat /etc/kaltura.d/system.ini
SERVICE_URL=http://kaltura.local Some dummy text appended here making URL corrupted

But after fixing this the error continues with different message:

apt install kaltura-playkit-bundler
Reading package lists... Done
Building dependency tree
Reading state information... Done
kaltura-playkit-bundler is already the newest version (1.2.0-1+b2).
0 upgraded, 0 newly installed, 0 to remove and 136 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up kaltura-playkit-bundler (1.2.0-1+b2) ...
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated

yarn@1.22.10 preinstall /usr/local/lib/node_modules/yarn
:; (node ./preinstall.js > /dev/null 2>&1 || true)

Job for kaltura-playkit-bundler.service failed because the control process exited with error code.
See "systemctl status kaltura-playkit-bundler.service" and "journalctl -xe" for details.
invoke-rc.d: initscript kaltura-playkit-bundler, action "restart" failed.
● kaltura-playkit-bundler.service - LSB: Start/stop Kaltura Bundle-builder-api.
Loaded: loaded (/etc/init.d/kaltura-playkit-bundler; generated)
Active: failed (Result: exit-code) since Fri 2020-12-11 22:02:07 UTC; 4ms ago
Docs: man:systemd-sysv-generator(8)
Process: 35150 ExecStart=/etc/init.d/kaltura-playkit-bundler start (code=exited, status=2)

Dec 11 22:02:07 kaltura systemd[1]: Starting LSB: Start/stop Kaltura Bundle-builder-api....
Dec 11 22:02:07 kaltura kaltura-playkit-bundler[35150]: Need to install the forever npm module. Exiting.
Dec 11 22:02:07 kaltura systemd[1]: kaltura-playkit-bundler.service: Control process exited, code=exited, status=2/INVALIDARGUMENT
Dec 11 22:02:07 kaltura systemd[1]: kaltura-playkit-bundler.service: Failed with result 'exit-code'.
Dec 11 22:02:07 kaltura systemd[1]: Failed to start LSB: Start/stop Kaltura Bundle-builder-api..
dpkg: error processing package kaltura-playkit-bundler (--configure):
installed kaltura-playkit-bundler package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of kaltura-front:
kaltura-front depends on kaltura-playkit-bundler; however:
Package kaltura-playkit-bundler is not configured yet.

dpkg: error processing package kaltura-front (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
kaltura-playkit-bundler
kaltura-front
E: Sub-process /usr/bin/dpkg returned an error code (1)

I manually install npm install forever -g, but even after that the above error continues. Please help !!

@AndyGauge
Copy link

I tried the same npm install forever -g

https://forum.kaltura.org/t/installation-fails-bundle-builder-api/10771

I swear the first time I tried this was on centos but it looks like I accidentally tried ubuntu twice.

@jessp01
Copy link
Contributor

jessp01 commented Jan 12, 2021

Hi @AndyGauge ,

Are we good now or are you still having issues?

Thanks,

@danbar0kal
Copy link

Hi @jessp01 ,
I am still getting this error on my onPrem installation (Ubuntu 20.04)

this prevents kaltura-front from being processed

thanks

@b0rt
Copy link

b0rt commented Feb 10, 2021

i did solve this step by

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
sh -c "echo 'deb https://dl.yarnpkg.com/debian/ stable main' >> /etc/apt/sources.list"
apt update
apt install nodejs yarn
yarn global add forever

but it feels dirty. and is just a workaround
https://forum.kaltura.org/t/error-during-install-script-on-ubuntu-focal/10862/12

@danbar0kal
Copy link

Hi @b0rt, what did you do later to install the playkit?

@b0rt
Copy link

b0rt commented Feb 11, 2021

@danbar0kal I think i just went with

aptitude install kaltura-front

or

aptitude install kaltura-playkit-bundler

even a

aptitude update

should trigger the reconfiguration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

5 participants