Red Gate forums :: View topic - Could not find appropriate drive error
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
Deployment Manager
Deployment Manager forum

Could not find appropriate drive error

Search in Deployment Manager forum
Post new topic   Reply to topic
Jump to:  
Author Message
ajak-icheque



Joined: 28 Jan 2014
Posts: 1

PostPosted: Tue Jan 28, 2014 1:58 pm    Post subject: Could not find appropriate drive error Reply with quote

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?
Back to top
View user's profile Send private message
james.billings



Joined: 16 Jun 2010
Posts: 1144
Location: My desk.

PostPosted: Wed Jan 29, 2014 4:11 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group