עזרה בהגדרת CDN S3 - חריג עבודה: Backblaze B2

סיכום מבוסס בינה מלאכותית

A user reports encountering a job exception error: ‘Backblaze B2 does not support this API call’ while setting up an S3-compatible CDN. The error originates from an attempt to call put_bucket_policy via the AWS SDK, which is not supported by Backblaze B2. The stack trace points to /var/www/discourse/lib/s3_inventory.rb:183, where the bucket policy update is triggered by a Sidekiq job (update_s3_inventory). The user confirms they’ve reviewed existing documentation but still face the issue, suggesting a compatibility problem between Discourse’s S3 inventory feature and Backblaze B2’s API limitations. This is a known limitation — Backblaze B2 does not support bucket policies — and the error occurs because Discourse assumes full S3 API compatibility. The user may need to either switch to a fully S3-compatible provider or modify the code to skip bucket policy operations when using B2.

i’ve this alert in the Error Logs
Job exception: Backblaze B2 does not support this API call.

I’ve checked the existing topic, all sounds fine
so, here are the detals if that could help to identify my issue…

aws-sdk-core-3.130.2/lib/seahorse/client/plugins/raise_response_errors.rb:17:in call' aws-sdk-s3-1.114.0/lib/aws-sdk-s3/plugins/sse_cpk.rb:24:in call’
aws-sdk-s3-1.114.0/lib/aws-sdk-s3/plugins/dualstack.rb:27:in call' aws-sdk-s3-1.114.0/lib/aws-sdk-s3/plugins/accelerate.rb:56:in call’
aws-sdk-core-3.130.2/lib/aws-sdk-core/plugins/checksum_algorithm.rb:111:in call' aws-sdk-core-3.130.2/lib/aws-sdk-core/plugins/jsonvalue_converter.rb:22:in call’
aws-sdk-core-3.130.2/lib/aws-sdk-core/plugins/idempotency_token.rb:19:in call' aws-sdk-core-3.130.2/lib/aws-sdk-core/plugins/param_converter.rb:26:in call’
aws-sdk-core-3.130.2/lib/seahorse/client/plugins/request_callback.rb:71:in call' aws-sdk-core-3.130.2/lib/aws-sdk-core/plugins/response_paging.rb:12:in call’
aws-sdk-core-3.130.2/lib/seahorse/client/plugins/response_target.rb:24:in call' aws-sdk-core-3.130.2/lib/seahorse/client/request.rb:72:in send_request’
aws-sdk-s3-1.114.0/lib/aws-sdk-s3/client.rb:10921:in put_bucket_policy' /var/www/discourse/lib/s3_inventory.rb:183:in update_bucket_policy’
/var/www/discourse/app/jobs/regular/update_s3_inventory.rb:16:in block in execute' /var/www/discourse/app/jobs/regular/update_s3_inventory.rb:14:in each’
/var/www/discourse/app/jobs/regular/update_s3_inventory.rb:14:in execute' /var/www/discourse/app/jobs/base.rb:249:in block (2 levels) in perform’
rails_multisite-4.0.1/lib/rails_multisite/connection_management.rb:80:in with_connection' /var/www/discourse/app/jobs/base.rb:236:in block in perform’
/var/www/discourse/app/jobs/base.rb:232:in each' /var/www/discourse/app/jobs/base.rb:232:in perform’
sidekiq-6.5.8/lib/sidekiq/processor.rb:202:in execute_job' sidekiq-6.5.8/lib/sidekiq/processor.rb:170:in block (2 levels) in process’
sidekiq-6.5.8/lib/sidekiq/middleware/chain.rb:177:in block in invoke' /var/www/discourse/lib/sidekiq/pausable.rb:134:in call’
sidekiq-6.5.8/lib/sidekiq/middleware/chain.rb:179:in block in invoke' sidekiq-6.5.8/lib/sidekiq/middleware/chain.rb:182:in invoke’
sidekiq-6.5.8/lib/sidekiq/processor.rb:169:in block in process' sidekiq-6.5.8/lib/sidekiq/processor.rb:136:in block (6 levels) in dispatch’
sidekiq-6.5.8/lib/sidekiq/job_retry.rb:113:in local' sidekiq-6.5.8/lib/sidekiq/processor.rb:135:in block (5 levels) in dispatch’
sidekiq-6.5.8/lib/sidekiq.rb:44:in block in <module:Sidekiq>' sidekiq-6.5.8/lib/sidekiq/processor.rb:131:in block (4 levels) in dispatch’
sidekiq-6.5.8/lib/sidekiq/processor.rb:263:in stats' sidekiq-6.5.8/lib/sidekiq/processor.rb:126:in block (3 levels) in dispatch’
sidekiq-6.5.8/lib/sidekiq/job_logger.rb:13:in call' sidekiq-6.5.8/lib/sidekiq/processor.rb:125:in block (2 levels) in dispatch’
sidekiq-6.5.8/lib/sidekiq/job_retry.rb:80:in global' sidekiq-6.5.8/lib/sidekiq/processor.rb:124:in block in dispatch’
sidekiq-6.5.8/lib/sidekiq/job_logger.rb:39:in prepare' sidekiq-6.5.8/lib/sidekiq/processor.rb:123:in dispatch’
sidekiq-6.5.8/lib/sidekiq/processor.rb:168:in process' sidekiq-6.5.8/lib/sidekiq/processor.rb:78:in process_one’
sidekiq-6.5.8/lib/sidekiq/processor.rb:68:in run' sidekiq-6.5.8/lib/sidekiq/component.rb:8:in watchdog’
sidekiq-6.5.8/lib/sidekiq/component.rb:17:in `block in safe_thread’

hooks:
after_code:

Any ideas? Thank you!