You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Bosh部署报错:Unsupported Protocol Scheme问题求助

Bosh部署编译包时Blobstore协议错误的解决办法

部署自定义release或社区release时出现以下错误:

L Error: Action Failed get_task: Task 91c8b925-fb75-49cb-4f28-8d783013b255 result: Compiling package nginx: Fetching package nginx: Fetching package blob 22a70ff2-5c50-4623-bf5b-47f4f7bf8ed8: Getting blob from inner blobstore: Getting blob from inner blobstore: Shelling out to bosh-blobstore-dav cli: Running command: 'bosh-blobstore-dav -c /var/vcap/bosh/etc/blobstore-dav.json get 22a70ff2-5c50-4623-bf5b-47f4f7bf8ed8 /var/vcap/data/tmp/bosh-blobstore-externalBlobstore-Get484019718', stdout: 'Error running app - Getting dav blob 22a70ff2-5c50-4623-bf5b-47f4f7bf8ed8: Get /d8/22a70ff2-5c50-4623-bf5b-47f4f7bf8ed8: unsupported protocol scheme ""', stderr: '': exit status 1
Task 43 | 20:39:58 | Error: Action Failed get_task: Task 91c8b925-fb75-49cb-4f28-8d783013b255 result: Compiling package nginx: Fetching package nginx: Fetching package blob 22a70ff2-5c50-4623-bf5b-47f4f7bf8ed8: Getting blob from inner blobstore: Getting blob from inner blobstore: Shelling out to bosh-blobstore-dav cli: Running command: 'bosh-blobstore-dav -c /var/vcap/bosh/etc/blobstore-dav.json get 22a70ff2-5c50-4623-bf5b-47f4f7bf8ed8 /var/vcap/data/tmp/bosh-blobstore-externalBlobstore-Get484019718', stdout: 'Error running app - Getting dav blob 22a70ff2-5c50-4623-bf5b-47f4f7bf8ed8: Get /d8/22a70ff2-5c50-4623-bf5b-47f4f7bf8ed8: unsupported protocol scheme ""', stderr: '': exit status 1

错误核心原因

日志里的unsupported protocol scheme ""是关键:Bosh的DAV blobstore配置文件中未指定完整的URL协议头(http/https),导致请求blob时只发送了路径部分,没有服务器地址前缀,触发协议不支持的错误。

修复步骤

  • 登录Bosh Director节点,打开DAV blobstore配置文件:/var/vcap/bosh/etc/blobstore-dav.json
  • 检查endpoint字段,确保配置为带协议头的完整URL,示例:
    {
      "endpoint": "http://your-blobstore-host:8080",
      "username": "your-username",
      "password": "your-password"
    }
    
    注意:不能只写your-blobstore-host:8080,必须带上http://或https://
  • 保存配置后,重启Bosh Director服务:monit restart bosh
  • 重新执行部署命令:bosh deploy

额外注意

如果是通过Bosh manifest部署Director,需同步修改manifest中blobstore模块的endpoint配置,避免重启Director后配置被覆盖。


内容的提问来源于stack exchange,提问作者Spacehead

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.16 20:55:23