简体   繁体   English

Apache-libcloud 为 Azure Blob 存储提高 403

[英]Apache-libcloud raises 403 for Azure Blob Storage

I have a celery task which copies data from one azure container to another using apache libcloud.我有一个 celery 任务,它使用 apache libcloud 将数据从一个 azure 容器复制到另一个容器。

Task works fine but after some time I get 403 error.(For example task copies 50 files and then suddenly raises 403)任务工作正常,但一段时间后我收到 403 错误。(例如任务复制 50 个文件,然后突然引发 403)

What could be the problem?可能是什么问题呢?

python3.8
apache-libcloud==3.3.1
celery==5.0.5

Thank you kamoloff .谢谢卡莫洛夫 As you mentioned in the comment, the cause of the 403 error was trying to copy an empty file .正如您在评论中提到的, 403 错误的原因是trying to copy an empty file

Alternatively, 403 error also occurs when there is a larger file size .或者,当larger file size时也会出现403 错误

"The maximum file size currently supported by the Azure Storage driver is 256 MB. Uploading larger file sizes will require a code change in libcloud." “Azure 存储驱动程序当前支持的最大文件大小为 256 MB。上传较大的文件大小将需要更改 libcloud 中的代码。”

Reference: Upload large file to Azure Blobs参考: 上传大文件到 Azure Blobs

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM