ERROR: Couldn't make an API request during instalation of kaltura all in one

Hi,
I’m installing kaltura on ubutntu 16.04 via kaltura all in one script,
First of all I install mysql using documentation: https://github.com/kaltura/platform-install-packages/blob/master/doc/install-percona-deb.md
and then I used folowing link step by step to install kaltura: https://github.com/kaltura/platform-install-packages/blob/master/doc/install-kaltura-xenial.md
In the middle of installation step when I’ve ran ./install_kaltura_all_in_1.sh script, I encunter with following error:

CREATE USER kaltura;
CREATE USER etl@'%';
CREATE DATABASE kaltura;
CREATE DATABASE kaltura_sphinx_log;
CREATE DATABASE kalturadw;
CREATE DATABASE kalturadw_ds;
CREATE DATABASE kalturadw_bisources;
CREATE DATABASE kalturalog;
Checking connectivity to needed daemons...
Connectivity test passed:)
ERROR: Couldn't make an API request to http://kaltura.test.local/api_v3/index.php?service=system&action=ping.
This will drop the following DBs: 
kaltura kaltura_sphinx_log kalturadw kalturadw_ds kalturadw_bisources kalturalog 
and remove users:
kaltura etl
on localhost

Removing kaltura..Removing kaltura_sphinx_log..Removing kalturadw..Removing kalturadw_ds..Removing kalturadw_bisources..Removing kalturalog..
 Successfully dropped kaltura databases and users
dpkg: error processing package kaltura-db (--configure):
 subprocess installed post-installation script returned error exit status 6
Errors were encountered while processing:
 kaltura-db
E: Sub-process /usr/bin/dpkg returned an error code (1)

Apache is runnnig on port 80 (I dont want to use https for now)

root@kaltura:~# netstat -ntlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:9312            0.0.0.0:*               LISTEN      27701/searchd   
tcp        0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN      1395/mysqld     
tcp        0      0 127.0.0.1:11211         0.0.0.0:*               LISTEN      23907/memcached 
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      24746/apache2   
tcp6       0      0 :::8880                 :::*                    LISTEN      23788/node      
tcp6       0      0 :::8889                 :::*                    LISTEN      23788/node      

I can access kaltura.test.local

ping kaltura.test.local
64 bytes from kaltura.test.local (192.168.200.10): icmp_seq=1 ttl=64 time=0.023 ms
64 bytes from kaltura.test.local (192.168.200.10): icmp_seq=1 ttl=64 time=0.023 ms
64 bytes from kaltura.test.local (192.168.200.10): icmp_seq=1 ttl=64 time=0.023 ms
64 bytes from kaltura.test.local (192.168.200.10): icmp_seq=1 ttl=64 time=0.023 ms
64 bytes from kaltura.test.local (192.168.200.10): icmp_seq=1 ttl=64 time=0.023 ms
64 bytes from kaltura.test.local (192.168.200.10): icmp_seq=1 ttl=64 time=0.023 ms
64 bytes from kaltura.test.local (192.168.200.10): icmp_seq=1 ttl=64 time=0.023 ms

My apache config:

root@kaltura:~# apachectl -t -DDUMP_VHOSTS
VirtualHost configuration:
*:80                   kaltura.test.local (/etc/apache2/sites-enabled/zzzkaltura.conf:1)
root@kaltura:~# cat /opt/kaltura/log/kaltura_apache_errors.log
[Mon May 10 08:53:10.941244 2021] [:error] [pid 27431] [client 192.168.200.50:42994] Unable to open PDO connection dsn[mysql:host=localhost;port=3306;dbname=kaltura;] user[kaltura] password[1L8eVA3uoSlry4k] [wrapped: SQLSTATE[HY000] [1045] Access denied for user 'kaltura'@'localhost' (using password: YES)]

How can I solve this problem?

Hello @mykaltura-2021 .

The hostname used for the Kaltura endpoint [service URL] must be resolvable from both inside the server and from any machine you intend to perform playback from or access the management web I/Fs. of course, whatever port you choose to set up the Kaltura Apache vhost on must be accessible, as well as the port you choose to use for Nginx.

You posted the ping output but didn’t specify where you send (and receive) the ICMP packets from… Is kaltura.test.local resolvable from within the server itself?

Cheers,

Hi,
The hostname is resolveable from outside and inside node.
the Ping command is from outside of node.
But my problem is with installing the kaltura and Mysql Error during installation!

Hello @mykaltura-2021 ,

As noted in the output you posted:

So, the Kaltura API endpoint cannot be reached. Since the DB population is done (in part) by making API requests, this stage fails.
What happens when you run:

# curl http://kaltura.test.local/api_v3/index.php?service=system&action=ping

From a shell on the machine in question?