gpt4 book ai didi

azure - 在 Azure 中安装 CloudDrive 快照时出错

转载 作者:行者123 更新时间:2023-12-03 05:10:31 24 4
gpt4 key购买 nike

我已经在开发中运行云驱动器快照一段时间了,没有出现任何问题。我现在正尝试在 Azure 中实现此功能。

我一生都无法让它发挥作用。这是我最新的错误:

Microsoft.WindowsAzure.Storage.CloudDriveException: Unknown Error HRESULT=D000000D --->

Microsoft.Window.CloudDrive.Interop.InteropCloudDriveException: Exception of type 'Microsoft.WindowsAzure.CloudDrive.Interop.InteropCloudDriveException' was thrown.

at ThrowIfFailed(UInt32 hr)

at Microsoft.WindowsAzure.CloudDrive.Interop.InteropCloudDrive.Mount(String url, SignatureCallBack sign, String mount, Int32 cacheSize, UInt32 flags)

at Microsoft.WindowsAzure.StorageClient.CloudDrive.Mount(Int32 cacheSize, DriveMountOptions options)

知道是什么原因造成的吗?我在 Azure 中运行 WorkerRole 和 Storage,因此这与开发模拟环境断开连接无关。

这是我安装快照的代码:

        CloudDrive.InitializeCache(localPath.TrimEnd('\\'), size);

var container = _blobStorage.GetContainerReference(containerName);
var blob = container.GetPageBlobReference(driveName);

CloudDrive cloudDrive = _cloudStorageAccount.CreateCloudDrive(blob.Uri.AbsoluteUri);
string snapshotUri;
try
{
snapshotUri = cloudDrive.Snapshot().AbsoluteUri;

Log.Info("CloudDrive Snapshot = '{0}'", snapshotUri);
}
catch (Exception ex)
{
throw new InvalidCloudDriveException(string.Format(
"An exception has been thrown trying to create the CloudDrive '{0}'. This may be because it doesn't exist.",
cloudDrive.Uri.AbsoluteUri), ex);
}

cloudDrive = _cloudStorageAccount.CreateCloudDrive(snapshotUri);

Log.Info("CloudDrive created: {0}", snapshotUri, cloudDrive);

string driveLetter = cloudDrive.Mount(size, DriveMountOptions.None);

最后的 .Mount() 方法现在失败了。

请帮忙,因为这让我很难过!

提前致谢。

戴夫

最佳答案

昨晚我终于让它工作了。我所做的就是创建一个新容器并将我的 VHD 上传到其中,所以我不确定旧容器是否发生了奇怪的事情......?想不出什么。旧容器肯定已经有点久了..!?!

我生命中的两天我永远不会再回来了。调试实时 Azure 问题是一个极其乏味的过程。

遗憾的是,Azure CloudDrive 开发模拟没有更接近地复制实时环境。

关于azure - 在 Azure 中安装 CloudDrive 快照时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3183606/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com