2
one@onezero:~/juju$ juju bootstrap
2012-02-13 07:32:26,586 INFO Bootstrapping environment 'sample' (type: local)...
2012-02-13 07:32:26,587 INFO Checking for required packages...
2012-02-13 07:32:26,981 INFO Starting networking...
error: Failed to start network default
error: internal error Network is already in use by interface virbr0

Command '['virsh', 'net-start', 'default']' returned non-zero exit status 1
2012-02-13 07:32:27,248 ERROR Command '['virsh', 'net-start', 'default']' returned non-zero exit status 1

with sudo

one@onezero:~/juju$ sudo juju bootstrap
2012-02-13 07:34:18,504 INFO Bootstrapping environment 'sample' (type: local)...
2012-02-13 07:34:18,504 INFO Checking for required packages...
2012-02-13 07:34:18,894 INFO Starting networking...
2012-02-13 07:34:18,931 INFO Starting zookeeper...
[Errno 2] No such file or directory: '/etc/zookeeper/conf/environment'
2012-02-13 07:34:18,932 ERROR [Errno 2] No such file or directory: '/etc/zookeeper/conf/environment'

how do i fix this error ?

Jorge Castro
  • 73,717
One Zero
  • 27,761

1 Answers1

3

This happens because you're likely not a member of the libvirtd group. You can confirm this by running groups in the command-line. If libvirtd isn't in that list you'll need to do the following:

sudo usermod -a -G libvirtd <YOUR_USER>

Once you've added yourself to the group you can either log out/back in or just run:

newgrp libvirtd

This will set up that terminal session (and you user for that terminal session) to be a part of the libvirtd group. From here you should be able to run juju bootstrap.

One Zero
  • 27,761