Public bug reported:

Using Ubuntu Server 14.04 (64bits) with repository:
http://ppa.launchpad.net/ubuntu-lxc/lxd-stable/ubuntu trusty main

lxd version: 2.2-0ubuntu1~ubuntu14.04.1~ppa1 (also tried:
2.0.3-0ubuntu2~ubuntu14.04.1)

During installation it gets stuck at:

Processing triggers for ureadahead (0.100.0-16) ...
Setting up liblxc1 (2.0.4-0ubuntu3~ubuntu14.04.1~ppa1) ...
Setting up lxd (2.2-0ubuntu1~ubuntu14.04.1~ppa1) ...

If I stop the service, the installation finishes.

However, starting with: `service lxd start` fails (gets stuck).

Trying to start lxd with:

lxd --group lxd --verbose --debug

Returns:

INFO[09-23|13:45:51] LXD is starting in setup mode            path=/var/lib/lxd
WARN[09-23|13:45:51] Couldn't find the CGroup network class controller, network 
limits will be ignored.
WARN[09-23|13:45:51] Couldn't find the CGroup pids controller, process limits 
will be ignored.
WARN[09-23|13:45:51] CGroup memory swap accounting is disabled, swap limits 
will be ignored.
INFO[09-23|13:45:51] Default uid/gid map:
INFO[09-23|13:45:51]  - u 0 19695264 65536
INFO[09-23|13:45:51]  - g 0 19695264 65536
INFO[09-23|13:45:51] Init                                     driver=storage/dir
INFO[09-23|13:45:51] Looking for existing certificates        
cert=/var/lib/lxd/server.crt key=/var/lib/lxd/server.key
DBUG[09-23|13:45:51] Expiring log files
DBUG[09-23|13:45:51] Done expiring log files
INFO[09-23|13:45:51] LXD isn't socket activated
DBUG[09-23|13:45:51] Detected stale unix socket, deleting
error: failed group lookup: numerical result out of range

`grep "lx" /etc/group` returns:

lxc-dnsmasq:x:126:
lxd:x:127:sudo_user

If I start it this way: `lxd --auto` it works (except it doesn't bring
up the network interface).

If I reconfigure the package (which will ask for several questions, as
interface name, network, etc), lxdbr0 is up and running but the problem
is not solved.

I tried to run `lxd`, and then `lxd init`. This is as far as I got:

Name of the storage backend to use (dir or zfs) [default=dir]:
Would you like LXD to be available over the network (yes/no) [default=no]?
Would you like stale cached images to be updated automatically? (yes/no) 
[default=yes]?
Do you want to configure the LXD bridge (yes/no) [default=yes]?
start: Job failed to start
invoke-rc.d: initscript lxd, action "start" failed.
error: Failed to configure the bridge

** Affects: lxd (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

- Using Ubuntu Server 14.04 with repository: 
+ Using Ubuntu Server 14.04 (64bits) with repository:
  http://ppa.launchpad.net/ubuntu-lxc/lxd-stable/ubuntu trusty main
  
  lxd version: 2.2-0ubuntu1~ubuntu14.04.1~ppa1 (also tried:
  2.0.3-0ubuntu2~ubuntu14.04.1)
  
  During installation it gets stuck at:
  
  Processing triggers for ureadahead (0.100.0-16) ...
  Setting up liblxc1 (2.0.4-0ubuntu3~ubuntu14.04.1~ppa1) ...
  Setting up lxd (2.2-0ubuntu1~ubuntu14.04.1~ppa1) ...
  
  If I stop the service, the installation finishes.
  
  However, starting with: `service lxd start` fails (gets stuck).
  
  Trying to start lxd with:
  
  lxd --group lxd --verbose --debug
  
  Returns:
  
  INFO[09-23|13:45:51] LXD is starting in setup mode            
path=/var/lib/lxd
- WARN[09-23|13:45:51] Couldn't find the CGroup network class controller, 
network limits will be ignored. 
- WARN[09-23|13:45:51] Couldn't find the CGroup pids controller, process limits 
will be ignored. 
- WARN[09-23|13:45:51] CGroup memory swap accounting is disabled, swap limits 
will be ignored. 
- INFO[09-23|13:45:51] Default uid/gid map: 
- INFO[09-23|13:45:51]  - u 0 19695264 65536 
- INFO[09-23|13:45:51]  - g 0 19695264 65536 
+ WARN[09-23|13:45:51] Couldn't find the CGroup network class controller, 
network limits will be ignored.
+ WARN[09-23|13:45:51] Couldn't find the CGroup pids controller, process limits 
will be ignored.
+ WARN[09-23|13:45:51] CGroup memory swap accounting is disabled, swap limits 
will be ignored.
+ INFO[09-23|13:45:51] Default uid/gid map:
+ INFO[09-23|13:45:51]  - u 0 19695264 65536
+ INFO[09-23|13:45:51]  - g 0 19695264 65536
  INFO[09-23|13:45:51] Init                                     
driver=storage/dir
  INFO[09-23|13:45:51] Looking for existing certificates        
cert=/var/lib/lxd/server.crt key=/var/lib/lxd/server.key
- DBUG[09-23|13:45:51] Expiring log files 
- DBUG[09-23|13:45:51] Done expiring log files 
- INFO[09-23|13:45:51] LXD isn't socket activated 
+ DBUG[09-23|13:45:51] Expiring log files
+ DBUG[09-23|13:45:51] Done expiring log files
+ INFO[09-23|13:45:51] LXD isn't socket activated
  DBUG[09-23|13:45:51] Detected stale unix socket, deleting
  error: failed group lookup: numerical result out of range
  
  `grep "lx" /etc/group` returns:
  
  lxc-dnsmasq:x:126:
  lxd:x:127:sudo_user
  
  If I start it this way: `lxd --auto` it works (except it doesn't bring
  up the network interface).
  
  If I reconfigure the package (which will ask for several questions, as
  interface name, network, etc), lxdbr0 is up and running (but goes down
  with the previous command).
  
  I tried to run `lxd`, and then `lxd init`. These is as far as I got:
  
- Name of the storage backend to use (dir or zfs) [default=dir]: 
- Would you like LXD to be available over the network (yes/no) [default=no]? 
- Would you like stale cached images to be updated automatically? (yes/no) 
[default=yes]? 
- Do you want to configure the LXD bridge (yes/no) [default=yes]? 
+ Name of the storage backend to use (dir or zfs) [default=dir]:
+ Would you like LXD to be available over the network (yes/no) [default=no]?
+ Would you like stale cached images to be updated automatically? (yes/no) 
[default=yes]?
+ Do you want to configure the LXD bridge (yes/no) [default=yes]?
  start: Job failed to start
  invoke-rc.d: initscript lxd, action "start" failed.
  error: Failed to configure the bridge

** Description changed:

  Using Ubuntu Server 14.04 (64bits) with repository:
  http://ppa.launchpad.net/ubuntu-lxc/lxd-stable/ubuntu trusty main
  
  lxd version: 2.2-0ubuntu1~ubuntu14.04.1~ppa1 (also tried:
  2.0.3-0ubuntu2~ubuntu14.04.1)
  
  During installation it gets stuck at:
  
  Processing triggers for ureadahead (0.100.0-16) ...
  Setting up liblxc1 (2.0.4-0ubuntu3~ubuntu14.04.1~ppa1) ...
  Setting up lxd (2.2-0ubuntu1~ubuntu14.04.1~ppa1) ...
  
  If I stop the service, the installation finishes.
  
  However, starting with: `service lxd start` fails (gets stuck).
  
  Trying to start lxd with:
  
  lxd --group lxd --verbose --debug
  
  Returns:
  
  INFO[09-23|13:45:51] LXD is starting in setup mode            
path=/var/lib/lxd
  WARN[09-23|13:45:51] Couldn't find the CGroup network class controller, 
network limits will be ignored.
  WARN[09-23|13:45:51] Couldn't find the CGroup pids controller, process limits 
will be ignored.
  WARN[09-23|13:45:51] CGroup memory swap accounting is disabled, swap limits 
will be ignored.
  INFO[09-23|13:45:51] Default uid/gid map:
  INFO[09-23|13:45:51]  - u 0 19695264 65536
  INFO[09-23|13:45:51]  - g 0 19695264 65536
  INFO[09-23|13:45:51] Init                                     
driver=storage/dir
  INFO[09-23|13:45:51] Looking for existing certificates        
cert=/var/lib/lxd/server.crt key=/var/lib/lxd/server.key
  DBUG[09-23|13:45:51] Expiring log files
  DBUG[09-23|13:45:51] Done expiring log files
  INFO[09-23|13:45:51] LXD isn't socket activated
  DBUG[09-23|13:45:51] Detected stale unix socket, deleting
  error: failed group lookup: numerical result out of range
  
  `grep "lx" /etc/group` returns:
  
  lxc-dnsmasq:x:126:
  lxd:x:127:sudo_user
  
  If I start it this way: `lxd --auto` it works (except it doesn't bring
  up the network interface).
  
  If I reconfigure the package (which will ask for several questions, as
- interface name, network, etc), lxdbr0 is up and running (but goes down
- with the previous command).
+ interface name, network, etc), lxdbr0 is up and running but the problem
+ is not solved.
  
- I tried to run `lxd`, and then `lxd init`. These is as far as I got:
+ I tried to run `lxd`, and then `lxd init`. This is as far as I got:
  
  Name of the storage backend to use (dir or zfs) [default=dir]:
  Would you like LXD to be available over the network (yes/no) [default=no]?
  Would you like stale cached images to be updated automatically? (yes/no) 
[default=yes]?
  Do you want to configure the LXD bridge (yes/no) [default=yes]?
  start: Job failed to start
  invoke-rc.d: initscript lxd, action "start" failed.
  error: Failed to configure the bridge

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1626836

Title:
  lxd fails to start with error: failed group lookup: numerical result
  out of range

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1626836/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to