Solved

Deploying Middle Tier: Error deploying db-init

  • 6 February 2023
  • 5 replies
  • 309 views

Badge +5

Hi Everyone,

 

Context: 3 Azure VM’s (Management - Windows, Database & Middletier - Linux) all in one Virtual Network.

 

Issue: When trying to Deploy Middle Tier, I get the following Error,

 

 

10.80.50.5 is my Database server’s private ip address. And I couldnt find a port 10250 in the Database Server either. And when I googled it seems the 10250 is a port of Kubernetes.

 

Would someone be able to clarify:

Should the dial tcp command actually be trying to reach <<db_host>>:10250?

And if so
Should the DB server have a port 10250? When does it get configured and opened?

 

PS: I was able to do ‘prepare database’ and ‘deploy ifs application database code’ steps without any issues. Log files were okay as well.

 

Any help in this regard is appreciated.

 

Thanks.

icon

Best answer by Charith Epitawatta 6 February 2023, 21:46

View original

5 replies

Userlevel 7
Badge +31

Hi @devin.amarasekara,

The error basically says  retrieving container logs failed because the connection was refused. The port 10250 as you have mentioned usually belongs to the Kubelet, which is responsible for managing workload resources on cluster nodes. Since the error is a connection refused error, could you please check the firewall settings in the Middle Tier server?

Hope this helps!

 

Badge +5

Hi @Charith Epitawatta , I was able to solve the above issue. It was due to a IP address error when defining in /etc/hosts. I have resolved that issue. But now I am getting the following error.

 

 

The firewalls are disabled in all the three VM’s. From my understanding the db-init pod is trying to fetch certificates but since it cant, its trying to extract a key from an empty string. Do you have any idea where the pod is trying to fetch the certificates from?

Badge +5

Again it seemed to be an IP issue, I have given the hostname instead of the host ip for the jdbc connection. This seemed to resolve the issue and the db-init executed.

Userlevel 4
Badge +8

Hi ,

Am getting the same error during the middle tier installation

[Mon Aug 21 20:59:00 UTC 2023] - INFO: Installing ifs-cloud
[Mon Aug 21 20:59:00 UTC 2023] - INFO: Using chart ifscloud/ifs-cloud --version 222.7.0
[Mon Aug 21 20:59:00 UTC 2023] - INFO: Installing ifs-cloud
[Mon Aug 21 20:59:00 UTC 2023] - INFO: Running helm upgrade
[Mon Aug 21 21:02:09 UTC 2023] - SEVERE: failed post-install: job failed: BackoffLimitExceeded
[Mon Aug 21 21:02:09 UTC 2023] - SEVERE: Failed to install ifs-cloud
[Mon Aug 21 21:02:09 UTC 2023] - INFO: ifs-db-init log:
Container initiated at Mon Aug 21 20:59:53 UTC 2023
SECRETIMAGE_VERSION=Tue Mar 21 05:25:29 UTC 2023 1.0.6
ALPINE_VERSION=Tue Mar 21 05:25:29 UTC 2023 3.16.3
BASEIMAGE_VERSION=Tue Mar 21 05:25:29 UTC 2023 1.0.44
CERTIFICATE_HANDLER_VERSION=Tue Mar 21 05:27:05 UTC 2023 1.0.8
JAVAIMAGE_VERSION=Tue Mar 21 05:27:05 UTC 2023 1.0.53
DRIVER_VERSION=Tue Mar 21 06:42:06 UTC 2023 22.2.7.0.0
DBINITIMAGE_VERSION=Tue Mar 21 06:42:06 UTC 2023 22.2.7.0.0
Using API to fetch certificates
/opt/ifs/get_certs.sh: line 50: $(sed -e 's/^"//' -e 's/"$//' <<< "$(echo -e "${split[0]}" | tr -d '[:space:]')"): ambiguous redirect
No certificates are loaded for database-certs ..
Using API to fetch certificates
/opt/ifs/get_certs.sh: line 50: $(sed -e 's/^"//' -e 's/"$//' <<< "$(echo -e "${split[0]}" | tr -d '[:space:]')"): ambiguous redirect
No certificates are loaded for ifs-db-init-certs ..
Failed updating database. IO Error: The Network Adapter could not establish the connection.
Failing updating, check credentials

Appreciate your support

Badge +5

Hi

Please Check the windows firewall on windows/Linux  database server

if its on off the same,
for me issue is resolved after off firewall on windows database server

Thanks

Manas 

Reply