Skip to main content
October 17, 2012
Question

"The connection was reset" errors ColdFusion 10

  • October 17, 2012
  • 5 replies
  • 40340 views

Hello,

I've searched net and Adobe forums before creating the thread. We have webserver using ColdFusion 10 and IIS 7.5, we are trying to retore our ColdFusion website on it. We are getting following errors:

Error 101 (net::ERR_CONNECTION_RESET): The connection was reset.

on some of the pages. The website is not live now so in order to access it you should modify your hosts file using the line : 198.61.145.21 6figurejobs.com www.6figurejobs.com .

The errror will occur when you try to go to any of the companies in Featured compamies section. example:

http://6figurejobs.com/company/Deloitte

http://6figurejobs.com/company/Rain-Bird-Corporation

etc.

More problem pages:

http://6figurejobs.com/Career-News/Information-Technology/How-women-can-make-an-impact-in-the-IT-industry-$100001345-438039515.html

http://6figurejobs.com/Career-News/Healthcare/Healthcare-adds-jobs-in-August-$100001332-438039511.html

etc.

I assume this is ColdFusion/IIS settings thread? Could someone assist us with the errors? I would be beyond grateful for any help/advise.

Thank you in advance!

This topic has been closed for replies.

5 replies

Inspiring
May 25, 2017

I just worked with a CF11 U7 server and found that turning off Dynamic Compression in IIS allowed everything to work.  It seems like an issue with CF and IIS both trying to use the output buffer.   Thanks to the user who posted March 2017 inside the bug for the fix\workaround.

Participating Frequently
March 12, 2014

here is the fix for the connection was reset problem

firstly install

http://www.microsoft.com/en-au/download/details.aspx?id=7435

then you can make a backup of web.config in your wwwroot

edit the file and paste this in

<?xml version="1.0" encoding="UTF-8"?>

<configuration>

    <system.webServer>

        <httpErrors errorMode="Detailed">

            <remove statusCode="404" subStatusCode="-1" />

        </httpErrors>

        <rewrite>

            <rules>

<rule name="404 HTTP">

<match url="(.*)" />

<conditions>

<add input="{REQUEST_URI}" pattern="CFFileServlet/(.*)" negate="true" />

<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />

<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />

<add input="{SERVER_PORT_SECURE}" pattern="0" />

</conditions>

<action type="Rewrite" url="/404.cfm?404;http://{HTTP_HOST}:{SERVER_PORT}{REQUEST_URI}" />

</rule>

<rule name="404 HTTPS">

<match url="(.*)" />

<conditions>

<add input="{REQUEST_URI}" pattern="CFFileServlet/(.*)" negate="true" />

<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />

<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />

<add input="{SERVER_PORT_SECURE}" pattern="1" />

</conditions>

<action type="Rewrite" url="/404.cfm?404;https://{HTTP_HOST}:{SERVER_PORT}{REQUEST_URI}" />

</rule>

            </rules>

        </rewrite>

    </system.webServer>

</configuration>

all should be fine after this

Good Luck

Charlie Arehart
Community Expert
March 12, 2014

Very interesting ideas “you have”.  (That quoted part is a reference to the author’s use of “chickity china” as his forum name, for the sake of anyone who’s heard the classic audio clip of a phone prank. )

This will be great if it does indeed solve things for most folks. For those who may not just want to add the XML but understand what it’s doing, I’ve added some commentary here. I’d appreciate if the author would offer his concurrence that I get it right So basically you’re proposing 3 changes in IIS 7+ with regard to how 404 errors are handled.

And for the benefit of future readers, I’d like to add that you (I so wish people identified themselves) are showing it via XML changes, though one could also do them in the interface. In case someone may either be forced to make changes only in the interface, or they want to better understand what he’s proposing below, here’s how it seems (and I have confirmed by making the changes in the interface and confirmed that it ends up creating the same XML).

At a high level, he (?) is changing controls in what would be the “error pages” feature and then the “URL rewrite” feature. (And he starts out showing how to download the URL rewrite feature for IIS, but some may find that it's already installed, or can be added as a role/service. I can't recall which versions have it built-in.)

And he’s also mentioned making the XML changes in the web.config, which is supposing that the change be done for a given site, but readers should know that they could also be done at either the site or server level in the IIS interface using the “Error pages” and “URL Rewrite” features. (It can also be done at the server level in XML but by changing instead the applicationhost.config file. I will not elaborate here on doing that, but will show how to do it in the interface.)

So first, as for the error pages feature, he is doing the equivalent of removing the 404 handler from IIS for the given site, and he is changing the “edit feature settings” for “error pages” to change to “detailed”, for local AND remote requests. That latter point is very important. (That, too, is a subject worth further discussion, but now’s not a good time for me to elaborate.)

Finally, he’s adding a pair of “url rewrite” rules to handle 404’s differently (for http and https). For each rule, it will be a "blank rule" and an "inbound" one. You can see the values (in his XML) that you’d want to put in (if doing it in the interface) for the rule’s name, pattern, and added conditions (and their “input” and “pattern” values). And the “negate=yes” he shows means it’s a “does not match this pattern” check.

Further, logically, the conditions are saying “don’t run the rule if the requested file is the cffileservlet itself or any pattern starting with it, and don’t match if the requested file name is a file or folder name.” I suppose the latter is to simulate a 404 (the file requested name does not exist as a file or folder) and the former (about cffileservlet) is to help solve whatever has been perhaps the real crux of the problem. Can the author confirm? The last condition is about SSL vs not, and note that he creates 2 rules, one for HTTP and one for HTTPS.

As for how well this may solve the 404 handling problem people have had, I can’t confirm right now. I’ve not got the problem myself, but I have a few clients who do and I will point them to this to see if they confirm it solves the problem for them.

Hope that’s helpful for some readers. And thanks again to the writer, if indeed this solves the problem for folks. (Adobe has mentioned in the bug report about this, #3488063, that they are working on a new connector. It may be that after that fix is applied in the future, one would not need the special handling outlined here. I hope anyone working on that in the future will add further comment/confirmation.)

/charlie

Message was edited by: Charlie Arehart I added comment on how the first download link refers to adding the URLRewrite tool, and how some may find that already installed.

Message was edited by: Charlie Arehart Also edited the comment to indicate that when adding rules in the interface, you would choose to create a "blank rule" and an "inbound" one.

/Charlie (troubleshooter, carehart. org)
Charlie Arehart
Community Expert
March 12, 2014

As an update, I can report someone else finding success with this. As I'd mentioned, I have some customer who did have problems in CF10 with using the IIS 404 handler to pass to a cfm page, as reported above, and they added this set of IIS config changes and it led previously failing 404's to now work for them.

I'll note that they also got hold of the Adobe-updated connector and had tried that, and it did not work as well for them, but in their case there was a combination of other factors, including whether the CF "status codes" setting (in the CF Admin Settings page) was on or not, and whether IIS was set for "custom" or "detailed" errors.

But again the suggestion made above by "chickitychina" did work for them, so we do thank him/her for that. We'll see if other folks I pointed this out to have similar success, and whether others reading this forum thread may see and try the fix.

/Charlie (troubleshooter, carehart. org)
New Participant
November 20, 2012

Having recently upgraded to cf10 standard, I've also hit a bit of a wall with what seems to be an iis 7 connector issue.

I'm running the updater 5, with correctly configured connector for that update, and IIS redirected 404 pages intermittently fail - about a 90% failure rate.

An example page is http://www.currentlyoffline.co.nz/servercheck

The setup here is IIS sees a 404, and the error page is set in IIS to 'Execure a URL on this site" being a .cfm file in the root dir of the site.

The IIS - > CF redirect works perfectly, I can log CF handling the request, the issue is that 90% of the time the request never makes its way back to the browser - generally receiving 'Error 101 (net::ERR_CONNECTION_RESET): The connection was reset'

I'm going to guess that this is another as yet unfixed bug in the connector, has anyone else seen such a problem / have any idea how to fix it?

Additional info:

The debug mode on the connector showed nothing exciting - the only error in there seems unrelated time wise but is:

[error] HttpExtensionProc::jk_isapi_plugin.c (2314): failed to init service for request.

I've also tried turning off the buffering in the connector - had no effect.

Charlie Arehart
Community Expert
November 21, 2012

I can concur I know of a user hitting this, who has also applied Updater 5 and confirmed it’s installed, as well as the web connector reconfigured and updated, and gets the same problem with 404’s. We’ve noticed as well that the failure rate depends on the browser: Chrome got about 90%, FF got about 20%, but it would always fail at least a couple times in 10 test requests, so that’s not a theoretical 20% but actual.

If it may help anyone from Adobe to study this, we also observed that with Chrome the error detail was “err_incomplete_chunked_encoding”, and further with the Chrome Dev tools we could see in the headers that the response header (from CF/IIS) indicated it receiving a header of:

transfer-encoding="chunked"

I didn’t get to notice if that was typical of all requests, or only of those responded to when an IIS 404 handler was passing the requests to CF, or if perhaps only on failing requests for such. Maybe someone else with this problem will be able to confirm either way.

/charlie

/Charlie (troubleshooter, carehart. org)
New Participant
November 21, 2012

cool, i've lodged it with adobe at bugbase.

https://bugbase.adobe.com/index.cfm?event=bug&id=3368804

Charlie Arehart
Community Expert
October 22, 2012

MBudaev, did you follow the suggestion offered by byrning in comment 11 above (http://forums.adobe.com/message/4782667#47826

While the updater does not tell you, the technote for the updater DOES tell us that we need to re-configure the web server connector after applying the update.

And if this is on Windows 2008 (or 7), let me share a tip that it's important that you run that as admin, meaning, use Start>Programs>Adobe>ColdFusion and then right-click on the "Web Server Configuration Tool" and choose "run as admin". Otherwise, you may find that its interface "works", and you remove and re-add connections, but things still don't "work" because the changes didn't really take under the covers.

It would also be wise to restart both IIS and CF10 after applying the change in the web server config tool.

Let us know if that helps.

/Charlie (troubleshooter, carehart. org)
Charlie Arehart
Community Expert
October 22, 2012

One more comment. First, perhaps I should have given the link to that technote: http://helpx.adobe.com/coldfusion/kb/coldfusion-10-update-3.html

Second, I should note that it's understandable that we (those of us applying the Updater) through the CF Admin auto-hotfix mechanism might not be compelled to read the technote about an updater. An argument could certainly be made (and has been made by some) that this should be either clarified or even offered during the updater. See comments in the blog entry on the updater, specifically:

http://blogs.coldfusion.com/post.cfm/coldfusion-10-update-3-released#comment-1C003E9C-E5AF-951A-3227D4A3666A9C4A

and
http://blogs.coldfusion.com/post.cfm/coldfusion-10-update-3-released#comment-31617920-A952-3037-544E3E5BECB55096

Third, i just noticed that the technote talks about doing the web server config tool from the command line (which is indeed always another option). But in that case, my observation about being sure to "run as admin" still applies: this time, when you open the command prompt. Use Start>Accessories and then right-click on "Command Prompt" to "run as admin".

I do so wish that any Adobe references to these matters did make that point more clear.    

/Charlie (troubleshooter, carehart. org)
Carl Von Stetten
Brainiac
October 17, 2012

Have you installed the latest hotfix (Hotfix 3) that just came out yesterday?  There were some IIS connector issues that were fixed in it.

-Carl V.

October 17, 2012

Carl,

I will update ColdFusion now and report you if the issues are not resolved.

Thanks!

________

Well i get:

"Error occurred while installing the update:

Failed Signature verification"

Any advise?

Thanks!

Carl Von Stetten
Brainiac
October 17, 2012

If you have not manually downloaded and installed the mandatory hotfix (http://blogs.coldfusion.com/post.cfm/coldfusion-10-mandatory-update, http://www.adobe.com/support/coldfusion/downloads_updates.html) yet, you will need to do so before you will be able to download and install any updates in CF Administrator.

-Carl V.

Message was edited by: Carl Von Stetten