We are running umbraco 7.3.1 on azure web apps. 1 backoffice node and 4 front-end nodes. Lately we have been seeing lastsynced.txt errors in our elmah logs.
Access to the path 'D:\home\site\wwwroot\App_Data\TEMP\DistCache\RD000D3A31301C\LMW3SVC2119096077ROOT-lastsynced.txt' is denied.
System.UnauthorizedAccessException: Access to the path 'D:\home\site\wwwroot\App_Data\TEMP\DistCache\RD000D3A31301C\LMW3SVC2119096077ROOT-lastsynced.txt' 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, 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.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
at System.IO.File.WriteAllText(String path, String contents)
at Umbraco.Core.Sync.DatabaseServerMessenger.SaveLastSynced(Int32 id) in c:\projects\umbraco-cms-xtjqd\src\Umbraco.Core\Sync\DatabaseServerMessenger.cs:line 331
at Umbraco.Core.Sync.DatabaseServerMessenger.ProcessDatabaseInstructions() in c:\projects\umbraco-cms-xtjqd\src\Umbraco.Core\Sync\DatabaseServerMessenger.cs:line 276
at Umbraco.Core.Sync.DatabaseServerMessenger.Sync() in c:\projects\umbraco-cms-xtjqd\src\Umbraco.Core\Sync\DatabaseServerMessenger.cs:line 189
at Umbraco.Web.BatchedDatabaseServerMessenger.UmbracoModule_RouteAttempt(Object sender, RoutableAttemptEventArgs e) in c:\projects\umbraco-cms-xtjqd\src\Umbraco.Web\BatchedDatabaseServerMessenger.cs:line 54
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at Umbraco.Web.UmbracoModule.OnRouteAttempt(RoutableAttemptEventArgs args) in c:\projects\umbraco-cms-xtjqd\src\Umbraco.Web\UmbracoModule.cs:line 599
at Umbraco.Web.UmbracoModule.ProcessRequest(HttpContextBase httpContext) in c:\projects\umbraco-cms-xtjqd\src\Umbraco.Web\UmbracoModule.cs:line 117
at Umbraco.Web.UmbracoModule.<Init>b__8(Object sender, EventArgs e) in c:\projects\umbraco-cms-xtjqd\src\Umbraco.Web\UmbracoModule.cs:line 568
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Well the syncing service is locking the file so Umbraco can't access it. I would imagine it doesn't really matter as Umbraco will try again and hopefully succeed....?
lastsynced.txt issues
We are running umbraco 7.3.1 on azure web apps. 1 backoffice node and 4 front-end nodes. Lately we have been seeing lastsynced.txt errors in our elmah logs.
Are you replicating the temp folder between machines? If possible avoid replicating the temp folder at all.
Nope, these are azure web apps not azure vm's that we control. We have scaled the web app to use 4 instances because we have high traffic.
Well the syncing service is locking the file so Umbraco can't access it. I would imagine it doesn't really matter as Umbraco will try again and hopefully succeed....?
It does eventually succeed but I'm guessing these locking issues aren't the desired behavior.
is working on a reply...