# When move to prodction env I get a server error

**URL:** <https://community.forestadmin.com/t/when-move-to-prodction-env-i-get-a-server-error/2413>\
**Category:** Help me!\
**Tags:** setup\
**Created:** [May 3, 2021, 4:19pm UTC](https://community.forestadmin.com/t/when-move-to-prodction-env-i-get-a-server-error/2413 "2021-05-03T16:19:36Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![morganperre](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/morganperre/32/1296_2.png) [@morganperre](https://community.forestadmin.com/u/morganperre)\
**Post date:** [May 4, 2021, 8:06am UTC](https://community.forestadmin.com/t/when-move-to-prodction-env-i-get-a-server-error/2413/2 "2021-05-04T08:06:08Z")

</div>

Hello @uripeled2 ! 👋 Welcome to our community 🎉 🎊

The logs say that the agent is refusing to connect to your database because of the error `DEPTH_ZERO_SELF_SIGNED_CERT` which indicates that your DB uses a self-signed certificate that cannot be validated. Probably caused by the Heroku config for this different postgres.

The following thread give a solution to accept invalid certificate.

> [@Unauthorized app / \[object Object\]](https://community.forestadmin.com/t/unauthorized-app-object-object/2158/7):
>
> the errors are the ones in the first post + this

Let me know if it help.

Thanks in advance  
Morgan.

---

_[View the full topic](https://community.forestadmin.com/t/when-move-to-prodction-env-i-get-a-server-error/2413)._
