What is the problem you are having with rclone?
I can't list container in azure blob storage after performed point in time restore on one of containers.
So before this problem occurred I executed point in time restore command:
az storage blob restore --account-name $storage_account --time-to-restore "$formatted_date" --blob-range $container ${container}-0 $sub_conf $rg_conf
So according to documentation: Perform a point-in-time restore on block blob data - Azure Storage | Microsoft Learn
I'm specifying the container range with adding -0 suffix in my command as you can observe.
To include the entire container named myContainer in the range for a restore use start range
myContainer and end range myContainer-0. This shows how adding '-0' as a suffix to the container
name for the end range value includes everything in the container for the restore.
As a result PITR finished successfully without any exception but when I'm trying to list container I'm getting stack into the loop while rclone trying to point to my container with -0 suffix as next container during the pagination.
For some reason rclone define it as container anyhow.
Also when I'm listing container with az client everything works as container:
az storage container list --account-name {account_name} --sas-token "{token}" | jq -r ".[].name"
and output is as expected without container with -0 suffix.
So I guess something is wrong on Rclone side. WDYT?
Run the command 'rclone version' and share the full output of the command.
rclone v1.61.1
- os/version: ubuntu 22.04 (64 bit)
- os/kernel: 5.15.0-56-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.19.4
- go/linking: static
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
Azure Blob Storage
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone lsd {alias}: -vv --dump requests,responses
The rclone config contents with secrets removed.
[azure]
type = azureblob
account_name = ${account_name}
sas_url = https://${account_name}.blob.core.windows.net?${sas_token}
A log from the command with the -vv
flag
2023/01/04 21:17:25 DEBUG : rclone: Version "v1.61.1" starting with parameters ["rclone" "lsd" "azure:" "--config" "/tmp/.rclone-backup-to-azure.conf" "-vv" "--dump" "requests,responses"]
2023/01/04 21:17:25 DEBUG : Creating backend with remote "azure:"
2023/01/04 21:17:25 DEBUG : Using config file from "/tmp/.rclone-backup-to-azure.conf"
2023/01/04 21:17:25 DEBUG : You have specified to dump information. Please be noted that the Accept-Encoding as shown may not be correct in the request and the response may not show Content-Encoding if the go standard libraries auto gzip encoding was in effect. In this case the body of the request will be gunzipped before showing it.
2023/01/04 21:17:25 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/01/04 21:17:25 DEBUG : HTTP REQUEST (req 0xc0008d3a00)
2023/01/04 21:17:25 DEBUG : GET /?comp=list&include=deleted%2Cmetadata&maxresults=5000&{sas_token} HTTP/1.1
Host: {account_name}.blob.core.windows.net
User-Agent: rclone/v1.61.1
Accept: application/xml
x-ms-version: 2020-10-02
Accept-Encoding: gzip
2023/01/04 21:17:25 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/01/04 21:17:25 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/01/04 21:17:25 DEBUG : HTTP RESPONSE (req 0xc0008d3a00)
2023/01/04 21:17:25 DEBUG : HTTP/1.1 200 OK
Transfer-Encoding: chunked
Content-Type: application/xml
Date: Wed, 04 Jan 2023 20:17:24 GMT
Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
X-Ms-Request-Id: {}
X-Ms-Version: 2020-10-02
<?xml version="1.0" encoding="utf-8"?>
<EnumerationResults ServiceEndpoint="https://{account_name}.blob.core.windows.net/">
<MaxResults>5000</MaxResults>
<Container>
<Name>container_i_retored</Name>
<Properties>
<Last-Modified>Fri, 28 Oct 2022 10:15:00 GMT</Last-Modified>
<Etag>"some_tag"</Etag>
<LeaseStatus>unlocked</LeaseStatus>
<LeaseState>broken</LeaseState>
<DefaultEncryptionScope>$account-encryption-key</DefaultEncryptionScope>
<DenyEncryptionScopeOverride>false</DenyEncryptionScopeOverride>
<HasImmutabilityPolicy>false</HasImmutabilityPolicy>
<HasLegalHold>false</HasLegalHold>
<ImmutableStorageWithVersioningEnabled>false</ImmutableStorageWithVersioningEnabled>
</Properties>
<Metadata />
</Container>
</Containers>
<NextMarker>/{account_name}/container_i_retored-0/NextMarker>
</EnumerationResults>
2023/01/04 21:17:25 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/01/04 21:17:25 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/01/04 21:17:25 DEBUG : HTTP REQUEST (req 0xc0008d3a00)
2023/01/04 21:17:25 DEBUG : GET /?comp=list&include=deleted%2Cmetadata&maxresults=5000&{sas_token} HTTP/1.1
Host: {account_name}.blob.core.windows.net
User-Agent: rclone/v1.61.1
Accept: application/xml
x-ms-version: 2020-10-02
Accept-Encoding: gzip
2023/01/04 21:17:25 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/01/04 21:17:25 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/01/04 21:17:25 DEBUG : HTTP RESPONSE (req 0xc0008d3a00)
2023/01/04 21:17:25 DEBUG : HTTP/1.1 200 OK
Transfer-Encoding: chunked
Content-Type: application/xml
Date: Wed, 04 Jan 2023 20:17:25 GMT
Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
X-Ms-Request-Id: {}
X-Ms-Version: 2020-10-02
<?xml version="1.0" encoding="utf-8"?>
<EnumerationResults ServiceEndpoint="https://{account_name}.blob.core.windows.net/">
<MaxResults>5000</MaxResults>
<Container>
<Name>container_i_retored</Name>
<Properties>
<Last-Modified>Fri, 28 Oct 2022 10:15:00 GMT</Last-Modified>
<Etag>"some_tag"</Etag>
<LeaseStatus>unlocked</LeaseStatus>
<LeaseState>broken</LeaseState>
<DefaultEncryptionScope>$account-encryption-key</DefaultEncryptionScope>
<DenyEncryptionScopeOverride>false</DenyEncryptionScopeOverride>
<HasImmutabilityPolicy>false</HasImmutabilityPolicy>
<HasLegalHold>false</HasLegalHold>
<ImmutableStorageWithVersioningEnabled>false</ImmutableStorageWithVersioningEnabled>
</Properties>
<Metadata />
</Container>
</Containers>
<NextMarker>/{account_name}/container_i_retored-0/NextMarker>
</EnumerationResults>
2023/01/04 21:17:25 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/01/04 21:17:25 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/01/04 21:17:25 DEBUG : HTTP REQUEST (req 0xc0008d3a00)
2023/01/04 21:17:25 DEBUG : GET /?comp=list&include=deleted%2Cmetadata&maxresults=5000&{sas_token} HTTP/1.1
Host: {account_name}.blob.core.windows.net
User-Agent: rclone/v1.61.1
Accept: application/xml
x-ms-version: 2020-10-02
Accept-Encoding: gzip
2023/01/04 21:17:25 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2023/01/04 21:17:25 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2023/01/04 21:17:25 DEBUG : HTTP RESPONSE (req 0xc0008d3a00)
2023/01/04 21:17:25 DEBUG : HTTP/1.1 200 OK
Transfer-Encoding: chunked
Content-Type: application/xml
Date: Wed, 04 Jan 2023 20:17:26 GMT
Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
X-Ms-Request-Id: {}
X-Ms-Version: 2020-10-02
<?xml version="1.0" encoding="utf-8"?>
<EnumerationResults ServiceEndpoint="https://{account_name}.blob.core.windows.net/">
<MaxResults>5000</MaxResults>
<Container>
<Name>container_i_retored</Name>
<Properties>
<Last-Modified>Fri, 28 Oct 2022 10:15:00 GMT</Last-Modified>
<Etag>"some_tag"</Etag>
<LeaseStatus>unlocked</LeaseStatus>
<LeaseState>broken</LeaseState>
<DefaultEncryptionScope>$account-encryption-key</DefaultEncryptionScope>
<DenyEncryptionScopeOverride>false</DenyEncryptionScopeOverride>
<HasImmutabilityPolicy>false</HasImmutabilityPolicy>
<HasLegalHold>false</HasLegalHold>
<ImmutableStorageWithVersioningEnabled>false</ImmutableStorageWithVersioningEnabled>
</Properties>
<Metadata />
</Container>
</Containers>
<NextMarker>/{account_name}/container_i_retored-0/NextMarker>
</EnumerationResults>
2023/01/04 21:17:25 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
ENDLESS