Closed ErikvdVen closed 2 years ago
I looked closer into the code and it seems it first tries to check whether a file already exists at the destination, and therefore it uses the azure storage module, which logs an error when it cannot find the file.
Blobxfer creates the file afterwards, so after running the script for a second time the errors are gone. I still think the error is ugly and makes us feel something went terribly wrong, while everything seems to work perfectly fine. I would love to see a solution for this.
Unfortunately this is behavior, as you correctly pointed out, from the underlying dependency. There's not much that can be done on the blobxfer side unless you inject custom log filtering in your program.
Problem Description
I'm trying to copy all files from one container (or blob storage) to another. While it took a while to come to the following setup, it seems to work, but one issue bothers me. After running the script, the terminal gets flooded with the following messages:
The errors are from the azure-storage-python package, which is used by blobxfer. It seems to complain there isn't a real "retry" instance, set. But I'm not sure if that is actually the case or how to prevent those errors from showing up.
The code I got so far:
Although all those error messages pop up, the blob files do seem to get transferred successfully!! That's why I'm not sure whether blobxfer actually retries sending the files in the background or just uses this method to check whether the file already exists and creates a new file afterwards... Either way, if the error can be ignored it would be better to just prevent it from showing up.