Upgrading gives error: DevolutionsCrypto-x64.dll is denied

Upgrading gives error: DevolutionsCrypto-x64.dll is denied

avatar
np
Disabled

Do we need to change some permission? We never had a issue with updating before
This is from version 2020.1.10.0 to the newest

Downloading content from the Internet...
Unzipping content...
Done!
Removing previous content...
System.UnauthorizedAccessException: Access to the path 'C:\inetpub\wwwroot\bin\DevolutionsCrypto-x64.dll' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.File.InternalDelete(String path, Boolean checkHost)
   at System.IO.File.Delete(String path)
   at Devolutions.Utils.FileUtils.DeleteDirectory(String path, Boolean deleteStartingDirectory, Boolean recursive, Boolean deleteSubDirectories, Boolean throwError, String[] excludingFiles, String[] includingFiles)
   at Devolutions.Utils.FileUtils.DeleteDirectory(String path, Boolean deleteStartingDirectory, Boolean recursive, Boolean deleteSubDirectories, Boolean throwError, String[] excludingFiles, String[] includingFiles)
   at DPS.Console.Common.Business.Action.Server.Upgrade.Steps.DeployContent.Run()

Upgrade failed. Initiating rollback...
Restoring installation files...
Done!
Starting scheduler service...
Done!
Starting IIS Application Pool...
Done!



All Comments (7)

avatar

Hello,

Is your DPS web application is installed at the root of the IIS website?

If so, please stop the DPS Application Pool in IIS. The Upgrade Wizard is unable to stop any IIS Application Pools and that keeps the DevolutionsCrypto-x64.dll file opened and the upgrade wizard cannot replace it.

It is also important to install the latest DPS Console before upgrading it to the latest version as recommend in the following online help page.
https://helpserver.devolutions.net/upgrade_rdms.html

Best regards,

Érica Poirier

avatar

I tried that - Failed again.
Also tried stopping the site, same error again.
Tried to take the instance offline, as per documentation you sent, still same error.

Is your DPS web application is installed at the root of the IIS website?
Yes

avatar

Hello,

Could you please stop the DevolutionsSchedulerService in the Services as well as the application pool? That should help to let you properly install the DevolutionsCrypto-x64.dll file.

Best regards,

Érica Poirier

avatar
Hello,

Could you please stop the DevolutionsSchedulerService in the Services as well as the application pool? That should help to let you properly install the DevolutionsCrypto-x64.dll file.

Best regards,


Still the same.

Invalid column name 'ConsoleInfo'.
Starting server upgrade 'SERVERNAME' v2020.1.10.0 [2020-07-08-21-29]...
Checking write permission...
Done!
Validating security provider...
Done!
Stopping IIS Application Pool...
Done!
Stopping scheduler service...
Done!
Backing up the configuration...
Done!
Backing up files...
Done!
Downloading content from the Internet...
Unzipping content...
Done!
Removing previous content...
System.UnauthorizedAccessException: Access to the path 'C:\inetpub\wwwroot\bin\DevolutionsCrypto-x64.dll' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.File.InternalDelete(String path, Boolean checkHost)
   at System.IO.File.Delete(String path)
   at Devolutions.Utils.FileUtils.DeleteDirectory(String path, Boolean deleteStartingDirectory, Boolean recursive, Boolean deleteSubDirectories, Boolean throwError, String[] excludingFiles, String[] includingFiles)
   at Devolutions.Utils.FileUtils.DeleteDirectory(String path, Boolean deleteStartingDirectory, Boolean recursive, Boolean deleteSubDirectories, Boolean throwError, String[] excludingFiles, String[] includingFiles)
   at DPS.Console.Common.Business.Action.Server.Upgrade.Steps.DeployContent.Run()

Upgrade failed. Initiating rollback...
Restoring installation files...
Done!
Starting scheduler service...
Done!
Starting IIS Application Pool...
Done!



avatar

Hello,

I just sent you a message via our ticketing system to schedule a remote session with your regarding this thread.
Please reply to our message so that we can schedule something soon.

Best regards,

Jeff Dagenais

avatar

Hello,

@everyone, the DPS upgrade issue was due to a DPS instance installed in the root folder of the Default web site that had also an existing DPS web application connected to that same folder.

Here are the steps we did before updating DPS to the latest version.
1- Remove the DPS web application in IIS under Default web site.
2- Change the Default web site physical path from %SystemDrive%\... to C:\...
3- Manually updated the web.config file that was missing 2 SQL connection strings. The one for the VaultRunner and the one for the Scheduler.

Then the DPS update was a success!

Best regards,

Érica Poirier

avatar

Thanks again for your help Erica. Everything is solved now, and RDM is updated.