binhex / arch-rtorrentvpn

Docker build script for Arch Linux base with ruTorrent, rTorrent, autodl-irssi, Privoxy and OpenVPN
GNU General Public License v3.0
239 stars 36 forks source link

rtorrentvpn fails to start (new install) #156

Closed fireantz closed 3 years ago

fireantz commented 4 years ago

I am trying to get binhex-rtorrentvpn setup but after configuring everything when it tries to start I get the following error: /usr/local/bin/init.sh: line 346: /config/nginx/security/rpc2_pass: No such file or directory

I'm using mullvad as my VPN and I should have it configured correctly to do so (not sure if that would be the reason for the error or not)

2020-06-01 13:45:38.690496 [info] System information Linux e67015f2fa32 4.19.107-Unraid #1 SMP Thu Mar 5 13:55:57 PST 2020 x86_64 GNU/Linux
2020-06-01 13:45:39.429407 [info] OS_ARCH defined as 'x86-64'
2020-06-01 13:45:39.739202 [info] PUID defined as '99'
2020-06-01 13:45:42.568142 [info] PGID defined as '100'
2020-06-01 13:45:48.284543 [info] UMASK defined as '000'
2020-06-01 13:45:48.302645 [info] Permissions already set for volume mappings
2020-06-01 13:45:48.544909 [info] VPN_ENABLED defined as 'yes'
2020-06-01 13:45:49.491092 [info] OpenVPN config file (ovpn extension) is located at /config/openvpn/mullvad_us_all.ovpn
2020-06-01 13:45:49.811454 [info] VPN remote line defined as 'remote mullvadvpnaddress 1301'
2020-06-01 13:45:49.829949 [info] VPN_REMOTE defined as 'mullvadvpnaddress'
2020-06-01 13:45:49.848471 [info] VPN_PORT defined as '1301'
2020-06-01 13:45:49.869607 [info] VPN_PROTOCOL defined as 'udp'
2020-06-01 13:45:49.887773 [info] VPN_DEVICE_TYPE defined as 'tun0'
2020-06-01 13:45:49.905968 [info] VPN_PROV defined as 'custom'
2020-06-01 13:45:49.924334 [info] LAN_NETWORK defined as '192.168.1.0/24'
2020-06-01 13:45:49.946967 [info] NAME_SERVERS defined as '209.222.18.222,84.200.69.80,37.235.1.174,1.1.1.1,209.222.18.218,37.235.1.177,84.200.70.40,1.0.0.1'
2020-06-01 13:45:49.969569 [info] VPN_USER defined as 'mullvadaccountnumber'
2020-06-01 13:45:49.987777 [info] VPN_PASS defined as 'mullvadaccountnumber'
2020-06-01 13:45:50.009872 [info] VPN_OPTIONS not defined (via -e VPN_OPTIONS)
2020-06-01 13:45:50.028165 [info] ENABLE_PRIVOXY defined as 'no'
2020-06-01 13:45:50.046369 [info] ADDITIONAL_PORTS not defined (via -e ADDITIONAL_PORTS), skipping allow for custom incoming ports
2020-06-01 13:45:50.064512 [info] ENABLE_AUTODL_IRSSI defined as 'no'
2020-06-01 13:45:50.082975 [info] ENABLE_RPC2 defined as 'yes'
2020-06-01 13:45:50.101309 [info] ENABLE_RPC2_AUTH defined as 'yes'
2020-06-01 13:45:50.119663 [info] RPC2_USER defined as 'admin'
/usr/local/bin/init.sh: line 346: /config/nginx/security/rpc2_pass: No such file or directory
binhex commented 4 years ago

i cannot replicate this issue im afraid. can you stop the container and delete all files and folders except /config/openvpn and then start the container.

fireantz commented 4 years ago

I removed the docker, deleted the config folder and started from scratch again with the same result. I did get binhex-delugevpn working without issue.

binhex commented 4 years ago

ok check your file permissions, you can force a chmod by stopping the container and deleting the file /config/perms.txt and then starting the container.

just to confirm this container is set to start privileged, right?.

rubenmdh commented 4 years ago

I have the same exact error on my QNAP machine.

2020-07-03 20:40:59.017072 [info] System information Linux eabd56d3ae2a 4.2.8 #1 SMP Fri May 29 07:32:35 CST 2020 x86_64 GNU/Linux             
2020-07-03 20:40:59.057473 [info] OS_ARCH defined as 'x86-64'                                                                                  
2020-07-03 20:40:59.097266 [warn] PUID not defined (via -e PUID), defaulting to '99'                                                           
2020-07-03 20:40:59.214246 [warn] PGID not defined (via -e PGID), defaulting to '100'                                                          
2020-07-03 20:40:59.477572 [warn] UMASK not defined (via -e UMASK), defaulting to '000'                                                        
2020-07-03 20:40:59.525258 [info] Setting permissions recursively on volume mappings...                                                        
2020-07-03 20:40:59.575139 [info] VPN_ENABLED defined as 'no'                                                                                  
2020-07-03 20:40:59.611340 [warn] !!IMPORTANT!! VPN IS SET TO DISABLED', YOU WILL NOT BE SECURE                                                
2020-07-03 20:40:59.652620 [warn] ENABLE_AUTODL_IRSSI not defined (via -e ENABLE_AUTODL_IRSSI), defaulting to 'no'                             
2020-07-03 20:40:59.689203 [warn] ENABLE_RPC2 not defined (via -e ENABLE_RPC2), defaulting to 'yes'                                            
2020-07-03 20:40:59.733708 [warn] ENABLE_RPC2_AUTH not defined (via -e ENABLE_RPC2_AUTH), defaulting to 'yes'                                  
2020-07-03 20:40:59.771263 [warn] RPC2_USER not defined (via -e RPC2_USER), defaulting to 'admin'                                              
/usr/local/bin/init.sh: line 346: /config/nginx/security/rpc2_pass: No such file or directory

Directly downloaded from DockerHub and it doesn't seem to matter that the container is privileged or not.

--

EDIT: After fiddling for a bit, I found out that this problem is solved if I manually define a password within the RPC2_PASS and WEBUI_PASS environment variables.

theotherp commented 3 years ago

Do you have any special characters in your username or password?

binhex commented 3 years ago

/usr/local/bin/init.sh: line 346: /config/nginx/security/rpc2_pass: No such file or directory

this has been fixed, it was simply a path issue.