Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blackblaze Error (I think it's the account ID, I don't see it) #5644

Closed
Yoxed opened this issue Sep 2, 2021 · 20 comments
Closed

Blackblaze Error (I think it's the account ID, I don't see it) #5644

Yoxed opened this issue Sep 2, 2021 · 20 comments
Labels

Comments

@Yoxed
Copy link

Yoxed commented Sep 2, 2021

Received error from B2:

#0 /var/www/html/realmediatt/objects/gliterd/backblaze-b2/src/Http/Client.php(28): BackblazeB2\ErrorHandler::handleErrorResponse() #1 /var/www/html/realmediatt/objects/gliterd/backblaze-b2/src/Client.php(422): BackblazeB2\Http\Client->request() #2 /var/www/html/realmediatt/objects/gliterd/backblaze-b2/src/Client.php(38): BackblazeB2\Client->authorizeAccount() #3 /var/www/html/realmediatt/plugin/Blackblaze_B2/Blackblaze_B2.php(18) : eval()'d code(1) : eval()'d code(55): BackblazeB2\Client->__construct() #4 /var/www/html/realmediatt/plugin/Blackblaze_B2/Blackblaze_B2.php(18) : eval()'d code(1) : eval()'d code(326): Blackblaze_B2->getClient() #5 /var/www/html/realmediatt/plugin/Blackblaze_B2/test.php(18) : eval()'d code(1) : eval()'d code(14): Blackblaze_B2->copy_to_B2() #6 /var/www/html/realmediatt/plugin/Blackblaze_B2/test.php(18) : eval()'d code(1): eval() #7 /var/www/html/realmediatt/plugin/Blackblaze_B2/test.php(18): eval() #8 {main}

https://imgur.com/undefined

@Yoxed Yoxed added the bug label Sep 2, 2021
@Yoxed
Copy link
Author

Yoxed commented Sep 2, 2021

This is what i see, I entered all my information correctly. https://imgur.com/Bx8UeF9

@DanielnetoDotCom
Copy link
Member

If you added all the information you should have a message from backblaze detailing the error

check more from your log

@Yoxed
Copy link
Author

Yoxed commented Sep 8, 2021

Where do i find the log? The information i provided above was the error messaged i received when i clicked on "Test it"

@DanielnetoDotCom
Copy link
Member

@Yoxed
Copy link
Author

Yoxed commented Sep 9, 2021

[08-Sep-2021 21:35:42 America/La_Paz] AVideoLog::ERROR: {"type":1,"message":"Uncaught BackblazeB2\Exceptions\B2Exception: Received error from B2: in /var/www/html/myMySQLUser/objects/gliterd/backblaze-b2/src/ErrorHandler.php:36\nStack trace:\n#0 /var/www/html/myMySQLUser/objects/gliterd/backblaze-b2/src/Http/Client.php(28): BackblazeB2\ErrorHandler::handleErrorResponse()\n#1 /var/www/html/myMySQLUser/objects/gliterd/backblaze-b2/src/Client.php(422): BackblazeB2\Http\Client->request()\n#2 /var/www/html/myMySQLUser/objects/gliterd/backblaze-b2/src/Client.php(38): BackblazeB2\Client->authorizeAccount()\n#3 /var/www/html/myMySQLUser/plugin/Blackblaze_B2/Blackblaze_B2.php(18) : eval()'d code(1) : eval()'d code(55): BackblazeB2\Client->__construct()\n#4 /var/www/html/myMySQLUser/plugin/Blackblaze_B2/Blackblaze_B2.php(18) : eval()'d code(1) : eval()'d code(276): Blackblaze_B2->getClient()\n#5 /var/www/html/myMySQLUser/plugin/Blackblaze_B2/Blackblaze_B2.php(18) : eval()'d code(1) : eval()'d code(260): Blackblaze_B2->removeFilePath()\n#6 /var/www/html/myMySQLUser/plugin/Blackblaze_B2/Blackblaze_B2.ph","file":"/var/www/html/myMySQLUser/objects/gliterd/backblaze-b2/src/ErrorHandler.php","line":36} SCRIPT_NAME: /objects/videoDelete.json.php

@Yoxed
Copy link
Author

Yoxed commented Sep 9, 2021

Do you see any problem here where you can guide me?

@DanielnetoDotCom
Copy link
Member

I guess you have wrong credentials

please check this https://github.com/WWBN/AVideo/wiki/BackBlaze-B2-plugin

@Yoxed
Copy link
Author

Yoxed commented Sep 9, 2021

It says account ID but i don't see that? Is it supposed to be like that?

https://prnt.sc/1rmtjxu
https://prnt.sc/1rmthwy

@DanielnetoDotCom
Copy link
Member

image

@Yoxed
Copy link
Author

Yoxed commented Sep 9, 2021

Okay we are getting different results now.
Now it is saying -

"required filed accountId cannot be null but I don't see accountId in my plugin form. How will I fill it in if I don't see it?

Received error from B2: required field accountId cannot be null
#0 /var/www/html/realmediatt/objects/gliterd/backblaze-b2/src/Http/Client.php(28): BackblazeB2\ErrorHandler::handleErrorResponse() #1 /var/www/html/realmediatt/objects/gliterd/backblaze-b2/src/Client.php(121): BackblazeB2\Http\Client->request() #2 /var/www/html/realmediatt/objects/gliterd/backblaze-b2/src/Client.php(439): BackblazeB2\Client->listBuckets() #3 /var/www/html/realmediatt/objects/gliterd/backblaze-b2/src/Client.php(173): BackblazeB2\Client->getBucketIdFromName() #4 /var/www/html/realmediatt/plugin/Blackblaze_B2/Blackblaze_B2.php(18) : eval()'d code(1) : eval()'d code(357): BackblazeB2\Client->upload() #5 /var/www/html/realmediatt/plugin/Blackblaze_B2/test.php(18) : eval()'d code(1) : eval()'d code(14): Blackblaze_B2->copy_to_B2() #6 /var/www/html/realmediatt/plugin/Blackblaze_B2/test.php(18) : eval()'d code(1): eval() #7 /var/www/html/realmediatt/plugin/Blackblaze_B2/test.php(18): eval() #8 {main}

@DanielnetoDotCom
Copy link
Member

image

Backblaze Account Id = Application keyID

@Yoxed
Copy link
Author

Yoxed commented Sep 9, 2021

Okay I used that and now I have the same error again?
What can I possibly be doing wrong, this should be simple but I can't seem to get it right...

I am providing more images to get it better sorted.

Plugin form --> https://imgur.com/a/rTuMcs2 (Note: I even used the 12 digit characters and that's when i got the accountid(null) error)

Bucket --> https://imgur.com/LaMgR3m

Master Application Key - https://imgur.com/ZclUy35

Application Key - https://imgur.com/Oy0MzX1

Received error from B2:
#0 /var/www/html/realmediatt/objects/gliterd/backblaze-b2/src/Http/Client.php(28): BackblazeB2\ErrorHandler::handleErrorResponse() #1 /var/www/html/realmediatt/objects/gliterd/backblaze-b2/src/Client.php(422): BackblazeB2\Http\Client->request() #2 /var/www/html/realmediatt/objects/gliterd/backblaze-b2/src/Client.php(38): BackblazeB2\Client->authorizeAccount() #3 /var/www/html/realmediatt/plugin/Blackblaze_B2/Blackblaze_B2.php(18) : eval()'d code(1) : eval()'d code(55): BackblazeB2\Client->__construct() #4 /var/www/html/realmediatt/plugin/Blackblaze_B2/Blackblaze_B2.php(18) : eval()'d code(1) : eval()'d code(326): Blackblaze_B2->getClient() #5 /var/www/html/realmediatt/plugin/Blackblaze_B2/test.php(18) : eval()'d code(1) : eval()'d code(14): Blackblaze_B2->copy_to_B2() #6 /var/www/html/realmediatt/plugin/Blackblaze_B2/test.php(18) : eval()'d code(1): eval() #7 /var/www/html/realmediatt/plugin/Blackblaze_B2/test.php(18): eval() #8 {main}

@DanielnetoDotCom
Copy link
Member

I am pretty sure you still have configuration confusion.

please make sure you follow this carefully, https://github.com/WWBN/AVideo/wiki/BackBlaze-B2-plugin

also, share your plugin parameters and your Backblaze screenshots

@Yoxed
Copy link
Author

Yoxed commented Sep 10, 2021

I provided Imgur links above in my previous comment, I sent images for parameters etc

@DanielnetoDotCom
Copy link
Member

you have a wrong keyID

image

@Yoxed
Copy link
Author

Yoxed commented Sep 10, 2021

Okay i did that and it said the following "Received error from B2: required field accountId cannot be null"
i only used e482997f150e and i got that error. See now i'm confused, Is it the script?

@DanielnetoDotCom
Copy link
Member

I am not sure, try to delete the master application key and create it again. maybe something is missing on the BackBlaze side

@DanielnetoDotCom
Copy link
Member

I am testing it again, hold on

@DanielnetoDotCom
Copy link
Member

Sorry about the inconvenience, I found something, I am releasing version 3.1 that may resolve that issue.

also, I made a video to try to help you configure it https://tutorials.avideo.com/video/111/how-to-configure-backblaze

@Yoxed
Copy link
Author

Yoxed commented Sep 11, 2021

Thank you so much for your help, it works perfectly now. You were very helpful for this issue. The update worked and the video was helpful aswell. Blackblaze plugin is working.

@Yoxed Yoxed closed this as completed Sep 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants