# Trying to get started with a non localhost DB impossible

**URL:** <https://community.forestadmin.com/t/trying-to-get-started-with-a-non-localhost-db-impossible/1358>\
**Category:** Help me!\
**Created:** [November 24, 2020, 10:55am UTC](https://community.forestadmin.com/t/trying-to-get-started-with-a-non-localhost-db-impossible/1358 "2020-11-24T10:55:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fabian](https://avatars.discourse-cdn.com/v4/letter/f/f6c823/32.png) [@fabian](https://community.forestadmin.com/u/fabian)\
**Post date:** [November 24, 2020, 10:55am UTC](https://community.forestadmin.com/t/trying-to-get-started-with-a-non-localhost-db-impossible/1358/1 "2020-11-24T10:55:23Z")

</div>

Hi,

I have gone through the setup steps as prescribed and set up a backend server that is connected to my DB server. Now I want to test it but I am prevented from logging in because apparently the frontend expects me to configure a local test setup first and won’t even let me switch to a production environment or do any further configuration. Basically, I am now completely locked out of that project now. How do I resolve this? Thanks!

 ![Screen Shot 2020-11-24 at 11.53.15 AM](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/1/172d18f24e72c12cdf161308b26d1ddd2e0fcc44.png)

---

<div class="post-metadata">

**Author:** ![fabian](https://avatars.discourse-cdn.com/v4/letter/f/f6c823/32.png) [@fabian](https://community.forestadmin.com/u/fabian)\
**Post date:** [November 24, 2020, 11:50am UTC](https://community.forestadmin.com/t/trying-to-get-started-with-a-non-localhost-db-impossible/1358/2 "2020-11-24T11:50:55Z")

</div>

I have also tried to set up another local app now using the demo database provided in the documentation but it does not seem to work as intended:

apricot\_prod | Your application is listening on port 3310.  
apricot\_prod | Your admin panel is available here: [https://app.forestadmin.com/projects](https://app.forestadmin.com/projects)  
apricot\_prod | [forest] 🌳🌳🌳 Unexpected error: connect ECONNREFUSED 192.168.65.2:5432  
apricot\_prod | SequelizeConnectionRefusedError: connect ECONNREFUSED 192.168.65.2:5432  
apricot\_prod | at connection.connect.err (/usr/src/app/node\_modules/sequelize/lib/dialects/postgres/connection-manager.js:170:24)  
apricot\_prod | at Connection.connectingErrorHandler (/usr/src/app/node\_modules/pg/lib/client.js:213:14)  
apricot\_prod | at Connection.emit (events.js:198:13)  
apricot\_prod | at Socket.reportStreamError (/usr/src/app/node\_modules/pg/lib/connection.js:57:10)  
apricot\_prod | at Socket.emit (events.js:198:13)  
apricot\_prod | at emitErrorNT (internal/streams/destroy.js:91:8)  
apricot\_prod | at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)  
apricot\_prod | at process.\_tickCallback (internal/process/next\_tick.js:63:19)

---

<div class="post-metadata">

**Author:** ![anon79585656](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@anon79585656](https://community.forestadmin.com/u/anon79585656)\
**Post date:** [November 24, 2020, 1:38pm UTC](https://community.forestadmin.com/t/trying-to-get-started-with-a-non-localhost-db-impossible/1358/3 "2020-11-24T13:38:46Z")

</div>

Hello @fabian,

Sorry to hear you are having difficulties setting your project up.

Reading the error message you pasted, it seems your database access is either not properly configured or your database does not answer.  
Can you assert that you can access the database via a GUI or command line tool?  
If yes, please ensure your `.env` file contains the proper values in `DATABASE_URL`.

You can also check that [http://localhost:3310/](http://localhost:3310/) is accessible via your internet browser.

Once the `ECONNREFUSED` error is gone and the LumberJS page is visible at [http://localhost:3310/](http://localhost:3310/) if the problem is still there, it can come from an invalid value in `FOREST_ENV_SECRET` (shown in the setup process).

Let me know if this helps.
