Openvpn-as server can't start

I deployed the container and did all config mentioned on the dos page. But when I want to start the server, I get:

process started and then immediately exited: ['Mon Oct 28 20:48:13 2019 ERROR: Cannot open TUN/TAP dev /dev/net/tun: No such device (errno=19)']
service failed to start or returned error status

docker-compose

version: '3'

services:
  openvpn-as:
    image: linuxserver/openvpn-as
    restart: unless-stopped
    ports:
      - 943:943
      - 9443:9443
      - 1194:1194/udp
    networks:
      - web
    cap_add:
      - NET_ADMIN
    volumes:
      - /volume1/docker/openvpn:/config
    environment:
      - TZ=Europe/Brussels
      - PGID=100
      - PUID=1028
      - INTERFACE=eth0
    container_name: openvpn-as

networks:
  web:
    external: true

Post a full docker log

Nothing appears in the docker logs. The container is running fine, but the vpn server can’t start.

2019-10-29T23:01:30+0100 [stdout#info] OVPN 6 ERR: ‘Tue Oct 29 23:01:30 2019 ERROR: Cannot open TUN/TAP dev /dev/net/tun: No such device (errno=19)’
2019-10-29T23:01:30+0100 [stdout#info] License Info {‘apc’: False, ‘concurrent_connections’: 2}
2019-10-29T23:01:30+0100 [-] OMIServerAuthFactory starting on ‘/openvpn/sock/omisock-0BaMR91VcELN’
2019-10-29T23:01:30+0100 [pyovpn.omi.omiauth.OMIServerAuthFactory#info] Starting factory <pyovpn.omi.omiauth.OMIServerAuthFactory object at 0x7f5aecd1ca90>
2019-10-29T23:01:30+0100 [stdout#info] [OVPN 7] OUT: ‘Tue Oct 29 23:01:30 2019 DEPRECATED OPTION: --no-name-remapping, please update your configuration. This will be removed in OpenVPN 2.5.’
2019-10-29T23:01:30+0100 [stdout#info] [OVPN 7] OUT: ‘Tue Oct 29 23:01:30 2019 OpenVPN 2.4.7as2 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Aug 8 2019’
2019-10-29T23:01:30+0100 [stdout#info] [OVPN 7] OUT: ‘Tue Oct 29 23:01:30 2019 library versions: OpenSSL 1.0.2r 26 Feb 2019, LZO 2.08’
2019-10-29T23:01:30+0100 [stdout#info] [OVPN 7] OUT: ‘Tue Oct 29 23:01:30 2019 MANAGEMENT: client_uid=0’
2019-10-29T23:01:30+0100 [stdout#info] [OVPN 7] OUT: ‘Tue Oct 29 23:01:30 2019 MANAGEMENT: Connected to management server at /openvpn/sock/omisock-0BaMR91VcELN’
2019-10-29T23:01:30+0100 [-] (UNIX Port /openvpn/sock/omisock-0BaMR91VcELN Closed)
2019-10-29T23:01:30+0100 [pyovpn.omi.omiauth.OMIServerAuthFactory#info] Stopping factory <pyovpn.omi.omiauth.OMIServerAuthFactory object at 0x7f5aecd1ca90>
2019-10-29T23:01:30+0100 [stdout#info] [OVPN 7] OUT: “Tue Oct 29 23:01:30 2019 MANAGEMENT: CMD ‘state on’”
2019-10-29T23:01:30+0100 [stdout#info] [OVPN 7] OUT: “Tue Oct 29 23:01:30 2019 MANAGEMENT: CMD ‘echo on’”
2019-10-29T23:01:30+0100 [stdout#info] [OVPN 7] OUT: “Tue Oct 29 23:01:30 2019 MANAGEMENT: CMD ‘bytecount 300’”
2019-10-29T23:01:30+0100 [stdout#info] [OVPN 7] OUT: “Tue Oct 29 23:01:30 2019 MANAGEMENT: CMD ‘env-filter 1’”
2019-10-29T23:01:30+0100 [stdout#info] [OVPN 7] OUT: “Tue Oct 29 23:01:30 2019 MANAGEMENT: CMD ‘hold off’”
2019-10-29T23:01:30+0100 [stdout#info] [OVPN 7] OUT: “Tue Oct 29 23:01:30 2019 MANAGEMENT: CMD ‘hold release’”
2019-10-29T23:01:30+0100 [stdout#info] [OVPN 7] OUT: ‘Tue Oct 29 23:01:30 2019 WARNING: --ns-cert-type is DEPRECATED. Use --remote-cert-tls instead.’
2019-10-29T23:01:30+0100 [stdout#info] [OVPN 7] OUT: ‘Tue Oct 29 23:01:30 2019 Initializing OpenSSL auto engine support’
2019-10-29T23:01:30+0100 [stdout#info] [OVPN 7] OUT: ‘Tue Oct 29 23:01:30 2019 Diffie-Hellman initialized with 2048 bit key’
2019-10-29T23:01:30+0100 [stdout#info] [OVPN 7] OUT: “Tue Oct 29 23:01:30 2019 Outgoing Control Channel Authentication: Using 160 bit message hash ‘SHA1’ for HMAC authentication”
2019-10-29T23:01:30+0100 [stdout#info] [OVPN 7] OUT: “Tue Oct 29 23:01:30 2019 Incoming Control Channel Authentication: Using 160 bit message hash ‘SHA1’ for HMAC authentication”
2019-10-29T23:01:30+0100 [stdout#info] [OVPN 7] OUT: “Tue Oct 29 23:01:30 2019 auth-token secret: Using 256 bit message hash ‘SHA256’ for HMAC authentication”
2019-10-29T23:01:30+0100 [stdout#info] [OVPN 7] OUT: ‘Tue Oct 29 23:01:30 2019 MANAGEMENT: Client disconnected’
2019-10-29T23:01:30+0100 [stdout#info] [OVPN 7] OUT: ‘Tue Oct 29 23:01:30 2019 Exiting due to fatal error’
2019-10-29T23:01:30+0100 [stdout#info] OVPN 7 ERR: ‘Tue Oct 29 23:01:30 2019 ERROR: Cannot open TUN/TAP dev /dev/net/tun: No such device (errno=19)’
2019-10-29T23:01:30+0100 [twisted.python.log#info] “-” - - [29/Oct/2019:22:01:30 +0000] “POST /RPC2 HTTP/1.0” 200 6319 “-” “Twisted/XMLRPClib”
2019-10-29T23:01:31+0100 [stdout#info] [WEB] OUT: ‘2019-10-29T23:01:31+0100 [pyovpn.xml.udscli.UDSProxyQueryFactory#info] Starting factory <pyovpn.xml.udscli.UDSProxyQueryFactory instance at 0x7f133c370cf8>’
2019-10-29T23:01:31+0100 [stdout#info] [WEB] OUT: ‘2019-10-29T23:01:31+0100 [pyovpn.xml.udscli.UDSProxyQueryFactory#info] Stopping factory <pyovpn.xml.udscli.UDSProxyQueryFactory instance at 0x7f133c3b7998>’
2019-10-29T23:01:31+0100 [twisted.python.log#info] “-” - - [29/Oct/2019:22:01:30 +0000] “POST /RPC2 HTTP/1.0” 200 197 “-” “Twisted/XMLRPClib”
2019-10-29T23:01:31+0100 [stdout#info] [WEB] OUT: ‘2019-10-29T23:01:31+0100 [stdout#info] [Tag(‘div’, children=[“process started and then immediately exited: [‘Tue Oct 29 23:01:30 2019 ERROR: Cannot open TUN/TAP dev /dev/net/tun: No such device (errno=19)’]”]), Tag(‘div’, children=[‘service failed to start or returned error status’]), Tag(‘div’, children=[“process started and then immediately exited: [‘Tue Oct 29 23:01:30 2019 ERROR: Cannot open TUN/TAP dev /dev/net/tun: No such device (errno=19)’]”]), Tag(‘div’, children=[‘service failed to start or returned error status’]), Tag(‘div’, children=[“process started and then immediately exited: [‘Tue Oct 29 23:01:30 2019 ERROR: Cannot open TUN/TAP dev /dev/net/tun: No such device (errno=19)’]”]), Tag(‘div’, children=[‘service failed to start or returned error status’]), Tag(‘div’, children=[“process started and then immediately exited: [‘Tue Oct 29 23:01:30 2019 ERROR: Cannot open TUN/TAP dev /dev/net/tun: No such device (errno=19)’]”]), Tag(‘div’, children=[‘service failed to start or returned error status’]), Tag(‘div’, children=[“process started and then immediately exited: [‘Tue Oct 29 23:01:30 2019 ERROR: Cannot open TUN/TAP dev /dev/net/tun: No such device (errno=19)’]”]), Tag(‘div’, children=[‘service failed to start or returned error status’]), Tag(‘div’, children=[“process started and then immediately exited: [‘Tue Oct 29 23:01:30 2019 ERROR: Cannot open TUN/TAP dev /dev/net/tun: No such device (errno=19)’]”]), Tag(‘div’, children=[‘service failed to start or returned error status’]), Tag(‘div’, children=[“process started and then immediately exited: [‘Tue Oct 29 23:01:30 2019 ERROR: Cannot open TUN/TAP dev /dev/net/tun: No such device (errno=19)’]”]), Tag(‘div’, children=[‘service failed to start or returned error status’]), Tag(‘div’, children=[“process started and then immediately exited: [‘Tue Oct 29 23:01:30 2019 ERROR: Cannot open TUN/TAP dev /dev/net/tun: No such device (errno=19)’]”]), Tag(‘div’, children=[‘service failed to start or returned error status’])]’