Hello all! Thanks for any help!
What is the problem you are having with rclone?
I'm having rclone upload .m4a audio files (I've tried .mp3, too - same issue) to archive.org. The files upload but for some reason, it won't set any metadata that I tell rclone to pass. I explain more in my log section.
Run the command 'rclone version' and share the full output of the command.
rclone v1.66.0
- os/version: Microsoft Windows Server 2019 Standard 1809 (64 bit)
- os/kernel: 10.0.17763.5329 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.22.1
- go/linking: static
- go/tags: cmount
Which cloud storage system are you using? (eg Google Drive)
Internet Archive
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone.exe copy "E:\this_is_my_audio_file_1.m4a" "internetarchive_config:" --metadata --metadata-set creator="It's me" --metadata-set mediatype=audio --metadata-set collection="test collection" --metadata-set title="It's my title" --config "rcloneconf.conf"
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
[internetarchive_config]
type = internetarchive
access_key_id = XXX
secret_access_key = XXX
A log from the command that you were trying to run with the -vv
flag
I did --dump headers
too because it shows the metadata values. You can see it passes my supplied metadata as as X-Amz-Filemeta, but I think they might need to be X-Archive-Meta. It passes X-Archive-Meta-Mediatype: data, and the file mediatype is set as as data when it's uploaded, not audio like I specified. Nothing else is set that I specify like title, collection, creator - it's just whatever archive.org defaults to. I'm sure I'm missing something, but I haven't found anything in the docs yet.
2024/03/22 17:53:10 DEBUG : MetadataUpload map[collection:test collection creator:It's me mediatype:audio title:It's my title]
2024/03/22 17:53:10 DEBUG : rclone: Version "v1.66.0" starting with parameters ["C:\\Program Files (x86)\\VideoLAN\\VLC\\rclone-v1.61.1-windows-amd64\\rclone.exe" "copy" "E:\\this_is_my_audio_file_1.m4a" "internetarchive_config:" "--metadata" "--metadata-set" "creator=It's me" "--metadata-set" "mediatype=audio" "--metadata-set" "collection=test collection" "--metadata-set" "title=It's my title" "--config" ".\\rclone-v1.61.1-windows-amd64\\rcloneconf.conf" "-vv" "--dump" "headers"]
2024/03/22 17:53:10 DEBUG : Creating backend with remote "E:\\this_is_my_audio_file_1.m4a"
2024/03/22 17:53:10 DEBUG : Using config file from "C:\\Program Files (x86)\\VideoLAN\\VLC\\rclone-v1.61.1-windows-amd64\\rcloneconf.conf"
2024/03/22 17:53:10 DEBUG : fs cache: adding new entry for parent of "E:\\this_is_my_audio_file_1.m4a", "//?/E:/"
2024/03/22 17:53:10 DEBUG : Creating backend with remote "internetarchive_config:"
2024/03/22 17:53:10 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.
2024/03/22 17:53:10 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/03/22 17:53:10 DEBUG : HTTP REQUEST (req 0xc0008d0a20)
2024/03/22 17:53:10 DEBUG : GET /metadata/this_is_my_audio_file_1.m4a HTTP/1.1
Host: archive.org
User-Agent: rclone/v1.66.0
Authorization: XXXX
Accept-Encoding: gzip
2024/03/22 17:53:10 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/03/22 17:53:13 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/03/22 17:53:13 DEBUG : HTTP RESPONSE (req 0xc0008d0a20)
2024/03/22 17:53:13 DEBUG : HTTP/2.0 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json
Date: Fri, 22 Mar 2024 22:53:17 GMT
Referrer-Policy: no-referrer-when-downgrade
Server: nginx/1.25.1
Strict-Transport-Security: max-age=15724800
Vary: Accept-Encoding
2024/03/22 17:53:13 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/03/22 17:53:13 DEBUG : this_is_my_audio_file_1.m4a: Need to transfer - File not found at Destination
2024/03/22 17:53:13 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/03/22 17:53:13 DEBUG : HTTP REQUEST (req 0xc0008d1e60)
2024/03/22 17:53:13 DEBUG : PUT /this_is_my_audio_file_1.m4a HTTP/1.1
Host: s3.us.archive.org
User-Agent: rclone/v1.66.0
Content-Length: 4439991
Authorization: XXXX
X-Amz-Auto-Make-Bucket: 1
X-Amz-Filemeta-Atime: 2024-03-22T17:49:37.3861455-05:00
X-Amz-Filemeta-Btime: 2024-03-22T17:49:36.6350592-05:00
X-Amz-Filemeta-Collection: test collection
X-Amz-Filemeta-Creator: It's me
X-Amz-Filemeta-Mediatype: audio
X-Amz-Filemeta-Mode: 666
X-Amz-Filemeta-Rclone-Mtime: 2024-03-22T17:42:32.7018067-05:00
X-Amz-Filemeta-Rclone-Update-Track: kucahor5jipiwum5jamovic0lepemin5
X-Amz-Filemeta-Title: It's my title
X-Archive-Auto-Make-Bucket: 1
X-Archive-Cascade-Delete: 1
X-Archive-Keep-Old-Version: 0
X-Archive-Meta-Mediatype: data
X-Archive-Queue-Derive: 0
X-Archive-Size-Hint: 4439991
Accept-Encoding: gzip
2024/03/22 17:53:13 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/03/22 17:54:07 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/03/22 17:54:07 DEBUG : HTTP RESPONSE (req 0xc0008d1e60)
2024/03/22 17:54:07 DEBUG : HTTP/1.1 200 Ok
Connection: close
Content-Length: 0
Accept-Ranges: bytes
Access-Control-Allow-Headers: authorization,x-amz-acl,x-amz-auto-make-bucket,cache-control,x-requested-with,x-file-name,x-file-size,x-archive-ignore-preexisting-bucket,x-archive-interactive-priority,x-archive-meta-title,x-archive-meta-description,x-archive-meta-language,x-archive-meta-mediatype,x-archive-meta01-subject,x-archive-meta02-subject,x-archive-meta03-subject,x-archive-meta04-subject,x-archive-meta05-subject,x-archive-meta01-collection,x-archive-meta02-collection
Access-Control-Allow-Methods: GET,POST,PUT,DELETE
Access-Control-Allow-Origin: *
Date: Fri, 22 Mar 2024 22:53:18 GMT
Server: Apache/2.4.41 (Ubuntu)
2024/03/22 17:54:07 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/03/22 17:54:07 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/03/22 17:54:07 DEBUG : HTTP REQUEST (req 0xc000a12900)
2024/03/22 17:54:07 DEBUG : GET /metadata/this_is_my_audio_file_1.m4a HTTP/1.1
Host: archive.org
User-Agent: rclone/v1.66.0
Authorization: XXXX
Accept-Encoding: gzip
2024/03/22 17:54:07 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2024/03/22 17:54:07 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/03/22 17:54:07 DEBUG : HTTP RESPONSE (req 0xc000a12900)
2024/03/22 17:54:07 DEBUG : HTTP/2.0 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json
Date: Fri, 22 Mar 2024 22:54:11 GMT
Referrer-Policy: no-referrer-when-downgrade
Server: nginx/1.25.1
Strict-Transport-Security: max-age=15724800
Vary: Accept-Encoding
2024/03/22 17:54:07 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024/03/22 17:54:07 DEBUG : this_is_my_audio_file_1.m4a: Dst hash empty - aborting Src hash check
2024/03/22 17:54:07 INFO : this_is_my_audio_file_1.m4a: Copied (new)
2024/03/22 17:54:07 INFO :
Transferred: 4.234 MiB / 4.234 MiB, 100%, 74.828 KiB/s, ETA 0s
Transferred: 1 / 1, 100%
Elapsed time: 57.2s
2024/03/22 17:54:07 DEBUG : 4 go routines active