Quantcast
Channel: Kaltura - Latest posts
Viewing all articles
Browse latest Browse all 7410

Issue when the kaltura-batch-config.sh is executed

$
0
0

Hello @jess,

I have tryed to install the Kaltura CE 13.14.0 to a single server .
OS of the server is CentOS 7.4.
Then, “kaltura-batch-config.sh” called by “kaltura-config-all.sh” prints the following error:

Redirecting to /bin/systemctl reload httpd.service
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
   
 kaltura-batch-config.sh FAILED with: 1 on line 103

Archving logs to /opt/kaltura/log/log_05_03_18_14_31.tar.gz...
ERROR: /opt/kaltura/bin/kaltura-batch-config.sh failed:( You can re-run it when the issue is fixed.

And, result of “journalctl -xe” command is as follows:

-- Unit httpd.service has begun starting up.
 3月 05 14:39:30 cak02bs.cc.yamaguchi-u.ac.jp httpd[7645]: httpd: Syntax error on line 353 of /etc/httpd/conf/httpd.conf: Syntax error on line 7 of /etc/httpd/conf.d/zzzkaltura.conf: Could not open config directory /etc/httpd/@APP_DIR@/c
 3月 05 14:39:30 cak02bs.cc.yamaguchi-u.ac.jp systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
 3月 05 14:39:30 cak02bs.cc.yamaguchi-u.ac.jp kill[7647]: kill: cannot find process ""
 3月 05 14:39:30 cak02bs.cc.yamaguchi-u.ac.jp systemd[1]: httpd.service: control process exited, code=exited status=1
 3月 05 14:39:30 cak02bs.cc.yamaguchi-u.ac.jp systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

When an apachce service on the Kaltura CE server uses HTTPS protocol, “zzzkaltura.conf” and “zzzkaltura.ssl.conf” are created in “/etc/httpd/conf.d” directory.
And, the “zzzkaltura.conf” is not configured.

This issue also occurred in the Kaltura CE 12.x.
So that, I made the following changes to “kaltura-batch-config.sh” (add a statement to line 86).

86  PROTOCOL="https"
87
88  ln -sf $APP_DIR/configurations/logrotate/kaltura_batch /etc/logrotate.d/
89  ln -sf $APP_DIR/configurations/logrotate/kaltura_apache /etc/logrotate.d/
90  ln -sf $APP_DIR/configurations/logrotate/kaltura_apps /etc/logrotate.d/
91  if [ "$PROTOCOL" = "https" ]; then
92          ln -sf $APP_DIR/configurations/apache/kaltura.ssl.conf /etc/httpd/conf.d/zzzkaltura.ssl.conf
93  else
94          ln -sf $APP_DIR/configurations/apache/kaltura.conf /etc/httpd/conf.d/zzzkaltura.conf
95  fi

I seem that variable “PROTOCOL” has a wrong value.
But. in “kaltura-front-config.sh”, the variable “PROTOCOL” has a correct value.
This issue does not occur if the batch server uses the HTTP protocol.

Regards


Viewing all articles
Browse latest Browse all 7410

Trending Articles