Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebUI not connecting/possible circular crash #30

Open
Jessssuhh opened this issue Jul 4, 2023 · 6 comments
Open

WebUI not connecting/possible circular crash #30

Jessssuhh opened this issue Jul 4, 2023 · 6 comments

Comments

@Jessssuhh
Copy link

Jessssuhh commented Jul 4, 2023

Hi!

I'm getting that same circular crash issue that a few others have reported on here the last few years. Not going to lie there is a solid chance this is a configuration issue as I am fresh at this whole linux/debian thing. I haven't tested with a torrent yet but right now I can log into webUI just fine for about 10 seconds at a time. Container seems to crash within about 10 seconds of me logging in, and is fine with a reboot.

(N) 2023-07-04T09:28:21 - qBittorrent v4.5.2 started
(N) 2023-07-04T09:28:21 - Using config directory: /config/qBittorrent/config
WebUI will be started shortly after internal preparations. Please wait...
(N) 2023-07-04T09:28:21 - Trying to listen on the following list of IP addresses: "0.0.0.0:62703,[::]:62703"
(I) 2023-07-04T09:28:21 - Peer ID: "-qB4520-"
(I) 2023-07-04T09:28:21 - HTTP User-Agent: "qBittorrent/4.5.2"
(I) 2023-07-04T09:28:21 - Distributed Hash Table (DHT) support: ON
(I) 2023-07-04T09:28:21 - Local Peer Discovery support: ON
(I) 2023-07-04T09:28:21 - Peer Exchange (PeX) support: ON
(I) 2023-07-04T09:28:21 - Anonymous mode: OFF
(I) 2023-07-04T09:28:21 - Encryption support: ON
(I) 2023-07-04T09:28:21 - UPnP/NAT-PMP support: ON
(I) 2023-07-04T09:28:21 - Successfully listening on IP. IP: "127.0.0.1". Port: "TCP/62703"
(I) 2023-07-04T09:28:21 - Successfully listening on IP. IP: "127.0.0.1". Port: "UTP/62703"
(I) 2023-07-04T09:28:21 - Successfully listening on IP. IP: "172.17.0.2". Port: "TCP/62703"
(I) 2023-07-04T09:28:21 - Successfully listening on IP. IP: "172.17.0.2". Port: "UTP/62703"
(I) 2023-07-04T09:28:21 - IP geolocation database loaded. Type: DBIP-Country-Lite. Build time: Sat Jul 1 08:07:53 2023.
(N) 2023-07-04T09:28:21 - Using built-in Web UI.
(N) 2023-07-04T09:28:21 - Web UI translation for selected locale (en) has been successfully loaded.
(N) 2023-07-04T09:28:21 - Web UI: Now listening on IP: *, port: 8080
(N) 2023-07-04T09:29:02 - qBittorrent v4.5.2 started
(N) 2023-07-04T09:29:02 - Using config directory: /config/qBittorrent/config
WebUI will be started shortly after internal preparations. Please wait...
(N) 2023-07-04T09:29:02 - Trying to listen on the following list of IP addresses: "0.0.0.0:62703,[::]:62703"
(I) 2023-07-04T09:29:02 - Peer ID: "-qB4520-"
(I) 2023-07-04T09:29:02 - HTTP User-Agent: "qBittorrent/4.5.2"
(I) 2023-07-04T09:29:02 - Distributed Hash Table (DHT) support: ON
(I) 2023-07-04T09:29:02 - Local Peer Discovery support: ON
(I) 2023-07-04T09:29:02 - Peer Exchange (PeX) support: ON
(I) 2023-07-04T09:29:02 - Anonymous mode: OFF
(I) 2023-07-04T09:29:02 - Encryption support: ON
(I) 2023-07-04T09:29:02 - UPnP/NAT-PMP support: ON
(I) 2023-07-04T09:29:02 - Successfully listening on IP. IP: "127.0.0.1". Port: "TCP/62703"
(I) 2023-07-04T09:29:02 - Successfully listening on IP. IP: "127.0.0.1". Port: "UTP/62703"
(I) 2023-07-04T09:29:02 - Successfully listening on IP. IP: "172.17.0.2". Port: "TCP/62703"
(I) 2023-07-04T09:29:02 - Successfully listening on IP. IP: "172.17.0.2". Port: "UTP/62703"
(I) 2023-07-04T09:29:02 - IP geolocation database loaded. Type: DBIP-Country-Lite. Build time: Sat Jul 1 08:07:53 2023.
(N) 2023-07-04T09:29:02 - Using built-in Web UI.
(N) 2023-07-04T09:29:02 - Web UI translation for selected locale (en) has been successfully loaded.
(N) 2023-07-04T09:29:02 - Web UI: Now listening on IP: *, port: 8080
(N) 2023-07-04T09:29:44 - qBittorrent v4.5.2 started
(N) 2023-07-04T09:29:44 - Using config directory: /config/qBittorrent/config
WebUI will be started shortly after internal preparations. Please wait...
(N) 2023-07-04T09:29:44 - Trying to listen on the following list of IP addresses: "0.0.0.0:62703,[::]:62703"
(I) 2023-07-04T09:29:44 - Peer ID: "-qB4520-"
(I) 2023-07-04T09:29:44 - HTTP User-Agent: "qBittorrent/4.5.2"
(I) 2023-07-04T09:29:44 - Distributed Hash Table (DHT) support: ON
(I) 2023-07-04T09:29:44 - Local Peer Discovery support: ON
(I) 2023-07-04T09:29:44 - Peer Exchange (PeX) support: ON
(I) 2023-07-04T09:29:44 - Anonymous mode: OFF
(I) 2023-07-04T09:29:44 - Encryption support: ON
(I) 2023-07-04T09:29:44 - UPnP/NAT-PMP support: ON
(I) 2023-07-04T09:29:44 - Successfully listening on IP. IP: "127.0.0.1". Port: "TCP/62703"
(I) 2023-07-04T09:29:44 - Successfully listening on IP. IP: "127.0.0.1". Port: "UTP/62703"
(I) 2023-07-04T09:29:44 - Successfully listening on IP. IP: "172.17.0.2". Port: "TCP/62703"
(I) 2023-07-04T09:29:44 - Successfully listening on IP. IP: "172.17.0.2". Port: "UTP/62703"
(I) 2023-07-04T09:29:44 - IP geolocation database loaded. Type: DBIP-Country-Lite. Build time: Sat Jul 1 08:07:53 2023.
(N) 2023-07-04T09:29:44 - Using built-in Web UI.
(N) 2023-07-04T09:29:44 - Web UI translation for selected locale (en) has been successfully loaded.
(N) 2023-07-04T09:29:44 - Web UI: Now listening on IP: *, port: 8080
(N) 2023-07-04T09:30:25 - qBittorrent v4.5.2 started
(N) 2023-07-04T09:30:25 - Using config directory: /config/qBittorrent/config
WebUI will be started shortly after internal preparations. Please wait...
(N) 2023-07-04T09:30:25 - Trying to listen on the following list of IP addresses: "0.0.0.0:62703,[::]:62703"
(I) 2023-07-04T09:30:25 - Peer ID: "-qB4520-"
(I) 2023-07-04T09:30:25 - HTTP User-Agent: "qBittorrent/4.5.2"
(I) 2023-07-04T09:30:25 - Distributed Hash Table (DHT) support: ON
(I) 2023-07-04T09:30:25 - Local Peer Discovery support: ON
(I) 2023-07-04T09:30:25 - Peer Exchange (PeX) support: ON
(I) 2023-07-04T09:30:25 - Anonymous mode: OFF
(I) 2023-07-04T09:30:25 - Encryption support: ON
(I) 2023-07-04T09:30:25 - UPnP/NAT-PMP support: ON
(I) 2023-07-04T09:30:25 - Successfully listening on IP. IP: "127.0.0.1". Port: "TCP/62703"
(I) 2023-07-04T09:30:25 - Successfully listening on IP. IP: "127.0.0.1". Port: "UTP/62703"
(I) 2023-07-04T09:30:25 - Successfully listening on IP. IP: "172.17.0.2". Port: "TCP/62703"
(I) 2023-07-04T09:30:25 - Successfully listening on IP. IP: "172.17.0.2". Port: "UTP/62703"
(I) 2023-07-04T09:30:25 - IP geolocation database loaded. Type: DBIP-Country-Lite. Build time: Sat Jul 1 08:07:53 2023.
(N) 2023-07-04T09:30:25 - Using built-in Web UI.
(N) 2023-07-04T09:30:25 - Web UI translation for selected locale (en) has been successfully loaded.
(N) 2023-07-04T09:30:25 - Web UI: Now listening on IP: *, port: 8080

Any guidance would be appreciated.. small words please!

@Trigus42
Copy link
Owner

Trigus42 commented Jul 4, 2023

It seems like there is an issue with the container or the config. The restarts are probably caused because the container exists but is set to always (or unless-stopped) restart.
Can you post the docker log? (docker logs CONATAINERNAME)

@Jessssuhh
Copy link
Author

Jessssuhh commented Jul 4, 2023

Hahah wow I can't believe the restart policy didn't occur to me. Thanks for the patience lmfao

So turned the restart policy to never, this is the entire console log. There is also a docker container log in a different area (this is all via portainer) but its gibberish in the same way that an image file would be if you opened it in notepad so I didn't think that was what you meant.

`--------------------
0:	from all lookup local
32766:	from all lookup main
32767:	from all lookup default
--------------------
2023-07-04 22:41:41 [INFO] Adding additional incoming port 8080 for eth0
2023-07-04 22:41:41 [INFO] Adding additional incoming port 8999 for eth0
2023-07-04 22:41:41 [INFO] Adding additional outgoing port 8080 for eth0
2023-07-04 22:41:41 [INFO] Adding additional outgoing port 8999 for eth0
2023-07-04 22:41:41 [DEBUG] iptables table 'filter' defined as follows...
--------------------
-P INPUT DROP
-P FORWARD ACCEPT
-P OUTPUT DROP
-A INPUT -i tun0 -j ACCEPT
-A INPUT -s 172.17.0.0/16 -d 172.17.0.0/16 -j ACCEPT
-A INPUT -s 45.248.77.123/32 -i eth0 -p tcp -m tcp --sport 443 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --dport 8080 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --dport 8080 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --dport 8999 -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A OUTPUT -o tun0 -j ACCEPT
-A OUTPUT -s 172.17.0.0/16 -d 172.17.0.0/16 -j ACCEPT
-A OUTPUT -d 45.248.77.123/32 -o eth0 -p tcp -m tcp --dport 443 -j ACCEPT
-A OUTPUT -o eth0 -p tcp -m tcp --sport 8080 -j ACCEPT
-A OUTPUT -o eth0 -p tcp -m tcp --sport 8080 -j ACCEPT
-A OUTPUT -o eth0 -p tcp -m tcp --sport 8999 -j ACCEPT
-A OUTPUT -o lo -j ACCEPT
--------------------
2023-07-04 22:41:41 [DEBUG] iptables table 'mangle' defined as follows...
--------------------
-P PREROUTING ACCEPT
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
-P POSTROUTING ACCEPT
--------------------
[cont-init.d] 03-network.sh: exited 0.
[cont-init.d] 04-qbittorrent-setup.sh: executing... 
2023-07-04 22:41:41 [WARNING] ENABLE_SSL is set to , SSL is not enabled. This could cause issues with logging if other apps use the same Cookie name (SID).
2023-07-04 22:41:41 [WARNING] If you manage the SSL config yourself, you can ignore this.
2023-07-04 22:41:41 [WARNING] UMASK not defined (via -e UMASK), defaulting to '002'
[cont-init.d] 04-qbittorrent-setup.sh: exited 0.
[cont-init.d] 05-install.sh: executing... 
[cont-init.d] 05-install.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
2023-07-04 22:41:41 [INFO] Logging to /config/qBittorrent/data/logs/qbittorrent.log.
[services.d] done.
2023-07-04 22:41:41 [INFO] Trying to ping 1.1.1.1 and 8.8.8.8 over the docker interface for 500ms each...
Terminated
Terminated
2023-07-04 22:41:43 [INFO] Success: Could not connect. This means the firewall is most likely working properly.
2023-07-04 22:41:43 [INFO] qBittorrent started with PID 550
2023-07-04 22:41:43 [INFO] HEALTH_CHECK_HOST is not set. Using default host one.one.one.one
2023-07-04 22:42:16 [ERROR] Network is down. Exiting..
2023-07-04 22:42:16 [ERROR INFO] 'ip addr show' output:
--------------------
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
5439: eth0@if5440: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default 
    link/ether 02:42:ac:11:00:02 brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet 172.17.0.2/16 brd 172.17.255.255 scope global eth0
       valid_lft forever preferred_lft forever
--------------------
2023-07-04 22:42:16 [ERROR INFO] 'ip route show table main' output:
--------------------
default via 172.17.0.1 dev eth0 
172.17.0.0/16 dev eth0 proto kernel scope link src 172.17.0.2 
192.168.1.0/24 via 172.17.0.1 dev eth0 
--------------------
2023-07-04 22:42:16 [ERROR INFO] 'ip rule' output:
--------------------
0:	from all lookup local
32766:	from all lookup main
32767:	from all lookup default
--------------------
2023-07-04 22:42:16 [ERROR INFO] 'netstat -lpn' output:
--------------------
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 172.17.0.2:62703        0.0.0.0:*               LISTEN      -                   
tcp        0      0 127.0.0.1:62703         0.0.0.0:*               LISTEN      -                   
tcp6       0      0 :::8080                 :::*                    LISTEN      -                   
udp        0      0 172.17.0.2:49117        0.0.0.0:*                           -                   
udp        0      0 172.17.0.2:62703        0.0.0.0:*                           -                   
udp        0      0 127.0.0.1:62703         0.0.0.0:*                           -                   
udp        0      0 0.0.0.0:6771            0.0.0.0:*                           -                   
udp        0      0 0.0.0.0:6771            0.0.0.0:*                           -                   
Active UNIX domain sockets (only servers)
Proto RefCnt Flags       Type       State         I-Node   PID/Program name     Path
unix  2      [ ACC ]     STREAM     LISTENING     5078989  -                    /config/qBittorrent/config/.pWWnwd/s
--------------------
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.

`

@Jessssuhh
Copy link
Author

Jessssuhh commented Jul 5, 2023

So adding vpn_enabled yes to the env has stopped QBVPN from crashing, meaning I can modify settings and whatnot without a 10 second timer to worry about. But torrents added error and fail instantly.

edit: vpn_enabled no doesn't prevent QBVPN from erroring out immediately so I don't think its a vpn config issue

@Trigus42
Copy link
Owner

Trigus42 commented Jul 5, 2023

Your docker log is not complete but from what you posted it seems like the VPN goes down shortly after the container finishes startup as there is no tun0 in the interface list (ip a). Can you post the complete log and your portainer config?

If the container behaves differently, it would also be helpful if you could post the logs with VPN_ENABLED set to yes or no and without VPN_ENABLED set.

@Jessssuhh
Copy link
Author

I think the log is only saving the most recent 100 lines as the console display in portainer is set to display the most recent 100 lines by default?

this here is the config part of my ovpn file

client
dev tun
proto tcp
remote _xx.xx.xx.xx_ 443
resolv-retry infinite
remote-random
nobind
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
persist-key
persist-tun
ping 15
ping-restart 0
ping-timer-rem
reneg-sec 0
comp-lzo no
verify-x509-name CN=au735.nordvpn.com

remote-cert-tls server


verb 3
pull
fast-io
cipher AES-256-CBC
auth SHA512
<ca>

QBVPN VPN enabled.txt
QBVPN VPN unset.txt
QBVPN VPN disabled.txt

@Trigus42
Copy link
Owner

I have not used Portainer before but this config works for me:

image
image
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants