Hello peeps
This week's issue is file sync. I have had an ongoing problem whereby a portal will lose files and/or lose file/folder permissions I had set for the portal. Sometimes I'll notice the portal logo missing and then I'll know it has happened. Other times the portal owner cannot see their files anymore. The fix is to resync in the file manager manually. That is obviously not ideal and so I decided to enable the file sync task and set it to once per day - The Host/Autosync setting was already enabled as per the defaults.
So, every day now, my log has a long red section that repeats first, a scheduler exception, then an identical general exception and then a scheduler event failure one after the other, several times over a couple of hours. Then it seems to work and everything's fine again. I'll paste the errors below.
AssemblyVersion: -1
PortalID: -1
PortalName:
UserID: -1
UserName:
ActiveTabID: -1
ActiveTabName:
RawURL:
AbsoluteURL:
AbsoluteURLReferrer:
UserAgent:
DefaultDataProvider:
ExceptionGUID:
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: -1
FileColumnNumber: -1
Method:
StackTrace:
Message: System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Services.FileSystem.FolderController.GetMappedDirectory(String VirtualDirectory) at DotNetNuke.Entities.Portals.PortalInfo.get_HomeDirectoryMapPath() at DotNetNuke.Services.FileSystem.SynchronizeFileSystem.Synchronize() at DotNetNuke.Services.FileSystem.SynchronizeFileSystem.DoWork()
Source:
Server Name: VIR103-13
THREAD ID: 11
TYPE: DotNetNuke.Services.FileSystem.SynchronizeFileSystem
EXCEPTION: Object reference not set to an instance of an object.
RESCHEDULED FOR: 9/23/2007 3:08:21 PM
SOURCE: STARTED_FROM_BEGIN_REQUEST
ACTIVE THREADS: 0
FREE THREADS: 1
READER TIMEOUTS: 0
WRITER TIMEOUTS: 0
IN PROGRESS: 0
IN QUEUE: 8
Server Name: VIR103-13
The task history reports the error as follows:
DotNetNuke.Services.FileSystem.SynchronizeFileSystem, DOTNETNUKE
File System Synchronization failed. System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Services.FileSystem.FolderController.GetMappedDirectory(String VirtualDirectory) at DotNetNuke.Entities.Portals.PortalInfo.get_HomeDirectoryMapPath() at DotNetNuke.Services.FileSystem.SynchronizeFileSystem.Synchronize() at DotNetNuke.Services.FileSystem.SynchronizeFileSystem.DoWork()
Any ideas are appreciated.
Rob
P.s. This is DNN 4.5.5 upgraded since 4.03 and running on a VPS