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
521 stars 242 forks source link

ERROR: Couldn't make an API request to https://192.168.0.10:443/api_v3/index.php?service=system&action=ping. #653

Closed Aetherus closed 5 years ago

Aetherus commented 5 years ago

I'm trying to install kaltura server in an all-in-one docker container. Here is my config.ans:

TIME_ZONE="Asia/Shanghai"
KALTURA_VIRTUAL_HOST_PORT="443"
KALTURA_VIRTUAL_HOST_NAME="192.168.0.10"
KALTURA_FULL_VIRTUAL_HOST_NAME="$KALTURA_VIRTUAL_HOST_NAME:$KALTURA_VIRTUAL_HOST_PORT"
DB1_NAME="kaltura"
DB1_USER="root"
PROTOCOL="https"
SERVICE_URL="$PROTOCOL://$KALTURA_FULL_VIRTUAL_HOST_NAME"
SPHINX_SERVER1="127.0.0.1"
SPHINX_SERVER2=" "
SPHINX_DB_HOST="127.0.0.1"
SPHINX_DB_PORT="3306"
ADMIN_CONSOLE_ADMIN_MAIL="admin@foo.com"
ADMIN_CONSOLE_PASSWORD="1q2w3e4r5t"
CDN_HOST="$KALTURA_VIRTUAL_HOST_NAME"
ENVIRONMENT_NAME="Kaltura Video Platform"
CONFIG_CHOICE="0"
IS_SSL="y"
RED5_HOST="$KALTURA_VIRTUAL_HOST_NAME"
USER_CONSENT=1
CRT_FILE=/etc/ssl/certs/localhost.crt
KEY_FILE=/etc/pki/tls/private/localhost.key
CHAIN_FILE=NONE
DB1_HOST="127.0.0.1"
DB1_PORT="3306"
DB1_PASS="1q2w3e4r5t"
DWH_HOST="127.0.0.1"
DWH_PORT="3306"
DWH_PASS="1q2w3e4r5t"
SUPER_USER="root"
SUPER_USER_PASSWD="1q2w3e4r5t"
VOD_PACKAGER_HOST="$KALTURA_VIRTUAL_HOST_NAME"
VOD_PACKAGER_PORT="80"
IS_NGINX_SSL="N"
WWW_HOST="$KALTURA_VIRTUAL_HOST_NAME"
IP_RANGE="0.0.0.0-255.255.255.255"
RTMP_PORT=1935

When I ran

docker exec -i -t kaltura /root/install/install.sh

it fails with the message

ERROR: Couldn't make an API request to https://192.168.0.10:443/api_v3/index.php?service=system&action=ping.

Note that the SSL cert and key are the ones shipped with the docker image. I did not replace them with those that are signed by a trusted CA.

When I run the command

curl -ik 'https://192.168.0.10:443/api_v3/index.php?service=system&action=ping'

it gives me

HTTP/1.1 404 Not Found
Date: Fri, 14 Jun 2019 06:45:05 GMT
Server: Apache/2.2.15 (CentOS)
Content-Length: 294
Connection: close
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /api_v3/index.php was not found on this server.</p>
<hr>
<address>Apache/2.2.15 (CentOS) Server at 192.168.0.10 Port 443</address>
</body></html>

Docker image: kaltura/server:latest

Funny thing is that if I set KALTURA_VIRTUAL_HOST_NAME="localhost", then Nginx complains that port 80 is being used.

jessp01 commented 5 years ago

Please see my response here https://forum.kaltura.org/t/whats-wrong-with-the-couldnt-make-an-api-request-to/2108/2.