Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Still can't connect with qbittorrent v4.0.2 #1026

Closed
spmilden opened this issue Jan 20, 2018 · 52 comments
Closed

Still can't connect with qbittorrent v4.0.2 #1026

spmilden opened this issue Jan 20, 2018 · 52 comments

Comments

@spmilden
Copy link

What build of DuckieTV are you using (Standlone / Chrome Extension (New Tab / Browser Action))
...Standalone

What version of DuckieTV are you using (Stable 1.1.x / Nightly yyyymmddHHMM)
...Nightly V201801140130

What is your Operating System (Windows, Mac, Linux, Android)
...Windows

Describe the problem you are having and steps to reproduce if available
...Sorry to bug you again. I uninstalled v4.0.3 and installed v4.0.2 but still can't connect.

Attach any DuckieTV statistics or Developer Console logs if available
...Failed to load resource: the server responded with a status of 400 (ERROR)
app.js:3724 qBittorrent 3.2+ connect error! Object
(anonymous) @ app.js:3724
spmilden:*******@localhost:8080/version/api Failed to load resource: net::ERR_CONNECTION_REFUSED
deps.js:2354 qBittorrent 3.2+ Connect call failed.
(anonymous) @ deps.js:2354
app.js:3724 qBittorrent 3.2+ connect error! qBittorrent 3.2+ Connect call failed.
(anonymous) @ app.js:3724

@garfield69
Copy link
Collaborator

show me a screen capture of your qBt webui settings page.
and one of your duckietv qBt 3.2+ integration page.

@2635599
Copy link

2635599 commented Jan 20, 2018

is it not connecting or does dtv simply state it can't connect? i left qbittrrent 4.0.3 installed cause regardless of the message in dtv it does pass the torrent info to qbt, and qbt downloads the torrent just fine.

@spmilden
Copy link
Author

qbt
dtv

@garfield69
Copy link
Collaborator

if you use your chrome browser to access the qBt webui, by pasting http://localhost:8080 in the address box, do you get the qBt login challenge and can you then login to it?

@spmilden
Copy link
Author

It returns Invalid Request

@garfield69
Copy link
Collaborator

maybe something has grabbed port 8080 but has not released it for qBt to use (the old utorrent?).
so on qBt's webui setting page, set the port to 8085 and save it, then shut down qBt and duckietv.
start qBt, then duckietv, then on duckietv's qBt integration page set the port to 8085 and see if you can make that work.

@spmilden
Copy link
Author

That makes sense as utorrent was set to port 8080 and I haven't uninstalled it yet.
Before I do, quick question - using qbittorrent if I set the download path in DuckieTV is the torrent downloaded to the specified folder or moved after it completes? Thanks again for your help.

@garfield69
Copy link
Collaborator

if I set the download path in DuckieTV is the torrent downloaded to the specified folder or moved after it completes?

I believe the torrent downloaded to the specified folder.
if you are looking for post-processing of files after a download to a common folder, then I can recommend a filemanger like FileBot. see this wiki for examples.

@crashwave
Copy link

crashwave commented Jan 26, 2018

QBT was working fine with DTV for a long time up until a little over month ago. changed modem and set network from public (not sure why it was set to that) to private and after that nothing. Changed network back to public nothing. Uninstalled both dtv and qbt several time still not connecting.
Standalone Duckietv on 64 bit windows 10, Comodo internet sec.
Here is the error I get. Not sure if chrome, any help appreciated

Error: {"data":"","status":401,"config":{"method":"POST","transformRequest":[null],"transformResponse":[null],"headers":{"Content-Type":"application/x-www-form-urlencoded","X-Forwarded-Host":"chrome-extension://bagblfnohpiddokbpaacecffdboomafe","Accept":"application/json, text/plain, /"},"url":"http://localhost:8080/login","data":"username=admin&password=*****"},"statusText":"Unauthorized"}

@garfield69
Copy link
Collaborator

@crashwave Yes, qBt made a change in 4.0.3 that broke the DuckieTV qBt client interface. qbittorrent/qBittorrent@b827761 fixes this problem, which will be included in the next qBt release, whenever that gets published.
The problem cannot be fixed by DuckieTV, so 4.0.2 is the current compatible client.

@garfield69
Copy link
Collaborator

@spmilden so did you succeed in connecting qBt 4.0.2 with DTV once you switched ports?

@spmilden
Copy link
Author

@garfield69 I did but the downloads still went to the default drive and folder rather than to the path specified. It's a bit of a pain to manually move the finished downloads to the proper folders so Plex can recognize the shows and download the metadata for them but it's not a huge deal. I'll have some time to play around with other clients in a few days. If I figure it out I'll let you know. Thanks for following up!

@garfield69
Copy link
Collaborator

Just tested qBt 4.0.2 with my DTV set with series dlpath.
In order to make qBt use the path provided by DTV, you first must set your qBt download settings to manual.
image
otherwise qBt will continue to use it's default download path ;-)

@spmilden
Copy link
Author

Thanks - I'll give it a shot and let you know.

@spmilden
Copy link
Author

Still downloading to the default path. I'm pretty sure I have the settings correct. Am I missing something else
dtv-1
?
qbt settings-1
qbt settings-2

@garfield69
Copy link
Collaborator

did you recycle qBt and DuckieTV after making all those settings changes?
After which only new torrents started from DTV will get the path set (assuming you saved the dlpath for the associated DTV series), any existing torrents on qBt are not touched.
Can I see a shot of a DTV series that has the dlpath set, and a shot of the related qBt torrent General tab with the Save Path?
Also you can turn on qBt logging and check the log for errors after you start a DL from DTV.
image

@spmilden
Copy link
Author

Yes I had reset both and no errors.
dtv settings
qbt general

@garfield69
Copy link
Collaborator

Hmm. take a look at the DTV logs (press F12 to open the Development Tools page, and click on the Console tab to access the logs).
Do the Firing Magnet messages have the DLPath at the end, like mine do?
image

@garfield69
Copy link
Collaborator

Also, try changing the qBt download settings to this:
image

@spmilden
Copy link
Author

spmilden commented Jan 30, 2018

The Firing Magnet msg has null at the end which is different than yours. I just changed the settings in qbt, quit and restarted and the dl path is still the default.
developer log

@garfield69
Copy link
Collaborator

but you have already downloaded HtGAwM s04e01 before, so unless you deleted the torrent and files, qBt could cheat and claim the download was done already.... have you tried it with a never downloaded before torrent?

@spmilden
Copy link
Author

spmilden commented Jan 30, 2018

Thanks again for your continued help with this. FYI I had deleted the torrent and the files but just to make sure I just tried downloading a show from back in September that qbt has never downloaded. It's still going to the default dl path.
dtv dl settings
qbt save path

@garfield69
Copy link
Collaborator

well that is frustrating. We know that DTV is sending the path to qBt (your DTV log confirms it), so the problem has got to be in one of the qBt settings someplace.
Comparing your qBt download settings with mine, I see that there a three other settings that are different. So perhaps try those?
image

@garfield69
Copy link
Collaborator

Thinking about this some more, I'm beginning to wonder if qBt hasn't glitched it's config somehow, either when you backtracked down from 4.0.3 to 4.0.2, or because of a bug that treats some of the settings you previously made unchangeable or some such weirdness.
So as a last resort, you could try to uninstall qBt completly, then also scour manually for qBt folders, such as C:\Users\<username>\AppData\Local\qBittorrent and C:\Users\<username>\AppData\Roaming\qBittorrent and delete those folders.
Then from a fresh install, set the settings and see if that helps.

@spmilden
Copy link
Author

spmilden commented Jan 30, 2018

Thanks -unfortunately no change. BTW I'm not committed to qbt if you have better luck with a different client.

@garfield69
Copy link
Collaborator

Oh well, seeing as you cannot get qBt to work for you (works for me so I don't know what is going on), then you might as well try out one of the other clients that support dl-paths.
Currently one of BiglyBT, Deluge, rTorrent, Transmission, Vuze.

@spmilden
Copy link
Author

spmilden commented Feb 1, 2018

I just tried BiglyBT, Transmission, Vuze and Deluge with the same result, i.e., went to the default dl folder. I exited each client and dtv then restarted. Puzzling... So none of the clients will accept changing the dl folder from dtv. My assumption is that that problem exists with dtv since it's the common thing. What about doing a clean install of dtv? If so is there a way to save the list of shows so I don't have to reselect each of them without potentially contaminating the install?

@garfield69
Copy link
Collaborator

So for some reason the torrent clients are rejecting your choice of drive... and you say there is nothing in the logs of any of the torrent clients that gives an explanation?
Is there anything peculiar about the G drive that you are using as a destination?
Is it a NTFS local drive, or a mapped NTFS lan drive?
Is the I drive the same type and location as the G drive?
I've tested all the clients that can set dl path with both local and lan mapped NTFS drives and I can get my DTV to download to them all.
So it has to be something peculiar with your set up some place !!
What about as a one time TEST, setting the dl path to your local C drive?

@spmilden
Copy link
Author

spmilden commented Feb 2, 2018

I have a media server with five 2 tb drives - all are internal NTFS so there is no difference between the G and I drives. I'll try setting the dl path to C and see what happens. Any thoughts as to what I might check re my system set up? There's nothing I did when installing Windows 7 other than standard set up.

@garfield69
Copy link
Collaborator

So DTV and the torrent clients are running on this windows media server and therefore the G drive is a locally accessed drive?
or is the windows system that runs DTV and the torrent clients on one machine, and the media server G drive is a mapped network drive?
If you access the torrent client WEBUI directly (from the chrome browser, without going through DTV), and create a torrent by pasting the magnet to the add-a-torrent panel, and specify a download path override to G (assuming that the default is still to drive I), does that work?

@spmilden
Copy link
Author

spmilden commented Feb 2, 2018

Using the C drive as the default dl made no difference. All of the drives are locally accessed. Sorry but I don't know how to access the WEBUI via Chrome.

@garfield69
Copy link
Collaborator

garfield69 commented Feb 2, 2018

ok. which torrent client are you using now? what is the port number in the torrent client webui setup panel?
[edit] I'll then knock up some instructions for you to create the test I'd like you to try next.

@spmilden
Copy link
Author

spmilden commented Feb 2, 2018

Vuze and the port is 9091

@garfield69
Copy link
Collaborator

Ah well that is a shame. Vuze's remote webui browser panel does not support submitting magnets with a custom path, it uses the default path only. (Tested on Chrome browser, Firefox and IE). I can get my DTV to submit the custom dl path to vuze, so it must just be that plugin (Vuze Web Remote 0.6.5) that does not support changing paths.
Not useful for the test I was planning for you to try out.

How about Transmission:

  1. at the chrome browser address box paste http://127.0.0.1:9091
  2. and at the challenge login with your transmission webui username and password

pic of login panel

image
3. click on the open-torrent icon, paste the following magnet in the URL box and paste the following path to replace the default download path

magnet

magnet:?xt=urn:btih:931E0A390EB76C67CEF07A598AF7B03F820D5B23&dn=How.to.Get.Away.with.Murder.S04E01.HDTV.x264-KILLERS&tr=http%3A%2F%2Ftracker.trackerfix.com%3A80%2Fannounce&tr=udp%3A%2F%2F9.rarbg.me%3A2710%2Fannounce&tr=udp%3A%2F%2F9.rarbg.to%3A2710%2Fannounce&tr=udp%3A%2F%2Ftracker.zer0day.to%3A1337%2Fannounce&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969%2Fannounce&tr=udp%3A%2F%2Fcoppersurfer.tk%3A6969%2Fannounce

path

G:\TV Shows\How To Get Away With Murder

pic of open-torrent panel

image
3. when the upload is successful, click on the Info icon then select the active torrent to view the details

pic of active transmission with custom path

image
Note in my pic I'm using a different dlpath because I don't have a G drive ;-)
Your dl path should not be the default, which for transmission is usually C:\Users\<username>\Downloads

Did it work for you?

@spmilden
Copy link
Author

spmilden commented Feb 3, 2018

I'll give it a try and let you know.

@spmilden
Copy link
Author

spmilden commented Feb 6, 2018

I can't get Transmission to completely load. I've uninstalled and reinstalled it twice with the same result. Can I perform the test with qbt or another client?

@garfield69
Copy link
Collaborator

Sure. So for qBt:

  1. at the chrome browser address box paste http://127.0.0.1:8090 or http://localhost:8090
  2. and at the challenge popup, login with your qBt webui username and password

pic of login panel

image
3. click on the add-torrent-link icon, paste the following magnet in the URL box and paste the following path to replace the default download path

magnet

magnet:?xt=urn:btih:931E0A390EB76C67CEF07A598AF7B03F820D5B23&dn=How.to.Get.Away.with.Murder.S04E01.HDTV.x264-KILLERS&tr=http%3A%2F%2Ftracker.trackerfix.com%3A80%2Fannounce&tr=udp%3A%2F%2F9.rarbg.me%3A2710%2Fannounce&tr=udp%3A%2F%2F9.rarbg.to%3A2710%2Fannounce&tr=udp%3A%2F%2Ftracker.zer0day.to%3A1337%2Fannounce&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969%2Fannounce&tr=udp%3A%2F%2Fcoppersurfer.tk%3A6969%2Fannounce

path

G:\TV Shows\How To Get Away With Murder

pic of add-torrent-link panel

image
4. scroll down the popup and click on the download button

pic of the download button

image
5. when the torrent has loaded successfully, select the active torrent to view the details

pic of active qBt with custom path

image

Did it work for you?

@spmilden
Copy link
Author

spmilden commented Feb 7, 2018

It worked just fine! What now?

@garfield69
Copy link
Collaborator

now we are going to see if using a duckietv chrome browser extension works, so we can check if the problem is isolated to your standalone or not.
so for this test, i'd like you to:

  1. startup your standalone DuckieTV and make a backup using the Settings > backup > Create a Backup side panel.
  2. shutdown the standalone DuckieTV.
  3. install this nightly chrome extension https://chrome.google.com/webstore/detail/duckietv-browser-action-m/ikhklcamhmfmjbhckdjoabiepglbhaid
  4. wait for DTV to complete its first time initialisations (should take a couple minutes or so) and import your backup.
  5. start your qBt and connect your DTV extension to it.
  6. test downloading a torrent for a series with the DLpath set.
  7. report back :-)

@spmilden
Copy link
Author

spmilden commented Feb 7, 2018

Not sure about how to "connect your DTV extension to it"? Do you mean set qbt as the torrent client?

@garfield69
Copy link
Collaborator

DTV is my shorthand for DuckieTV. Assuming that you last use of the standalone was set to trying to use transmission, the backup you imported to your chrome extension DTV will now also be set to use that client connection. So all I meant was set up DTV to use the qBt 3.2+ client integration so you can connect with your qBt client.

@spmilden
Copy link
Author

spmilden commented Feb 7, 2018

I understood DTV. I just wasn't clear about connecting the DTV extension to it. I did so and it goes to the default folder rather than the specified dl path. BTW I unchecked the setting in qbt under the Downloads section "Display torrent content and some options" as it requires user input before it will start the download. If I check it I have the option of setting the dl path each time which defeats the intention of automating the process. Other than that my settings in qbt are exactly the same as yours.

@garfield69
Copy link
Collaborator

BTW I unchecked the setting in qbt under the Downloads section "Display torrent content and some options" as it requires user input before it will start the download. If I check it I have the option of setting the dl path each time which defeats the intention of automating the process.

WAIT. That does not sound right. That option only comes into effect if you submit a torrent via the qBt GUI.
When you tried the Chrome Browser WEBUI directly, you did not get that user input panel when you used the add-a-torrent, did you?
Are you saying that up to now, every time you has DTV submit a torrent you have been getting that pop up?

@garfield69
Copy link
Collaborator

Please check your DTV settings, is the Torrent Parameters disabled?
image

@spmilden
Copy link
Author

spmilden commented Feb 7, 2018

It is enabled - should it be disabled?

@garfield69
Copy link
Collaborator

garfield69 commented Feb 7, 2018

Aha!!!! turn it off and try your test again.

@spmilden
Copy link
Author

spmilden commented Feb 7, 2018

That did it! Thank you - thank you!!!

Now I assume I can go back to the standalone, uncheck the same setting and not need to use Chrome. Yes/no?

BTW I get an I/O error from qbt. This is from the log file: "(N) 2018-02-06T22:14:47 - An I/O error occurred, 'NCIS.S15E14.HDTV.x264-LOL[eztv].mkv' paused. NCIS.S15E14.HDTV.x264-LOL[eztv].mkv open (G:\TV Shows\NCIS\NCIS.S15E14.HDTV.x264-LOL[eztv].mkv) error: The process cannot access the file because it is being used by another process" When the error shows the torrent Status shows Stalled.
This happens for all active torrents.

I never had this happen with utorrent and the only change to my system is Chrome and qbt. Any ideas on how to find out what the offending process is?

@garfield69
Copy link
Collaborator

garfield69 commented Feb 7, 2018

That did it! Thank you - thank you!!!

\o/

Now I assume I can go back to the standalone, uncheck the same setting and not need to use Chrome. Yes/no?

Yes. use the Trash bin on the Chrome Extensions manager to remove the now redundant testing DTV extension.

Any ideas on how to find out what the offending process is?

Geesh :-b If it's not one thing its another ;-)
Do you think your Plex is getting in the way? is it a Service that is always running, or a program you can stop/start until the download is completed?

@garfield69
Copy link
Collaborator

Pehaps using the qBt option to make incomplete files suffixed with !qB may stop Plex assuming the file is ready for meta processing.

image

@spmilden
Copy link
Author

spmilden commented Feb 7, 2018

I had the same thought about Plex so stopped the server but it didn't make any difference. I then suspected antivirus but stopping that made no difference either. I just changed the setting in qbt you suggested but it didn't make any difference.

I searched online for the error and it seems to be a common problem with qbt going back to 2013 with no solutions that I've found so far. Any recommendation for another bt client other than Transmission which I can't get to load properly that will allow dtv to set the dl path?

@garfield69
Copy link
Collaborator

Try BiglyBT.

@spmilden
Copy link
Author

spmilden commented Feb 8, 2018

I think I figured out what was causing the I/O error. I stopped all of Cyberlink Power DVD's processes and the I/O error hasn't reappeared. Now that qbt seems to be working properly I'll hold off making any other changes. Thanks again for your help and patience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants