Have an idea?

Visit Sawtooth Software Feedback to share your ideas on how we can improve our products.

Unable to connect to sql 2008 r2 database

I have uploaded a survey to the server.  Activeperl is installed and the DBD-ODBC and DBI packages have been installed. I created a regular odbc connection to the database using the ip and port and was able to connect successfully.

When I open the admin page I get the following error.

time= Tue Jul 15 10:43:17 2014 | SSIWebVersion= 8_3_2 | ErrorNum= 199 | msg= Failed to connect to the database. | Server Error: DBI connect('Driver={SQL Server};Server=1234.456.78.90;Database=dbname;uid=uname;pwd=password;port=12345','',...) failed: [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied. (SQL-08001) [state was 08001 now 01000]
[Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionOpen (Connect()). (SQL-01000) [state was 01000 now 01S00]
[Microsoft][ODBC SQL Server Driver]Invalid connection string attribute (SQL-01S00) at C:/inetpub/wwwroot/pexper/cgi-bin/authlib8_3_2.pl line 17.
 | params= hid_studyname=>Pexper, hid_pagenum=>0,  IP= ::1 ,  client= Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729)

Ive modified the error so real IP's and login info isnt displayed.  The server where the database resides has a named instance where the survey database will be.

Sorry but this is the first survey Ive tried to configure so any tips would be helpful.

asked Jul 15, 2014 by Bill
We just got the same error on a Sawtooth survey. (several times)

Error #199 - Failed to connect to the database. 21 Jul 2015 - 15:47:57 GMT
Server Error: DBI connect('deftr2_client_projects:','deftr2_clients',...) failed: Lost connection to MySQL server at 'reading authorization packet', system error: 0 at /home/deftr2/public_html/deftsurvey.com/mxr/cgi-bin/authlib8_4_2.pl line 17
SSIWebVersion= 8_4_2 params= hid_backup=>mxr,1863,952669792,11,1, hid_javascript=>1, hid_list_s11=>1,2,3,4,5,6, hid_list_s12=>1,2, hid_noneabove_s11=>6, hid_pagenum=>11, hid_pagetime=>1437493631, hid_prev_s11=>30,s11,11,8a43c09d518789a7c7b61dfa9288e7fd, hid_prev_s12=>31,s12,11,cab993b118dea37b9f56fac81e32829f, hid_previous=>0, hid_q_s11=>s11, hid_q_s12=>s12, hid_respnum=>1863,952669792, hid_s=>Af8AAFLZalirNjr6EVBqRaIudoQnAAAAYvVTbZkADMMmaVhplxZFs2r1W2yYAQ7DImZZdI4fTrLLQPPBMq-jY4hjRnWOQw72, hid_studyname=>mxr, s11_1=>1, s12=>2, IP= , client= Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko

We are also getting this message when we attempt to log into the admin page:

Resource Limit Is Reached

The website is temporarily unable to service your request as it exceeded resource limit. Please try again later.
Apache/2.0.64 (Unix) mod_ssl/2.0.64 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/ mod_fcgid/2.3.6 Sun-ONE-ASP/4.0.3 Server at deftsurvey.com Port 80
Are you using your own server? Or are you hosting with Sawtooth Software?
We are using our own server.  We are trying to reach the server admin.
You are probably out of memory on the server and need more hardware.
One other thing I have noticed is that we are getting an repeating error message that says,
Error #199 - Failed to connect to the database.
Server Error: DBI connect('deftr2_client_projects:','deftr2_clients',...) failed: Can't connect to MySQL server on '' (111) at /home/deftr2/public_html/deftsurvey.com/mxs/cgi-bin/authlib8_4_2.pl line 17

When I look on the server, I see a file named named authlib8_3_6.pl  but not one named authlib8_4_2.pl    Could that be the problem?  

I was running version 8.3.6.   A colleague created and uploaded this survey using v 8.4.2 .  I just updated to v8.4.4.
Our client_projects database is nearly 5 GB in size.  Should we be creating a new project database for every project or once every few months?   

I ran a db repair on that database and it gave me a timeout when it got to one of the tables for the current study.  it then completed the repair and now it checks out as OK.   Would you advise switching to the new database?


Your solution to the original question

Please only use this to answer the original question. Otherwise please use comments.
Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

To avoid this verification in future, please log in or register.