cancel
Showing results for 
Search instead for 
Did you mean: 

Connection with SQL Server Azure

AxelF_
Champ in-the-making
Champ in-the-making

Hello.

We're trying to connect Nuxeo to a SQL Server Azure instance with the wizard configuration interface.The instance is OK and we have a private client connected to it. But Nuxeo failed to connect to that SQL instance. Here the exception in logs:

[http-bio-0.0.0.0-8080-exec-1] [org.nuxeo.wizard.RouterServlet] java.sql.SQLException: I/O Error: DB server closed connection.

It works on a local instance but not on an Azure instance. Here the wizard conf:

Database Type: MS SQL Server Database Name: MyDatabase Database user: user@myAzureSqlInstance Database Server host name: myAzureSqlInstance.database.windows.net Database server port: 1433

The port is openned.

13 REPLIES 13

Florent_Guillau
World-Class Innovator
World-Class Innovator

Which Nuxeo version are you using? For a number of configurations you must use the Microsoft JDBC driver instead of the provided open source one. See [NXP-10234](https

AxelF_
Champ in-the-making
Champ in-the-making

Ok we changed the connection string and we are using JDBC instead of JTDS driver. Now we have another problem

AxelF_
Champ in-the-making
Champ in-the-making

Ok we managed to make it work. As said before, we changed for the JDBC Driver, and set encrypt parameter in the connection string to false.

Florent_Guillau
World-Class Innovator
World-Class Innovator

First, for Azure the Microsoft JDBC driver (sqljdbc4.jar) should be used as the open source jTDS driver can't manage to authenticate with Azure.

The tables user2group (and maybe group2group if you use groups of groups) are indeed created without clustered indexes. You may want to recreate them with the proper clustered index:

DROP INDEX [groupid_idx] ON [user2group];
DROP INDEX [parentgroupid_idx] ON [group2group];
CREATE CLUSTERED INDEX [groupid_idx] ON [user2group];
CREATE CLUSTERED INDEX [parentgroupid_idx] ON [group2group];

AxelF_
Champ in-the-making
Champ in-the-making

ok actually i have something like 30-40 exceptions... ie

Florent_Guillau
World-Class Innovator
World-Class Innovator

I don't know, I would need to see more detailed logs. But don't post them here but on a site like pastebin.

AxelF_
Champ in-the-making
Champ in-the-making

Here the logs when attempting to logging in

AxelF_
Champ in-the-making
Champ in-the-making

I tried to restart the server with a clean database. Here are the whole logs

AxelF_
Champ in-the-making
Champ in-the-making

Ok. Each time the server is starting after several minutes it says