# Error while importing cluster to rancher

**URL:** <https://community.mosip.io/t/error-while-importing-cluster-to-rancher/597>\
**Category:** Support\
**Created:** [July 19, 2023, 1:01pm UTC](https://community.mosip.io/t/error-while-importing-cluster-to-rancher/597 "2023-07-19T13:01:53Z")\
**Posts on this page:** 15\
**Page:** 2

<div class="post-metadata">

**Author:** ![ramkumar.kvaliteta](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/ramkumar.kvaliteta/32/563_2.png) [@ramkumar.kvaliteta](https://community.mosip.io/u/ramkumar.kvaliteta)\
**Post date:** [August 2, 2023, 9:44am UTC](https://community.mosip.io/t/error-while-importing-cluster-to-rancher/597/21 "2023-08-02T09:44:34Z")

</div>

Hi Syed,

So after creating this new certificate should I rebuild the cluster and then import onto the rancher?

I have noticed that the Kubernetes nodes are currently in the SchedulingDisabled state – Can you please clarify output are you referring to? When I am checking the status the output is as below.

```auto
mosip-app-host-01 Ready controlplane,etcd,worker 15d v1.22.9
mosip-app-host-02 Ready controlplane,etcd,worker 15d v1.22.9
mosip-app-host-03 Ready controlplane,etcd,worker 15d v1.22.9
mosip-app-host-04 Ready controlplane,worker 15d v1.22.9
mosip-app-host-05 Ready controlplane,worker 15d v1.22.9

```

---

<div class="post-metadata">

**Author:** ![syed.salman](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/syed.salman/32/25_2.png) [@syed.salman](https://community.mosip.io/u/syed.salman)\
**Post date:** [August 2, 2023, 3:07pm UTC](https://community.mosip.io/t/error-while-importing-cluster-to-rancher/597/22 "2023-08-02T15:07:53Z")

</div>

You don’t have to rebuild the cluster, just delete the existing failed one from Rancher and try to import it again.

Can you please clarify output are you referring to?  
You should be able to import the cluster after regenerating new SSL certs

When I am checking the status the output is as below.  
The status looks fine.

---

<div class="post-metadata">

**Author:** ![arjunsukumar](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@arjunsukumar](https://community.mosip.io/u/arjunsukumar)\
**Post date:** [August 8, 2023, 10:06am UTC](https://community.mosip.io/t/error-while-importing-cluster-to-rancher/597/23 "2023-08-08T10:06:09Z")

</div>

Tried using the newly generated certificate created as per the mentioned procedure but there is no change in the status. Is it possible to plan a remote session?

I am also facing challenge posting the responses as it currently limits me to two posts

---

<div class="post-metadata">

**Author:** ![syed.salman](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/syed.salman/32/25_2.png) [@syed.salman](https://community.mosip.io/u/syed.salman)\
**Post date:** [August 10, 2023, 11:10am UTC](https://community.mosip.io/t/error-while-importing-cluster-to-rancher/597/24 "2023-08-10T11:10:29Z")

</div>

Hi @arjunsukumar can you please share the latest logs for this issue

---

<div class="post-metadata">

**Author:** ![sanchi-singh24](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/sanchi-singh24/32/538_2.png) [@sanchi-singh24](https://community.mosip.io/u/sanchi-singh24)\
**Post date:** [August 10, 2023, 11:50am UTC](https://community.mosip.io/t/error-while-importing-cluster-to-rancher/597/25 "2023-08-10T11:50:11Z")

</div>

INFO: Environment: CATTLE\_ADDRESS=10.42.1.34 CATTLE\_CA\_CHECKSUM= CATTLE\_CLUSTER=true CATTLE\_CLUSTER\_AGENT\_PORT=tcp://10.43.232.140:80 CATTLE\_CLUSTER\_AGENT\_PORT\_443\_TCP=tcp://10.43.232.140:443 CATTLE\_CLUSTER\_AGENT\_PORT\_443\_TCP\_ADDR=10.43.232.140 CATTLE\_CLUSTER\_AGENT\_PORT\_443\_TCP\_PORT=443 CATTLE\_CLUSTER\_AGENT\_PORT\_443\_TCP\_PROTO=tcp CATTLE\_CLUSTER\_AGENT\_PORT\_80\_TCP=tcp://10.43.232.140:80 CATTLE\_CLUSTER\_AGENT\_PORT\_80\_TCP\_ADDR=10.43.232.140 CATTLE\_CLUSTER\_AGENT\_PORT\_80\_TCP\_PORT=80 CATTLE\_CLUSTER\_AGENT\_PORT\_80\_TCP\_PROTO=tcp CATTLE\_CLUSTER\_AGENT\_SERVICE\_HOST=10.43.232.140 CATTLE\_CLUSTER\_AGENT\_SERVICE\_PORT=80 CATTLE\_CLUSTER\_AGENT\_SERVICE\_PORT\_HTTP=80 CATTLE\_CLUSTER\_AGENT\_SERVICE\_PORT\_HTTPS\_INTERNAL=443 CATTLE\_CLUSTER\_REGISTRY= CATTLE\_INGRESS\_IP\_DOMAIN=[kvaliteta.com](http://kvaliteta.com/) CATTLE\_INSTALL\_UUID=7dfa2c7b-7ca4-4104-80ad-1dc41e457a2b CATTLE\_INTERNAL\_ADDRESS= CATTLE\_IS\_RKE=false CATTLE\_K8S\_MANAGED=true CATTLE\_NODE\_NAME=cattle-cluster-agent-568c45476f-tqjqx CATTLE\_RANCHER\_WEBHOOK\_MIN\_VERSION= CATTLE\_RANCHER\_WEBHOOK\_VERSION=2.0.5+up0.3.5 CATTLE\_SERVER=[https://rancher.kvaliteta.com](https://rancher.kvaliteta.com/) CATTLE\_SERVER\_VERSION=v2.7.5  
INFO: Using resolv.conf: nameserver 10.43.0.10 search [cattle-system.svc.kvaliteta.com](http://cattle-system.svc.kvaliteta.com/) [svc.kvaliteta.com](http://svc.kvaliteta.com/) [kvaliteta.com](http://kvaliteta.com/) options ndots:5  
INFO: [https://rancher.kvaliteta.com/ping](https://rancher.kvaliteta.com/ping) is accessible  
INFO: [rancher.kvaliteta.com](http://rancher.kvaliteta.com/) resolves to 192.168.1.46  
time=“2023-08-10T10:57:56Z” level=info msg=“Listening on /tmp/log.sock”  
time=“2023-08-10T10:57:56Z” level=info msg=“Rancher agent version v2.7.5 is starting”  
time=“2023-08-10T10:57:56Z” level=info msg=“Certificate details from [https://rancher.kvaliteta.com](https://rancher.kvaliteta.com/)”  
time=“2023-08-10T10:57:56Z” level=info msg=“Certificate #0 ([https://rancher.kvaliteta.com](https://rancher.kvaliteta.com/))”  
time=“2023-08-10T10:57:56Z” level=info msg=“Subject: CN=_.kavliteta.com,OU=MOSIP,O=ORG,L=TVM,ST=KER,C=IN"  
time=“2023-08-10T10:57:56Z” level=info msg="Issuer: CN=_ .kavliteta.com,OU=MOSIP,O=ORG,L=TVM,ST=KER,C=IN”  
time=“2023-08-10T10:57:56Z” level=info msg=“IsCA: true”  
time=“2023-08-10T10:57:56Z” level=info msg=“DNS Names: [\*.kvaliteta.com]”  
time=“2023-08-10T10:57:56Z” level=info msg=“IPAddresses: ”  
time=“2023-08-10T10:57:56Z” level=info msg=“NotBefore: 2023-08-10 10:54:16 +0000 UTC”  
time=“2023-08-10T10:57:56Z” level=info msg=“NotAfter: 2025-07-10 10:54:16 +0000 UTC”  
time=“2023-08-10T10:57:56Z” level=info msg=“SignatureAlgorithm: SHA256-RSA”  
time=“2023-08-10T10:57:56Z” level=info msg=“PublicKeyAlgorithm: RSA”  
time=“2023-08-10T10:57:56Z” level=fatal msg=“Certificate chain is not complete, please check if all needed intermediate certificates are included in the server certificate (in the correct order) and if the cacerts setting in Rancher either contains the correct CA certificate (in the case of using self signed certificates) or is empty (in the case of using a certificate signed by a recognized CA). Certificate information is displayed above. error: Get “[https://rancher.kvaliteta.com](https://rancher.kvaliteta.com/)”: x509: certificate signed by unknown authority”

---

<div class="post-metadata">

**Author:** ![sanchi-singh24](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/sanchi-singh24/32/538_2.png) [@sanchi-singh24](https://community.mosip.io/u/sanchi-singh24)\
**Post date:** [August 10, 2023, 11:50am UTC](https://community.mosip.io/t/error-while-importing-cluster-to-rancher/597/26 "2023-08-10T11:50:26Z")

</div>

sudo docker run -it --mount type=volume,src=‘gensslcerts’,dst=/home/mosip/ssl,volume-driver=local  
-e VALIDITY=700  
-e COUNTRY=IN  
-e STATE=KER  
-e LOCATION=TVM  
-e ORG=Kvaliteta  
-e ORG\_UNIT=MOSIP  
-e COMMON\_NAME=\*.kavliteta.com  
-v /home/kvaliteta/mosip-utilities/openssl/entrypoint.sh:/home/mosip/entrypoint.sh  
mosipdev/openssl:latest

---

<div class="post-metadata">

**Author:** ![sanchi-singh24](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/sanchi-singh24/32/538_2.png) [@sanchi-singh24](https://community.mosip.io/u/sanchi-singh24)\
**Post date:** [August 10, 2023, 11:50am UTC](https://community.mosip.io/t/error-while-importing-cluster-to-rancher/597/27 "2023-08-10T11:50:41Z")

</div>

#!/bin/bash

sudo openssl req -x509 -nodes -days $VALIDITY -newkey rsa:2048  
-keyout /home/$(whoami)/ssl/private/nginx-selfsigned.key  
-out /home/$(whoami)/ssl/certs/nginx-selfsigned.crt  
-addext “subjectAltName = DNS:\*.kvaliteta.com”  
–subj “/C=$COUNTRY/ST=$STATE/L=$LOCATION/O=ORG/OU=$ORG\_UNIT/CN=$COMMON\_NAME/”  
kvaliteta@obs-ngnix:~/mosip-utilities/openssl$

---

<div class="post-metadata">

**Author:** ![mazboko](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/mazboko/32/654_2.png) [@mazboko](https://community.mosip.io/u/mazboko)\
**Post date:** [August 21, 2023, 6:35am UTC](https://community.mosip.io/t/error-while-importing-cluster-to-rancher/597/28 "2023-08-21T06:35:43Z")

</div>

Hello @sanchi-singh24 , was this error fixed ? Am currently facing the same issue.

---

<div class="post-metadata">

**Author:** ![sanchi-singh24](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/sanchi-singh24/32/538_2.png) [@sanchi-singh24](https://community.mosip.io/u/sanchi-singh24)\
**Post date:** [August 21, 2023, 8:49am UTC](https://community.mosip.io/t/error-while-importing-cluster-to-rancher/597/29 "2023-08-21T08:49:55Z")

</div>

Let me check with my devOps team and get back to you on this.

---

<div class="post-metadata">

**Author:** ![mazboko](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/mazboko/32/654_2.png) [@mazboko](https://community.mosip.io/u/mazboko)\
**Post date:** [August 21, 2023, 1:35pm UTC](https://community.mosip.io/t/error-while-importing-cluster-to-rancher/597/30 "2023-08-21T13:35:32Z")

</div>

Okay then. Let me wait for your update from the devops team.

---

<div class="post-metadata">

**Author:** ![syed.salman](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/syed.salman/32/25_2.png) [@syed.salman](https://community.mosip.io/u/syed.salman)\
**Post date:** [August 22, 2023, 4:46am UTC](https://community.mosip.io/t/error-while-importing-cluster-to-rancher/597/31 "2023-08-22T04:46:57Z")

</div>

@mazboko can you please follow this document [Adding TLS Secrets | Rancher](https://ranchermanager.docs.rancher.com/getting-started/installation-and-upgrade/resources/add-tls-secrets) to add the rancher nginx ssl certificate to rancher-ui and cattle-system

---

<div class="post-metadata">

**Author:** ![mazboko](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/mazboko/32/654_2.png) [@mazboko](https://community.mosip.io/u/mazboko)\
**Post date:** [August 23, 2023, 6:32am UTC](https://community.mosip.io/t/error-while-importing-cluster-to-rancher/597/32 "2023-08-23T06:32:22Z")

</div>

Many thanks. How do i go about the error when installing kafka? The chart repo can not be reached

---

<div class="post-metadata">

**Author:** ![gsasikumar](https://avatars.discourse-cdn.com/v4/letter/g/b782af/32.png) [@gsasikumar](https://community.mosip.io/u/gsasikumar)\
**Post date:** [August 23, 2023, 7:31am UTC](https://community.mosip.io/t/error-while-importing-cluster-to-rancher/597/33 "2023-08-23T07:31:52Z")

</div>

> [@syed.salman](#):
>
> You don’t have to rebuild the cluster, just delete the existing failed one from Rancher and try to import it again.

if the error is not related please open another thread. This will help any new comers to understand the issue better.

---

<div class="post-metadata">

**Author:** ![sanchi-singh24](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/sanchi-singh24/32/538_2.png) [@sanchi-singh24](https://community.mosip.io/u/sanchi-singh24)\
**Post date:** [August 23, 2023, 8:22am UTC](https://community.mosip.io/t/error-while-importing-cluster-to-rancher/597/34 "2023-08-23T08:22:05Z")

</div>

Hi @mazboko

For your kafka issue you can open a new thread with us and we will guide you through the process. It will be easy for you to understand the solution from our end.

Regards,  
Team MOSIP

---

<div class="post-metadata">

**Author:** ![sanchi-singh24](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/sanchi-singh24/32/538_2.png) [@sanchi-singh24](https://community.mosip.io/u/sanchi-singh24)\
**Post date:** [August 23, 2023, 8:22am UTC](https://community.mosip.io/t/error-while-importing-cluster-to-rancher/597/35 "2023-08-23T08:22:17Z")

</div>



[Previous page](https://community.mosip.io/t/error-while-importing-cluster-to-rancher/597.md?page=1)
