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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Scheduler Exception and Worker Process RestartingScheduler Exception and Worker Process Restarting
Previous
 
Next
New Post
2/28/2007 1:13 AM
 

Hello, we are getting these exceptions nearly each day on some of our Portals. Below are the entries from our Log Viewer. We were having an issue with this causing the application pool to crash and our worker process would restart. This would cause all or our 4.x sites to have to reload in cache and would result in a major slowdown for a period of time. We are running a Windows 2003 Standard box if that helps as well.

We read the article after doing a lot of searching on this type of crash and created the UnhandledExceptionModule.dll file that Microsoft has suggested. Read the article Unhandled exceptions cause ASP.NET-based applications to unexpectedly quit in the .NET Framework 2.0 if you like.

After doing so we are able to see the error log in our Windows Event Viewer, but the worker process is still restarting. Seems like we are very close to figuring out what it could be, but not quite yet. If we turn of the scheduler we could probably eliminate the error, but we’d like to keep the schedules.

Any clue as to what could be causing this issue? We’ve researched quite a bit without finding a solid reason.

Log Viewer errors:

Last exception was of type Scheduler Event Failure

5th  error:

THREAD ID: 8
TYPE: DotNetNuke.Services.Search.SearchEngineScheduler
EXCEPTION: Thread was being aborted.
RESCHEDULED FOR: 1/1/0001 1:00:00 AM
SOURCE: STARTED_FROM_BEGIN_REQUEST
ACTIVE THREADS: -1
FREE THREADS: 2
READER TIMEOUTS: 0
WRITER TIMEOUTS: 0
IN PROGRESS: 0
IN QUEUE: 2
Server Name: XXXX


All were listed as Scheduler Exception in the Log Viewer

4th error

AssemblyVersion: -1
PortalID: -1
PortalName:
UserID: -1
UserName:
ActiveTabID: -1
ActiveTabName:
RawURL:
AbsoluteURL:
AbsoluteURLReferrer:
UserAgent:
DefaultDataProvider:
ExceptionGUID:
InnerException: Thread was being aborted.
FileName:
FileLineNumber: -1
FileColumnNumber: -1
Method:
StackTrace:
Message: System.Threading.ThreadAbortException: Thread was being aborted. at DotNetNuke.Services.Scheduling.DNNScheduling.Scheduler.CoreScheduler.WorkStarted(SchedulerClient& objSchedulerClient) at DotNetNuke.Services.Scheduling.SchedulerClient.Started() at DotNetNuke.Services.Scheduling.DNNScheduling.ProcessGroup.Run(ScheduleHistoryItem objScheduleHistoryItem)
Source:
Server Name: XXXX


3rd error

AssemblyVersion: -1
PortalID: -1
PortalName:
UserID: -1
UserName:
ActiveTabID: -1
ActiveTabName:
RawURL:
AbsoluteURL:
AbsoluteURLReferrer:
UserAgent:
DefaultDataProvider:
ExceptionGUID:
InnerException: Thread was being aborted.
FileName:
FileLineNumber: -1
FileColumnNumber: -1
Method:
StackTrace:
Message: System.Threading.ThreadAbortException: Thread was being aborted. at DotNetNuke.Services.Scheduling.DNNScheduling.ProcessGroup.AddQueueUserWorkItem(ScheduleItem s) at DotNetNuke.Services.Scheduling.DNNScheduling.Scheduler.CoreScheduler.FireEvents(Boolean Asynchronous) at DotNetNuke.Services.Scheduling.DNNScheduling.Scheduler.CoreScheduler.Start()
Source:
Server Name: XXXX

2nd error

AssemblyVersion: -1
PortalID: -1
PortalName:
UserID: -1
UserName:
ActiveTabID: -1
ActiveTabName:
RawURL:
AbsoluteURL:
AbsoluteURLReferrer:
UserAgent:
DefaultDataProvider:
ExceptionGUID:
InnerException: Thread was being aborted.
FileName:
FileLineNumber: -1
FileColumnNumber: -1
Method:
StackTrace:
Message: System.Threading.ThreadAbortException: Thread was being aborted. at System.Threading.ReaderWriterLock.AcquireWriterLockInternal(Int32 millisecondsTimeout) at DotNetNuke.Services.Scheduling.DNNScheduling.Scheduler.CoreScheduler.RemoveFromScheduleQueue(ScheduleItem objScheduleItem) at DotNetNuke.Services.Scheduling.DNNScheduling.Scheduler.CoreScheduler.WorkStarted(SchedulerClient& objSchedulerClient)
Source:
Server Name: XXXX


1st error

AssemblyVersion: -1
PortalID: -1
PortalName:
UserID: -1
UserName:
ActiveTabID: -1
ActiveTabName:
RawURL:
AbsoluteURL:
AbsoluteURLReferrer:
UserAgent:
DefaultDataProvider:
ExceptionGUID:
InnerException: Thread was being aborted.
FileName:
FileLineNumber: -1
FileColumnNumber: -1
Method:
StackTrace:
Message: System.Threading.ThreadAbortException: Thread was being aborted. at System.Threading.Thread.SleepInternal(Int32 millisecondsTimeout) at DotNetNuke.Services.Scheduling.DNNScheduling.ProcessGroup.AddQueueUserWorkItem(ScheduleItem s)
Source:
Server Name: XXXX

Microsoft Event Viewer

Event Type:            Error
Event Source:           ASP.NET 2.0.50727.0
Event Category:       None
Event ID: 0
Date:                        2/27/2007
Time:                       11:36:12 PM
User:                        N/A
Computer:                XXXX
Description:
The description for Event ID ( 0 ) in Source ( ASP.NET 2.0.50727.0 ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event:

UnhandledException logged by UnhandledExceptionModule.dll:

appId=/LM/W3SVC/6953/ROOT

type=System.CannotUnloadAppDomainException

message=Error while unloading appdomain. (Exception from HRESULT: 0x80131015)

stack=
   at System.AppDomain.Unload(AppDomain domain)
   at System.Web.HttpRuntime.ReleaseResourcesAndUnloadAppDomain(Object state)
   at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)

 

 


Sheldon Cohen
www.sheldonrcohen.com
10 Sin
20 goto Hell
 
New Post
2/28/2007 9:58 AM
 

It appears that all of those errors were caused by the Worker Process recycling, not them causing the worker process to recycle.

Thread Aborting errors occur when a process is told that it must abaondon the thread and stop processing, typically if the Worker Process is shutting down.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
2/28/2007 10:13 AM
 

I realized I did not put the times on the Log Viewer Exceptions from the Portal but they started at  11:35:55 PM right before the UnhandledException in the MS Event Log.

This was the only thing I could see that led up to this event, and we have gotten these nearly every day. Right before we get this message in our MS Event Log we have one of our Portals with scheduler exception each time timestamped before it. We were running one module that we found would throw an UnhandledException and we have put the UnhandledExceptionModule.dll and that did help the worker process from recycling, but have not found any other smoking gun. We had put up the details on it here http://www.sheldonrcohen.com/Default.aspx?tabid=53&mid=368&ctl=ViewEntry&EntryID=69 as well.

So what else could be causing our worker process to recycle and how can we track it down I guess. Is it possible that the Scheduler could still be causing our worker process to recycle? If we were to turn off the schedules for a few days that might be the best way to say yes or no to this it sounds like.


Sheldon Cohen
www.sheldonrcohen.com
10 Sin
20 goto Hell
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Scheduler Exception and Worker Process RestartingScheduler Exception and Worker Process Restarting


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