Kabe0 / deluge-windscribe

To provide an isolated VPN layer with Deluge
22 stars 6 forks source link

error message Error running "login" #29

Open camdnd opened 3 years ago

camdnd commented 3 years ago

I got error message Error running "login" but I don't how to Enable LEGACY_IPTABLES=true how should I do it, could you help me?

Kabe0 commented 3 years ago

Um, I have posted a few times to others with solutions that have worked, however recently it seems a newer version of Linux have caused so e problems. I'll probably have to look.

To enable that variable, if your using the command line you add -e LEGACY_IPTABLES=true to the docker run call

camdnd commented 3 years ago

sorry for bothering you, but I get this output from sudo docker run -e LEGACY_IPTABLES=true image

Enabling Legacy IPTables
update-alternatives: error: alternative /usr/sbin/arptables-legacy for arptables not registered; not setting
update-alternatives: error: alternative /usr/sbin/ebtables-legacy for ebtables not registered; not setting
Using config file /config/auth.conf.
/usr/bin/init.py:23: DeprecationWarning: 'U' mode is deprecated
  with open(vpnAuth, 'rU') as f:
Traceback (most recent call last):
  File "/usr/bin/init.py", line 23, in <module>
    with open(vpnAuth, 'rU') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/config/auth.conf'

the file /config/auth.conf exists

Kabe0 commented 3 years ago

you have to run it with all the settings, as your missing the volume mount

docker run \
 -v $PWD/config:/config \
 -v $PWD/downloads:/downloads \
 -p 8112:8112 \
 -p 58846:58846 \
-e LEGACY_IPTABLES=true \
 --dns 8.8.8.8 \
 --cap-add=NET_ADMIN \
 --device /dev/net/tun:/dev/net/tun \
 --name deluge-windscribe \
 kabe0/deluge-windscribe

The folder for $PWD has to be the current directory the command is executed in. So in that folder you would have another folder called config with a file inside it as outlined. You can use the -e variables instead though if you want to test without using a file like...

docker run \
 -v $PWD/config:/config \
 -v $PWD/downloads:/downloads \
 -p 8112:8112 \
 -p 58846:58846 \
-e LEGACY_IPTABLES=true \
-e VPN_USERNAME=username \
-e VPN_PASSWORD=pass \
 --dns 8.8.8.8 \
 --cap-add=NET_ADMIN \
 --device /dev/net/tun:/dev/net/tun \
 --name deluge-windscribe \
 kabe0/deluge-windscribe