# Mender Server Production Installation with Kubernetes fails: failed to connect to db Error reaching mongo server

**URL:** https://hub.mender.io/t/mender-server-production-installation-with-kubernetes-fails-failed-to-connect-to-db-error-reaching-mongo-server/6992
**Category:** General Discussions
**Tags:** mender-server
**Created:** [July 5, 2024, 6:04am UTC](https://hub.mender.io/t/mender-server-production-installation-with-kubernetes-fails-failed-to-connect-to-db-error-reaching-mongo-server/6992 "2024-07-05T06:04:52Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Vadivel\_K](https://avatars.discourse-cdn.com/v4/letter/v/7993a0/32.png) [@Vadivel\_K](https://hub.mender.io/u/Vadivel_K)
#### Post date: [July 5, 2024, 6:04am UTC](https://hub.mender.io/t/mender-server-production-installation-with-kubernetes-fails-failed-to-connect-to-db-error-reaching-mongo-server/6992/1 "2024-07-05T06:04:52Z")

</div>

We are trying to install the mender server open source version with Kubernetes in an OnPremises Server which won’t have a domain name and won’t be exposed to the internet.

After pulling the helm packages the services started running except mender-deployments-migration services.

The error logs show failed to connect to DB: Error reaching Mongo  
server. Screenshot attached:

 ![Screenshot 2024-06-06 171225](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/2X/1/1688dc6290967f44f7aa1be40fde57deed11b110.png)

Please help us to resolve this. If anyone has done mender server deployment in an OnPremises Server Please share the documentation or steps followed.

---

<div class="post-metadata">

### Author: ![robgio](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/robgio/32/1760_2.png) [@robgio](https://hub.mender.io/u/robgio)
#### Post date: [July 5, 2024, 8:25am UTC](https://hub.mender.io/t/mender-server-production-installation-with-kubernetes-fails-failed-to-connect-to-db-error-reaching-mongo-server/6992/2 "2024-07-05T08:25:35Z")

</div>

Hello @Vadivel_K ,  
Can you please share your values.yaml file? Please make sure you don’t share any secret or password.

Btw you can find documentation [here](https://docs.mender.io/3.7/server-installation/production-installation-with-kubernetes) and [here](https://github.com/mendersoftware/mender-helm/blob/master/README.md).

Thanks
