842 Received container state "ABORTING" instead of "RUNNING"

Hello! After this topic I’ve upgraded lxc and ubuntu version to these:

**aikawa@qyp-bionic** : **~** $ dpkg -s lxc

Package: lxc

Status: install ok installed

Priority: optional

Section: oldlibs

Installed-Size: 72

Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>

Architecture: all

Version: 3.0.3-0ubuntu1~18.04.1

Depends: lxc-utils (>= 3.0.3-0ubuntu1~18.04.1)

Description: Transitional package - lxc -> lxc-utils

This is a transitional dummy package. It can safely be removed.

.

lxc is now replaced by lxc-utils.

Homepage: https://linuxcontainers.org

But when i’m running

lxc-start -d -n MyContainer -f ~/.config/lxc/default.conf --logfile /var/log/lxc/lxc_conf.log

I get this:
lxc-start: MyContainer: lxccontainer.c: wait_on_daemonized_start: 842 Received container state "ABORTING" instead of "RUNNING"

lxc-start: MyContainer: tools/lxc_start.c: main: 330 The container failed to start

lxc-start: MyContainer: tools/lxc_start.c: main: 333 To get more details, run the container in foreground mode

lxc-start: MyContainer: tools/lxc_start.c: main: 336 Additional information can be obtained by setting the --logfile and --logpriority options

Could you help please to understand what to do next?
logfile contains

lxc-start MyContainer 20200725201957.144 ERROR    network - network.c:lxc_create_network_unpriv_exec:2178 - lxc-user-nic failed to configure requested network: Numerical result out of range - Failed to get group name: 20001
cmd/lxc_user_nic.c: 1296: main: Quota reached
lxc-start MyContainer 20200725201957.144 ERROR    start - start.c:lxc_spawn:1765 - Failed to create the configured network
lxc-start MyContainer 20200725201957.144 ERROR    lxccontainer - lxccontainer.c:wait_on_daemonized_start:842 - Received container state "ABORTING" instead of "RUNNING"
lxc-start MyContainer 20200725201957.144 ERROR    lxc_start - tools/lxc_start.c:main:330 - The container failed to start
lxc-start MyContainer 20200725201957.144 ERROR    lxc_start - tools/lxc_start.c:main:333 - To get more details, run the container in foreground mode
lxc-start MyContainer 20200725201957.144 ERROR    lxc_start - tools/lxc_start.c:main:336 - Additional information can be obtained by setting the --logfile and --logpriority options
lxc-start MyContainer 20200725201957.144 ERROR    start - start.c:__lxc_start:1939 - Failed to spawn container "MyContainer"

You need to assign network quota to your user in /etc/lxc/lxc-usernet for example mine looks like this:

# USERNAME TYPE BRIDGE COUNT                                                    
brauner veth lxdbr0 100                                                         
root veth lxdbr0 100     

I’ve added it but It doesn’t help:(

**aikawa@qyp-bionic** : **~** $ sudo vim /etc/lxc/lxc-usernet

# USERNAME TYPE BRIDGE COUNT

aikawa veth lxdbr0 100

root veth lxdbr0 100

my name and gid are:

aikawa@qyp-bionic:~$ id
uid=36524(aikawa) gid=68699 groups=68699(...),20001(...),21538(...),22825(...),23585(...),51291(...),85131(...),111468(...),111469(...)

I can’t understand why gid 20001 is mentioned here:

lxc-start MyContainer 20200725201957.144 ERROR    network - network.c:lxc_create_network_unpriv_exec:2178 - lxc-user-nic failed to configure requested network: Numerical result out of range - Failed to get group name: 20001

cmd/lxc_user_nic.c: 1296: main: Quota reached

I seem to remember issues with user/group ids overflowing which we fixed in LXC 4.0.x

I’ve found this one. Ok, I’ll try it

I just can’t install it%(
I’ve found this https://launchpad.net/~ubuntu-lxc/+archive/ubuntu/lxc-git-master

but adding repo returned that:

sudo add-apt-repository ppa:ubuntu-lxc/lxc-git-stable-4.0
Err:38 http://ppa.launchpad.net/ubuntu-lxc/lxc-git-stable-4.0/ubuntu bionic Release                                     
  404  Not Found [IP: 2001:67c:1560:8008::15 80]