Docker installation fail on other port

Hello there,
i am using firewall and i have the ports open, the port 80 is busy with other application, so i install docker on custom ports “sudo docker run -d --name=kaltura -p 8080:80 -p 4443:443 -p 1935:1935 -p 88:88 -p 8443:8443 kaltura/server”. as per instruction page i hit docker exec -i -t kaltura /root/install/install.sh MYSQL_ROOT_PASSWD_HERE. and it always fail on mysql db error with some debugging i found that the container has wrong permission for mysql service, i fixed the permissions, hit the installation on fresh container. managed to get this error"kaltura-db-config.sh FAILED with: 255 on line 194

Archving logs to /opt/kaltura/log/log_07_07_18_11_30.tar.gz…
ERROR: we failed on something else…"
now the :8080/kmc url is accessible but not flash loaded, thanks to developer tool i found out the page request the .js files from the domain with port 80 not 8080 as i entered during the installation prompt.
is there a work around please?

1 Like

Hi @s.u,

Please share the inputs you provided during the configuration phase [config.ans if you opted for an unattended installation]. Be sure to mask sensitive data, of course.

Also, please check /opt/kaltura/log/insertContent.log for errors. According to your output, that’s the line kaltura-db-config.sh failed to successfully execute:

php $APP_DIR/deployment/base/scripts/insertContent.php >> $LOG_DIR/insertContent.log  2>&1

Thanks,

Hi @jess,
i tried both ways attended and unattended “same result”;
here is the conf.ans contents;
TIME_ZONE=“zone/zone“
KALTURA_FULL_VIRTUAL_HOST_NAME=“example.com
KALTURA_VIRTUAL_HOST_NAME=“example.com
DB1_HOST=“127.0.0.1”
DB1_PORT=“3306”
DB1_PASS=“pass”
DB1_NAME=“kaltura”
DB1_USER=“kaltura”
SERVICE_URL=“http://example.com
SPHINX_SERVER1=“127.0.0.1”
SPHINX_SERVER2=“127.0.0.1”
DWH_HOST=“127.0.0.1”
DWH_PORT=“3306”
ADMIN_CONSOLE_ADMIN_MAIL=“example@example.com“
ADMIN_CONSOLE_PASSWORD=“pass”
CDN_HOST=“example.com
KALTURA_VIRTUAL_HOST_PORT=“80”
SUPER_USER=“user”
SUPER_USER_PASSWD=“pass”
ENVIRONMENT_NAME=“Kaltura Video Platform”
DWH_PASS=“FB3rSc4Ng3cprpR”
PROTOCOL=“http”
PRIMARY_MEDIA_SERVER_HOST=“example.com
USER_CONSENT=“1”
CONTACT_MAIL=“example@example.com"
VOD_PACKAGER_HOST=“example.com
VOD_PACKAGER_PORT=“88”
IP_RANGE=“0.0.0.0-255.255.255.255”
WWW_HOST=“example.com
CONFIG_CHOICE=“0”
IS_SSL=“N”

went through log here is what i could not understand;
result (serialized):
PHP Fatal error: Uncaught exception ‘KalturaClientException’ with message 'failed to unserialize server result
’ in /opt/kaltura/app/tests/lib/KalturaClientBase.php:401
Stack trace:
#0 /opt/kaltura/app/tests/lib/KalturaClientBase.php(953): KalturaClientBase->doQueue()
#1 /opt/kaltura/app/tests/standAloneClient/exec.php(345): KalturaClientBase->doMultiRequest()
#2 {main}
thrown in /opt/kaltura/app/tests/lib/KalturaClientBase.php on line 401

issue #2
i just tried installing on vm i got the following error;
Connectivity test passed:)
ERROR: Couldn’t make an API request to http://example.com/api_v3/index.php?service=system&action=ping.
Please check your setup and then run /opt/kaltura/bin/kaltura-db-config.sh again.

1 Like

Hi @s.u,

The Kaltura endpoint/service URL you input during the configuration stage must be resolvable/reachable from within the Kaltura server and all the machines from which you intend to use the web interfaces [Admin Console and KMC].

From your output:

ERROR: Couldn’t make an API request to http://example.com/api_v3/index.php?service=system&action=ping.
It would appear as though it is not.

Also, because of how it works, the same port must be used both internally and externally so:

docker run -d --name=kaltura -p 8080:80

won’t work.

Hi @jess
By now with two days of tries i can not agree more.
Can be marked as resolved. Thank you for your time.

Hi @jess
On clean install on centos7, no firewall no port forwarding , all ports open, wanted to use 8080 instead of 80
ERROR: Couldn’t make an API request to http://example.com:8080/api_v3/index.php?service=system&action=ping.
is this not available with kaltura ce?
Thanks.