Restic + Rclone to b2 init works fails to read key/config

I have my bucket setup with rclone just fine it can copy and egress.
When I restic -r rclone:<Remote>:<Bucket>/test init it asks me for my password as it should and creates both the key file and the config in the test folder in the bucket.
But when I attempt to run restic -r rclone:<Remote>:<Bucket>/test backup .
I get the error

Fatal: unable to open config file: <config/> does not exist
Is there a repository at the following location?
C:\Users\killerherts>rclone lsf back:
Unraid666/
iuuun66/
lightmedia/

C:\Users\killerherts>rclone tree back:
/
├── Unraid666
│   ├── config
│   └── keys
│       └── 778243a4c6976bc352953e0187*811495476fdc19add5509a6cc2874d8
├── iuuun66
│   ├── config
│   ├── keys
│   │   ├── 4bcbd75052299f2538298023c*5bf98f2f3f33010ff459a99545d0
│   │   └── 57f831bf85f9852aa94db9c6f8*e6e65b8ebf0f8499123278116b0983d
│   └── lighthouse.png
└── lightmedia
    └── thor
        ├── config
        └── keys
            └── 5676bd69d65fe5db7c8137*25e9ecab4ed786db1114be039c6619bb93a

7 directories, 8 files

C:\Users\killerherts>restic -r rclone:back:Unraid666 backup .
Fatal: unable to open config file: <config/> does not exist
Is there a repository at the following location?
rclone:back:Unraid666

The config files seem to be there.

But rclone is able to cat the config files just fine
I am not sure what else to test as it just seems to be rclone and restic’s interaction.

I am working on version .14 that came out 4 days ago

I also attempted to use the rclone serve to the same bucket

PS C:\Users\killerherts> restic -r rest:http://localhost:8080/ init
enter password for new repository:
enter password again:
created restic repository 95374b91c3 at rest:http://localhost:8080/

Please note that knowledge of your password is required to access
the repository. Losing your password means that your data is
irrecoverably lost.
PS C:\Users\killerherts> restic -r rest:http://localhost:8080/ backup Documents
enter password for repository:
Load(<key/222ceea3bb>, 0, 0) returned error, retrying after 552.330144ms: <key/222ceea3bb> does not exist
Load(<key/222ceea3bb>, 0, 0) returned error, retrying after 1.080381816s: <key/222ceea3bb> does not exist
Load(<key/222ceea3bb>, 0, 0) returned error, retrying after 1.31013006s: <key/222ceea3bb> does not exist
Load(<key/222ceea3bb>, 0, 0) returned error, retrying after 1.582392691s: <key/222ceea3bb> does not exist
Load(<key/222ceea3bb>, 0, 0) returned error, retrying after 2.340488664s: <key/222ceea3bb> does not exist
Load(<key/222ceea3bb>, 0, 0) returned error, retrying after 4.506218855s: <key/222ceea3bb> does not exist
signal interrupt received, cleaning up

The init from this also created valid key files that could be retrived with cat and rclone
I know restic as S3 intergration with B2 but I wanted to use the CDN for egress and not have to pay for the data.

Have you tried passing the --verbose one or multiple times to rclone to see what it reports?

There’s one interesting thing to notice in the last log snippet: restic complains about key/222ceea3bb and no longer about a missing config file. This means that it got one file further than before.

killerherts@T440p:~$ rclone listremotes
blaze:
killerherts@T440p:~$ restic -r rclone:blaze:Unraid666/Test init -v -v -v
enter password for new repository: 
enter password again: 
created restic repository d28d859401 at rclone:blaze:Unraid666/Test

Please note that knowledge of your password is required to access
the repository. Losing your password means that your data is
irrecoverably lost.
killerherts@T440p:~$ restic -r rclone:blaze:Unraid666/Test backup Documents -v -v -v
open repository
enter password for repository: 
Load(<key/c08677849d>, 0, 0) returned error, retrying after 720.254544ms: <key/c08677849d> does not exist
Load(<key/c08677849d>, 0, 0) returned error, retrying after 873.42004ms: <key/c08677849d> does not exist
Load(<key/c08677849d>, 0, 0) returned error, retrying after 1.054928461s: <key/c08677849d> does not exist
Load(<key/c08677849d>, 0, 0) returned error, retrying after 1.560325776s: <key/c08677849d> does not exist
  signal interrupt received, cleaning up

Should this have created more output?

I am able to restic into a local directory then make rclone sync it to the bucket. I would prefer to just have the operation in one shot so i don’t have to double store my restic files.

Removed my download url with CDN and everthing worked fine so it appears to be something wrong with my cloudflare worker script.

Solution I was following this github guide

You need to use the bucket name not id for your url rewrites
Also just doing the url rewirte will break rclone and its ability to extract files so its best to leave that part out it was the root cause of my issue.