[Support] binhex - DelugeVPN


Recommended Posts

My docker doesn't restart but I keep getting an error and I cant open the webui.

1064072147_ScreenShot2021-01-14at5_21_18PM.thumb.png.81717972efe4829e9daea720e8eb99d8.png

842702302_ScreenShot2021-01-14at5_34_05PM.thumb.png.facb92f4417fe1fd6101efd20d58bb9b.png

 

 

Created by...

stdout

21:39:57

___. .__ .__

stdout

21:39:57

\_ |__ |__| ____ | |__ ____ ___ ___

stdout

21:39:57

| __ \| |/ \| | \_/ __ \\ \/ /

stdout

21:39:57

| \_\ \ | | \ Y \ ___/ > <

stdout

21:39:57

|___ /__|___| /___| /\___ >__/\_ \

stdout

21:39:57

\/ \/ \/ \/ \/

stdout

21:39:57

https://hub.docker.com/u/binhex/

stdout

21:39:57

stdout

21:39:57

2021-01-14 21:39:57.829539 [info] System information Linux binhex-arch-qbittorrentvpn1 4.4.59+ #25426 SMP PREEMPT Mon Dec 14 18:53:21 CST 2020 x86_64 GNU/Linux

stdout

21:39:57

2021-01-14 21:39:57.872548 [info] OS_ARCH defined as 'x86-64'

stdout

21:39:57

2021-01-14 21:39:57.913983 [info] PUID defined as '1026'

stdout

21:39:57

2021-01-14 21:39:57.957521 [info] PGID defined as '100'

stdout

21:39:58

2021-01-14 21:39:58.144039 [info] UMASK defined as '000'

stdout

21:39:58

2021-01-14 21:39:58.186140 [info] Permissions already set for volume mappings

stdout

21:39:58

2021-01-14 21:39:58.229370 [info] Deleting files in /tmp (non recursive)...

stdout

21:39:58

2021-01-14 21:39:58.276966 [info] VPN_ENABLED defined as 'yes'

stdout

21:39:58

2021-01-14 21:39:58.321762 [info] VPN_CLIENT defined as 'OPENVPN'

stdout

21:39:58

2021-01-14 21:39:58.363485 [info] VPN_PROV defined as 'MULLVAD'

stdout

21:39:58

2021-01-14 21:39:58.404981 [info] LAN_NETWORK defined as '192.168.254.0/24'

stdout

21:39:58

2021-01-14 21:39:58.447030 [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'

stdout

21:39:58

2021-01-14 21:39:58.489440 [info] VPN_USER defined as '4558774458688527'

stdout

21:39:58

2021-01-14 21:39:58.530778 [info] VPN_PASS defined as 'M'

stdout

21:39:58

2021-01-14 21:39:58.572328 [info] ENABLE_PRIVOXY defined as 'YES'

stdout

21:39:58

2021-01-14 21:39:58.614404 [info] ADDITIONAL_PORTS defined as '1234'

stdout

21:39:58

2021-01-14 21:39:58.656800 [info] WEBUI_PORT defined as '8085'

stdout

21:39:58

2021-01-14 21:39:58.697753 [info] Starting Supervisor...

stdout

21:39:58

2021-01-14 21:39:58,928 INFO Included extra file "/etc/supervisor/conf.d/qbittorrent.conf" during parsing

stdout

21:39:58

2021-01-14 21:39:58,929 INFO Set uid to user 0 succeeded

stdout

21:39:58

2021-01-14 21:39:58,935 INFO supervisord started with pid 7

stdout

21:39:59

2021-01-14 21:39:59,937 INFO spawned: 'start-script' with pid 109

stdout

21:39:59

2021-01-14 21:39:59,939 INFO spawned: 'watchdog-script' with pid 110

stdout

21:39:59

2021-01-14 21:39:59,940 INFO reaped unknown pid 8 (exit status 0)

stdout

21:39:59

2021-01-14 21:39:59,949 DEBG 'start-script' stdout output:

stdout

21:39:59

[info] VPN is enabled, beginning configuration of VPN

stdout

21:39:59

stdout

21:39:59

2021-01-14 21:39:59,949 INFO success: start-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)

stdout

21:39:59

2021-01-14 21:39:59,949 INFO success: watchdog-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)

Edited by mdez
upload pictures
Link to comment
6 hours ago, binhex said:

you are running an out of date docker image, click on the 'force update' link or click on 'check for updates' button and then apply updates to update to the latest image.

Thanks it's back working now. Not sure why it didn't downloaded the latest one the first time but forcing another check for update allowed me to get the newest one.

  • Like 1
Link to comment
23 hours ago, nowhere99 said:

Hi, I can no longer get sonar or radar to connect to deluge-vpn. When I test the connection I get a "Authentication Failed" error. All was working before 12/22. I have unraid auto-updating nightly so that's likely when it died. I can log in from a linux box with the deluge thin client running, Connects and is fully operational. The web interface runs but it doesn't really work. It's there, accepts logining in and all the buttons work, but most of the preferences are blank, changing any doesn't stick, it doesn't show any active torrents and won't actually add any torrents. The biggest problem is getting sonar and radar authenticated again. I copy paste the address that just worked to get me in the web interface (one I haven't ever changed). Not sure what all info y'all need to help. Sonar settings for deluge are stupid simple. IP address of unraid machine, port 8112 (deluge port) and password, which I'm certain is correct.  Any ideas? Let me know if you need some info.

THANKS!

 

EDIT only thing interesting in the logs is SOMETIMES I can make this show up. But I think that's only when I was playing around with the web client and trying to make it connect to the localhost daemon...





2021-01-13 23:44:19,627 DEBG 'watchdog-script' stderr output:

Traceback (most recent call last):
Failure: deluge.error.NotAuthorizedError: Auth level too low: 0 < 5

 

I deleted and reinstalled the docker and now I can't connect with the thin client either. The connect button is greyed out so I guess the daemon isn't running? It's been working fine for three years now dead. Any ideas at all?  Here's the log with some errors I found tonight...

File "/usr/lib/python3.8/site-packages/deluge/common.py", line 198, in archive_files
os.remove(sorted(all_arcs)[0])
builtins.IsADirectoryError: [Errno 21] Is a directory: '/config/archive/state-2020-10-05T01-08-16'

2021-01-13 23:36:17,989 DEBG 'watchdog-script' stdout output:
[info] Deluge process listening on port 58846

2021-01-13 23:36:21,841 DEBG 'watchdog-script' stdout output:
Setting "random_port" to: False
Configuration value successfully updated.

2021-01-13 23:36:25,143 DEBG 'watchdog-script' stdout output:
Setting "listen_ports" to: (51117, 51117)
Configuration value successfully updated.

2021-01-13 23:36:29,119 DEBG 'watchdog-script' stdout output:
[info] No torrents with state 'Error' found


2021-01-13 23:36:29,120 DEBG 'watchdog-script' stdout output:
[info] Starting Deluge Web UI...
[info] Deluge Web UI started

2021-01-13 23:36:29,121 DEBG 'watchdog-script' stdout output:
[info] Attempting to start Privoxy...

2021-01-13 23:36:30,129 DEBG 'watchdog-script' stdout output:
[info] Privoxy process started
[info] Waiting for Privoxy process to start listening on port 8118...

2021-01-13 23:36:30,134 DEBG 'watchdog-script' stdout output:
[info] Privoxy process listening on port 8118

2021-01-13 23:44:19,626 DEBG 'watchdog-script' stderr output:
Unhandled error in Deferred:

2021-01-13 23:44:19,627 DEBG 'watchdog-script' stderr output:

Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/twisted/internet/defer.py", line 654, in _runCallbacks
current.result = callback(current.result, *args, **kw)
File "/usr/lib/python3.8/site-packages/twisted/internet/defer.py", line 1116, in _cbDeferred
self.callback(self.resultList)
File "/usr/lib/python3.8/site-packages/twisted/internet/defer.py", line 460, in callback
self._startRunCallbacks(result)
File "/usr/lib/python3.8/site-packages/twisted/internet/defer.py", line 568, in _startRunCallbacks
self._runCallbacks()
--- <exception caught here> ---
File "/usr/lib/python3.8/site-packages/twisted/internet/defer.py", line 654, in _runCallbacks
current.result = callback(current.result, *args, **kw)
File "/usr/lib/python3.8/site-packages/deluge/ui/web/json_api.py", line 190, in _on_rpc_request_failed
return self._send_response(request, response)
File "/usr/lib/python3.8/site-packages/deluge/ui/web/json_api.py", line 232, in _send_response
response = json.dumps(response)
File "/usr/lib/python3.8/json/__init__.py", line 231, in dumps
return _default_encoder.encode(obj)
File "/usr/lib/python3.8/json/encoder.py", line 199, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/usr/lib/python3.8/json/encoder.py", line 257, in iterencode
return _iterencode(o, 0)
File "/usr/lib/python3.8/json/encoder.py", line 179, in default
raise TypeError(f'Object of type {o.__class__.__name__} '
builtins.TypeError: Object of type Failure is not JSON serializable

2021-01-13 23:44:19,627 DEBG 'watchdog-script' stderr output:
Unhandled error in Deferred:

2021-01-13 23:44:19,627 DEBG 'watchdog-script' stderr output:

Traceback (most recent call last):
Failure: deluge.error.NotAuthorizedError: Auth level too low: 0 < 5

2021-01-13 23:51:07,422 DEBG 'start-script' stdout output:
[info] Successfully assigned and bound incoming port '51117'

2021-01-14 00:06:07,800 DEBG 'start-script' stdout output:
[info] Successfully assigned and bound incoming port '51117'

2021-01-14 00:21:08,163 DEBG 'start-script' stdout output:
[info] Successfully assigned and bound incoming port '51117'

 

Edited by nowhere99
Link to comment
18 hours ago, Tucubanito07 said:

Hey Binhex. Quick question. I re-did this docker yesterday and got it to work, However, when deludge has completed downloading the file. Does it move the file or is Sonarr and Radarr that moves the file? I know this is not Sonarr or Radarr but wanted to see if Deludge is the one who perform this action?

typically its the metadata downloader (such as sonarr, radarr etc) NOT the download client (such as deluge) that does the copying (note i didnt use the word move, as sonarr etc generally do a copy not a move for torrents), HOWEVER it is possible for the download client to do the move/copy if you use a script to do this, but its not normally required.

  • Like 1
Link to comment

Deluge has a very functional "move on completion" facility.  Look in Deluge -> Preferences -> Downloads. No script required.  Doing the move from deluge ensures that the torrent continues to seed.

 

It works for me!

Screenshot from 2021-01-15 23-16-54.png

 

/LeechTorrents is a 'cacheonly' share. /Torrents is a normal, protected, share.

Edited by PeterB
Add detail
Link to comment
32 minutes ago, binhex said:

typically its the metadata downloader (such as sonarr, radarr etc) NOT the download client (such as deluge) that does the copying (note i didnt use the word move, as sonarr etc generally do a copy not a move for torrents), HOWEVER it is possible for the download client to do the move/copy if you use a script to do this, but its not normally required.

Ok so now i know the problem is with either Sonarr or Radarr. You are correct, it does a copy not a move. I will troubleshoot on thouse forums. Thank you so much.

Link to comment
23 minutes ago, PeterB said:

Deluge has a very functional "move on completion" facility.  Look in Deluge -> Preferences -> Downloads. No script required.  Doing the move from deluge ensures that the torrent continues to seed.

 

It works for me!

Screenshot from 2021-01-15 23-16-54.png

 

/LeechTorrents is a 'cacheonly' share. /Torrents is a normal, protected, share.

this is certainly one way of doing it, but for me this wouldnt work too well as i have split tv/movie collections, so i use the more granular control you get with sonarr to ensure the right file goes in the right location and is also post processed for filename changes and crud removal.

  • Like 1
Link to comment
21 minutes ago, PeterB said:

Deluge has a very functional "move on completion" facility.  Look in Deluge -> Preferences -> Downloads. No script required.  Doing the move from deluge ensures that the torrent continues to seed.

 

It works for me!

Screenshot from 2021-01-15 23-16-54.png

 

/LeechTorrents is a 'cacheonly' share. /Torrents is a normal, protected, share.

I see this option. The only thing is, there is no option on deluge that says SOnarr move/copy to TV Shows and Radarr move/copy to Movies. If that was an option, this would resolve the issue.

 

But @binhex on the above comment said that sonarr or radarr are the ones who copy the files. My problem is, that it does not copy all of the files over to the TV Shows or Movies. It works for some but now all, which is very weird.

Link to comment

I always post-process my downloads, for instance, to add subtitles into the mkv or change parameters, synchronise tracks - that's when I make a copy of the mkv in my Movies or Series shares. 

In any case, I wouldn't want to upload from the same location as my library. 

Link to comment
3 hours ago, Tucubanito07 said:

I see this option. The only thing is, there is no option on deluge that says SOnarr move/copy to TV Shows and Radarr move/copy to Movies. If that was an option, this would resolve the issue.

Yes there is, you have to use lables. When you hare created labels you can right click the label and go to label options. There you set the path to Tv shows and Movies.

  • Thanks 1
Link to comment

Hey @binhex

 

I'm currently running the 'latest' image with IvacyVPN and none of my torrents seems to start. I'm currently attempting to download te ubuntu 20.11 torrent for a solid test. And it never starts. Strangely my VPN IP address dosn't show up in the WEBUI but there are no errors about it in the log, picture attached to show what i mean.

 

The log shows that deluge gets the IP Address and that privoxy starts, No errors. I've turned off port forwarding as i don't pay for it with Ivacy. I tried using Amsterdam as my endpoint and have just tested it using Germany-Frankfurt but nothing changes. 

 

Can you advise? I've obscured my log file below so you can see the log bootup process, nothing sinister that i can see!

 


2021-01-15 20:10:49,598 DEBG 'watchdog-script' stdout output:
[info] Attempting to start Deluge...
[info] Removing deluge pid file (if it exists)...

2021-01-15 20:10:50,081 DEBG 'watchdog-script' stdout output:
[info] Deluge key 'listen_interface' currently has a value of '141.xxx.xxx.xxx<obscured>'
[info] Deluge key 'listen_interface' will have a new value '46.xxx.xxx.xxx<obscured>'
[info] Writing changes to Deluge config file '/config/core.conf'...

2021-01-15 20:10:50,384 DEBG 'watchdog-script' stdout output:
[info] Deluge key 'outgoing_interface' currently has a value of 'tun0'
[info] Deluge key 'outgoing_interface' will have a new value 'tun0'
[info] Writing changes to Deluge config file '/config/core.conf'...

2021-01-15 20:10:50,647 DEBG 'watchdog-script' stdout output:
[info] Deluge key 'default_daemon' currently has a value of 'c911ba00193<obscured>'
[info] Deluge key 'default_daemon' will have a new value 'c911ba0019354f<obscured>'
[info] Writing changes to Deluge config file '/config/web.conf'...

2021-01-15 20:10:51,153 DEBG 'watchdog-script' stdout output:
[info] Deluge process started
[info] Waiting for Deluge process to start listening on port 58846...

2021-01-15 20:10:51,484 DEBG 'watchdog-script' stdout output:
[info] Deluge process listening on port 58846

2021-01-15 20:10:54,450 DEBG 'watchdog-script' stdout output:
[info] No torrents with state 'Error' found


2021-01-15 20:10:54,451 DEBG 'watchdog-script' stdout output:
[info] Starting Deluge Web UI...

2021-01-15 20:10:54,451 DEBG 'watchdog-script' stdout output:
[info] Deluge Web UI started

2021-01-15 20:10:54,452 DEBG 'watchdog-script' stdout output:
[info] Attempting to start Privoxy...

2021-01-15 20:10:55,456 DEBG 'watchdog-script' stdout output:
[info] Privoxy process started
[info] Waiting for Privoxy process to start listening on port 8118...

2021-01-15 20:10:55,460 DEBG 'watchdog-script' stdout output:
[info] Privoxy process listening on port 8118

deluge.JPG

Link to comment
1 hour ago, powderwt said:

Been having some issues the past 5 days or so not being able to connect to deluge webui. Verified i was on the ``latest`` branch also tried reinstalling deluge to no avail.

 

Believe it has something to do with this bit of the supervisord log, with openvpn updating to 2.5.0?

Im using mullvad vpn fwiw...

deluge_supervisord_censored_snippet 1.45 kB · 0 downloads

Please post the full supervisord.log file, redact any username/pw

Link to comment
2 minutes ago, ifruit said:

Not sure what I'm doing wrong, pretty green when it comes to Unraid and Docker so any help is appreciated.

 

All of my torrents start when I open Deluge and then they slowly over 10 seconds disconnect peers and stop downloading.

 

I am using PIA with Openvpn.

My log file is attached. Again any help is appreciated greatly.

supervisord copy.txt 78.87 kB · 0 downloads

Probably misconfigured volume mappings. Please post your docker run command or a screenshot of your container template. Also post a screenshot of your downloads settings in deluge.

Link to comment
11 minutes ago, ifruit said:

Thanks for the reply! I'll add them in this response.

In your downloads settings in deluge change the download to path to /data

I also recommend having a complete an incomplete folders. So consider changing the download to path to /data/Incomplete and check the move completed to and add the path /data/Complete. Feel free to use any folder names you want, mine was just an example but /data is a must have since in your template have mapped /data to /media/Plex/Inprogress 

Edited by strike
Link to comment
3 hours ago, strike said:

In your downloads settings in deluge change the download to path to /data

I also recommend having a complete an incomplete folders. So consider changing the download to path to /data/Incomplete and check the move completed to and add the path /data/Complete. Feel free to use any folder names you want, mine was just an example but /data is a must have since in your template have mapped /data to /media/Plex/Inprogress 

 

Much better to define new container paths, then you have more control of where the various folders are.

I have my 'incomplete' on a cache-only share and my 'complete' on a protected share.

Edited by PeterB
Link to comment
8 minutes ago, PeterB said:

 

Much better to define new container paths, then you have more control of where the various folders are.

I have my 'incomplete' on a cache-only share and my 'complete' on a protected share.

Most people have sonarr/radarr/medusa do the moving and post-processing. That's the easiest way to do it. You end up with the same result, incomplete on cache and complete where they should be on the array. If you do the volume mapping right.

 

So I do not agree with you that is best to "set up new container paths". At least for new users, they should use the default until they are comfortable with volume mappings. This is also because users often use more containers from the same author and they tend to use the same container paths. So using the default is way easier then to make new ones for all of the containers.

 

I don't see how defining new container paths gives you more control? They are just mappings to where you have your data. Your data will end up where you want anyway, if you do it right. Creating new ones will confuse new users even more then it needs to. 

Link to comment
32 minutes ago, strike said:

Most people have sonarr/radarr/medusa do the moving and post-processing.

Okay - I refuse to use radarr because I hate having a new folder created for each movie - what's the point?

It seems ridiculous, to me, to maintain a lot of folders, each with just a single mkv file which, as far as I'm aware, is still enforced by radarr.

If radarr handles the separation of incomplete and complete folders, then fine - as long as you don't mind unnecessary nodes in your file structure.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.