Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 ODBC Drivers error '80004005'
 New Topic
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 3

MaGraham
Senior Member

USA
1297 Posts

Posted - 07 June 2013 :  15:18:22  Show Profile  Reply with Quote

I am receiving the following error message, at times, on my forums. These are new forums (also new domain and new hosting) that I haven't even opened for my members yet.

Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[MySQL][ODBC 5.1 Driver]Too many connections

There was a line of code specified in inc_header.asp but I neglected to make a note of it.

I am using MySQL database and hosting is asking if the connections are set to be closed after they are used. I don't understand this. Could someone help me to know how to answer this?




"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley

Carefree
Advanced Member

Philippines
4217 Posts

Posted - 07 June 2013 :  16:58:21  Show Profile
What the host is referring are possible "handles" left open to the database. Every time there's a "Set ? = my_Conn.Execute" or a "my_Conn.Open", there needs to be a corresponding .Close and for the "Set ***", there should be a corresponding "Set ? = Nothing" to finish the job. Somewhere in your code, there's probably one that isn't closed and you're frequenting that command.
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 07 June 2013 :  18:12:23  Show Profile  Visit HuwR's Homepage
most likely culpret is one of the mods you have added, pretty sure we got all the connections closed in the base code

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page

MaGraham
Senior Member

USA
1297 Posts

Posted - 08 June 2013 :  02:24:47  Show Profile

Since the error message referred to inc_header.asp, does that mean that's where the error is?

I still can't believe I neglected to note the exact line! In my mind's eye I think it said line 112. Does seeing these lines below look like that might be the case and/or help in determining the problem?

Here are lines 108 - 126


Response.End
end if

set my_Conn = Server.CreateObject("ADODB.Connection")
my_Conn.Open strConnString
%>
<!--#include file="my_theme2.asp"-->
<%

'##### Ban IP Mod ######
Call banIP()
'#######################

if (strAuthType = "nt") then
call NTauthenticate()
if (ChkAccountReg() = "1") then
call NTUser()
end if
end if


"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley
Go to Top of Page

Carefree
Advanced Member

Philippines
4217 Posts

Posted - 08 June 2013 :  13:08:17  Show Profile
No, that doesn't mean the error is there; it's just one of the most frequently accessed pages. The error could be anywhere, but it's likely to be on a frequently used page as well. I'd recommend reviewing any/all of the pages which are "included" from "default.asp" as a place to start.
Go to Top of Page

MaGraham
Senior Member

USA
1297 Posts

Posted - 08 June 2013 :  14:16:02  Show Profile


I had active.asp open when I received this error message. Would that mean the error is in active.asp?





"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley

Edited by - MaGraham on 08 June 2013 14:21:53
Go to Top of Page

Carefree
Advanced Member

Philippines
4217 Posts

Posted - 08 June 2013 :  16:20:02  Show Profile
I'll take a look later today, maybe I'll get lucky and find it in the first dozen or so files.
Go to Top of Page

MaGraham
Senior Member

USA
1297 Posts

Posted - 08 June 2013 :  19:52:51  Show Profile


Oh thank you, Carefree!!



"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley
Go to Top of Page

MaGraham
Senior Member

USA
1297 Posts

Posted - 09 June 2013 :  09:35:03  Show Profile


Hosting just said, "If the number of open connects cross a defined limit on the server, it will start giving too many connections errors" in a message.

Does this mean doing too many mods could also cause this?



"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley

Edited by - MaGraham on 09 June 2013 09:35:45
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 09 June 2013 :  11:12:56  Show Profile
Yes, too many mods will cause that. But it's not just any mod, mods that are not written properly will let that error occur.

You see, usually each mod opens a connection to the database, and they are SUPPOSED to close that connection when finished with it. But they leave out the closing part and so the # of open connections to the database is left.

So Carefree will have to go through each mod that is referenced on active.asp and check to make sure they close the connection properly.

Support Snitz Forums
Go to Top of Page

MaGraham
Senior Member

USA
1297 Posts

Posted - 10 June 2013 :  13:09:15  Show Profile
quote:
Originally posted by Davio

So Carefree will have to go through each mod that is referenced on active.asp and check to make sure they close the connection properly.



Oh my! I hope the error is found in the first few!



"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley
Go to Top of Page

Webbo
Average Member

United Kingdom
982 Posts

Posted - 11 June 2013 :  02:28:10  Show Profile  Visit Webbo's Homepage
I have the same issue occasionally despite being on a dedicated server and having lifted the number of max connections and so far I cannot for the life of me find where the issue is coming from.
All I know is that is only rears it's head on busy occasions when there are 500+ users onboard. I did suspect the ipgate mod as a line in there was referenced but I couldn't find anyting wrong with it either.

Carefree, if you do find the cause I also lost a needle once in a hay stack, perhaps you could find that for me as well

Edit: I found a saved error:
quote:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[MySQL][ODBC 5.1 Driver]User webbo already has more than 'max_user_connections' active connections

/forum/inc_header.asp, line 169


Edited by - Webbo on 11 June 2013 02:30:47
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 11 June 2013 :  10:56:22  Show Profile  Visit HuwR's Homepage
Webbo, what is your configured connection limit ? 500+ users is going to create a lot of connections anyway, and not sure how MySQL handles connection pooling so it could be creating 500+ connections.

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page

Webbo
Average Member

United Kingdom
982 Posts

Posted - 11 June 2013 :  17:34:27  Show Profile  Visit Webbo's Homepage
The max user connections was set to 1000 from the default 100(?)

Technically it could be raised further if need be but it has an impact on server memory so 1000 seemed to be a good round number.
Go to Top of Page

MaGraham
Senior Member

USA
1297 Posts

Posted - 12 June 2013 :  06:41:03  Show Profile

My website isn't even open. I'm still moving the latest posts, etc. to my new domain. But I haven't even been on the site for the past 8 hours, or more, and yet when I tried to go to my forums just a few minutes ago, I received the error we're referring to here.


Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[MySQL][ODBC 5.1 Driver]Too many connections

/fp/inc_header.asp, line 112


It's finally loaded now though.


"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley

Edited by - MaGraham on 12 June 2013 06:41:48
Go to Top of Page

Webbo
Average Member

United Kingdom
982 Posts

Posted - 13 June 2013 :  08:15:35  Show Profile  Visit Webbo's Homepage
I've managed to capture an error message:

error '80004005'
/forum/inc_ipgate.asp, line 50


MaGraham, have you got the IPGate mod installed?
Go to Top of Page
Page: of 3 Previous Topic Topic Next Topic  
Next Page
 New Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.38 seconds. Powered By: Snitz Forums 2000 Version 3.4.07