Error message in deploy to one of your server

(Tomas Unverdorben) #1

Version: https://octopus.com/downloads/2019.3.4
Tentacle: Current Version 4.0.1

Error message: Attempting to perform the InitializeDefaultDrives operation on the ‘FileSystem’ provider failed.

It happens only on one of 16 servers, do you need some log files?

(Jason Brown) #3

Hi Tomas,

This error message sometimes occurs if a server has a network drive mounted in a user context other than the context in which the error appears, or if a server has a mapped drive which is in a disconnected state and can’t reconnect

For example,

user DOMAIN\Bob has mounted an NFS drive on the server as Drive E:
user DOMAIN\serviceuser runs a tentacle on the same server

When \serviceuser attempts to initialise a powershell process on the server, it goes through the normal powershell initialisation process, which includes InitializeDefaultDrives, however it can’t access \Bob’s mounted drive E:, so throws the error.

Or:

server has a mapped drive, Z:\ which connects to a remote share. That remote share is later turned off, but the mapping is not removed. On initializing powershell, you see the error.

The solution is most likely to find the mapped share and either remove the share or reestablish the connection. This might be a little tricky if the drive is mapped by, say, a GPO or a startup script, but hopefully the following link will give a bit of insight in how to find the problem

Hope this helps!

Jason