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...Performance and...Performance and...Exceptions are logged that do not appear int eh event viewerExceptions are logged that do not appear int eh event viewer
Previous
 
Next
New Post
2/12/2016 11:44 AM
 

Hi,

I just discovered that my sites are generating exception logs that do not appear in the EventLog.

Under /Portals/_default/logs I find a file per day with a name like 2016.02.12.log.resources.  The content of these files looks like Log4Net output and reports exceptions that do not appear inside the Event Viewer.  Here are two examples[1]

It looks like there is one file per day (Log4Net rolling log I presume) but these things get large.  I've just cleared 500MB of them from one site.

Questions:

Should these also appear in the Event Log?

How is an average user supposed to know about these and deal with them?

Is there a way to fix the underlying problems?  The two examples I have quoted are to do with indexing.  There is no AV or backup running on the machine in question.

 

[1]  Two example exceptions

2016-02-12 08:38:32,218 [WIN-3T1160D9I65][Thread:7][ERROR] DotNetNuke.Services.Exceptions.Exceptions - DotNetNuke.Services.Exceptions.SearchException: Unable to create Lucene writer (lock file is in use). Please recycle AppPool in IIS to release lock. ---> System.IO.IOException: The process cannot access the file 'D:\WebSites\WVA\App_Data\Search\write.lock' because it is being used by another process.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.File.InternalDelete(String path, Boolean checkHost)
   at DotNetNuke.Services.Search.Internals.LuceneControllerImpl.get_Writer() in c:\inetpub\wwwroot\git.dx1dnn.dev\DNN Platform\Library\Services\Search\Internals\LuceneControllerImpl.cs:line 121
   --- End of inner exception stack trace ---
   at DotNetNuke.Services.Search.Internals.LuceneControllerImpl.get_Writer() in c:\inetpub\wwwroot\git.dx1dnn.dev\DNN Platform\Library\Services\Search\Internals\LuceneControllerImpl.cs:line 126
   at DotNetNuke.Services.Search.Internals.LuceneControllerImpl.Delete(Query query) in c:\inetpub\wwwroot\git.dx1dnn.dev\DNN Platform\Library\Services\Search\Internals\LuceneControllerImpl.cs:line 379
   at DotNetNuke.Services.Search.Internals.InternalSearchControllerImpl.DeleteSearchDocumentInternal(SearchDocument searchDocument, Boolean autoCommit) in c:\inetpub\wwwroot\git.dx1dnn.dev\DNN Platform\Library\Services\Search\Internals\InternalSearchControllerImpl.cs:line 338
   at DotNetNuke.Services.Search.Internals.InternalSearchControllerImpl.DeleteSearchDocument(SearchDocument searchDocument) in c:\inetpub\wwwroot\git.dx1dnn.dev\DNN Platform\Library\Services\Search\Internals\InternalSearchControllerImpl.cs:line 301
   at DotNetNuke.Services.Search.Internals.InternalSearchControllerImpl.DeleteSearchDocumentsByModule(Int32 portalId, Int32 moduleId, Int32 moduleDefId) in c:\inetpub\wwwroot\git.dx1dnn.dev\DNN Platform\Library\Services\Search\Internals\InternalSearchControllerImpl.cs:line 355
   at DotNetNuke.Services.Search.SearchDataStore.StoreSearchItems(SearchItemInfoCollection searchItems) in c:\inetpub\wwwroot\git.dx1dnn.dev\DNN Platform\Library\Services\Search\SearchDataStore.cs:line 303
   at DotNetNuke.Services.Search.SearchEngine.IndexContent(DateTime startDate) in c:\inetpub\wwwroot\git.dx1dnn.dev\DNN Platform\Library\Services\Search\SearchEngine.cs:line 107
   at DotNetNuke.Services.Search.SearchEngineScheduler.DoWork() in c:\inetpub\wwwroot\git.dx1dnn.dev\DNN Platform\Library\Services\Search\SearchEngineScheduler.cs:line 84

2016-02-12 14:21:09,328 [WIN-3T1160D9I65][Thread:28][ERROR] DotNetNuke.Services.Exceptions.Exceptions - System.InvalidCastException: Object cannot be cast from DBNull to other types.
   at System.DBNull.System.IConvertible.ToDateTime(IFormatProvider provider)
   at DotNetNuke.Services.Search.UserIndexer.GetUserSearch(IDataReader reader) in c:\inetpub\wwwroot\git.dx1dnn.dev\DNN Platform\Library\Services\Search\UserIndexer.cs:line 286
   at DotNetNuke.Services.Search.UserIndexer.GetSearchDocuments(Int32 portalId, DateTime startDateLocal) in c:\inetpub\wwwroot\git.dx1dnn.dev\DNN Platform\Library\Services\Search\UserIndexer.cs:line 118

 


Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
2/12/2016 12:08 PM
 
Should have mentioned:

DNN 07.04.00

The AppPool has FullControl over the Logs folder.

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
2/12/2016 2:06 PM
 
I assume the developers missed to add createLogEntry for this exception.
Please make sure, there are no other processes (Backup, virus scanner) blocking the files.

Cheers from Germany,
Sebastian Leupold (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Performance and...Performance and...Exceptions are logged that do not appear int eh event viewerExceptions are logged that do not appear int eh event viewer


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.

Content Layout

Subscribe to DNN Digest

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  


Copyright 2017 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out