[Solved]
Mar 21, 2017, 05:43 AM
(This post was last modified: Mar 21, 2017, 05:46 AM by jcsjourney.)
Hello All. I followed all the instructions for the auto port forward for PIA, but am having some issues. I have included the output when running the bash. I noticed it works once then if I run it again, it will give the below error. Seems this is happening a lot when I check the log files (also listed below). This is running on Ubuntu 16.10 with deluged: 1.3.14. (Deluge 1.3.14 (6 March 2017) Release Date) Any assistance would be appreciated! Thanks!
Output of Bash:
Cat of the rolling log file for the Cron Job (Cut down for size sakes):
Output of Bash:
Code:
journey@ubuntu1:~$ sudo bash /etc/openvpn/portforward.sh
iptables v1.6.0: invalid port/service `-j' specified
Try `iptables -h' or 'iptables --help' for more information.
malformed expression (,)
[ERROR ] 22:32:47 main:347 malformed expression (,)
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/deluge/ui/console/main.py", line 344, in do_command
ret = self._commands[cmd].handle(*args, **options.__dict__)
File "/usr/lib/python2.7/dist-packages/deluge/ui/console/commands/config.py", line 102, in handle
return self._set_config(*args, **options)
File "/usr/lib/python2.7/dist-packages/deluge/ui/console/commands/config.py", line 136, in _set_config
val = simple_eval(options["set"][1] + " " .join(args))
File "/usr/lib/python2.7/dist-packages/deluge/ui/console/commands/config.py", line 85, in simple_eval
res = atom(src.next, src.next())
File "/usr/lib/python2.7/dist-packages/deluge/ui/console/commands/config.py", line 54, in atom
out.append(atom(next, token))
File "/usr/lib/python2.7/dist-packages/deluge/ui/console/commands/config.py", line 77, in atom
raise SyntaxError("malformed expression (%s)" % token[1])
SyntaxError: malformed expression (,)
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/deluge/ui/console/main.py", line 344, in do_command
ret = self._commands[cmd].handle(*args, **options.__dict__)
File "/usr/lib/python2.7/dist-packages/deluge/ui/console/commands/config.py", line 102, in handle
return self._set_config(*args, **options)
File "/usr/lib/python2.7/dist-packages/deluge/ui/console/commands/config.py", line 136, in _set_config
val = simple_eval(options["set"][1] + " " .join(args))
File "/usr/lib/python2.7/dist-packages/deluge/ui/console/commands/config.py", line 85, in simple_eval
res = atom(src.next, src.next())
File "/usr/lib/python2.7/dist-packages/deluge/ui/console/commands/config.py", line 54, in atom
out.append(atom(next, token))
File "/usr/lib/python2.7/dist-packages/deluge/ui/console/commands/config.py", line 77, in atom
raise SyntaxError("malformed expression (%s)" % token[1])
SyntaxError: malformed expression (,)
journey@ubuntu1:~$
Code:
journey@ubuntu1:~$ cat /var/log/pia_portforward.log
Mon Mar 20 18:00:06 MST 2017
Mon Mar 20 18:00:11 MST 2017
Mon Mar 20 18:00:12 MST 2017 malformed expression (,)
Mon Mar 20 18:00:12 MST 2017 Traceback (most recent call last):
Mon Mar 20 18:00:12 MST 2017 File "/usr/lib/python2.7/dist-packages/deluge/ui/console/main.py", line 344, in do_command
Mon Mar 20 18:00:12 MST 2017 ret = self._commands[cmd].handle(*args, **options.__dict__)
Mon Mar 20 18:00:12 MST 2017 File "/usr/lib/python2.7/dist-packages/deluge/ui/console/commands/config.py", line 102, in handle
Mon Mar 20 18:00:12 MST 2017 return self._set_config(*args, **options)
Mon Mar 20 18:00:12 MST 2017 File "/usr/lib/python2.7/dist-packages/deluge/ui/console/commands/config.py", line 136, in _set_config
Mon Mar 20 18:00:12 MST 2017 val = simple_eval(options["set"][1] + " " .join(args))
Mon Mar 20 18:00:12 MST 2017 File "/usr/lib/python2.7/dist-packages/deluge/ui/console/commands/config.py", line 85, in simple_eval
Mon Mar 20 18:00:12 MST 2017 res = atom(src.next, src.next())
Mon Mar 20 18:00:12 MST 2017 File "/usr/lib/python2.7/dist-packages/deluge/ui/console/commands/config.py", line 54, in atom
Mon Mar 20 18:00:12 MST 2017 out.append(atom(next, token))
Mon Mar 20 18:00:12 MST 2017 File "/usr/lib/python2.7/dist-packages/deluge/ui/console/commands/config.py", line 77, in atom
Mon Mar 20 18:00:12 MST 2017 raise SyntaxError("malformed expression (%s)" % token[1])
Mon Mar 20 18:00:12 MST 2017 SyntaxError: malformed expression (,)
Mon Mar 20 18:00:12 MST 2017
Mon Mar 20 20:00:07 MST 2017
Mon Mar 20 20:00:12 MST 2017
Mon Mar 20 20:00:15 MST 2017 malformed expression (,)
Mon Mar 20 20:00:15 MST 2017 Traceback (most recent call last):
Mon Mar 20 20:00:15 MST 2017 File "/usr/lib/python2.7/dist-packages/deluge/ui/console/main.py", line 344, in do_command
Mon Mar 20 20:00:15 MST 2017 ret = self._commands[cmd].handle(*args, **options.__dict__)
Mon Mar 20 20:00:15 MST 2017 File "/usr/lib/python2.7/dist-packages/deluge/ui/console/commands/config.py", line 102, in handle
Mon Mar 20 20:00:15 MST 2017 return self._set_config(*args, **options)
Mon Mar 20 20:00:15 MST 2017 File "/usr/lib/python2.7/dist-packages/deluge/ui/console/commands/config.py", line 136, in _set_config
Mon Mar 20 20:00:15 MST 2017 val = simple_eval(options["set"][1] + " " .join(args))
Mon Mar 20 20:00:15 MST 2017 File "/usr/lib/python2.7/dist-packages/deluge/ui/console/commands/config.py", line 85, in simple_eval
Mon Mar 20 20:00:15 MST 2017 res = atom(src.next, src.next())
Mon Mar 20 20:00:15 MST 2017 File "/usr/lib/python2.7/dist-packages/deluge/ui/console/commands/config.py", line 54, in atom
Mon Mar 20 20:00:15 MST 2017 out.append(atom(next, token))
Mon Mar 20 20:00:15 MST 2017 File "/usr/lib/python2.7/dist-packages/deluge/ui/console/commands/config.py", line 77, in atom
Mon Mar 20 20:00:15 MST 2017 raise SyntaxError("malformed expression (%s)" % token[1])
Mon Mar 20 20:00:15 MST 2017 SyntaxError: malformed expression (,)
Mon Mar 20 20:00:15 MST 2017
Mon Mar 20 22:00:06 MST 2017
Mon Mar 20 22:00:11 MST 2017
Mon Mar 20 22:00:14 MST 2017 malformed expression (,)
Mon Mar 20 22:00:14 MST 2017 Traceback (most recent call last):
Mon Mar 20 22:00:14 MST 2017 File "/usr/lib/python2.7/dist-packages/deluge/ui/console/main.py", line 344, in do_command
Mon Mar 20 22:00:14 MST 2017 ret = self._commands[cmd].handle(*args, **options.__dict__)
Mon Mar 20 22:00:14 MST 2017 File "/usr/lib/python2.7/dist-packages/deluge/ui/console/commands/config.py", line 102, in handle
Mon Mar 20 22:00:14 MST 2017 return self._set_config(*args, **options)
Mon Mar 20 22:00:14 MST 2017 File "/usr/lib/python2.7/dist-packages/deluge/ui/console/commands/config.py", line 136, in _set_config
Mon Mar 20 22:00:14 MST 2017 val = simple_eval(options["set"][1] + " " .join(args))
Mon Mar 20 22:00:14 MST 2017 File "/usr/lib/python2.7/dist-packages/deluge/ui/console/commands/config.py", line 85, in simple_eval
Mon Mar 20 22:00:14 MST 2017 res = atom(src.next, src.next())
Mon Mar 20 22:00:14 MST 2017 File "/usr/lib/python2.7/dist-packages/deluge/ui/console/commands/config.py", line 54, in atom
Mon Mar 20 22:00:14 MST 2017 out.append(atom(next, token))
Mon Mar 20 22:00:14 MST 2017 File "/usr/lib/python2.7/dist-packages/deluge/ui/console/commands/config.py", line 77, in atom
Mon Mar 20 22:00:14 MST 2017 raise SyntaxError("malformed expression (%s)" % token[1])
Mon Mar 20 22:00:14 MST 2017 SyntaxError: malformed expression (,)
Mon Mar 20 22:00:14 MST 2017
journey@ubuntu1:~$