Google Drive to Archive.org / Internet Archive - "InvalidBucketName" error

What is the problem you are having with rclone?

I'm trying to upload / copy files from Google Drive to Archive.org but I'm getting this error instead;
HTTP error 400 (400 Bad Request) returned body: "<?xml version='1.0' encoding='UTF-8'?>\n<Error><Code>InvalidBucketName</Code><Message>The specified bucket is not valid.</Message><Resource>Bucket names should be valid archive identifiers; try someting matching this regular expression: ^[a-zA-Z0-9][a-zA-Z0-9_.-]{4,100}$ (or, if you are making unusual identifiers, this user may lack the special permission to do so)</Resource><RequestId>[redacted]</RequestId></Error>"

Run the command 'rclone version' and share the full output of the command.

rclone v1.61.1
- os/version: ubuntu 18.04 (64 bit)
- os/kernel: 5.10.147+ (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)

Google Drive, Archive.org (Internet Archive)

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone copy -vv --stats-one-line --stats=10s shareddrive1:"My Archive" internet_archive:

The rclone config contents with secrets removed.

[shareddrive1]
type = drive
scope = drive
token = {"access_token":"redacted","token_type":"Bearer","refresh_token":"redacted","expiry":"2023-01-07T18:16:14.669471057Z"}
team_drive = [redacted]
root_folder_id = 
[internet_archive]
type = internetarchive
access_key_id = [redacted]
secret_access_key = [redacted]

A log from the command with the -vv flag

2023/01/07 20:47:23 DEBUG : rclone: Version "v1.61.1" starting with parameters ["rclone" "copy" "-vv" "--stats-one-line" "--stats=10s" "shareddrive1:My Archive" "internet_archive:"]
2023/01/07 20:47:23 DEBUG : Creating backend with remote "shareddrive1:My Archive"
2023/01/07 20:47:23 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2023/01/07 20:47:23 DEBUG : Creating backend with remote "internet_archive:"
2023/01/07 20:47:24 DEBUG : Internet Archive root: Waiting for checks to finish
2023/01/07 20:47:24 DEBUG : Internet Archive root: Waiting for transfers to finish
2023/01/07 20:47:24 ERROR : 20160519 [SMTOWN] THE 보이는 SM <EXO편> EP4 (8498).mkv: Failed to copy: HTTP error 400 (400 Bad Request) returned body: "<?xml version='1.0' encoding='UTF-8'?>\n<Error><Code>InvalidBucketName</Code><Message>The specified bucket is not valid.</Message><Resource>Bucket names should be valid archive identifiers; try someting matching this regular expression: ^[a-zA-Z0-9][a-zA-Z0-9_.-]{4,100}$ (or, if you are making unusual identifiers, this user may lack the special permission to do so)</Resource><RequestId>c682982b-e389-416d-8402-3978fae845b0</RequestId></Error>"
2023/01/07 20:47:24 ERROR : 20160511 [SMTOWN] THE 보이는 SM  <EXO편>  EP1 (8207).mkv: Failed to copy: HTTP error 400 (400 Bad Request) returned body: "<?xml version='1.0' encoding='UTF-8'?>\n<Error><Code>InvalidBucketName</Code><Message>The specified bucket is not valid.</Message><Resource>Bucket names should be valid archive identifiers; try someting matching this regular expression: ^[a-zA-Z0-9][a-zA-Z0-9_.-]{4,100}$ (or, if you are making unusual identifiers, this user may lack the special permission to do so)</Resource><RequestId>0aa9fc13-4c72-4f6e-9f71-317260931e52</RequestId></Error>"
2023/01/07 20:47:25 ERROR : 20160518 [SMTOWN] THE 보이는 SM <EXO편> EP3 (8497).mkv: Failed to copy: HTTP error 400 (400 Bad Request) returned body: "<?xml version='1.0' encoding='UTF-8'?>\n<Error><Code>InvalidBucketName</Code><Message>The specified bucket is not valid.</Message><Resource>Bucket names should be valid archive identifiers; try someting matching this regular expression: ^[a-zA-Z0-9][a-zA-Z0-9_.-]{4,100}$ (or, if you are making unusual identifiers, this user may lack the special permission to do so)</Resource><RequestId>b9b8b525-0d68-4786-92d7-d4e8fa9a6cfa</RequestId></Error>"
2023/01/07 20:47:25 ERROR : 20160512 [SMTOWN] THE 보이는 SM <EXO편> EP2 (8247).mkv: Failed to copy: HTTP error 400 (400 Bad Request) returned body: "<?xml version='1.0' encoding='UTF-8'?>\n<Error><Code>InvalidBucketName</Code><Message>The specified bucket is not valid.</Message><Resource>Bucket names should be valid archive identifiers; try someting matching this regular expression: ^[a-zA-Z0-9][a-zA-Z0-9_.-]{4,100}$ (or, if you are making unusual identifiers, this user may lack the special permission to do so)</Resource><RequestId>437453e0-da76-4273-9121-750fb92b9dc4</RequestId></Error>"
2023/01/07 20:47:25 ERROR : 20161120 [SMTOWN] [REPLAY] N-POP with EXO-CBX & Red Velvet (17003).mkv: Failed to copy: HTTP error 400 (400 Bad Request) returned body: "<?xml version='1.0' encoding='UTF-8'?>\n<Error><Code>InvalidBucketName</Code><Message>The specified bucket is not valid.</Message><Resource>Bucket names should be valid archive identifiers; try someting matching this regular expression: ^[a-zA-Z0-9][a-zA-Z0-9_.-]{4,100}$ (or, if you are making unusual identifiers, this user may lack the special permission to do so)</Resource><RequestId>c5cbe8e8-2aaf-4322-837d-fa01563b3a83</RequestId></Error>"
2023/01/07 20:47:25 ERROR : 20161221 [SMTOWN] [Replay] VICTORY ep.2 매력 버프 충전소 #레드벨벳 #NCT (19026).mkv: Failed to copy: HTTP error 400 (400 Bad Request) returned body: "<?xml version='1.0' encoding='UTF-8'?>\n<Error><Code>InvalidBucketName</Code><Message>The specified bucket is not valid.</Message><Resource>Bucket names should be valid archive identifiers; try someting matching this regular expression: ^[a-zA-Z0-9][a-zA-Z0-9_.-]{4,100}$ (or, if you are making unusual identifiers, this user may lack the special permission to do so)</Resource><RequestId>ef536c24-40aa-4344-b6f5-1f14edad189d</RequestId></Error>"
2023/01/07 20:47:25 ERROR : 20161214 [SMTOWN] [REPLAY] VICTORY ep.1 청담더비 비긴즈 #레드벨벳#NCT#커밍순 (18436).mkv: Failed to copy: HTTP error 400 (400 Bad Request) returned body: "<?xml version='1.0' encoding='UTF-8'?>\n<Error><Code>InvalidBucketName</Code><Message>The specified bucket is not valid.</Message><Resource>Bucket names should be valid archive identifiers; try someting matching this regular expression: ^[a-zA-Z0-9][a-zA-Z0-9_.-]{4,100}$ (or, if you are making unusual identifiers, this user may lack the special permission to do so)</Resource><RequestId>7b4702d2-3bc0-4598-b5cc-a4ae56cc9b52</RequestId></Error>"
2023/01/07 20:47:25 ERROR : Attempt 1/3 failed with 7 errors and: HTTP error 400 (400 Bad Request) returned body: "<?xml version='1.0' encoding='UTF-8'?>\n<Error><Code>InvalidBucketName</Code><Message>The specified bucket is not valid.</Message><Resource>Bucket names should be valid archive identifiers; try someting matching this regular expression: ^[a-zA-Z0-9][a-zA-Z0-9_.-]{4,100}$ (or, if you are making unusual identifiers, this user may lack the special permission to do so)</Resource><RequestId>7b4702d2-3bc0-4598-b5cc-a4ae56cc9b52</RequestId></Error>"
2023/01/07 20:47:26 DEBUG : Internet Archive root: Waiting for checks to finish
2023/01/07 20:47:26 DEBUG : Internet Archive root: Waiting for transfers to finish
2023/01/07 20:47:26 ERROR : 20160518 [SMTOWN] THE 보이는 SM <EXO편> EP3 (8497).mkv: Failed to copy: HTTP error 400 (400 Bad Request) returned body: "<?xml version='1.0' encoding='UTF-8'?>\n<Error><Code>InvalidBucketName</Code><Message>The specified bucket is not valid.</Message><Resource>Bucket names should be valid archive identifiers; try someting matching this regular expression: ^[a-zA-Z0-9][a-zA-Z0-9_.-]{4,100}$ (or, if you are making unusual identifiers, this user may lack the special permission to do so)</Resource><RequestId>ec0a1dc9-169f-426d-8262-25eb40da41df</RequestId></Error>"
2023/01/07 20:47:26 ERROR : 20160512 [SMTOWN] THE 보이는 SM <EXO편> EP2 (8247).mkv: Failed to copy: HTTP error 400 (400 Bad Request) returned body: "<?xml version='1.0' encoding='UTF-8'?>\n<Error><Code>InvalidBucketName</Code><Message>The specified bucket is not valid.</Message><Resource>Bucket names should be valid archive identifiers; try someting matching this regular expression: ^[a-zA-Z0-9][a-zA-Z0-9_.-]{4,100}$ (or, if you are making unusual identifiers, this user may lack the special permission to do so)</Resource><RequestId>39c32ee7-7bef-4a5b-9217-05d5f4393ee7</RequestId></Error>"
2023/01/07 20:47:26 ERROR : 20160519 [SMTOWN] THE 보이는 SM <EXO편> EP4 (8498).mkv: Failed to copy: HTTP error 400 (400 Bad Request) returned body: "<?xml version='1.0' encoding='UTF-8'?>\n<Error><Code>InvalidBucketName</Code><Message>The specified bucket is not valid.</Message><Resource>Bucket names should be valid archive identifiers; try someting matching this regular expression: ^[a-zA-Z0-9][a-zA-Z0-9_.-]{4,100}$ (or, if you are making unusual identifiers, this user may lack the special permission to do so)</Resource><RequestId>d92b12fb-77b0-4d0a-9de7-7a90b7d31d1f</RequestId></Error>"
2023/01/07 20:47:26 ERROR : 20160511 [SMTOWN] THE 보이는 SM  <EXO편>  EP1 (8207).mkv: Failed to copy: HTTP error 400 (400 Bad Request) returned body: "<?xml version='1.0' encoding='UTF-8'?>\n<Error><Code>InvalidBucketName</Code><Message>The specified bucket is not valid.</Message><Resource>Bucket names should be valid archive identifiers; try someting matching this regular expression: ^[a-zA-Z0-9][a-zA-Z0-9_.-]{4,100}$ (or, if you are making unusual identifiers, this user may lack the special permission to do so)</Resource><RequestId>8ee60747-5334-4c3f-a57f-2dbe542c13c3</RequestId></Error>"
2023/01/07 20:47:27 ERROR : 20161120 [SMTOWN] [REPLAY] N-POP with EXO-CBX & Red Velvet (17003).mkv: Failed to copy: HTTP error 400 (400 Bad Request) returned body: "<?xml version='1.0' encoding='UTF-8'?>\n<Error><Code>InvalidBucketName</Code><Message>The specified bucket is not valid.</Message><Resource>Bucket names should be valid archive identifiers; try someting matching this regular expression: ^[a-zA-Z0-9][a-zA-Z0-9_.-]{4,100}$ (or, if you are making unusual identifiers, this user may lack the special permission to do so)</Resource><RequestId>9c701bea-98f0-4177-a663-e33f8af3d913</RequestId></Error>"
2023/01/07 20:47:27 ERROR : 20161214 [SMTOWN] [REPLAY] VICTORY ep.1 청담더비 비긴즈 #레드벨벳#NCT#커밍순 (18436).mkv: Failed to copy: HTTP error 400 (400 Bad Request) returned body: "<?xml version='1.0' encoding='UTF-8'?>\n<Error><Code>InvalidBucketName</Code><Message>The specified bucket is not valid.</Message><Resource>Bucket names should be valid archive identifiers; try someting matching this regular expression: ^[a-zA-Z0-9][a-zA-Z0-9_.-]{4,100}$ (or, if you are making unusual identifiers, this user may lack the special permission to do so)</Resource><RequestId>57b9395f-9154-4d6c-bcd0-e1f61fba1b99</RequestId></Error>"
2023/01/07 20:47:27 ERROR : 20161221 [SMTOWN] [Replay] VICTORY ep.2 매력 버프 충전소 #레드벨벳 #NCT (19026).mkv: Failed to copy: HTTP error 400 (400 Bad Request) returned body: "<?xml version='1.0' encoding='UTF-8'?>\n<Error><Code>InvalidBucketName</Code><Message>The specified bucket is not valid.</Message><Resource>Bucket names should be valid archive identifiers; try someting matching this regular expression: ^[a-zA-Z0-9][a-zA-Z0-9_.-]{4,100}$ (or, if you are making unusual identifiers, this user may lack the special permission to do so)</Resource><RequestId>2b19678f-576d-4fe7-8fd6-af8162ab2566</RequestId></Error>"
2023/01/07 20:47:27 ERROR : Attempt 2/3 failed with 7 errors and: HTTP error 400 (400 Bad Request) returned body: "<?xml version='1.0' encoding='UTF-8'?>\n<Error><Code>InvalidBucketName</Code><Message>The specified bucket is not valid.</Message><Resource>Bucket names should be valid archive identifiers; try someting matching this regular expression: ^[a-zA-Z0-9][a-zA-Z0-9_.-]{4,100}$ (or, if you are making unusual identifiers, this user may lack the special permission to do so)</Resource><RequestId>2b19678f-576d-4fe7-8fd6-af8162ab2566</RequestId></Error>"
2023/01/07 20:47:27 DEBUG : Internet Archive root: Waiting for checks to finish
2023/01/07 20:47:27 DEBUG : Internet Archive root: Waiting for transfers to finish
2023/01/07 20:47:28 ERROR : 20160512 [SMTOWN] THE 보이는 SM <EXO편> EP2 (8247).mkv: Failed to copy: HTTP error 400 (400 Bad Request) returned body: "<?xml version='1.0' encoding='UTF-8'?>\n<Error><Code>InvalidBucketName</Code><Message>The specified bucket is not valid.</Message><Resource>Bucket names should be valid archive identifiers; try someting matching this regular expression: ^[a-zA-Z0-9][a-zA-Z0-9_.-]{4,100}$ (or, if you are making unusual identifiers, this user may lack the special permission to do so)</Resource><RequestId>8c99bf4d-5c79-45cb-9a78-5155763fad48</RequestId></Error>"
2023/01/07 20:47:28 ERROR : 20160518 [SMTOWN] THE 보이는 SM <EXO편> EP3 (8497).mkv: Failed to copy: HTTP error 400 (400 Bad Request) returned body: "<?xml version='1.0' encoding='UTF-8'?>\n<Error><Code>InvalidBucketName</Code><Message>The specified bucket is not valid.</Message><Resource>Bucket names should be valid archive identifiers; try someting matching this regular expression: ^[a-zA-Z0-9][a-zA-Z0-9_.-]{4,100}$ (or, if you are making unusual identifiers, this user may lack the special permission to do so)</Resource><RequestId>e561eb76-3aae-48d3-b56d-45c859775bc5</RequestId></Error>"
2023/01/07 20:47:28 ERROR : 20160511 [SMTOWN] THE 보이는 SM  <EXO편>  EP1 (8207).mkv: Failed to copy: HTTP error 400 (400 Bad Request) returned body: "<?xml version='1.0' encoding='UTF-8'?>\n<Error><Code>InvalidBucketName</Code><Message>The specified bucket is not valid.</Message><Resource>Bucket names should be valid archive identifiers; try someting matching this regular expression: ^[a-zA-Z0-9][a-zA-Z0-9_.-]{4,100}$ (or, if you are making unusual identifiers, this user may lack the special permission to do so)</Resource><RequestId>1eb177d3-c08a-4b2d-9672-8d761270439e</RequestId></Error>"
2023/01/07 20:47:28 ERROR : 20160519 [SMTOWN] THE 보이는 SM <EXO편> EP4 (8498).mkv: Failed to copy: HTTP error 400 (400 Bad Request) returned body: "<?xml version='1.0' encoding='UTF-8'?>\n<Error><Code>InvalidBucketName</Code><Message>The specified bucket is not valid.</Message><Resource>Bucket names should be valid archive identifiers; try someting matching this regular expression: ^[a-zA-Z0-9][a-zA-Z0-9_.-]{4,100}$ (or, if you are making unusual identifiers, this user may lack the special permission to do so)</Resource><RequestId>9b652c1f-d477-4125-84f1-13496060ad86</RequestId></Error>"
2023/01/07 20:47:28 ERROR : 20161221 [SMTOWN] [Replay] VICTORY ep.2 매력 버프 충전소 #레드벨벳 #NCT (19026).mkv: Failed to copy: HTTP error 400 (400 Bad Request) returned body: "<?xml version='1.0' encoding='UTF-8'?>\n<Error><Code>InvalidBucketName</Code><Message>The specified bucket is not valid.</Message><Resource>Bucket names should be valid archive identifiers; try someting matching this regular expression: ^[a-zA-Z0-9][a-zA-Z0-9_.-]{4,100}$ (or, if you are making unusual identifiers, this user may lack the special permission to do so)</Resource><RequestId>ddf36964-7ac4-443c-ad36-f28a40fd9854</RequestId></Error>"
2023/01/07 20:47:28 ERROR : 20161214 [SMTOWN] [REPLAY] VICTORY ep.1 청담더비 비긴즈 #레드벨벳#NCT#커밍순 (18436).mkv: Failed to copy: HTTP error 400 (400 Bad Request) returned body: "<?xml version='1.0' encoding='UTF-8'?>\n<Error><Code>InvalidBucketName</Code><Message>The specified bucket is not valid.</Message><Resource>Bucket names should be valid archive identifiers; try someting matching this regular expression: ^[a-zA-Z0-9][a-zA-Z0-9_.-]{4,100}$ (or, if you are making unusual identifiers, this user may lack the special permission to do so)</Resource><RequestId>01be31a5-0cd7-4c7a-bcc1-92eb1d5dbca5</RequestId></Error>"
2023/01/07 20:47:28 ERROR : 20161120 [SMTOWN] [REPLAY] N-POP with EXO-CBX & Red Velvet (17003).mkv: Failed to copy: HTTP error 400 (400 Bad Request) returned body: "<?xml version='1.0' encoding='UTF-8'?>\n<Error><Code>InvalidBucketName</Code><Message>The specified bucket is not valid.</Message><Resource>Bucket names should be valid archive identifiers; try someting matching this regular expression: ^[a-zA-Z0-9][a-zA-Z0-9_.-]{4,100}$ (or, if you are making unusual identifiers, this user may lack the special permission to do so)</Resource><RequestId>bc519e4c-2b7f-48bd-bf61-6085b97608d8</RequestId></Error>"
2023/01/07 20:47:28 ERROR : Attempt 3/3 failed with 7 errors and: HTTP error 400 (400 Bad Request) returned body: "<?xml version='1.0' encoding='UTF-8'?>\n<Error><Code>InvalidBucketName</Code><Message>The specified bucket is not valid.</Message><Resource>Bucket names should be valid archive identifiers; try someting matching this regular expression: ^[a-zA-Z0-9][a-zA-Z0-9_.-]{4,100}$ (or, if you are making unusual identifiers, this user may lack the special permission to do so)</Resource><RequestId>bc519e4c-2b7f-48bd-bf61-6085b97608d8</RequestId></Error>"
2023/01/07 20:47:28 INFO  :   157.012 MiB / 157.012 MiB, 100%, 31.387 MiB/s, ETA 0s
2023/01/07 20:47:28 DEBUG : 3 go routines active
2023/01/07 20:47:28 Failed to copy with 7 errors: last error was: HTTP error 400 (400 Bad Request) returned body: "<?xml version='1.0' encoding='UTF-8'?>\n<Error><Code>InvalidBucketName</Code><Message>The specified bucket is not valid.</Message><Resource>Bucket names should be valid archive identifiers; try someting matching this regular expression: ^[a-zA-Z0-9][a-zA-Z0-9_.-]{4,100}$ (or, if you are making unusual identifiers, this user may lack the special permission to do so)</Resource><RequestId>bc519e4c-2b7f-48bd-bf61-6085b97608d8</RequestId></Error>"

Hey

Have you re-checked to make sure that you have given the correct BucketName?
It might take a while to have the bucket in use if it is relatively new.

You need to add a bucket name on the end here

rclone copy -vv --stats-one-line --stats=10s shareddrive1:"My Archive" internet_archive:YourBucketNameGoesHere

I see, thank you!

1 Like

Didn't pay attention to the command :confused:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.