binhex / arch-delugevpn

Docker build script for Arch Linux base with Deluge, Privoxy and OpenVPN
GNU General Public License v3.0
695 stars 112 forks source link

Error when starting the Docker container #343

Closed pharpe closed 1 year ago

pharpe commented 1 year ago

I am trying to run this Docker container with PIA using Wireguard and I am getting this error:

Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: unable to apply caps: operation not permitted: unknown
Error: failed to start containers: delugevpn

Running this on Ubuntu 20.04.5 LTS running in a LXC It is creating deluge directory with config and data sub directories but there are no files or logs.
Running docker logs delugevpnbring back nothing.

My docker run:

docker run -d \
    --sysctl="net.ipv4.conf.all.src_valid_mark=1" \
    --privileged=true \
    -p 8112:8112 \
    -p 8118:8118 \
    -p 58846:58846 \
    -p 58946:58946 \
    --name=delugevpn \
    -v /mnt/storage/config/deluge/data:/data \
    -v /mnt/storage/config/deluge/config:/config \
    -v /etc/localtime:/etc/localtime:ro \
    -e VPN_ENABLED=yes \
    -e VPN_USER=xxxxxxxxxxxxx\
    -e VPN_PASS=xxxxxxxxxxxxxxxxxx \
    -e VPN_PROV=pia \
    -e VPN_CLIENT=wireguard \
    -e STRICT_PORT_FORWARD=yes \
    -e ENABLE_PRIVOXY=yes \
    -e LAN_NETWORK=192.168.1.0/24 \
    -e NAME_SERVERS=84.200.69.80,37.235.1.174,1.1.1.1,37.235.1.177,84.200.70.40,1.0.0.1 \
    -e DELUGE_DAEMON_LOG_LEVEL=info \
    -e DELUGE_WEB_LOG_LEVEL=info \
    -e VPN_INPUT_PORTS=1543 \
    -e VPN_OUTPUT_PORTS=5645 \
    -e DEBUG=true \
    -e UMASK=000 \
    -e PUID=1000 \
    -e PGID=1000 \
    binhex/arch-delugevpn
pharpe commented 1 year ago

I figured it out. It was a Proxmox container issue. I had to add the following lines to the LXC conf file. /etc/pve/lxc/xxx.conf

lxc.apparmor.profile: unconfined
lxc.cgroup2.devices.allow: a
lxc.cap.drop:

Went down quite a rabbit hole to find that. Hope it helps someone in the future.