【问题标题】:Unable to create bosh release无法创建 bosh 版本
【发布时间】:2017-04-14 15:50:51
【问题描述】:

我无法从 learn-bosh-release 给定的 here 教程创建 bosh 版本

得到以下错误:

vagrant@bosh-lite:~/workspace/learn-bosh-release$ bosh create release
Syncing blobs...
/usr/lib/ruby/2.0.0/fileutils.rb:349:in `symlink': Protocol error - (/home/vagrant/workspace/learn-bosh-release/.blobs/c8a000f75b6a6f60d9fb727f8076ec9171e14c20, /home/vagrant/workspace/learn-bosh-release/blobs/ruby/bundler-1.6.3.gem) (Errno::EPROTO)
        from /usr/lib/ruby/2.0.0/fileutils.rb:349:in `block in ln_s'
        from /usr/lib/ruby/2.0.0/fileutils.rb:1568:in `fu_each_src_dest0'
        from /usr/lib/ruby/2.0.0/fileutils.rb:347:in `ln_s'
        from /var/lib/gems/2.0.0/gems/bosh_cli-1.3262.26.0/lib/cli/blob_manager.rb:344:in `install_blob'
        from /var/lib/gems/2.0.0/gems/bosh_cli-1.3262.26.0/lib/cli/blob_manager.rb:235:in `block in process_index'
        from /var/lib/gems/2.0.0/gems/bosh_cli-1.3262.26.0/lib/cli/blob_manager.rb:214:in `each_pair'
        from /var/lib/gems/2.0.0/gems/bosh_cli-1.3262.26.0/lib/cli/blob_manager.rb:214:in `process_index'
        from /var/lib/gems/2.0.0/gems/bosh_cli-1.3262.26.0/lib/cli/blob_manager.rb:157:in `sync'
        from /var/lib/gems/2.0.0/gems/bosh_cli-1.3262.26.0/lib/cli/commands/release/create_release.rb:146:in `dirty_blob_check'
        from /var/lib/gems/2.0.0/gems/bosh_cli-1.3262.26.0/lib/cli/commands/release/create_release.rb:82:in `create_from_spec'
        from /var/lib/gems/2.0.0/gems/bosh_cli-1.3262.26.0/lib/cli/commands/release/create_release.rb:51:in `create'
        from /var/lib/gems/2.0.0/gems/bosh_cli-1.3262.26.0/lib/cli/command_handler.rb:57:in `run'
        from /var/lib/gems/2.0.0/gems/bosh_cli-1.3262.26.0/lib/cli/runner.rb:59:in `run'
        from /var/lib/gems/2.0.0/gems/bosh_cli-1.3262.26.0/bin/bosh:19:in `<top (required)>'
        from /usr/local/bin/bosh:23:in `load'
        from /usr/local/bin/bosh:23:in `<main>'

【问题讨论】:

    标签: ruby cloud-foundry bosh-deployer cf-bosh


    【解决方案1】:

    终于解决了这个问题。

    在 Windows 10 上使用 Git-bash 来处理 bosh,并使用 Vagrant 设置了一个 bosh-lite VM。 symlink - Protocol Error 的问题是由于 Git-bash 没有管理权限。

    分辨率:

    • 在 Windows 上以管理员身份启动 git-bashcmd
    • vagrant ssh 进入 bosh-lite 虚拟机
    • 现在bosh create release 能够成功写入清单文件

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-05-30
      • 1970-01-01
      • 2013-07-07
      • 2020-08-07
      • 2016-09-22
      相关资源
      最近更新 更多