# Error during instant setup

**URL:** <https://community.forestadmin.com/t/error-during-instant-setup/6678>\
**Category:** Help me!\
**Created:** [September 19, 2023, 8:49am UTC](https://community.forestadmin.com/t/error-during-instant-setup/6678 "2023-09-19T08:49:22Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Simon\_BRAMI1](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/simon_brami1/32/2753_2.png) [@Simon\_BRAMI1](https://community.forestadmin.com/u/Simon_BRAMI1)\
**Post date:** [September 19, 2023, 8:49am UTC](https://community.forestadmin.com/t/error-during-instant-setup/6678/1 "2023-09-19T08:49:22Z")

</div>

I’m trying to create a small project using the instant setup.

the project name is [Trombi.net](http://Trombi.net)

I’m running on Azure SQL Database (so technically MsSQL)

I get this error when filling my connection string:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/4/4157a1c8bdc8fb84a9332825685086a957532d17.png)

I already added the forest admin IPs to my white list.

Do you have any idea ?

---

<div class="post-metadata">

**Author:** ![GuillaumeGautreau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/guillaumegautreau/32/557_2.png) [@GuillaumeGautreau](https://community.forestadmin.com/u/GuillaumeGautreau)\
**Post date:** [September 19, 2023, 12:07pm UTC](https://community.forestadmin.com/t/error-during-instant-setup/6678/2 "2023-09-19T12:07:48Z")

</div>

Hello @Simon_BRAMI1,

Did you try authorizing your own IP and open the DB from your computer?

I think that the IP address `127.0.0.1` in the error message is not correct, but it’s due to the internal implementation for opening requests with the same static IP address.

Which IP address did you authorize on your DB?

---

<div class="post-metadata">

**Author:** ![Simon\_BRAMI1](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/simon_brami1/32/2753_2.png) [@Simon\_BRAMI1](https://community.forestadmin.com/u/Simon_BRAMI1)\
**Post date:** [September 19, 2023, 12:17pm UTC](https://community.forestadmin.com/t/error-during-instant-setup/6678/3 "2023-09-19T12:17:47Z")

</div>

Hello Guillaume,

Yes my own IP is authorized and works fine on DataGrip.

And I added those:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/7/740842d21d73d13fce998e232e6a16f83e7b2f9a.png)

---

<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:** [September 19, 2023, 1:33pm UTC](https://community.forestadmin.com/t/error-during-instant-setup/6678/5 "2023-09-19T13:33:06Z")

</div>

Hello @Simon_BRAMI1,

So you have followed the following link [https://docs.forestadmin.com/documentation/extra-help/setup/forest-admin-ip-white-listing-forest-cloud](https://docs.forestadmin.com/documentation/extra-help/setup/forest-admin-ip-white-listing-forest-cloud)

We got two kind issues from your tries:

> Unable to connect to the given uri: mssql://XXXXXX.  
> Connection error: Server requires encryption, set ‘encrypt’ config option to true.

> Unable to connect to the given uri: mssql://XXXXXX.  
> Access denied error: Cannot open server “127.0.0.1” requested by the login. The login failed.

Unfortunately, I don’t have an Azure SQL Database to try it myself.

Looking at some threads on the web, [It could be an issue with SSH tunneling](https://github.com/dbeaver/dbeaver/issues/4741).

They propose a workaround, add the username to the URI:  
`mssql://username@yourdb.database.windows.net`

Also please check that in the Azure SQL server the port 1433 should be opened or add a new inbound rule with this port.

Let me know if it helps.

Kind regards,  
Morgan

---

<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:** [September 19, 2023, 1:50pm UTC](https://community.forestadmin.com/t/error-during-instant-setup/6678/6 "2023-09-19T13:50:07Z")

</div>

> [@Simon\_BRAMI1](#):
>
> ![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/7/740842d21d73d13fce998e232e6a16f83e7b2f9a.png)

What is the difference between columns 2 and 3?

---

<div class="post-metadata">

**Author:** ![Simon\_BRAMI1](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/simon_brami1/32/2753_2.png) [@Simon\_BRAMI1](https://community.forestadmin.com/u/Simon_BRAMI1)\
**Post date:** [September 19, 2023, 2:00pm UTC](https://community.forestadmin.com/t/error-during-instant-setup/6678/7 "2023-09-19T14:00:49Z")

</div>

It’s just in case I need to setup IP ranges 😉

---

<div class="post-metadata">

**Author:** ![Simon\_BRAMI1](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/simon_brami1/32/2753_2.png) [@Simon\_BRAMI1](https://community.forestadmin.com/u/Simon_BRAMI1)\
**Post date:** [September 19, 2023, 2:05pm UTC](https://community.forestadmin.com/t/error-during-instant-setup/6678/8 "2023-09-19T14:05:18Z")

</div>

My username and password are already filled in the URI, the port 1433 is also already setup by default

My URI looks like this:

`mssql://<user>:<password>@fr-trombinoscope-sql.database.windows.net:1433/fr-trombinoscope-sql-prod`

---

<div class="post-metadata">

**Author:** ![Simon\_BRAMI1](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/simon_brami1/32/2753_2.png) [@Simon\_BRAMI1](https://community.forestadmin.com/u/Simon_BRAMI1)\
**Post date:** [September 19, 2023, 2:10pm UTC](https://community.forestadmin.com/t/error-during-instant-setup/6678/9 "2023-09-19T14:10:30Z")

</div>

> [@morganperre](#):
>
> Unable to connect to the given uri: mssql://XXXXXX.  
> Connection error: Server requires encryption, set ‘encrypt’ config option to true.

By the way this issue is only if I don’t require TLS so you can consider it “fixed”

---

<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:** [September 19, 2023, 2:20pm UTC](https://community.forestadmin.com/t/error-during-instant-setup/6678/10 "2023-09-19T14:20:40Z")

</div>

> the way this issue is only if I don’t require TLS so you can consider it “fixed”

Indeed, **Azure SQL Database** needs TLS/SSL.

I just doubled check [the Azure SQL Database documentation for Node.js and `mssql` driver](https://learn.microsoft.com/en-gb/azure/azure-sql/database/azure-sql-javascript-mssql-quickstart?view=azuresql&tabs=passwordless%2Cservice-connector%2Cportal#prerequisites).  
I don’t understand what could cause the issue. There maybe a specificity that we have missing with `AZURE_SQL_AUTHENTICATIONTYPE=azure-active-directory-default`

We will try to set up this on our side and try to understand the root of this issue. I will keep you updated when we have some more news. 🙏

Some Azure resources on this topic for reference:

> **[Create a single database - Azure SQL Database](https://learn.microsoft.com/en-GB/azure/azure-sql/database/single-database-create-quickstart?view=azuresql&tabs=azure-portal)**
>
> Create a single database in Azure SQL Database using the Azure portal, PowerShell, or the Azure CLI.

> **[Create an Azure portal server-level firewall rule - Azure SQL Database](https://learn.microsoft.com/en-GB/azure/azure-sql/database/firewall-create-server-level-portal-quickstart?view=azuresql)**
>
> Learn how to create a server-level firewall rule with Azure portal

Kind regards,  
Morgan

---

<div class="post-metadata">

**Author:** ![Simon\_BRAMI1](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/simon_brami1/32/2753_2.png) [@Simon\_BRAMI1](https://community.forestadmin.com/u/Simon_BRAMI1)\
**Post date:** [September 19, 2023, 2:26pm UTC](https://community.forestadmin.com/t/error-during-instant-setup/6678/11 "2023-09-19T14:26:35Z")

</div>

> [@morganperre](#):
>
> I just doubled check [the Azure SQL Database documentation for Node.js and `mssql` driver](https://learn.microsoft.com/en-gb/azure/azure-sql/database/azure-sql-javascript-mssql-quickstart?view=azuresql&tabs=passwordless%2Cservice-connector%2Cportal#prerequisites).  
> I don’t understand what could cause the issue. There maybe a specificity that we have missing with `AZURE_SQL_AUTHENTICATIONTYPE=azure-active-directory-default`

By default Azure SQL Database is usable with User and Password created during setup, I have never used the “Active Directory” auth.

Also, when configuring other Forest projects by setting my own backend, I use the same mssql:// URI format to connect to Azure Databases which works fine 🙂

Don’t know if it will help, let me know how your investigation goes!

---

<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:** [September 19, 2023, 2:38pm UTC](https://community.forestadmin.com/t/error-during-instant-setup/6678/12 "2023-09-19T14:38:29Z")

</div>

> [@Simon\_BRAMI1](#):
>
> Also, when configuring other Forest projects by setting my own backend, I use the same mssql:// URI format to connect to Azure Databases which works fine 🙂

Superbe that’s very interesting since we have some specific handling in the Cloud to keep your URI secured.

> [@Simon\_BRAMI1](#):
>
> Don’t know if it will help, let me know how your investigation goes!

Be sure that we will keep you updated but it might take a few days to put all of it together. 🙏

Kind regards,  
Morgan

---

<div class="post-metadata">

**Author:** ![Simon\_BRAMI1](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/simon_brami1/32/2753_2.png) [@Simon\_BRAMI1](https://community.forestadmin.com/u/Simon_BRAMI1)\
**Post date:** [September 19, 2023, 2:55pm UTC](https://community.forestadmin.com/t/error-during-instant-setup/6678/13 "2023-09-19T14:55:35Z")

</div>

> [@morganperre](#):
>
> Be sure that we will keep you updated but it might take a few days to put all of it together. 🙏

Thanks man 🙏

Let me know if you need me to test things

---

<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:** [September 22, 2023, 7:56am UTC](https://community.forestadmin.com/t/error-during-instant-setup/6678/14 "2023-09-22T07:56:36Z")

</div>

Hello @Simon_BRAMI1,

We have conducted some tests and we have run into the same issue as you `Cannot open server “127.0.0.1” requested by the login.`. Even though, it is likely a side effect of another issue (we need more time and extended tests to verify this).

We think that we encountered an issue close to the following: [MSSQL - tables in a non "dbo" schema preventing onboarding](https://community.forestadmin.com/t/mssql-tables-in-a-non-dbo-schema-preventing-onboarding/6665)  
Mainly, we don’t support **schema** correctly during DB introspection. We have already started to work on this issue.

I will inform you once we have more information/news.

Kind regards,  
Morgan

---

<div class="post-metadata">

**Author:** ![Simon\_BRAMI1](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/simon_brami1/32/2753_2.png) [@Simon\_BRAMI1](https://community.forestadmin.com/u/Simon_BRAMI1)\
**Post date:** [September 27, 2023, 9:05am UTC](https://community.forestadmin.com/t/error-during-instant-setup/6678/15 "2023-09-27T09:05:02Z")

</div>

Hello Morgan,

If that can help, the schema hosting my business tables is dbo 🙂

Good luck with that issue.

---

<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:** [October 5, 2023, 12:56pm UTC](https://community.forestadmin.com/t/error-during-instant-setup/6678/16 "2023-10-05T12:56:38Z")

</div>

Hello @Simon_BRAMI1,

Well, it took a while to fully investigate this one. First, I want to thank you for your feedback. 🙏

We detected an issue in our fixed IP (used for [whitelisting](https://docs.forestadmin.com/documentation/extra-help/setup/forest-admin-ip-white-listing-forest-cloud)) functionality thanks to you.  
For now, we decided to remove the **MSSQL Cloud onboarding** since the issue cannot be tackled right away.  
We will investigate more time in the future to reenable it for the cloud onboarding.

We will update you when the situation comes back to normal. Let me know if you have additional information.

Kind regards,  
Morgan
