kaltura / platform-install-packages

Official deployment packages to install the Kaltura platform on a server or cluster environments using native OS package managers
GNU Affero General Public License v3.0
520 stars 242 forks source link

Error in kaltura-nginx package on Debian Jessie #588

Closed hebertrfreitas closed 7 years ago

hebertrfreitas commented 7 years ago

I'm trying install kaltura-server in a Debian server using all in 1 server script. (./install_kaltura_all_in_1.sh). I'm getting this error:


Unpacking kaltura-nginx (1.10.3-4+b3) ...
Processing triggers for systemd (215-17+deb8u6) ...
Setting up kaltura-nginx (1.10.3-4+b3) ...
Job for kaltura-nginx.service failed. See 'systemctl status kaltura-nginx.service' and 'journalctl -xn' for details.
dpkg: error processing package kaltura-nginx (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for systemd (215-17+deb8u6) ...
Processing triggers for libc-bin (2.19-18+deb8u7) ...
Errors were encountered while processing:
 kaltura-nginx
E: Sub-process /usr/bin/dpkg returned an error code (1)
Failed to perform requested operation on package.  Trying to recover:
Setting up kaltura-nginx (1.10.3-4+b3) ...
Job for kaltura-nginx.service failed. See 'systemctl status kaltura-nginx.service' and 'journalctl -xn' for details.
dpkg: error processing package kaltura-nginx (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.19-18+deb8u7) ...
Errors were encountered while processing:
 kaltura-nginx

The result of systemctl status kaltura-nginx.service

● kaltura-nginx.service - LSB: starts the nginx web server
   Loaded: loaded (/etc/init.d/kaltura-nginx)
   Active: inactive (dead)

Apr 17 13:54:53 kaltura-server systemd[1]: Unit kaltura-nginx.service cannot be reloaded because it is inactive.
Apr 17 13:54:55 kaltura-server systemd[1]: Unit kaltura-nginx.service cannot be reloaded because it is inactive.

And the result of journalctl -xn

-- Logs begin at Sun 2017-04-16 12:36:21 UTC, end at Mon 2017-04-17 13:55:19 UTC. --
Apr 17 13:54:53 kaltura-server systemd[1]: Reloading.
Apr 17 13:54:53 kaltura-server systemd[1]: Started ACPI event daemon.
-- Subject: Unit acpid.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit acpid.service has finished starting up.
-- 
-- The start-up result is done.
Apr 17 13:54:53 kaltura-server systemd[1]: Listening on ACPID Listen Socket.
-- Logs begin at Sun 2017-04-16 12:36:21 UTC, end at Mon 2017-04-17 13:55:19 UTC. --
Apr 17 13:54:53 kaltura-server systemd[1]: Reloading.
Apr 17 13:54:53 kaltura-server systemd[1]: Started ACPI event daemon.
-- Subject: Unit acpid.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit acpid.service has finished starting up.
-- 
-- The start-up result is done.

and this is result of debconf-show "kaltura-nginx"

  kaltura-nginx/ssl_cert:
* kaltura-nginx/nginx_hostname: myip
* kaltura-nginx/nginx_port: 88
  kaltura-nginx/nginx_ssl_port: 8443
* kaltura-nginx/is_ssl: false
* kaltura-nginx/rtmp_port: 1935
  kaltura-nginx/ssl_key:
* kaltura-nginx/kaltura_service_url: myip

I'm replace myip for my public ip address. I'm don't use a hostname in this moment.

How can I solve it? Where to find more detailed logs for this error?

jessp01 commented 7 years ago

Hi @hebertrfreitas, Please see my reply here: https://forum.kaltura.org/t/error-in-kaltura-nginx-package-on-debian-jessie/6775/2

Let's continue the discussion there. No need for duplicate threads. Thanks,

hebertrfreitas commented 7 years ago

Hi @jessp01 . After reading other issues I discovered that the correct place to put this questions is the forum. I post this question on forum today. Sorry for the unnecessary issue.

PENGZhaoqing commented 6 years ago

I have the same error with kaltura-nginx followed by the instruction

Setting up kaltura-nginx (1.12.2-1+b1) ...
Job for kaltura-nginx.service failed because the control process exited with error code. See "systemctl status kaltura-nginx.service" and "journalctl -xe" for details.
invoke-rc.d: initscript kaltura-nginx, action "restart" failed.
● kaltura-nginx.service - LSB: starts the nginx web server
   Loaded: loaded (/etc/init.d/kaltura-nginx; bad; vendor preset: enabled)
   Active: failed (Result: exit-code) since 一 2017-11-27 18:48:33 CST; 3ms ago
     Docs: man:systemd-sysv-generator(8)
  Process: 93378 ExecStart=/etc/init.d/kaltura-nginx start (code=exited, status=1/FAILURE)

11月 27 18:48:33 peng-virtual-machine systemd[1]: Starting LSB: starts the nginx web server...
11月 27 18:48:33 peng-virtual-machine kaltura-nginx[93378]: Starting nginx: nginx: [emerg] invalid number of arguments in "server" directive in...conf:17
11月 27 18:48:33 peng-virtual-machine kaltura-nginx[93378]: nginx: configuration file /opt/kaltura/nginx/conf/nginx.conf test failed
11月 27 18:48:33 peng-virtual-machine systemd[1]: kaltura-nginx.service: Control process exited, code=exited status=1
11月 27 18:48:33 peng-virtual-machine systemd[1]: Failed to start LSB: starts the nginx web server.
11月 27 18:48:33 peng-virtual-machine systemd[1]: kaltura-nginx.service: Unit entered failed state.
11月 27 18:48:33 peng-virtual-machine systemd[1]: kaltura-nginx.service: Failed with result 'exit-code'.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error processing package kaltura-nginx (--configure):

I tried with /opt/kaltura/nginx/sbin/nginx -t

root@peng-virtual-machine:~# /opt/kaltura/nginx/sbin/nginx -t
nginx: [emerg] invalid number of arguments in "server" directive in /opt/kaltura/nginx/conf/nginx.conf:17
nginx: configuration file /opt/kaltura/nginx/conf/nginx.conf test failed

And also bash -x /etc/init.d/kaltura-nginx start

root@peng-virtual-machine:~# bash -x /etc/init.d/kaltura-nginx start
+ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+ DAEMON=/opt/kaltura/nginx/sbin/nginx
+ PID_FILE=/opt/kaltura/nginx/logs/nginx.pid
+ NAME=nginx
+ DESC=nginx
+ '[' -f /etc/default/nginx ']'
+ test -x /opt/kaltura/nginx/sbin/nginx
+ set -e
+ . /lib/lsb/init-functions
+++ run-parts --lsbsysinit --list /lib/lsb/init-functions.d
++ for hook in '$(run-parts --lsbsysinit --list /lib/lsb/init-functions.d 2>/dev/null)'
++ '[' -r /lib/lsb/init-functions.d/01-upstart-lsb ']'
++ . /lib/lsb/init-functions.d/01-upstart-lsb
+++ unset UPSTART_SESSION
+++ _RC_SCRIPT=/etc/init.d/kaltura-nginx
+++ '[' -r /etc/init//etc/init.d/kaltura-nginx.conf ']'
+++ _UPSTART_JOB=kaltura-nginx
+++ '[' -r /etc/init/kaltura-nginx.conf ']'
++ for hook in '$(run-parts --lsbsysinit --list /lib/lsb/init-functions.d 2>/dev/null)'
++ '[' -r /lib/lsb/init-functions.d/20-left-info-blocks ']'
++ . /lib/lsb/init-functions.d/20-left-info-blocks
++ for hook in '$(run-parts --lsbsysinit --list /lib/lsb/init-functions.d 2>/dev/null)'
++ '[' -r /lib/lsb/init-functions.d/40-systemd ']'
++ . /lib/lsb/init-functions.d/40-systemd
+++ _use_systemctl=0
+++ '[' -d /run/systemd/system ']'
+++ prog=kaltura-nginx
+++ service=kaltura-nginx.service
++++ systemctl -p LoadState show kaltura-nginx.service
+++ state=LoadState=loaded
+++ '[' LoadState=loaded = LoadState=masked ']'
+++ '[' 70844 -ne 1 ']'
+++ '[' -z '' ']'
+++ '[' -z '' ']'
+++ case $(readlink -f "$0") in
++++ readlink -f /etc/init.d/kaltura-nginx
+++ _use_systemctl=1
++++ systemctl -p CanReload show kaltura-nginx.service
+++ '[' CanReload=yes = CanReload=no ']'
+++ '[' 1 = 1 ']'
+++ set +e
+++ set +u
+++ '[' xstart = xstart -o xstart = xstop -o xstart = xrestart -o xstart = xreload -o xstart = xforce-reload -o xstart = xstatus ']'
+++ systemctl_redirect /etc/init.d/kaltura-nginx start
+++ local s
+++ local rc
+++ local prog=kaltura-nginx
+++ local command=start
+++ case "$command" in
+++ s='Starting kaltura-nginx (via systemctl)'
+++ service=kaltura-nginx.service
++++ systemctl is-system-running
+++ OUT=degraded
+++ '[' degraded '!=' degraded ']'
+++ '[' start = status ']'
+++ log_daemon_msg 'Starting kaltura-nginx (via systemctl)' kaltura-nginx.service
+++ '[' -z 'Starting kaltura-nginx (via systemctl)' ']'
+++ log_daemon_msg_pre 'Starting kaltura-nginx (via systemctl)' kaltura-nginx.service
+++ log_use_fancy_output
+++ TPUT=/usr/bin/tput
+++ EXPR=/usr/bin/expr
+++ '[' -t 1 ']'
+++ '[' xxterm-256color '!=' x ']'
+++ '[' xxterm-256color '!=' xdumb ']'
+++ '[' -x /usr/bin/tput ']'
+++ '[' -x /usr/bin/expr ']'
+++ /usr/bin/tput hpa 60
+++ /usr/bin/tput setaf 1
+++ '[' -z ']'
+++ FANCYTTY=1
+++ case "$FANCYTTY" in
+++ true
+++ echo -n '[....] '
[....] +++ '[' -z kaltura-nginx.service ']'
+++ echo -n 'Starting kaltura-nginx (via systemctl): kaltura-nginx.service'
Starting kaltura-nginx (via systemctl): kaltura-nginx.service+++ log_daemon_msg_post 'Starting kaltura-nginx (via systemctl)' kaltura-nginx.service
+++ :
+++ /bin/systemctl --no-pager start kaltura-nginx.service
Job for kaltura-nginx.service failed because the control process exited with error code. See "systemctl status kaltura-nginx.service" and "journalctl -xe" for details.
+++ rc=1
+++ '[' start = status ']'
+++ log_end_msg 1
+++ '[' -z 1 ']'
+++ local retval
+++ retval=1
+++ log_end_msg_pre 1
+++ log_use_fancy_output
+++ TPUT=/usr/bin/tput
+++ EXPR=/usr/bin/expr
+++ '[' -t 1 ']'
+++ '[' xxterm-256color '!=' x ']'
+++ '[' xxterm-256color '!=' xdumb ']'
+++ '[' -x /usr/bin/tput ']'
+++ '[' -x /usr/bin/expr ']'
+++ /usr/bin/tput hpa 60
+++ /usr/bin/tput setaf 1
+++ '[' -z 1 ']'
+++ true
+++ case "$FANCYTTY" in
+++ true
++++ /usr/bin/tput setaf 1
+++ RED=''
++++ /usr/bin/tput setaf 2
+++ GREEN=''
++++ /usr/bin/tput setaf 3
+++ YELLOW=''
++++ /usr/bin/tput op
+++ NORMAL=''
+++ /usr/bin/tput civis
+++ /usr/bin/tput sc
+++ /usr/bin/tput hpa 0
+++ '[' 1 -eq 0 ']'
+++ '[' 1 -eq 255 ']'
+++ /bin/echo -ne '[FAIL'
[FAIL+++ /usr/bin/tput rc
+++ /usr/bin/tput cnorm
+++ log_use_fancy_output
+++ TPUT=/usr/bin/tput
+++ EXPR=/usr/bin/expr
+++ '[' -t 1 ']'
+++ '[' xxterm-256color '!=' x ']'
+++ '[' xxterm-256color '!=' xdumb ']'
+++ '[' -x /usr/bin/tput ']'
+++ '[' -x /usr/bin/expr ']'
+++ /usr/bin/tput hpa 60
+++ /usr/bin/tput setaf 1
+++ '[' -z 1 ']'
+++ true
+++ case "$FANCYTTY" in
+++ true
++++ /usr/bin/tput setaf 1
+++ RED=''
++++ /usr/bin/tput setaf 3
+++ YELLOW=''
++++ /usr/bin/tput op
+++ NORMAL=''
+++ '[' 1 -eq 0 ']'
+++ '[' 1 -eq 255 ']'
+++ /bin/echo -e ' failed!'
 failed!
+++ log_end_msg_post 1
+++ :
+++ return 1
+++ return 1
+++ exit 1

How can I get through this, thanks