Timed out trying to establish connection

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default Re: Timed out trying to establish connection

    cool! i will give that a try next time it happens. we try to restart the
    service through the services console on windows but even the service hangs up
    when you stop it. VERY frustrating! maybe this will work better!

    thanks!

    ladybug Guest

  2. Similar Questions and Discussions

    1. #39979 [NEW]: PGSQL_CONNECT_FORCE_NEW will causes next connect to establish a new connection
      From: solar dot c at gmx dot net Operating system: SLES 10 PHP version: 5.2.0 PHP Bug Type: PostgreSQL related Bug...
    2. How to establish connection of DataGridView Control to Stock Excha
      Dear Sir, I m develop a application in vb.net which update a live prices of stocks by a website named (www.nseindia.com) i m using...
    3. The underlying connection as closed: Could not establish secure channel for SSL/TLS
      Ok, I try to communicate with a web service who receive xml message under a https using SSL. I have a directory with 240 XML files on my desktop....
    4. Establish a connection telnet in PHP on a UNIX server
      Hello, I wish to establish a connection in language PHP on a UNIX server by telnet. In fact, I would like : - Connect to server by sending IP...
    5. Client unable to establish connection
      Hi, I get the connection as following: set objCon = CreateObject("ADODB.Connection") objCon.ConnectionTimeout = 15 objCon.CursorLocation =...
  3. #2

    Default Re: Timed out trying to establish connection

    I have had a problem stopping the server from the services console and
    executing this code forced the stop and start so I didn't have to reboot the
    server.
    Let me know if you find anything on the forums in response to our problem that
    quite a few people seem to be having.
    Thanks!

    webdr7 Guest

  4. #3

    Default Re: Timed out trying to establish connection

    Hi,
    sorry for my english. Is very bad.

    We have the same issue in our Win2003 server and CFMX 7. Before, in CFMX 6.1,
    the problem was the same too.
    Would be CF 6 the solution? We are thinking about this posibility...

    Oh...Macromedia...we are you???????????

    Juven

    JuvenTF Guest

  5. #4

    Default Re: Timed out trying to establish connection

    Hi,
    sorry for my english. Is very bad.

    We have the same issue in our Win2003 server and CFMX 7. Before, in CFMX 6.1,
    the problem was the same too.
    Would be CF 6 the solution? We are thinking about this posibility...

    Oh...Macromedia...we are you???????????

    Juven

    JuvenTF Guest

  6. #5

    Default Re: Timed out trying to establish connection

    No kidding, I have not touched my box or code and I'm getting

    Connection verification failed for data source: ENROLL
    []java.sql.SQLException: Timed out trying to establish connection
    The root cause was that: java.sql.SQLException: Timed out trying to establish
    connection

    I'm running 6.1 and my entire site is down now due to this issue that there
    seems to be no fix for. ARGH.


    Scooby Doobie Doo Guest

  7. #6

    Default Re: Timed out trying to establish connection

    This is pretty nuts. I have two CF servers running on different boxes both of
    them are Version: 6,1,0,63958. Recetly one of my servers has been misbehaving
    and atleast once to a day I am getting this error:

    "java.sql.SQLException: Timed out trying to establish connection at
    coldfusion.server.j2ee.sql.pool.JDBCPool.requestCo nnection"

    Once this happens I have to restart the CF MX ODBC Server which hangs but
    finally stops after about 5 minutes. Is there any news from Macromedia about
    comming up with a fix? Is the MX 6.1 build I am running the most current (i.e
    with the supposed fixes)? This is pretty annoying. Aarrrrrgggh!!

    wadudu Guest

  8. #7

    Default Re: Timed out trying to establish connection

    How did you set up this file to fire when the service goes down?

    <cfset cfAdmin=createObject("component", "cfide.adminapi.administrator")>
    <cfset isLoggedIn=cfAdmin.login("YOUR CF ADMIN PASSWORD HERE")>

    <cfset setDSN=createObject("component","CFIDE.adminapi.da tasource")>
    <cfinvoke component="#setDSN#" method="stopOdbcService">

    <cfinvoke component="#setDSN#" method="startOdbcService">

    ICND Guest

  9. #8

    Default Re: Timed out trying to establish connection

    Do you really want to have to kill your ODBC connections? What about other
    users on the site, they'll have to relogin and lose all their settings each
    time, this doesn't seem like a viable solution to me.

    Scooby Doobie Doo Guest

  10. #9

    Default Re: Timed out trying to establish connection

    You have to stop and restart the ODBC service killing all ODBC connections.
    When the service hangs all the sites go down that are using the ODBC driver so
    the service is useless until restared anyway. Would be nice if we could get
    some kind of response from Macromedia since there are so many people having
    this problem with 7.0

    webdr7 Guest

  11. #10

    Default Re: Timed out trying to establish connection

    I have a script running on another server that does an http request every few
    minutes to see if the website it up and running. If it is not I send another
    http request to the script that has the code I posted to stop and restart the
    ODBC service which ends up getting things back up and running everytime.
    Problem is when it happens the sites are still down for a minute or 2 while the
    stop and start happens. The problem is very intermittent and the logs show
    nothing so this is very difficult to try to find a permanent solution for.

    webdr7 Guest

  12. #11

    Default Timed out trying to establish connection

    It appears that I am connecting to MySQL (following Matts directions) now I
    receive this

    Connection verification failed for data source: cucar.DSN
    []java.sql.SQLException: Timed out trying to establish connection
    The root cause was that: java.sql.SQLException: Timed out trying to establish
    connection

    This is my JDBC URL

    jdbc:mysql://localhost:3306/cucar

    Thanks

    ChuckInAtl Guest

  13. #12

    Default Re: Timed out trying to establish connection

    > It appears that I am connecting to MySQL (following Matts directions) now
    I
    > receive this
    >
    > Connection verification failed for data source: cucar.DSN
    > []java.sql.SQLException: Timed out trying to establish connection
    > The root cause was that: java.sql.SQLException: Timed out trying to
    establish
    > connection
    >
    > This is my JDBC URL
    >
    > jdbc:mysql://localhost:3306/cucar
    Check to see if the connection is allowed from from the firewall.

    --
    <mack />


    Neculai Macarie Guest

  14. #13

    Default Re: Timed out trying to establish connection

    Thanks for the reply..

    I saw in previous post NOT to have the firewall up, so I don't...???

    Chuck

    ChuckInAtl Guest

  15. #14

    Default Re: Timed out trying to establish connection

    Can you share the script that does an http request every few minutes to see if the website it up and running? Thanks.
    Jackiex Guest

  16. #15

    Default Re: Timed out trying to establish connection

    Just a simple <cfhttp> request within a <cftry> <cfcatch> block
    <cftry>
    <cfhttp url="http://www.YourWebsite.com" method="GET">
    <cfcatch>
    Run the code you want to run if the site throws an error here............
    </cfcatch>
    </cftry>

    webdr7 Guest

  17. #16

    Angry Re: Timed out trying to establish connection

    We ran into this funny problem. no event log or windows event to tell us what happened. The server would give error timeout. Why? no idea. Should we restrict connections, should we increase timeout, should we maintain connections across clients? should we reduce simultaneoius templates count...what? The CFADMIN page and adobe is so silent on this.

    Trying to restart ODBC is a technically beautiful solution but not good for running e-commerce.
    We are contemplating moving our site from CFM to PHP or ASP.
    Unregistered Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139