[lxc-users] unable to start any container ("Permission denied - Failed to mount")

Tomasz Chmielewski tch at virtall.com
Mon Sep 24 13:27:12 UTC 2018


I'm not able to start any container today.

# lxc start preprod-app
Error: Failed to run: /snap/lxd/current/bin/lxd forkstart preprod-app 
/var/snap/lxd/common/lxd/containers 
/var/snap/lxd/common/lxd/logs/preprod-app/lxc.conf:
Try `lxc info --show-log preprod-app` for more info


# lxc info --show-log preprod-app
Name: preprod-app
Remote: unix://
Architecture: x86_64
Created: 2018/09/05 15:01 UTC
Status: Stopped
Type: persistent
Profiles: default

Log:

lxc preprod-app 20180924132438.883 WARN     conf - 
conf.c:lxc_map_ids:2917 - newuidmap binary is missing
lxc preprod-app 20180924132438.883 WARN     conf - 
conf.c:lxc_map_ids:2923 - newgidmap binary is missing
lxc preprod-app 20180924132438.887 WARN     conf - 
conf.c:lxc_map_ids:2917 - newuidmap binary is missing
lxc preprod-app 20180924132438.887 WARN     conf - 
conf.c:lxc_map_ids:2923 - newgidmap binary is missing
lxc preprod-app 20180924132438.917 ERROR    dir - 
storage/dir.c:dir_mount:195 - Permission denied - Failed to mount 
"/var/snap/lxd/common/lxd/containers/preprod-app/rootfs" on 
"/var/snap/lxd/common/lxc/"
lxc preprod-app 20180924132438.917 ERROR    conf - 
conf.c:lxc_mount_rootfs:1337 - Failed to mount rootfs 
"/var/snap/lxd/common/lxd/containers/preprod-app/rootfs" onto 
"/var/snap/lxd/common/lxc/" with options "(null)"
lxc preprod-app 20180924132438.917 ERROR    conf - 
conf.c:lxc_setup_rootfs_prepare_root:3446 - Failed to setup rootfs for
lxc preprod-app 20180924132438.917 ERROR    conf - conf.c:lxc_setup:3510 
- Failed to setup rootfs
lxc preprod-app 20180924132438.917 ERROR    start - 
start.c:do_start:1234 - Failed to setup container "preprod-app"
lxc preprod-app 20180924132438.918 ERROR    sync - sync.c:__sync_wait:59 
- An error occurred in another process (expected sequence number 5)
lxc preprod-app 20180924132439.235 ERROR    start - 
start.c:__lxc_start:1910 - Failed to spawn container "preprod-app"
lxc preprod-app 20180924132439.235 ERROR    lxccontainer - 
lxccontainer.c:wait_on_daemonized_start:840 - Received container state 
"ABORTING" instead of "RUNNING"
lxc preprod-app 20180924132439.963 WARN     conf - 
conf.c:lxc_map_ids:2917 - newuidmap binary is missing
lxc preprod-app 20180924132439.101 WARN     conf - 
conf.c:lxc_map_ids:2923 - newgidmap binary is missing
lxc 20180924132439.380 WARN     commands - 
commands.c:lxc_cmd_rsp_recv:130 - Connection reset by peer - Failed to 
receive response for command "get_state"


# snap list
Name  Version  Rev   Tracking  Publisher   Notes
core  16-2.35  5328  stable    canonical✓  core
lxd   3.5      8774  stable    canonical✓  -


This is on Ubuntu 18.04.


Tomasz Chmielewski
https://lxadm.com


More information about the lxc-users mailing list