Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Server errors installing and removing module definitionsServer errors installing and removing module definitions
Previous
 
Next
New Post
4/25/2008 6:21 PM
 

Hello,

I'm hoping someone's seen this because I'm at wits end. I am running DNN 4.8.2 with SQL Server 2005. Whenever I try to install a module, I get the following server error:

Request timed out.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Request timed out.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): Request timed out.]

 

 Normally when if I saw this error, I would go looking at the executionTimeout attribute of the httpRuntime element in my web.config file. The problem is, it's already set to a longer time than it takes for the page to time out. I've created a test ASPX page that outputs Server.ScriptTimeout and even outputted it to the module definitions list page, just to make sure it was being set properly. It was. There is no reason I can see why this would happen. But no matter what, if I try to install a module, this is what I get.

It happens whether I install the module from the list of available modules (on the Module Definitions screen) or if I upload a PA file.

Does anyone have any ideas?


Andrew M. Galbraith Ryer

There is nothing like looking, if you want to find something. You certainly usually find something, if you look, but it is not always quite the something you were after.
     -J.R.R. Tolkein
 
New Post
4/30/2008 4:19 PM
 

Okay,

Further investigation reveals that I am getting this error because the application is trying to restart before the module install process is complete. One of the easiest ways for me to reproduce this is to try installing the DNN Store module. The DNN has several folder elements for the different modules that make up the Store. The first folder element is the Store Admin module, and it includes all the DLLs.

What seems to be hapenning is that when the DLLs get copied to the Bin folder, the application restarts. Running threads are aborted, along with the thread doing the install. This leaves the module partially installed, and tosses the highly informative (not!) "Request timed out" message back to the user. To confirm my theory, I rearranged the folders in the DNN file, so that the DLLs are the last thing to get installed. When I did this, suddenly everything installed properly.

Since this is not happening to everyone, I expect I have something configured wrong somewhere. I just can't figure out where. I've tried increasing the "Shutdown time limit" on the application pool. I've also tried adding the "delayNotificationTimeout" attribute to the httpRuntime element. Neither of these had any effect. Is there some configuration item I'm missing somewhere?


Andrew M. Galbraith Ryer

There is nothing like looking, if you want to find something. You certainly usually find something, if you look, but it is not always quite the something you were after.
     -J.R.R. Tolkein
 
New Post
5/8/2008 4:08 PM
 

The attribute I needed...

is the shutdownTimeout attribute of the httpRuntime element. It controls how long a thread can run when an application shutdown has been triggered. This is exactly what I want, as it gives the install thread the extra time it needs to complete its intsall. Here is my new httpRuntime element:

  <httpRuntime useFullyQualifiedRedirectUrl="true" maxRequestLength="8192" requestLengthDiskThreshold="8192" shutdownTimeout="300" />

I finally wrote a standalone ASP.NET page would simulate the types of updates so I could get a handle on the timing and effects of configuration changes.

A couple tidbits:

  • For the benefit of searches, let me note that the exception I saw in the logs was not what was on the error page. It was:
    ThreadAbortException: Thread was being aborted While upgrading
    There are a lot of forum posts about this exception, and I think it all comes back to the shutdownTimeout needing to be increased.
  • I fruitlessly spent a lot of time messing with the waitChangeNotification and maxWaitChangeNotification attributes. As far as I can tell, these do not apply to assembly updates - only to file updates.
  • As noted in my previous reply, updates to the application pool shutdown timeout didn't do it. Ditto the shutdownTimeout attribute of processModel (in machine.config). Neither of these work. It had to be the one in httpRuntime

I am a little surprised I didn't find this fix elsewhere in the forums or blogs. I am still a little nervous that this isn't it, but it really seems to be working. We shall see.

 

 


Andrew M. Galbraith Ryer

There is nothing like looking, if you want to find something. You certainly usually find something, if you look, but it is not always quite the something you were after.
     -J.R.R. Tolkein
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Server errors installing and removing module definitionsServer errors installing and removing module definitions


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out