Re: Stemcell builder fails in the bosh_go_agent stage

Danny Berger

Sounds like you may have forgotten to initialize the submodules in your
repository. Try executing `git submodule update --init` and running the
build again.

Otherwise, take a closer look in go/src/
and see if anything is amiss.

On Thu, Sep 22, 2016 at 12:58 PM, Krishnan Ramanathan <krishnan(a)>

I am trying to build an Ubuntu Trusty stemcell from the develop branch. I
am following the instructions as documented at
md#building-the-stemcell-with-local-os-image. However it is consistently
failing on the "Building a stemcell" (
step whether I try to use a locally built OS image or an OS image from the
S3 bucket.

I can send the full logs if required, however here is the main snippet
where it fails:

+ mv /mnt/stemcells/aws/xen/ubuntu/work/work/chroot/usr/sbin/invoke-rc.d.back
+ cp -a /mnt/stemcells/aws/xen/ubuntu/build/build/stages/bosh_go_agent/assets/alerts.monitrc
+ agent_dir=/mnt/stemcells/aws/xen/ubuntu/build/build/stages/
+ cd /mnt/stemcells/aws/xen/ubuntu/build/build/stages/bosh_go_
+ bin/build
line 30: bin/build: No such file or directory/opt/bosh/bosh-core/lib/bosh/core/shell.rb:52:in
/opt/bosh/bosh-core/lib/bosh/core/shell.rb:12:in `run'
/opt/bosh/bosh-stemcell/lib/bosh/stemcell/stage_runner.rb:50:in `block in
/opt/bosh/bosh-stemcell/lib/bosh/stemcell/stage_runner.rb:41:in `each'
/opt/bosh/bosh-stemcell/lib/bosh/stemcell/stage_runner.rb:41:in `apply'
/opt/bosh/bosh-dev/lib/bosh/dev/tasks/stemcell.rake:218:in `block (2
levels) in <top (required)>'
/opt/bosh/bosh-dev/lib/bosh/dev/tasks/stemcell.rake:158:in `block (2
levels) in <top (required)>'
Tasks: TOP => stemcell:build_with_local_os_image_with_bosh_release_tarball
(See full trace by running task with --trace)

When I check the /mnt/stemcells/aws/xen/ubuntu/build/build/stages/bosh_go_agent/
directory, it is empty, which would explain the failure. Am I missing
something or do I need to update the script? Do note that I have
tried building the stemcell using both the docker container as well as in
an AWS instance created via vagrant.


Danny Berger

Join to automatically receive all group messages.