What is the problem you are having with rclone?
I have some files that fail to upload to Azure, (best guess due to their filename including some strange characters that azure dislikes). The copy command produces an azure error, so I was wondering if there is something else I could try to get them copied rather than getting them renamed at the source? Something with encoding perhaps?
Run the command 'rclone version' and share the full output of the command.
rclone v1.59.0
- os/version: ubuntu 20.04 (64 bit)
- os/kernel: 5.15.0-1014-azure (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.18.3
- go/linking: static
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
Local to Azure Blob
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
/usr/bin/rclone --low-level-retries=1 --retries=1 --progress --checkers=1 --transfers=1 --log-file=logfile2.txt --no-traverse --files-from=retry-files2.txt --log-level=DEBUG copy . az-blobteststdarcglrs202101:test-test
The rclone config contents with secrets removed.
[az-blobteststdarcglrs202101]
type = azureblob
account = <redacted>
key = <redacted>
access_tier = Archive
archive_tier_delete = true
chunk_size = 100M
A log from the command with the -vv
flag
2022/07/27 08:51:06 DEBUG : rclone: Version "v1.59.0" starting with parameters ["/usr/bin/rclone" "--low-level-retries=1" "--retries=1" "--progress" "--checkers=1" "--transfers=1" "--log-file=logfile2.txt" "--no-traverse" "--files-from=retry-files2.txt" "--log-level=DEBUG" "copy" "." "az-blobteststdarcglrs202101:test-test"]
2022/07/27 08:51:06 DEBUG : Creating backend with remote "."
2022/07/27 08:51:06 DEBUG : Using config file from "/home/dbsyncuser/.config/rclone/rclone.conf"
2022/07/27 08:51:06 DEBUG : fs cache: renaming cache item "." to be canonical "/home/dbsyncuser/testfiles"
2022/07/27 08:51:06 DEBUG : Creating backend with remote "az-blobteststdarcglrs202101:test-test"
2022/07/27 08:51:06 DEBUG : Azure container test-test: Waiting for checks to finish
2022/07/27 08:51:06 DEBUG : Azure container test-test: Waiting for transfers to finish
2022/07/27 08:51:06 ERROR : N<8e>R TROLLFAMILJEN KOM P<8f> MIDDAG Minisaga.doc: Failed to copy: write error: -> github.com/Azure/azure-storage-blob-go/azblob.newStorageError, github.com/Azure/azure-storage-blob-go@v0.15.0/azblob/zc_storage_error.go:42
===== RESPONSE ERROR (ServiceCode=) =====
Description=failed to unmarshal response body, Details: (none)
PUT https://blobteststdarcglrs202101.blob.core.windows.net/test-test/N%C2%8ER%20TROLLFAMILJEN%20KOM%20P%C2%8F%20MIDDAG%20Minisaga.doc?blockid=Dv5qqvCvSQ21WLXngnt6OQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA%3D%3D&comp=block&timeout=31536001
Authorization: REDACTED
Content-Length: [37376]
User-Agent: [rclone/v1.59.0]
X-Ms-Client-Request-Id: [45c935d9-06cd-4258-69ea-02971393815a]
X-Ms-Date: [Wed, 27 Jul 2022 08:51:06 GMT]
X-Ms-Version: [2020-10-02]
--------------------------------------------------------------------------------
RESPONSE Status: 400 Bad Request
Content-Length: [324]
Content-Type: [text/html; charset=us-ascii]
Date: [Wed, 27 Jul 2022 08:51:06 GMT]
Server: [Microsoft-HTTPAPI/2.0]
xml: (*azblob.storageError).UnmarshalXML did not consume entire <HTML> element
2022/07/27 08:51:06 ERROR : Attempt 1/1 failed with 1 errors and: write error: -> github.com/Azure/azure-storage-blob-go/azblob.newStorageError, github.com/Azure/azure-storage-blob-go@v0.15.0/azblob/zc_storage_error.go:42
===== RESPONSE ERROR (ServiceCode=) =====
Description=failed to unmarshal response body, Details: (none)
PUT https://blobteststdarcglrs202101.blob.core.windows.net/test-test/N%C2%8ER%20TROLLFAMILJEN%20KOM%20P%C2%8F%20MIDDAG%20Minisaga.doc?blockid=Dv5qqvCvSQ21WLXngnt6OQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA%3D%3D&comp=block&timeout=31536001
Authorization: REDACTED
Content-Length: [37376]
User-Agent: [rclone/v1.59.0]
X-Ms-Client-Request-Id: [45c935d9-06cd-4258-69ea-02971393815a]
X-Ms-Date: [Wed, 27 Jul 2022 08:51:06 GMT]
X-Ms-Version: [2020-10-02]
--------------------------------------------------------------------------------
RESPONSE Status: 400 Bad Request
Content-Length: [324]
Content-Type: [text/html; charset=us-ascii]
Date: [Wed, 27 Jul 2022 08:51:06 GMT]
Server: [Microsoft-HTTPAPI/2.0]
xml: (*azblob.storageError).UnmarshalXML did not consume entire <HTML> element
2022/07/27 08:51:06 INFO :
Transferred: 36.500 KiB / 36.500 KiB, 100%, 0 B/s, ETA -
Errors: 1 (retrying may help)
Elapsed time: 0.1s
2022/07/27 08:51:06 DEBUG : 3 go routines active
2022/07/27 08:51:06 Failed to copy: write error: -> github.com/Azure/azure-storage-blob-go/azblob.newStorageError, github.com/Azure/azure-storage-blob-go@v0.15.0/azblob/zc_storage_error.go:42
===== RESPONSE ERROR (ServiceCode=) =====
Description=failed to unmarshal response body, Details: (none)
PUT https://blobteststdarcglrs202101.blob.core.windows.net/test-test/N%C2%8ER%20TROLLFAMILJEN%20KOM%20P%C2%8F%20MIDDAG%20Minisaga.doc?blockid=Dv5qqvCvSQ21WLXngnt6OQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA%3D%3D&comp=block&timeout=31536001
Authorization: REDACTED
Content-Length: [37376]
User-Agent: [rclone/v1.59.0]
X-Ms-Client-Request-Id: [45c935d9-06cd-4258-69ea-02971393815a]
X-Ms-Date: [Wed, 27 Jul 2022 08:51:06 GMT]
X-Ms-Version: [2020-10-02]
--------------------------------------------------------------------------------
RESPONSE Status: 400 Bad Request
Content-Length: [324]
Content-Type: [text/html; charset=us-ascii]
Date: [Wed, 27 Jul 2022 08:51:06 GMT]
Server: [Microsoft-HTTPAPI/2.0]
xml: (*azblob.storageError).UnmarshalXML did not consume entire <HTML> element
2022/07/27 08:58:53 DEBUG : rclone: Version "v1.59.0" starting with parameters ["/usr/bin/rclone" "--low-level-retries=1" "--retries=1" "--progress" "--checkers=1" "--transfers=1" "--log-file=logfile2.txt" "--no-traverse" "--files-from=retry-files2.txt" "--log-level=DEBUG" "copy" "." "az-blobteststdarcglrs202101:test-test"]
2022/07/27 08:58:53 DEBUG : Creating backend with remote "."
2022/07/27 08:58:53 DEBUG : Using config file from "/home/dbsyncuser/.config/rclone/rclone.conf"
2022/07/27 08:58:53 DEBUG : fs cache: renaming cache item "." to be canonical "/home/dbsyncuser/testfiles"
2022/07/27 08:58:53 DEBUG : Creating backend with remote "az-blobteststdarcglrs202101:test-test"
2022/07/27 08:58:53 DEBUG : Azure container test-test: Waiting for checks to finish
2022/07/27 08:58:53 DEBUG : Azure container test-test: Waiting for transfers to finish
2022/07/27 08:58:53 ERROR : N<8e>R TROLLFAMILJEN KOM P<8f> MIDDAG Minisaga.doc: Failed to copy: write error: -> github.com/Azure/azure-storage-blob-go/azblob.newStorageError, github.com/Azure/azure-storage-blob-go@v0.15.0/azblob/zc_storage_error.go:42
===== RESPONSE ERROR (ServiceCode=) =====
Description=failed to unmarshal response body, Details: (none)
PUT https://blobteststdarcglrs202101.blob.core.windows.net/test-test/N%C2%8ER%20TROLLFAMILJEN%20KOM%20P%C2%8F%20MIDDAG%20Minisaga.doc?blockid=qRgoutMRQaeoRB7VI%2BhBOgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA%3D%3D&comp=block&timeout=31536001
Authorization: REDACTED
Content-Length: [37376]
User-Agent: [rclone/v1.59.0]
X-Ms-Client-Request-Id: [4b0fae78-a1b9-4ca0-4120-4d754727992a]
X-Ms-Date: [Wed, 27 Jul 2022 08:58:53 GMT]
X-Ms-Version: [2020-10-02]
--------------------------------------------------------------------------------
RESPONSE Status: 400 Bad Request
Content-Length: [324]
Content-Type: [text/html; charset=us-ascii]
Date: [Wed, 27 Jul 2022 08:58:53 GMT]
Server: [Microsoft-HTTPAPI/2.0]
xml: (*azblob.storageError).UnmarshalXML did not consume entire <HTML> element
2022/07/27 08:58:53 ERROR : Attempt 1/1 failed with 1 errors and: write error: -> github.com/Azure/azure-storage-blob-go/azblob.newStorageError, github.com/Azure/azure-storage-blob-go@v0.15.0/azblob/zc_storage_error.go:42
===== RESPONSE ERROR (ServiceCode=) =====
Description=failed to unmarshal response body, Details: (none)
PUT https://blobteststdarcglrs202101.blob.core.windows.net/test-test/N%C2%8ER%20TROLLFAMILJEN%20KOM%20P%C2%8F%20MIDDAG%20Minisaga.doc?blockid=qRgoutMRQaeoRB7VI%2BhBOgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA%3D%3D&comp=block&timeout=31536001
Authorization: REDACTED
Content-Length: [37376]
User-Agent: [rclone/v1.59.0]
X-Ms-Client-Request-Id: [4b0fae78-a1b9-4ca0-4120-4d754727992a]
X-Ms-Date: [Wed, 27 Jul 2022 08:58:53 GMT]
X-Ms-Version: [2020-10-02]
--------------------------------------------------------------------------------
RESPONSE Status: 400 Bad Request
Content-Length: [324]
Content-Type: [text/html; charset=us-ascii]
Date: [Wed, 27 Jul 2022 08:58:53 GMT]
Server: [Microsoft-HTTPAPI/2.0]
xml: (*azblob.storageError).UnmarshalXML did not consume entire <HTML> element
2022/07/27 08:58:53 INFO :
Transferred: 36.500 KiB / 36.500 KiB, 100%, 0 B/s, ETA -
Errors: 1 (retrying may help)
Elapsed time: 0.1s
2022/07/27 08:58:53 DEBUG : 3 go routines active
2022/07/27 08:58:53 Failed to copy: write error: -> github.com/Azure/azure-storage-blob-go/azblob.newStorageError, github.com/Azure/azure-storage-blob-go@v0.15.0/azblob/zc_storage_error.go:42
===== RESPONSE ERROR (ServiceCode=) =====
Description=failed to unmarshal response body, Details: (none)
PUT https://blobteststdarcglrs202101.blob.core.windows.net/test-test/N%C2%8ER%20TROLLFAMILJEN%20KOM%20P%C2%8F%20MIDDAG%20Minisaga.doc?blockid=qRgoutMRQaeoRB7VI%2BhBOgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA%3D%3D&comp=block&timeout=31536001
Authorization: REDACTED
Content-Length: [37376]
User-Agent: [rclone/v1.59.0]
X-Ms-Client-Request-Id: [4b0fae78-a1b9-4ca0-4120-4d754727992a]
X-Ms-Date: [Wed, 27 Jul 2022 08:58:53 GMT]
X-Ms-Version: [2020-10-02]
--------------------------------------------------------------------------------
RESPONSE Status: 400 Bad Request
Content-Length: [324]
Content-Type: [text/html; charset=us-ascii]
Date: [Wed, 27 Jul 2022 08:58:53 GMT]
Server: [Microsoft-HTTPAPI/2.0]
xml: (*azblob.storageError).UnmarshalXML did not consume entire <HTML> element
adding...
Listing the filename with " ls -la" locally gives this:
-rw-rw-r-- 1 dbsyncuser dbsyncuser 37376 Jul 9 2021 'N'$'\302\216''R TROLLFAMILJEN KOM P'$'\302\217'' MIDDAG Minisaga.doc'
and this is how "retry-files2.txt" it looks in vi:
N<8e>R TROLLFAMILJEN KOM P<8f> MIDDAG Minisaga.doc