Could not find appropriate drive error

ajak-ichequeajak-icheque Posts: 2
edited January 29, 2014 10:11AM in Deployment Manager
After installing of a new version of Deployment Manager v2.3.20.2 I am getting this error when deploying:

Failed: DeploymentControllerActivity
2014-01-28 12:06:54 +00:00 INFO Stage 1: Downloading packages from NuGet servers
2014-01-28 12:06:59 +00:00 INFO Stage 2: Uploading packages to target machines
2014-01-28 12:07:01 +00:00 ERROR System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]: Could not find appropriate drive. (Fault Detail is equal to An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
System.IO.IOException: Could not find appropriate drive.
at RedGate.Deploy.Shared.Util.PhysicalFileSystem.GetTotalNumberOfFreeBytes(String directoryPath)
at RedGate.Deploy.Shared.Util.PhysicalFileSystem.EnsureDiskHasEnoughFreeSpace(String directoryPath, Int64 requiredSpaceInBytes)
at RedGate.Deploy.Agent.Deployment.Packages.PackageCache.GetFileNameToWritePackage(PackageMetadata metadata)
at RedGate.Deploy.Agent.Services.Packages.PackageService.BeginUpload(PackageMetadata metadata)
at SyncInvokeBeginUpload(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.Pr...).
2014-01-28 12:07:01 +00:00 ERROR One or more errors occurred. System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]: Could not find appropriate drive. (Fault Detail is equal to An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
System.IO.IOException: Could not find appropriate drive.
at RedGate.Deploy.Shared.Util.PhysicalFileSystem.GetTotalNumberOfFreeBytes(String directoryPath)
at RedGate.Deploy.Shared.Util.PhysicalFileSystem.EnsureDiskHasEnoughFreeSpace(String directoryPath, Int64 requiredSpaceInBytes)
at RedGate.Deploy.Agent.Deployment.Packages.PackageCache.GetFileNameToWritePackage(PackageMetadata metadata)
at RedGate.Deploy.Agent.Services.Packages.PackageService.BeginUpload(PackageMetadata metadata)
at SyncInvokeBeginUpload(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.Pr...).

Success: Stage 1: Downloading packages from NuGet servers
2014-01-28 12:06:54 +00:00 INFO Making a list of packages to download
2014-01-28 12:06:59 +00:00 INFO All packages have been downloaded

Success: Download package Service 4.18.0.402-master from NuGet feed: Server NuGet
2014-01-28 12:06:54 +00:00 INFO Downloading package Service 4.18.0.402-master from feed: 'http://nuget.corp.internal.com/api/v2/'
2014-01-28 12:06:54 +00:00 DEBUG Downloaded packages will be stored in: E:\DeploymentManager\PackageCache
2014-01-28 12:06:54 +00:00 DEBUG Finding package (attempt 1 of 5)
2014-01-28 12:06:58 +00:00 DEBUG Found package Service 4.18.0.402-master
2014-01-28 12:06:59 +00:00 INFO Download complete

Failed: Stage 2: Uploading packages to target machines
2014-01-28 12:06:59 +00:00 INFO Preparing to upload packages
2014-01-28 12:06:59 +00:00 INFO Uploading packages...
2014-01-28 12:07:01 +00:00 ERROR System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]: Could not find appropriate drive. (Fault Detail is equal to An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
System.IO.IOException: Could not find appropriate drive.
at RedGate.Deploy.Shared.Util.PhysicalFileSystem.GetTotalNumberOfFreeBytes(String directoryPath)
at RedGate.Deploy.Shared.Util.PhysicalFileSystem.EnsureDiskHasEnoughFreeSpace(String directoryPath, Int64 requiredSpaceInBytes)
at RedGate.Deploy.Agent.Deployment.Packages.PackageCache.GetFileNameToWritePackage(PackageMetadata metadata)
at RedGate.Deploy.Agent.Services.Packages.PackageService.BeginUpload(PackageMetadata metadata)
at SyncInvokeBeginUpload(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.Pr...).

Any ideas how to fix it?

Comments

  • Having a quick dig in the code, this looks like it can happen if the value specified for package installation is not a valid drive, or doesn't have a root directory.

    Did your deployment specify a variable for RedGatePackageDirectoryPath? If so, is that a valid drive on the target server?
    If you didn't set that variable, it'll be using the default on the agent, which is in the registry key HKLM\Software\Red Gate\Deployment Manager\Agent.Deployment.ApplicationDirectory
    Systems Software Engineer

    Redgate Software

Sign In or Register to comment.