Closed just-doks closed 1 year ago
@just-doks that seems very similar to a known issue with Mullvad and PIA VPN clients, please see https://documentation.ubuntu.com/lxd/en/latest/faq/#why-does-starting-containers-suddenly-fail for a workaround. If the workaround doesn't work, please re-open the issue.
@simondeziel unfortunately, it works until reboot. It's not a solution, but a one-time method. How to fix this completely? I removed iVPN app, but the problem persists. I don't understand mechanisms of cgroup or vpn app, I have no idea what's happening inside system, should I remove some service that mounts something or should I delete some hidden app? Is there a better solution other than "make systemd unit"? If clean system works fine, then there must be something we can change without on-boot services, total OS reinstalling and avoiding vpn clients.
Damn it ok, I found that removing the iVPN package did not remove the systemd service, so I removed it and LXD containers started running after reboots. But this was not said anywhere. And I'm still losing my VPN client. At least now I understand how to roll back the problem entirely. I'll try to apply the advice for mullvad to my client. But this is nonsense that under Linux everyone must be a programmer and correct the system files of programs so that they work with each other. Is there anything You (LXD maintainers) can change in LXD to avoid this issue for all VPN clients?
@simondeziel I followed all steps from linuxcontainers forum's topic but it doesn't work. Also, deleting systemd unit was completely wrong idea as reinstalling vpn app doesn't return it. Where's re-open issue
button?
Required information
Issue description
After I followed all steps to install iVPN app on Debian (website link below, steps copied below), LXD containers no longer start, and giving an error (demo below).
iVPN link
Even if this app is full of crap, I want to know why it breaks only LXD containers? Is it LXD issue or iVPN really aims to destroy LXD? Is it not safe to use iVPN app?
Removing and reinstalling LXD or removing iVPN and it's installation files don't fix the damage. Only total OS reinstall.
Steps to reproduce
sudo apt install lxd
;sudo apt install btrfs-progs
;sudo lxd init
command;sudo lxd launch images:debian/12 <container_name>
;sudo lxc stop <container_name>
;sudo lxc start <container_name>
;Information to attach
iVPN steps for Debian install:
Add IVPN's GPG key
curl -fsSL https://repo.ivpn.net/stable/debian/generic.gpg | gpg --dearmor > ~/ivpn-archive-keyring.gpg
sudo mv ~/ivpn-archive-keyring.gpg /usr/share/keyrings/ivpn-archive-keyring.gpg
Set Appropriate Permissions for GPG key
sudo chown root:root /usr/share/keyrings/ivpn-archive-keyring.gpg && sudo chmod 644 /usr/share/keyrings/ivpn-archive-keyring.gpg
Add the IVPN repository
curl -fsSL https://repo.ivpn.net/stable/debian/generic.list | sudo tee /etc/apt/sources.list.d/ivpn.list
Set Appropriate Permissions for Repository
sudo chown root:root /etc/apt/sources.list.d/ivpn.list && sudo chmod 644 /etc/apt/sources.list.d/ivpn.list
Update APT repo info
sudo apt update
To install IVPN software (CLI and UI)
sudo apt install ivpn-ui
Container log (
sudo lxc info --show-log deb-c1
output):Log:
lxc deb-c1 20230923085712.134 ERROR cgfsng - ../src/lxc/cgroups/cgfsng.c:cgfsng_mount:2139 - No such file or directory - Failed to create cgroup at_mnt 24() lxc deb-c1 20230923085712.134 ERROR conf - ../src/lxc/conf.c:lxc_mount_auto_mounts:852 - No such file or directory - Failed to mount "/sys/fs/cgroup" lxc deb-c1 20230923085712.134 ERROR conf - ../src/lxc/conf.c:lxc_setup:4433 - Failed to setup remaining automatic mounts lxc deb-c1 20230923085712.134 ERROR start - ../src/lxc/start.c:do_start:1272 - Failed to setup container "deb-c1" lxc deb-c1 20230923085712.134 ERROR sync - ../src/lxc/sync.c:sync_wait:34 - An error occurred in another process (expected sequence number 4) lxc deb-c1 20230923085712.144 WARN network - ../src/lxc/network.c:lxc_delete_network_priv:3631 - Failed to rename interface with index 0 from "eth0" to its initial name "vethcd714ea5" lxc deb-c1 20230923085712.144 ERROR lxccontainer - ../src/lxc/lxccontainer.c:wait_on_daemonized_start:878 - Received container state "ABORTING" instead of "RUNNING" lxc deb-c1 20230923085712.144 ERROR start - ../src/lxc/start.c:__lxc_start:2107 - Failed to spawn container "deb-c1" lxc deb-c1 20230923085712.144 WARN start - ../src/lxc/start.c:lxc_abort:1036 - No such process - Failed to send SIGKILL via pidfd 19 for process 2541 lxc 20230923085717.264 ERROR af_unix - ../src/lxc/af_unix.c:lxc_abstract_unix_recv_fds_iov:218 - Connection reset by peer - Failed to receive response lxc 20230923085717.264 ERROR commands - ../src/lxc/commands.c:lxc_cmd_rsp_recv_fds:128 - Failed to receive file descriptors for command "get_state"
Container configuration (
lxc config show NAME --expanded
)Main daemon log (at /var/log/lxd/lxd.log or /var/snap/lxd/common/lxd/logs/lxd.log)
lxd.log