mailinabox icon indicating copy to clipboard operation
mailinabox copied to clipboard

B2 Backblaze: I get the error message:“substring not found”.

Open JvdBBBB opened this issue 3 years ago • 7 comments

I get the error message:“substring not found” when I try to configure MIAB backup to use B2 Backblaze.

I have created an appkey in Backblaze and used my key ID and application Key in MIAB.

Also I am not so sure what to set in “B2 Bucket”, I have tried a lot of combinations

  • s3.us-west-000.backblazeb2.com/bucketname
  • bucketname
  • s3.us-west-000.backblazeb2.com/buckedID
  • etc.

but everything I try gives the same error message.

JvdBBBB avatar Apr 17 '21 16:04 JvdBBBB

I too am receiving the same issue and had initially created a thread on the Discourse fourm.

I'm positive my keys and ID are working because I currently have a script working to B2 sending the backup files already. I'm looking forward using this within MiaB itself.

aaronmweiss avatar Apr 17 '21 19:04 aaronmweiss

I have generated new keys and now it works. The old application key had "/" in it, maybe that had something to do with it?

JvdBBBB avatar Apr 17 '21 21:04 JvdBBBB

I have generated new keys and now it works. The old application key had "/" in it, maybe that had something to do with it?

I've noticed the same. Wasn't working until I've got an key without a slash in it.

gumida avatar Apr 18 '21 07:04 gumida

I can confirm that generating a new key that does not have a "/" in it corrected the issue.

aaronmweiss avatar Apr 19 '21 21:04 aaronmweiss

I read the documents of Backblaze and found that names can contain letters, numbers, and "-", and are limited to 100 characters.

yashjain0 avatar Apr 22 '21 17:04 yashjain0

For me is a key with a / also not working. After creating multiple keys until I had one without a / fixed this specific issue. Now I have a new issue. Will create a new issue for that.

TomBuyvoets avatar Jun 13 '21 22:06 TomBuyvoets

Problem persists. I had this error message, found about the issue via google. I, too, have a key with a slash. New key without worked. Please add check for slashes in key and advise to regen or escape the slash for use. (BTW: Thanks for this great software)

kappuchino avatar Dec 07 '21 16:12 kappuchino

#2281 contains a possible solution to this problem. I have tested the PR by adding new key with a slash, and running sudo management/backup.py manually.

dmytrokyrychuk avatar Jun 27 '23 09:06 dmytrokyrychuk