Error invalidating espace caches

Error invalidating espace caches

  
When in lifetime, we try to enable performance monitoring on our development environment.
We get an error:
An error occured when trying to enable performance monitoring for Development Server environment:
Unable to change monitoring status for Development Server environment.

Error log shows:
2016-03-21 11:00:13 Error invalidating espace caches. RuntimePlatform OUTDEV
2016-03-21 11:00:13 Error message from node ourserver (127.0.0.1): Internal Error: The process cannot access the file 'C:\Program Files\OutSystems\Platform Server\CacheControl\cacheFile_e20.osc' because it is being used by another process.
System.IO.IOException: The process cannot access the file 'C:\Program Files\OutSystems\Platform Server\CacheControl\cacheFile_e20.osc' 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, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
   at System.IO.StreamWriter..ctor(String path)
   at OutSystems.HubEdition.DeployService.Deploy.#d3e(String filename) SOAP (Expose) OUTDEV 
Hi Patrice,

Have you tried going into the machine where lifetime is installed and restarting OutSystems services as well as do a IIS Reset? If the problem persists and you are using an Enterpise License you should contact OutSystems Support.

Cheers,
Guilherme
We have the same problem, but in Production Environment. The Analytics is out since upgrade from version 9.0 to 9.1.

The Support Case #1142881 was opened in 2016-02-12 and we don't have a solution until now.

The Analytics is functional in Quality and Development environment.
We have reset the entire machine to no avail.
Will contact OS Support, thanks!

Hi Patrice

Don't know if you contacted Support yet, but from the error message:

System.IO.IOException: The process cannot access the file 'C:\Program Files\OutSystems\Platform Server\CacheControl\cacheFile_e20.osc' because it is being used by another process.

it seems some process other than the platform is accessing a file, and preventing the platform from changing it. The number 1 cause for this type of issue is anti-virus - so I'd suggest looking into and applying the measures here before anything else:

http://www.outsystems.com/goto/anti-virus-best-practices

Regards,
Acácio
Thanks for the tip, I'll look into it.

Cheers,
Patrice
Well Acácio, that was the correct answer, after uninstalling Symantec Antivirus the  performance monitoring was able to start! Thanks for the suggestion.

Cheers,
Patrice