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