Disk quota exceeded error?

Hiya

I’m trying to create a container on three different storage volumes, two are zfs backed and one is dir backed but they are all coming back with the same error messages wierdly ? I’ve check the zfs size limits and it looks okay, i even tried resizing it.

root@server01:/home/jon# lxc launch ubuntu:18.04 test2 -n lxdbr99 -s dir1
Creating test2
Starting test2
Error: Failed to run: /snap/lxd/current/bin/lxd forkstart test2 /var/snap/lxd/common/lxd/containers /var/snap/lxd/common/lxd/logs/test2/lxc.conf: 
Try `lxc info --show-log local:test2` for more info
root@server01:/home/jon# lxc info --show-log local:test2
Name: test2
Location: none
Remote: unix://
Architecture: x86_64
Created: 2018/11/16 19:01 UTC
Status: Stopped
Type: persistent
Profiles: default

Log:

lxc test2 20181116190142.315 WARN     conf - conf.c:lxc_map_ids:2970 - newuidmap binary is missing
lxc test2 20181116190142.315 WARN     conf - conf.c:lxc_map_ids:2976 - newgidmap binary is missing
lxc test2 20181116190142.605 WARN     conf - conf.c:lxc_map_ids:2970 - newuidmap binary is missing
lxc test2 20181116190142.605 WARN     conf - conf.c:lxc_map_ids:2976 - newgidmap binary is missing
lxc test2 20181116190142.637 ERROR    utils - utils.c:lxc_setup_keyring:1809 - Disk quota exceeded - Failed to create kernel keyring
lxc test2 20181116190142.637 ERROR    start - start.c:do_start:1279 - Failed to setup container "test2"
lxc test2 20181116190142.637 ERROR    sync - sync.c:__sync_wait:62 - An error occurred in another process (expected sequence number 5)
lxc test2 20181116190142.637 WARN     network - network.c:lxc_delete_network_priv:2589 - Operation not permitted - Failed to remove interface "eth0" with index 56
lxc test2 20181116190142.637 ERROR    lxccontainer - lxccontainer.c:wait_on_daemonized_start:864 - Received container state "ABORTING" instead of "RUNNING"
lxc test2 20181116190142.642 ERROR    start - start.c:__lxc_start:1972 - Failed to spawn container "test2"
lxc test2 20181116190142.642 WARN     conf - conf.c:lxc_map_ids:2970 - newuidmap binary is missing
lxc test2 20181116190142.642 WARN     conf - conf.c:lxc_map_ids:2976 - newgidmap binary is missing
lxc 20181116190142.645 WARN     commands - commands.c:lxc_cmd_rsp_recv:132 - Connection reset by peer - Failed to receive response for command "get_state"

Any ideas?

It’s a keyring quota issue, you’re likely to hit this when you have about 200 containers.

We have it covered in the production-setup doc:
https://lxd.readthedocs.io/en/latest/production-setup/

@brauner reminder to make this non-fatal :slight_smile:

OK thanks :slight_smile: