while i setupping the habitat package in my system, i face this error.
I have followed this steps.
I’m using Ubuntu 16.04 os.I had Setup Hab and docker-engine in my system.
clone the habitat ruby-rails-sample package using this link - https://github.com/habitat-sh/ruby-rails-sample.
Afterthat, i can run these commands
1.hab setup
2.hab studio enter
it was open a studio.
3.build
when i build the package i saw this error, but the package is build so i was proceed to the further steps.
error: File: ‘/hab/pkgs/megamio/ruby-rails-sample/0.0.1/20160829112156/dist/vendor/bundle/ruby/2.3.0/gems/rdoc-4.2.0/test/MarkdownTest_1.0.3/Links’ cannot be found
error: File: ‘/hab/pkgs/megamio/ruby-rails-sample/0.0.1/20160829112156/dist/vendor/bundle/ruby/2.3.0/gems/rdoc-4.2.0/test/MarkdownTest_1.0.3/Links’ cannot be found
error: File: ‘/hab/pkgs/megamio/ruby-rails-sample/0.0.1/20160829112156/dist/vendor/bundle/ruby/2.3.0/gems/rdoc-4.2.0/test/MarkdownTest_1.0.3/Links’ cannot be found
4.hab pkg export docker core/ruby-rails-sample
create the user and group for hab
sudo useradd hab -u 42 -g 42 -d / -s /bin/sh -r
sudo groupadd -og 42 hab
5.hab start core/ruby-rails-sample
when i was enter this command i got this error
init(PH): Running ‘rake bootstrap’ in /hab/svc/ruby-rails-sample/data/dist
init(PH): chpst: setgroups: Operation not permitted
hab-sup(PH)[src/package/hooks.rs:121:16]: Hook failed to run: init, 1, Failed.
then, i searched this error and i can change the plan.sh file add these two lines
pkg_svc_user=root
pkg_svc_group=root
but, its also gave the same results.