Closed hebertrfreitas closed 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,
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.
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):
/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
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
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:
The result of systemctl status kaltura-nginx.service
And the result of journalctl -xn
and this is result of debconf-show "kaltura-nginx"
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?