-
Notifications
You must be signed in to change notification settings - Fork 754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Correction of File Access Issues #2768
Correction of File Access Issues #2768
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Was the timeout that was added the sole fix for Azure or was it in conjunction with the added Using statements?
The azure specific items were two fold.
Really #2 appeared to fix it, but other areas of the installer do 30 second retries, so bumping to 3.5 seconds isn't a huge deal. The other changes were for readability and standards |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome changes @mitchelsellers! Thanks for taking the time to contribute this!
Still getting the error. Tested w/9.4.0.137 Info::Creating backup of previous version - Frameworks\Ckeditor\skins\moono-lisa\editor_iequirks.css 2019-05-09 08:31:07.146+00:00 [RD0003FF958210][D:20][T:45][ERROR] DotNetNuke.Services.Installer.Installers.ResourceFileInstaller - System.UnauthorizedAccessException: Access to the path 'D:\home\site\wwwroot\DesktopModules\Mandeeps\Libraries\Common\Frameworks\Ckeditor\skins\moono-lisa\editor_iequirks.css' is denied. @mitchelsellers It's also happening with core modules. The following error was logged when upgrading to the 9.4.0.137 build [RD0003FF958210][D:16][T:132][ERROR] DotNetNuke.Services.Installer.Installers.ResourceFileInstaller - System.UnauthorizedAccessException: Access to the path 'D:\home\site\wwwroot\DesktopModules\Connectors\Azure\connector.htm' is denied. |
What configuration was used in Azure?
On May 9, 2019, at 03:44, meetmandeep <notifications@github.com<mailto:notifications@github.com>> wrote:
Still getting the error. Tested w/9.4.0.137
Info::Creating backup of previous version - Frameworks\Ckeditor\skins\moono-lisa\editor_iequirks.css
Info::Installation Failed - ResourceFile
2019-05-09 08:31:07.146+00:00 [RD0003FF958210][D:20][T:45][ERROR] DotNetNuke.Services.Installer.Installers.ResourceFileInstaller - System.UnauthorizedAccessException: Access to the path 'D:\home\site\wwwroot\DesktopModules\Mandeeps\Libraries\Common\Frameworks\Ckeditor\skins\moono-lisa\editor_iequirks.css' 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)
at DotNetNuke.Services.Installer.Util.TryToCreateAndExecute(String path, Action`1 action, Int32 milliSecondMax)
at DotNetNuke.Services.Installer.Installers.ResourceFileInstaller.InstallFile(InstallFile insFile)
2019-05-09 08:31:07.208+00:00 [RD0003FF958210][D:20][T:45][ERROR] DotNetNuke.Services.Installer.Log.Logger - Installation Failed - ResourceFile
@mitchelsellers<https://github.com/mitchelsellers> It's also happening with core modules. The following error was logged when upgrading to the 9.4.0.137 build
[RD0003FF958210][D:16][T:132][ERROR] DotNetNuke.Services.Installer.Installers.ResourceFileInstaller - System.UnauthorizedAccessException: Access to the path 'D:\home\site\wwwroot\DesktopModules\Connectors\Azure\connector.htm' 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)
at DotNetNuke.Services.Installer.Util.TryToCreateAndExecute(String path, Action`1 action, Int32 milliSecondMax)
at DotNetNuke.Services.Installer.Installers.ResourceFileInstaller.InstallFile(InstallFile insFile)
2019-05-09 08:19:00.607+00:00 [RD0003FF958210][D:16][T:132][ERROR] DotNetNuke.Services.Installer.Log.Logger - Installation Failed - ResourceFile
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#2768 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ABLFT2MBIUJCYRPDHIRIYZDPUPP5LANCNFSM4HLUOLLA>.
|
App Service Plan: P1v2 |
Do you still experience it with Always On off?
Also, what is the DB Configuration?
…________________________________
From: meetmandeep <notifications@github.com>
Sent: Thursday, May 9, 2019 2:23 PM
To: dnnsoftware/Dnn.Platform
Cc: Mitchel Sellers; Mention
Subject: Re: [dnnsoftware/Dnn.Platform] Correction of File Access Issues (#2768)
App Service Plan: P1v2
Configuration: https://snag.gy/zwoTpf.jpg
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#2768 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ABLFT2ICZOCXWTTDRXOAW7LPUR2ZXANCNFSM4HLUOLLA>.
|
Dont know if this will help or not but usually when I do a deployment I have to restart the App Service because I use Always On. Here is the powershell script I use:
``` powershell
Restart-AzureRmWebAppSlot -Name $WebSite -Slot $SlotName -ResourceGroupName $ResourceGroup
```
… On May 9, 2019, at 2:17 PM, Mitchel Sellers ***@***.***> wrote:
Do you still experience it with Always On off?
Also, what is the DB Configuration?
________________________________
From: meetmandeep ***@***.***>
Sent: Thursday, May 9, 2019 2:23 PM
To: dnnsoftware/Dnn.Platform
Cc: Mitchel Sellers; Mention
Subject: Re: [dnnsoftware/Dnn.Platform] Correction of File Access Issues (#2768)
App Service Plan: P1v2
Configuration: https://snag.gy/zwoTpf.jpg
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#2768 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ABLFT2ICZOCXWTTDRXOAW7LPUR2ZXANCNFSM4HLUOLLA>.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#2768 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAQIT7VS4OSM7WZUA6FKOWTPUSBFXANCNFSM4HLUOLLA>.
|
Same error with Always On off. Database is Standard S0: 10 DTUs Is there a preferred config for azure. I'm going to provision another app to continue testing. @mtrutledge This is through DNN > Extensions > Install Extension. Not via Azure Deployment. |
Adjustments to the installer process to resolve issues with Resource File Installation impacting users on Azure (Fixes #2766).
A few highlights on the changes included
This should allow real-time items to read the file, even if we are writing to it. Which should resolve the lock issues.