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 ...IO Exceptions in a WEB FARMIO Exceptions in a WEB FARM
Previous
 
Next
New Post
8/31/2010 9:01 AM
 
Hi all,

I'm running DNN Community 5.1.4 in a hosted environment with a webfarm using the filebased caching provider.
All the DNN files exist on a central SAN and I have webfarm turned on in my configuration.  I regularly get "Process Cannot Access File: <some resource file>" because it is in use exception.  This seems to happen every time content changes for the module in question.  Any thoughts on how to resolve this issue?

I've seen some suggestions on clearing the caches, I've done this.  But, that only seems to address the issue for a short while.  The module in question is one that I wrote, it doesn't do anything 'funky', it's simply pulling a series of rows from the database.  I've tried setting the default cache time to -1 to turn off the caching, but that doesn't seem to help.  One more note, is seems that I'll get this same error if I make changes to an HTML block that' on a page too, so I don't think it's my module (but I'm not ready to rule it out either).

Are these exceptions just part of the 'normal operation' of the filebased provider?  When I used the broadcast polling provider, we never had these issues (because there were no shared files).  I had to stop using that provider for a number of reasons.

Thank you in advance for any thoughts / help

The exception:
AssemblyVersion: 5.1.4
PortalID: 2
PortalName: xyzzy
UserID: -1
UserName:
ActiveTabID: 75
ActiveTabName: Home
RawURL: /DesktopModules/myModule/myApp
AbsoluteURL: /DesktopModules/MyModule/MyApp
AbsoluteURLReferrer: http://mySite/TruckView/tabid/495/Default.aspx
UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; HPNTDF)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 0bc6c1a5-b3f3-415c-81a3-98db266017c5
InnerException: The process cannot access the file '\\<SAN_PATH>\Portals\_default\Cache\72240F51792D2D59299D7CC816A992AB.resources' because it is being used by another process.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.IO.__Error.WinIOError
StackTrace:
Message: System.IO.IOException: The process cannot access the file '\\<SAN_PATH>\Portals\_default\Cache\72240F51792D2D59299D7CC816A992AB.resources' because it is being used by another process. 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, String CacheKey)
Source:
Server Name: 264177-WEB
 
New Post
9/1/2010 4:02 AM
 
i've seen this happen before when a virus scanner was causing the blocking access - i'd recommend you check that nothing on the SAN is causing this e.g. exclude the cache folders from the virusscanner if you're running one.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
9/3/2010 8:47 AM
 
Good info, I checked with my provider.  They do have a scanner that makes passes, scanning is not done on a per write basis.  This behavior seems to be too consistent for this to be the issue.  They do have a media accellerator, apparently I can exclude pages from that if I like.

Some more thoughts, I was running disk based caching and I changed it to memory based.  This cleared up all but one item.

I have a set of web services that are called on a regular basis  (like once every 10 seconds / client) from client side javascript.   I'm not sure whey it's doing any caching at all (is there a way I can turn it off?).  The webservices are fairly straight forward, based on the input, instantiate a controller, use the controller to fetch some rows from the database, massage the rows a little bit, return the rows.

Is there some nuance to the interaction of webservcies and DNN that I need to account for? Or would you suspect the media accelerator?

Thanks!!
 
New Post
9/8/2010 9:14 AM
 
I think my issue has to do with the cache purging.
I was able to isolate the errors to happening every 2 hours, I only have one schedule task (cache purge) that runs every 2 hours.
The exceptions are coincidental with the runtime of the cache purge job.

I also noted that that cache purge job was running on every machine, in reading the forums, it seems that this job should only run on one machine (so I fixed that).

Perhaps with only one webhead trying to purge the cache, this will drop in incidence of collisions.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...IO Exceptions in a WEB FARMIO Exceptions in a WEB FARM


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