alpine-qbittorrent-openvpn icon indicating copy to clipboard operation
alpine-qbittorrent-openvpn copied to clipboard

bug - container randomly crashing.

Open usman-u opened this issue 2 years ago • 2 comments

Information

The container launches fine, but crashes when I upload a torrent file, and randomly during dowloads.

Downloading using a magnet link works, however, the download speed is also quite slow (1-2MB/s). Without the VPN, I can reach my full download speeds (45 MB/s) .

I don't think the port is actually being forwarded (the 57883 port the logs matches the port in the GUI settings).

alpine-qbit                   | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
alpine-qbit                   | [s6-init] ensuring user provided files have correct perms...exited 0.
alpine-qbit                   | [fix-attrs.d] applying ownership & permissions fixes...
alpine-qbit                   | [fix-attrs.d] done.
alpine-qbit                   | [cont-init.d] executing container initialization scripts...
alpine-qbit                   | [cont-init.d] 01-setup-permissions: executing...
alpine-qbit                   | [cont-init.d] 01-setup-permissions: exited 0.
alpine-qbit                   | [cont-init.d] 02-setup-openvpn: executing...
alpine-qbit                   | 2021-10-29 18:13:21 TUN/TAP device tun0 opened
alpine-qbit                   | 2021-10-29 18:13:21 Persist state set to: ON
alpine-qbit                   | INFO: Trying to use OpenVPN provider: PIA
alpine-qbit                   | A    pia
alpine-qbit                   | A    pia/configure-openvpn.sh
alpine-qbit                   | A    pia/update-port.sh
alpine-qbit                   | Exported revision 1273.
alpine-qbit                   | Provider PIA has a custom startup script, executing it
alpine-qbit                   | Downloading OpenVPN config bundle openvpn into temporary file /tmp/tmp.FLLiPJ
alpine-qbit                   | Extract OpenVPN config bundle into PIA directory /etc/openvpn/pia
alpine-qbit                   | INFO: Found OpenVPN configuration: "uk_london" for provider "PIA" using it
alpine-qbit                   | [cont-init.d] 02-setup-openvpn: exited 0.
alpine-qbit                   | [cont-init.d] 03-setup-iptables: executing...
alpine-qbit                   | [cont-init.d] 03-setup-iptables: exited 0.
alpine-qbit                   | [cont-init.d] done.
alpine-qbit                   | [services.d] starting services
alpine-qbit                   | [services.d] done.
alpine-qbit                   | 2021-10-29 18:13:23 DEPRECATED OPTION: --cipher set to 'aes-128-cbc' but missing in --data-ciphers (AES-256-GCM:AES-128-GCM). Future OpenVPN version will ignore --cipher for cipher negotiations. Add 'aes-128-cbc' to --data-ciphers or change --cipher 'aes-128-cbc' to --data-ciphers-fallback 'aes-128-cbc' to silence this warning.
alpine-qbit                   | 2021-10-29 18:13:23 OpenVPN 2.5.2 armv7-alpine-linux-musleabihf [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on May  4 2021
alpine-qbit                   | 2021-10-29 18:13:23 library versions: OpenSSL 1.1.1l  24 Aug 2021, LZO 2.10
alpine-qbit                   | 2021-10-29 18:13:23 CRL: loaded 1 CRLs from file -----BEGIN X509 CRL-----
alpine-qbit                   | MIICWDCCAUAwDQYJKoZIhvcNAQENBQAwgegxCzAJBgNVBAYTAlVTMQswCQYDVQQI
alpine-qbit                   | EwJDQTETMBEGA1UEBxMKTG9zQW5nZWxlczEgMB4GA1UEChMXUHJpdmF0ZSBJbnRl
alpine-qbit                   | cm5ldCBBY2Nlc3MxIDAeBgNVBAsTF1ByaXZhdGUgSW50ZXJuZXQgQWNjZXNzMSAw
alpine-qbit                   | HgYDVQQDExdQcml2YXRlIEludGVybmV0IEFjY2VzczEgMB4GA1UEKRMXUHJpdmF0
alpine-qbit                   | ZSBJbnRlcm5ldCBBY2Nlc3MxLzAtBgkqhkiG9w0BCQEWIHNlY3VyZUBwcml2YXRl
alpine-qbit                   | aW50ZXJuZXRhY2Nlc3MuY29tFw0xNjA3MDgxOTAwNDZaFw0zNjA3MDMxOTAwNDZa
alpine-qbit                   | MCYwEQIBARcMMTYwNzA4MTkwMDQ2MBECAQYXDDE2MDcwODE5MDA0NjANBgkqhkiG
alpine-qbit                   | 9w0BAQ0FAAOCAQEAQZo9X97ci8EcPYu/uK2HB152OZbeZCINmYyluLDOdcSvg6B5
alpine-qbit                   | jI+ffKN3laDvczsG6CxmY3jNyc79XVpEYUnq4rT3FfveW1+Ralf+Vf38HdpwB8EW
alpine-qbit                   | B4hZlQ205+21CALLvZvR8HcPxC9KEnev1mU46wkTiov0EKc+EdRxkj5yMgv0V2Re
alpine-qbit                   | ze7AP+NQ9ykvDScH4eYCsmufNpIjBLhpLE2cuZZXBLcPhuRzVoU3l7A9lvzG9mjA
alpine-qbit                   | 5YijHJGHNjlWFqyrn1CfYS6koa4TGEPngBoAziWRbDGdhEgJABHrpoaFYaL61zqy
alpine-qbit                   | MR6jC0K2ps9qyZAN74LEBedEfK7tBOzWMwr58A==
alpine-qbit                   | -----END X509 CRL-----
alpine-qbit                   |
alpine-qbit                   | 2021-10-29 18:13:23 TCP/UDP: Preserving recently used remote address: [AF_INET]181.215.176.72:1198
alpine-qbit                   | 2021-10-29 18:13:23 UDP link local: (not bound)
alpine-qbit                   | 2021-10-29 18:13:23 UDP link remote: [AF_INET]181.215.176.72:1198
alpine-qbit                   | 2021-10-29 18:13:24 [london410] Peer Connection Initiated with [AF_INET]181.215.176.72:1198
alpine-qbit                   | 2021-10-29 18:13:24 WARNING: You have specified redirect-gateway and redirect-private at the same time (or the same option multiple times). This is not well supported and may lead to unexpected results
alpine-qbit                   | 2021-10-29 18:13:24 sitnl_send: rtnl: generic error (-101): Network unreachable
alpine-qbit                   | 2021-10-29 18:13:24 TUN/TAP device tun1 opened
alpine-qbit                   | 2021-10-29 18:13:24 /usr/sbin/ip-su link set dev tun1 up mtu 1500
alpine-qbit                   | 2021-10-29 18:13:24 /usr/sbin/ip-su link set dev tun1 up
alpine-qbit                   | 2021-10-29 18:13:24 /usr/sbin/ip-su addr add dev tun1 10.7.112.134/24
alpine-qbit                   | 2021-10-29 18:13:24 WARNING: OpenVPN was configured to add an IPv6 route. However, no IPv6 has been configured for tun1, therefore the route installation may fail or may not work as expected.
alpine-qbit                   | 2021-10-29 18:13:24 add_route_ipv6(2000::/3 -> :: metric -1) dev tun1
alpine-qbit                   | RTNETLINK answers: Permission denied
alpine-qbit                   | 2021-10-29 18:13:24 ERROR: Linux route -6 add command failed: external program exited with error status: 2
alpine-qbit                   | 2021-10-29 18:13:24 Initialization Sequence Completed
alpine-qbit                   | INFO: configuring port forwarding for PIA
alpine-qbit                   |
alpine-qbit                   |
alpine-qbit                   |
alpine-qbit                   | curl: (3) URL using bad/illegal format or missing URL
alpine-qbit                   | port is 57883
alpine-qbit                   | curl: (3) URL using bad/illegal format or missing URL
alpine-qbit                   | the port has been bound to 57883  Fri Oct 29 18:13:25 BST 2021
alpine-qbit                   | Got new port 57883 from PIA
alpine-qbit                   |
alpine-qbit                   | ******** Information ********
alpine-qbit                   | To control qBittorrent, access the Web UI at http://localhost:8080
alpine-qbit                   | bool Http::RequestParser::parsePostMessage(const QByteArray&) unknown content type: "application/x-binary"
alpine-qbit                   | Http::RequestParser::ParseResult Http::RequestParser::doParse(const QByteArray&) message body parsing error
alpine-qbit                   | bool Http::RequestParser::parsePostMessage(const QByteArray&) unknown content type: "application/x-binary"
alpine-qbit                   | Http::RequestParser::ParseResult Http::RequestParser::doParse(const QByteArray&) message body parsing error
alpine-qbit                   | bool Http::RequestParser::parsePostMessage(const QByteArray&) unknown content type: "application/x-binary"
alpine-qbit                   | Http::RequestParser::ParseResult Http::RequestParser::doParse(const QByteArray&) message body parsing error
alpine-qbit                   | bool Http::RequestParser::parsePostMessage(const QByteArray&) unknown content type: "application/x-binary"
alpine-qbit                   | Http::RequestParser::ParseResult Http::RequestParser::doParse(const QByteArray&) message body parsing error
alpine-qbit                   | bool Http::RequestParser::parsePostMessage(const QByteArray&) unknown content type: "application/x-binary"
alpine-qbit                   | Http::RequestParser::ParseResult Http::RequestParser::doParse(const QByteArray&) message body parsing error
alpine-qbit                   | bool Http::RequestParser::parsePostMessage(const QByteArray&) unknown content type: "application/x-binary"
alpine-qbit                   | Http::RequestParser::ParseResult Http::RequestParser::doParse(const QByteArray&) message body parsing error
alpine-qbit                   | bool Http::RequestParser::parsePostMessage(const QByteArray&) unknown content type: "application/x-binary"
alpine-qbit                   | Http::RequestParser::ParseResult Http::RequestParser::doParse(const QByteArray&) message body parsing error
alpine-qbit                   | bool Http::RequestParser::parsePostMessage(const QByteArray&) unknown content type: "application/x-binary"
alpine-qbit                   | Http::RequestParser::ParseResult Http::RequestParser::doParse(const QByteArray&) message body parsing error
alpine-qbit                   | 2021-10-29 18:25:59 AEAD Decrypt error: bad packet ID (may be a replay): [ #237400 ] -- see the man page entry for --no-replay and --replay-window for more info or silence this warning with --mute-replay-warnings
alpine-qbit                   | 2021-10-29 18:25:59 AEAD Decrypt error: bad packet ID (may be a replay): [ #237401 ] -- see the man page entry for --no-replay and --replay-window for more info or silence this warning with --mute-replay-warnings
alpine-qbit                   | 2021-10-29 18:25:59 AEAD Decrypt error: bad packet ID (may be a replay): [ #237402 ] -- see the man page entry for --no-replay and --replay-window for more info or silence this warning with --mute-replay-warnings
alpine-qbit                   | 2021-10-29 18:25:59 AEAD Decrypt error: bad packet ID (may be a replay): [ #237403 ] -- see the man page entry for --no-replay and --replay-window for more info or silence this warning with --mute-replay-warnings
alpine-qbit                   | 2021-10-29 18:25:59 AEAD Decrypt error: bad packet ID (may be a replay): [ #237404 ] -- see the man page entry for --no-replay and --replay-window for more info or silence this warning with --mute-replay-warnings
alpine-qbit                   | 2021-10-29 18:25:59 AEAD Decrypt error: bad packet ID (may be a replay): [ #237405 ] -- see the man page entry for --no-replay and --replay-window for more info or silence this warning with --mute-replay-warnings
alpine-qbit                   | 2021-10-29 18:25:59 AEAD Decrypt error: bad packet ID (may be a replay): [ #237406 ] -- see the man page entry for --no-replay and --replay-window for more info or silence this warning with --mute-replay-warnings
alpine-qbit                   | 2021-10-29 18:25:59 AEAD Decrypt error: bad packet ID (may be a replay): [ #237407 ] -- see the man page entry for --no-replay and --replay-window for more info or silence this warning with --mute-replay-warnings
alpine-qbit                   | 2021-10-29 18:25:59 AEAD Decrypt error: bad packet ID (may be a replay): [ #237408 ] -- see the man page entry for --no-replay and --replay-window for more info or silence this warning with --mute-replay-warnings
alpine-qbit                   | 2021-10-29 18:25:59 AEAD Decrypt error: bad packet ID (may be a replay): [ #237409 ] -- see the man page entry for --no-replay and --replay-window for more info or silence this warning with --mute-replay-warnings
alpine-qbit                   | 2021-10-29 18:25:59 AEAD Decrypt error: bad packet ID (may be a replay): [ #237410 ] -- see the man page entry for --no-replay and --replay-window for more info or silence this warning with --mute-replay-warnings
alpine-qbit                   | 2021-10-29 18:25:59 AEAD Decrypt error: bad packet ID (may be a replay): [ #237411 ] -- see the man page entry for --no-replay and --replay-window for more info or silence this warning with --mute-replay-warnings
alpine-qbit                   | 2021-10-29 18:25:59 AEAD Decrypt error: bad packet ID (may be a replay): [ #237412 ] -- see the man page entry for --no-replay and --replay-window for more info or silence this warning with --mute-replay-warnings
alpine-qbit                   | 2021-10-29 18:25:59 AEAD Decrypt error: bad packet ID (may be a replay): [ #237413 ] -- see the man page entry for --no-replay and --replay-window for more info or silence this warning with --mute-replay-warnings
alpine-qbit                   | 2021-10-29 18:25:59 AEAD Decrypt error: bad packet ID (may be a replay): [ #237414 ] -- see the man page entry for --no-replay and --replay-window for more info or silence this warning with --mute-replay-warnings
alpine-qbit                   | 2021-10-29 18:25:59 AEAD Decrypt error: bad packet ID (may be a replay): [ #237415 ] -- see the man page entry for --no-replay and --replay-window for more info or silence this warning with --mute-replay-warnings
alpine-qbit                   | 2021-10-29 18:25:59 AEAD Decrypt error: bad packet ID (may be a replay): [ #237416 ] -- see the man page entry for --no-replay and --replay-window for more info or silence this warning with --mute-replay-warnings

Current setup

I'm using a Raspberry Pi 4 with 32bit Pi OS.

services:
  alpine-qbittorrent-openvpn:
    container_name: alpine-qbit
    volumes:
      - /home/usman/NAS/usman_stuff/Media/Downloading:/downloads
      - ./config:/config
      - /etc/localtime:/etc/localtime:ro
    environment:
      - OPENVPN_PROVIDER=PIA
      - OPENVPN_CONFIG=uk_london
      - OPENVPN_USERNAME=username
      - OPENVPN_PASSWORD=password
      - PUID=1001
      - PGID=1001
      - LAN=10.0.0.0/16
    ports:
      - 8080:8080
    cap_add:
      - NET_ADMIN
    image: guillaumedsde/alpine-qbittorrent-openvpn:latest
    restart: unless-stopped

usman-u avatar Oct 29 '21 17:10 usman-u

I have been intermittently having the same issue—usually the container works just fine, but sometimes it starts spamming AEAD decrypt errors. Sometimes it keeps working despite them, sometimes the whole stack network goes down.


2022-02-25 12:41:52 AEAD Decrypt error: bad packet ID (may be a replay): [ #2500499 ] -- see the man page entry for --no-replay and --replay-window for more info or silence this warning with --mute-replay-warnings

2022-02-25 12:41:52 AEAD Decrypt error: bad packet ID (may be a replay): [ #2500504 ] -- see the man page entry for --no-replay and --replay-window for more info or silence this warning with --mute-replay-warnings

2022-02-25 12:41:52 AEAD Decrypt error: bad packet ID (may be a replay): [ #2500505 ] -- see the man page entry for --no-replay and --replay-window for more info or silence this warning with --mute-replay-warnings

2022-02-25 12:41:52 AEAD Decrypt error: bad packet ID (may be a replay): [ #2500506 ] -- see the man page entry for --no-replay and --replay-window for more info or silence this warning with --mute-replay-warnings

2022-02-25 12:41:52 AEAD Decrypt error: bad packet ID (may be a replay): [ #2500507 ] -- see the man page entry for --no-replay and --replay-window for more info or silence this warning with --mute-replay-warnings

2022-02-25 12:41:52 AEAD Decrypt error: bad packet ID (may be a replay): [ #2500508 ] -- see the man page entry for --no-replay and --replay-window for more info or silence this warning with --mute-replay-warnings

2022-02-25 12:41:52 AEAD Decrypt error: bad packet ID (may be a replay): [ #2502522 ] -- see the man page entry for --no-replay and --replay-window for more info or silence this warning with --mute-replay-warnings

2022-02-25 12:41:52 AEAD Decrypt error: bad packet ID (may be a replay): [ #2502523 ] -- see the man page entry for --no-replay and --replay-window for more info or silence this warning with --mute-replay-warnings

2022-02-25 12:41:52 AEAD Decrypt error: bad packet ID (may be a replay): [ #2502524 ] -- see the man page entry for --no-replay and --replay-window for more info or silence this warning with --mute-replay-warnings

2022-02-25 12:41:52 AEAD Decrypt error: bad packet ID (may be a replay): [ #2502525 ] -- see the man page entry for --no-replay and --replay-window for more info or silence this warning with --mute-replay-warnings

2022-02-25 12:41:52 AEAD Decrypt error: bad packet ID (may be a replay): [ #2502526 ] -- see the man page entry for --no-replay and --replay-window for more info or silence this warning with --mute-replay-warnings

lwsx avatar Feb 25 '22 10:02 lwsx

I just switched to a WG solution.

usman-u avatar Mar 06 '22 22:03 usman-u