LXD 3.0.3: Failed to create proxy devices listening on host port: Failed setns to container user namespace: Invalid argument

Hello @simos and @tomp,

thanks to both of you for replies.

@simos
In contrast to your experiment I worked with containers only when experiencing the problem and have not tried it with VMs yet.

Since server setup there have been quite some modifications to the initial configuration which I may not fully be aware of. But it seems to me that the error occurred after an system software update and not after making changes to LXD configuration.

What is the preferred way to migrate from DEB-package installation to the newer SNAP version?


@tomp
ss gives the following output, missing the ports listened on by the configured proxy devices:

➜  ~ sudo ss -tlpn
State  Recv-Q   Send-Q                           Local Address:Port      Peer Address:Port
LISTEN 0        32                                  10.73.42.1:53             0.0.0.0:*      users:(("dnsmasq",pid=2787,fd=7))
LISTEN 0        32                                   127.0.0.1:53             0.0.0.0:*      users:(("dnsmasq",pid=1783,fd=5))
LISTEN 0        32                                    10.0.3.1:53             0.0.0.0:*      users:(("dnsmasq",pid=1385,fd=7))
LISTEN 0        128                                    0.0.0.0:2233           0.0.0.0:*      users:(("sshd",pid=1750,fd=3))
LISTEN 0        128                             [WAN_IP_REDACTED]:8443           0.0.0.0:*      users:(("lxd",pid=2543,fd=22))
LISTEN 0        128                                  127.0.0.1:8125           0.0.0.0:*      users:(("netdata",pid=4383,fd=83))
LISTEN 0        128                                  127.0.0.1:8126           0.0.0.0:*      users:(("trace-agent",pid=1582,fd=8))
LISTEN 0        128                                    0.0.0.0:19999          0.0.0.0:*      users:(("netdata",pid=4383,fd=4))
LISTEN 0        128                                  127.0.0.1:5000           0.0.0.0:*      users:(("agent",pid=1581,fd=8))
LISTEN 0        128                                  127.0.0.1:5001           0.0.0.0:*      users:(("agent",pid=1581,fd=9))
LISTEN 0        128                                  127.0.0.1:6379           0.0.0.0:*      users:(("redis-server",pid=1731,fd=6))
LISTEN 0        128                                  127.0.0.1:6062           0.0.0.0:*      users:(("process-agent",pid=1626,fd=10))
LISTEN 0        32          [fe80::94d3:dfff:fe7f:2f81]%lxdbr0:53                [::]:*      users:(("dnsmasq",pid=2787,fd=9))
LISTEN 0        32                                       [::1]:53                [::]:*      users:(("dnsmasq",pid=1783,fd=7))
LISTEN 0        128                                       [::]:2233              [::]:*      users:(("sshd",pid=1750,fd=4))
LISTEN 0        128                                       [::]:19999             [::]:*      users:(("netdata",pid=4383,fd=5))
LISTEN 0        128                                      [::1]:6379              [::]:*      users:(("redis-server",pid=1731,fd=7))

Best regards,
Constantin