Typecho access Backblaze B2 bucket upload failed, help to troubleshoot!

Hello everyone,

I’m setting up a Typecho blog and trying to integrate a Backblaze B2 bucket for file storage to offload my server and potentially use it for distribution. I’m using the BackblazeUploader plugin available on GitHub by xa1st (link: GitHub - xa1st/BackblazeUploader: BackblazeUploader 是一个 Typecho 插件,用于将上传的附件存储到 Backblaze B2 云存储服务中,从而减轻服务器存储压力并提高访问速度。).

I’ve encountered a problem where file uploads are failing after setting up the plugin.

Problem Description:

  • When attempting to upload images or other files from the Typecho admin panel, the upload fails without any specific error message displayed in the UI.
  • Server logs don’t show any obvious errors related to file uploads or Backblaze (though I might be missing something).
  • Checking the B2 bucket confirms that the attempted files are not uploaded.
  • I have double-checked the plugin settings, including Key ID, Application Key, Bucket Name, etc., and they appear to be entered correctly.

Troubleshooting Steps I’ve Taken:

  1. Confirmed that the Key ID and Application Key are correct and that the App Key has the necessary permissions for the target bucket (e.g., readFiles, writeFiles, deleteFiles).
  2. Confirmed that the bucket name is spelled correctly and the bucket exists.
  3. Checked server network connectivity to ensure it can reach Backblaze API endpoints.
  4. Attempted uploading small files and different file types, with the same result.
  5. Checked server PHP error logs and Typecho’s own log files (if enabled).
  6. Reviewed other settings within the plugin configuration, but none seem directly related to upload mechanics.

Possible Issues/Questions:

  • Could there be firewall or security group restrictions between my server and Backblaze?
  • Is the PHP cURL extension working correctly? (B2 API usually interacts via cURL)
  • Could there be an incompatibility issue between the plugin and my specific environment?
  • Are there any other log files or debugging methods I can use to pinpoint the problem?

I would greatly appreciate any insights, suggestions, or guidance from those who have experience with Typecho and Backblaze B2 integration. Thank you in advance for your help!

Share code and error logd

8 Likes

Backblaze and other object storage providers just expose a HTTP API. The cURL extension is installed on your website, and accessing external services over HTTP and HTTPS is allowed, so I can’t think of any reason why it would not work because of a hosting restriction.

That said, I have never heard of Typecho. And a few Google searches only return results in Chinese, which makes it hard to learn about it.

And Typecho or the plugin is just sending you into the woods with a vague message like “there was a problem” without providing information about the problem, it’s going to be very hard to debug this.

6 Likes

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