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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Web Farm Problem with Deleting CacheWeb Farm Problem with Deleting Cache
Previous
 
Next
New Post
8/1/2007 4:13 PM
 

Running two webheads on NLB. I have five instances of DNN running and each one is failing to complete the scheduled task of: "DotNetNuke.Services.Cache.PurgeCache, DOTNETNUKE".

I'm getting desperate trying to figure out why I get this exception:

AssemblyVersion: -1
PortalID: -1
PortalName:
UserID: -1
UserName:
ActiveTabID: -1
ActiveTabName:
RawURL:
AbsoluteURL:
AbsoluteURLReferrer:
UserAgent:
DefaultDataProvider:
ExceptionGUID:
InnerException: Access to the path '\\tpa2-adm-001\egovt01\Portals\_default\Cache\TW9kdWxlUGVybWlzc2lvbnM3Mw==.resources' is denied.
FileName:
FileLineNumber: -1
FileColumnNumber: -1
Method:
StackTrace:
Message: System.UnauthorizedAccessException: Access to the path '\\tpa2-adm-001\egovt01\Portals\_default\Cache\TW9kdWxlUGVybWlzc2lvbnM3Mw==.resources' is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) at System.IO.StreamWriter.CreateFile(String path, Boolean append) at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize) at System.IO.StreamWriter..ctor(String path, Boolean append) at System.IO.File.CreateText(String path) at DotNetNuke.Services.Cache.FileBasedCachingProvider.FBCachingProvider.CreateCacheFile(String FileName) at DotNetNuke.Services.Cache.FileBasedCachingProvider.FBCachingProvider.Insert(String CacheKey, Object objObject, CacheDependency objDependency, DateTime AbsoluteExpiration, TimeSpan SlidingExpiration, Boolean PersistAppRestart) at DotNetNuke.Common.Utilities.DataCache.SetCache(String CacheKey, Object objObject, TimeSpan SlidingExpiration, Boolean PersistAppRestart) at DotNetNuke.Security.Permissions.ModulePermissionController.GetModulePermissionsDictionary(Int32 TabId) at DotNetNuke.Security.Permissions.ModulePermissionController.GetModulePermissionsCollectionByModuleID(Int32 ModuleId, Int32 TabId) at DotNetNuke.Entities.Modules.ModuleController.FillModuleInfo(IDataReader dr, Boolean CheckForOpenDataReader, Boolean IncludePermissions) at DotNetNuke.Entities.Modules.ModuleController.FillModuleInfoCollection(IDataReader dr, Boolean IncludePermissions)
Source:
Server Name: TPA1-WEB-004

The permissions are correctly set up to allow the Network Services access to the Cache folder. Is there another process that needs access??

 
New Post
8/1/2007 4:21 PM
 

Make sure that only one server is assigned the task of purging the cache, otherwise they will all try to delete the same file(s).  Turn the task off on all servers but one.


DotNetNuke Modules from Snapsis.com
 
New Post
8/1/2007 5:09 PM
 

Somehow I read the WebFarm Support document to read that the purgeCache process had to be run by each web server. Now I re-read it and I don't see that at all. Thank you for clarifying I will try it on only one server.

The other thing I wonder about is that when I enable FileSystem.SynchronizeFileSystem on the scheduler it fails as well.

 
New Post
8/1/2007 5:48 PM
 

You'll probably still get this error, but it shouldn't be as bad.  There are other places internally in DotNetNuke that create and delete the cache files & dependency files so as long as they are sharing the same physical drive you will have contention.  I just noticed that your error above was actually on a create file operation for one of these internal cache objects.

Others will probably want to contradict me, but I personally think you would be better off by having your separate web servers maintain their own cache folders.  
This will not allow cache invalidation to happen across the farm to happen until each one expires their own, but with a farm you could cache for a shorter amount of time and still get good benefit.

Then if you made sure that one of your servers in the farm was always used for administration you could let it be the "master" and the rest of the servers would catch up as their own cache expired.
I haven't tried this and it may not work out so great in practice, but in theory I think it would be worth a try to avoid these other problems.

Then again if you are mainly using this load balanced front end for redundancy (like a value host with lots of shared accounts) then the master-slave approach may not be as appealing.

 


DotNetNuke Modules from Snapsis.com
 
New Post
8/3/2007 10:27 AM
 

(I hope this post is readable, I can't even see the errors I posted in IE7!)

thank you for the response! I made sure that the task is only running on one server and am still getting these errors: 


 

8/3/2007 10:14:29 AM   Scheduler Event Failure       THREAD ID: 6; TYPE: DotNetNuke.Services.Cache.PurgeCache ...
THREAD ID: 6
TYPE: DotNetNuke.Services.Cache.PurgeCache
EXCEPTION: Access to the path '\\tpa2-adm-001\CPP01\Portals\_default\Cache\L2FkbWluL21vZHVsZXMvYXBwX2xvY2FscmVzb3VyY2VzL21vZHVsZXNldHRpbmdzLmFzY3gucmVzeDA=.resources' is denied.
RESCHEDULED FOR: 8/3/2007 10:44:29 AM
SOURCE: STARTED_FROM_BEGIN_REQUEST
ACTIVE THREADS: 0
FREE THREADS: 1
READER TIMEOUTS: 0
WRITER TIMEOUTS: 0
IN PROGRESS: 0
IN QUEUE: 1
Server Name: TPA1-WEB-003
     
  8/3/2007 10:14:29 AM   Scheduler Exception       AssemblyVersion: -1; PortalID: -1; PortalName ...
AssemblyVersion: -1
PortalID: -1
PortalName:
UserID: -1
UserName:
ActiveTabID: -1
ActiveTabName:
RawURL:
AbsoluteURL:
AbsoluteURLReferrer:
UserAgent:
DefaultDataProvider:
ExceptionGUID:
InnerException: Access to the path '\\tpa2-adm-001\CPP01\Portals\_default\Cache\L2FkbWluL21vZHVsZXMvYXBwX2xvY2FscmVzb3VyY2VzL21vZHVsZXNldHRpbmdzLmFzY3gucmVzeDA=.resources' is denied.
FileName:
FileLineNumber: -1
FileColumnNumber: -1
Method:
StackTrace:
Message: System.UnauthorizedAccessException: Access to the path '\\tpa2-adm-001\CPP01\Portals\_default\Cache\L2FkbWluL21vZHVsZXMvYXBwX2xvY2FscmVzb3VyY2VzL21vZHVsZXNldHRpbmdzLmFzY3gucmVzeDA=.resources' is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.File.Delete(String path) at DotNetNuke.Services.Cache.FileBasedCachingProvider.FBCachingProvider.PurgeCacheFiles(String[] strFiles) at DotNetNuke.Services.Cache.FileBasedCachingProvider.FBCachingProvider.PurgeCache() at DotNetNuke.Services.Cache.PurgeCache.DoWork()
Source:
Server Name: TPA1-WEB-003

 the tpa2-adm-001 is the file server for the UNC shares, these are on a domain and the website accesses the UNC share thru a domain user permission. Further, the Network Service is the owner of the app pool. I even tried making the permissions on the cache folder available to "everyone" but still get this error. I read 'Access to the path' as a permission error, am I on the wrong track?

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Web Farm Problem with Deleting CacheWeb Farm Problem with Deleting Cache


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