testdasi / openvpn-hyrosa

OpenVPN Client with integrated (NZB)Hydra-rTorrent (Flood GUI)-Sabnzbd (and HTTP + SOCKS5 proxies)
GNU General Public License v3.0
2 stars 0 forks source link

Miss-match config location and unknown error causing crash #3

Open ehcorn opened 1 year ago

ehcorn commented 1 year ago

first off, I had to change /config to /root to make the container work, otherwise I get stuck at "config file not found" regardless of what I do to the folder structure. Noticed in the docker file it references /root instead of /config. System is running on an x86 Synology box, not unraid.

Second, unknown error causing crash once the container starts up, see log file: (IP redacted, otherwise unchanged) *

flood

datestreamcontent
2022-11-10T18:19:55.755628878Zstdout[info] Your VPN public IP is 172.XXX.XXX.XXX
2022-11-10T18:19:55.707685812Zstdout
2022-11-10T18:19:55.691653769Zstdout[info] Run WebUI launcher in background at 192.168.1.164:8000
2022-11-10T18:19:55.691528627Zstdout
2022-11-10T18:19:55.686760628Zstdout2022-11-10 18:19:55,686  INFO - Daemonizing...
2022-11-10T18:19:55.686617042ZstdoutLogging wrapper output to /root/nzbhydra2/logs/wrapper.log
2022-11-10T18:19:55.512974894Zstdout[info] Run nzbhydra2 in background on port 5076
2022-11-10T18:19:55.512098542Zstdout
2022-11-10T18:19:55.398448490Zstdout[info] Run rtorrent and flood in background at 192.168.1.164:3000
2022-11-10T18:19:55.397902354Zstdout
2022-11-10T18:19:50.804704670Zstdout[info] Run sabnzbdplus in background on HTTP port 8080 and HTTPS port 8090
2022-11-10T18:19:50.804574104Zstdout
2022-11-10T18:19:50.801026056ZstderrWARNING: logging deactivated (can't log to stdout when daemonized)
2022-11-10T18:19:50.793301121Zstdout[info] Run tinyproxy in background with no log on port 8118
2022-11-10T18:19:50.793239034Zstdout
2022-11-10T18:19:50.792626422ZstderrNov 10 18:19:50 (1668104390.792333) danted[134]: alert: mother[1/1]: shutting down
2022-11-10T18:19:50.792440451ZstderrNov 10 18:19:50 (1668104390.792245) danted[134]: error: /root/dante/danted.conf: problem on line 3 near token "tun0": could not resolve hostname "tun0": Name or service not known.  Please see the Dante manual for more information
2022-11-10T18:19:50.774490011Zstdout[info] Run danted in background on port 9118
2022-11-10T18:19:50.774461981Zstdout
2022-11-10T18:19:50.690157902Zstdout[info] Done
2022-11-10T18:19:50.690083872Zstderr/static/scripts/openvpn.sh: line 37:   133 Killed                  nft add rule ip filter OUTPUT ip daddr ${dns_server_item} udp dport 53 ct state new,established counter accept
2022-11-10T18:19:49.044879341Zstderr/static/scripts/openvpn.sh: line 37:   132 Killed                  nft add rule ip filter INPUT ip saddr ${dns_server_item} udp sport 53 ct state established counter accept
2022-11-10T18:19:47.464885053Zstderr/static/scripts/openvpn.sh: line 37:   131 Killed                  nft add rule ip filter OUTPUT ip daddr ${dns_server_item} tcp dport 53 ct state new,established counter accept
2022-11-10T18:19:45.780831305Zstderr/static/scripts/openvpn.sh: line 37:   130 Killed                  nft add rule ip filter INPUT ip saddr ${dns_server_item} tcp sport 53 ct state established counter accept
2022-11-10T18:19:44.216001103Zstdout[info] Allowing DNS lookups (tcp, udp port 53) to server '127.2.2.2'
2022-11-10T18:19:44.215596514Zstdout[info] Adding 127.2.2.2 to /etc/resolv.conf
2022-11-10T18:19:44.213162927Zstderr                                ^
2022-11-10T18:19:44.213131984Zstderrdelete rule filter OUTPUT handle
2022-11-10T18:19:44.213077173ZstderrError: syntax error, unexpected newline, expecting number
2022-11-10T18:19:44.213052724Zstderr           ^^^^^^
2022-11-10T18:19:44.213024996Zstderrlist table filter
2022-11-10T18:19:44.212994532ZstderrError: Could not process rule: No such file or directory
2022-11-10T18:19:44.212969025Zstderr                               ^
2022-11-10T18:19:44.212932400Zstderrdelete rule filter INPUT handle
2022-11-10T18:19:44.212892718ZstderrError: syntax error, unexpected newline, expecting number
2022-11-10T18:19:44.212866112Zstderr           ^^^^^^
2022-11-10T18:19:44.212833181Zstdout[info] Change DNS servers to 127.2.2.2
2022-11-10T18:19:44.212794016Zstdout[info] Block DnS-over-TLS to force traffic through tunnel
2022-11-10T18:19:44.212733523Zstdout[info] Your VPN public IP is 172.XXX.XXX.XXX
2022-11-10T18:19:44.101564963Zstdout[info] Connecting to VPN on port 443 with proto udp...
2022-11-10T18:19:44.212658147Zstderrlist table filter
2022-11-10T18:19:44.212616991ZstderrError: Could not process rule: No such file or directory
2022-11-10T18:19:44.212561322Zstderr/static/scripts/openvpn.sh: line 12:   113 Killed                  nft add rule ip filter OUTPUT tcp dport $DOT_PORT counter accept
2022-11-10T18:19:42.496567341Zstderr/static/scripts/openvpn.sh: line 11:   112 Killed                  nft add rule ip filter INPUT tcp sport $DOT_PORT counter accept
2022-11-10T18:19:40.916693513Zstdout[info] Allow DnS-over-TLS for openvpn to lookup VPN server
2022-11-10T18:19:40.914918751Zstdout[info] Create tunnel device
2022-11-10T18:19:40.914772197Zstdout[info] Setting up OpenVPN tunnel
2022-11-10T18:19:40.914744726Zstdout
2022-11-10T18:19:40.914703618Zstdout[info] All rules created
2022-11-10T18:19:40.914537714Zstdout[info] Quick block test. Expected result is time out. Actual result is 172.XXX.XXX.XXX
2022-11-10T18:19:40.885166582Zstderr/static/scripts/nftables_apply.sh: line 12:   105 Killed                  nft -f /nftables.rules
2022-11-10T18:19:39.445043542Zstdout[info] Apply rules
2022-11-10T18:19:39.288973724Zstdout[info] Added route 192.168.1.0/24 via 172.17.0.1 dev eth0 
2022-11-10T18:19:39.273779659Zstderr/static/scripts/nftables_apply.sh: line 5:    98 Killed                  nft flush ruleset
2022-11-10T18:19:37.673654760Zstdout[info] Flusing ruleset
2022-11-10T18:19:37.653561987Zstdout[info] Editing base ruleset
2022-11-10T18:19:37.653484945Zstdout[info] Set up nftables rules
2022-11-10T18:19:37.653456726Zstdout
2022-11-10T18:19:37.653312377Zstdout[warn] Your ISP public IP is 172.XXX.XXX.XXX
2022-11-10T18:19:37.622730908Zstderr[18:19:37.622552] STUBBY: Read config from file /root/stubby/stubby.yml
2022-11-10T18:19:37.615483838Zstdout[info] Run stubby in background on port 53
2022-11-10T18:19:37.615453857Zstdout
2022-11-10T18:19:37.615421665Zstdout[info] All configs fixed
2022-11-10T18:19:37.615286107Zstdout[info] nzbhydra2 fixed.
2022-11-10T18:19:37.609537396Zstdout[info] rtorrent fixed.
2022-11-10T18:19:37.602725619Zstdout[info] sabnzbdplus fixed.
2022-11-10T18:19:37.592497554Zstdout[info] tinyproxy fixed.
2022-11-10T18:19:37.586952032Zstdout[info] danted fixed.
2022-11-10T18:19:37.582915573Zstdout[info] stubby fixed.
2022-11-10T18:19:37.578903680Zstdout[info] launcher fixed.
2022-11-10T18:19:37.568381351Zstdout[info] root folder fixed.
2022-11-10T18:19:37.564263249Zstdout[info] language fixed.
2022-11-10T18:19:37.516865980Zstdout[info] Fixing configs
2022-11-10T18:19:37.516783816Zstdout
2022-11-10T18:19:37.516743031Zstdout[info] All variables set
2022-11-10T18:19:37.516539641Zstdout[info] eth0 IP is 172.17.0.3 in network 172.17.0.0/16
2022-11-10T18:19:37.499947862Zstdout[info] Determine eth0 network for nftables
2022-11-10T18:19:37.499681662Zstdout[info] Will connect openvpn on port=443 proto=udp
2022-11-10T18:19:37.495479254Zstdout[info] Determine openvpn protocol from config file
2022-11-10T18:19:37.487465976Zstdout[info] Determine openvpn port from config file
2022-11-10T18:19:37.487410952Zstdout[info] Set various ports to docker variables
2022-11-10T18:19:37.487135028Zstdout[info] Setting variables
2022-11-10T18:19:37.487092196Zstdout
2022-11-10T18:19:37.486561379Zstdout[info] Config file detected...
`