Site Hangs, recieved error report form hosting company

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
7/16/2009 11:43:13 AM
Gravatar
Total Posts 108

Site Hangs, recieved error report form hosting company

Please excuse the rather lengthy email,

I've put a site up for testing, and noticed it hangs every so often, rather like theres a bottle neck somewhere, it times out when navigating to a new page, not all of the time but ever so often. When i open a new browser up its super quick again.

I've done some custom development, but sometimes the pages freeze when im looking at pages that have none of my own custom modules on. So doubt its something to do with what i've created, and i created my own projects so havent touched main mojoportal files.

Its very strange, as on my localhost, i have a almost identical copy, and experience no problems at all.

I'm using version mojoPortal Version 2.3.0.1 MSSQL

I've spoken to my web hosting company and heres some replies

Hello Tim

You application at times seems to be giving the server a hell of a ride, I've moved it to its own application pool at it does hog a lot of CPU occasionally.

Is that site based on Mojo Portal by any chance?

Hello Tim

I'm not saying it's definitely your site but we've had an issue for a couple of weeks on the server where something called DW20.exe get launched which is an error reporting component usually associated with Office, we've basically deduced that a dot net application is causing the issue and it has something to do with Mojo because that's referenced in the event log.

########################
Event Type: Error
Event Source: ASP.NET 2.0.50727.0
Event Category: None
Event ID: 1334
Date: 7/16/2009
Time: 10:31:29 AM
User: N/A
Computer: STORM005
Description:
An unhandled exception occurred and the process was terminated.

Application ID: /LM/W3SVC/2973/ROOT

Process ID: 432

Exception: System.Security.SecurityException

Message: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

StackTrace: at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)
at System.Security.CodeAccessPermission.Demand()
at System.IO.FileInfo..ctor(String fileName)
at Lucene.Net.Store.FSDirectory.Init(FileInfo path, Boolean create)
at Lucene.Net.Store.FSDirectory.GetDirectory(FileInfo file, Boolean create)
at Lucene.Net.Index.IndexReader.Open(String path)
at mojoPortal.Business.WebHelpers.IndexWriterTask.ProcessQueue(DataTable q, String indexPath)
at mojoPortal.Business.WebHelpers.IndexWriterTask.ProcessIndexingQueue()
at mojoPortal.Business.WebHelpers.IndexWriterTask.RunTask()
at mojoPortal.Business.WebHelpers.IndexWriterTask.RunTaskOnNewThread(Object oTask)
at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
######################

If you can shed any light on it then that would be great.

7/16/2009 11:59:21 AM
Gravatar
Total Posts 18439

Re: Site Hangs, recieved error report form hosting company

Hi Tim,

I've seen this kind of error before when under some circumstances the task queue or indexing queue get funky.

I recommend delete all rows from mp_TaskQueue and mp_IndexingQueue tables.

I've added some extra handling to prevent this kind of error so I recommend upgrading to the latest mojoPortal release.

DW20.exe is the Dr Watson error reporting agent, which really MS should not enable on a server because it wants to popup a dialog to the user about sending this error report to Microsoft but since no user is logged in it can't. With some googling there are apparent ways to disable it but I never could manage to disable it on my server. But the additional error handling I added solved it for me so it doesn't ever cause Dr Watson to launch.

Its really a strange thing this Dr Watson is what eats up the cpu, its not really mojoPortal using it up but the error that happened launches this Dr Watson and then it eats up the cpu. 

After upgrading and deleting those rows you may want to rebuild your search index which will write new rows but you won't get these errors.

Hope it helps,

Joe

7/16/2009 12:06:38 PM
Gravatar
Total Posts 108

Re: Site Hangs, recieved error report form hosting company

god you're going to hate me for writing such a long message, i remembered about the event log, and these seem to the be main errors, i have lots and lots of the first error about indexwritertask in the event log, and some regarding galleries and creating new pages.

IndexWriterTask on a new thread
2009-07-13 05:44:48,390 INFO mojoPortal.Web.Global - Application Started.
2009-07-13 05:44:49,015 INFO mojoPortal.Web.WebTaskManager - deserialized WebTaskManager task
2009-07-13 05:44:49,031 INFO mojoPortal.Web.WebTaskManager - Queued WebTaskManager on a new thread
2009-07-13 05:50:04,796 INFO mojoPortal.Business.WebHelpers.IndexWriterTask - deserialized

 

System.Web.HttpException: The file '/1church-hall-lounge.aspx' does not exist.
at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)
at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
at System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

 

 

 

2009-07-15 06:04:07,203 ERROR mojoPortal.Web.mojoBasePage - 86.144.192.84-en-US - /ImageGallery/EditImage.aspx?mid=130&pageid=37
System.ArgumentException: Parameter is not valid.
at System.Drawing.Bitmap..ctor(String filename)
at mojoPortal.Business.GalleryImage.ProcessImage(String originalFileName)
at mojoPortal.Web.GalleryUI.GalleryImageEdit.btnUpdate_Click(Object sender, EventArgs e)
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
2009-07-15 06:04:07,312 ERROR mojoPortal.Web.Global - 86.144.192.84-en-US - /ImageGallery/EditImage.aspx?mid=130&pageid=37

7/16/2009 12:10:11 PM
Gravatar
Total Posts 108

Re: Site Hangs, recieved error report form hosting company

Hi Joe,

thats great I shall let them know

ugh long night ahead, but thanks for such a speedy reply.

I'm still an avid fan of mojoportal!

Cheers

Tim

7/16/2009 12:12:52 PM
Gravatar
Total Posts 108

Re: Site Hangs, recieved error report form hosting company

sorry one more thing,

If i delete all rows from mp_TaskQueue and mp_IndexingQueue tables before upgrading will this effect any of my content thats already in there? as i will have to do this before upgrading to the new version for now.

I wouldnt want to loose any content as its taken a long time to put it in.

thanks again

Tim

 

7/16/2009 12:21:46 PM
Gravatar
Total Posts 18439

Re: Site Hangs, recieved error report form hosting company

No, you won't lose any content by deleting from those tables, they are tables for queing tasks like indexing content to the search index. These tasks run on a background thread.

The only issue is that your search index is likely out of sync with your content already because of the errors that heppened while trying to update it, this can be solved by rebuilding the index. If you rebuild the index before upgrading then its possible these errors will happen again but not neccessarily probable. 

Hope it helps,

Joe

7/27/2009 6:04:50 PM
Gravatar
Total Posts 108

Re: Site Hangs, recieved error report form hosting company

Hi Joe,

Could you tell me where i could add the error handling that you spoke of, i really need to add this code without upgrading, I can compare the source files with the latest version if i know where to look.

I started my first site before reading that i should stay well clear of modifying modules instead of duplicating them, i'm now in too deep to start over again, even more frustrating is that i'm pretty much finished with this one, if i can add the error handling code i can put this one to bed and it'll be a lesson learnt.

I've already learnt from my previous mistake and have started a new site the correct way. If anyone else is reading this, start right and you'll be future proofing your site for the future!

Many Thanks

Tim

7/28/2009 6:00:41 AM
Gravatar
Total Posts 18439

Re: Site Hangs, recieved error report form hosting company

Hi Tim,

Compare your version of Web/Components/WebTaskManager.cs with the latest version. Look especially for the try catch stuff surrounding the deserialization of tasks in ResumeOrKillStalledTasks and in StartNewTasks

As I recall there was some xml deserialization error that caused an invalid operation so thats what I'm catching is InvalidOperationException.

Hope it helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.