Page 1 of 1
Unable to connect to qBittorrent(Radarr)
Posted: Sat Nov 25, 2023 5:15 pm
by Bauw
Hi!
I do not make it past the steps after you have installed yams and configured qbittorrent and the vpn.
The check-vpn goes through correctly so the VPN should be good to go inside qbittorrent.
The problem comes when trying to add qbittorrent to radarr/sonarr as a download client.
I always get the "Unable to connect to qBittorrent", i have tried to change the password inside the webgui of qbittorrent with success, as I can later use the same password to log in again after restarting server.
Im entering my hostname, 192.168.50.150 and writing the same username and password inside radarr/sonarr as i do in qbittorrent.
I have tried checking the logs and there is something i probably have done wrong, see logs below(from qbittorrent):
(W) 2023-11-25T16:58:58 - WebAPI login failure. Reason: invalid credentials, attempt count: 1, IP: ::ffff:192.168.50.150, username: admin
(W) 2023-11-25T16:59:09 - WebAPI login failure. Reason: invalid credentials, attempt count: 2, IP: ::ffff:192.168.50.150, username: admin
(N) 2023-11-25T16:59:18 - WebAPI login success. IP: ::ffff:192.168.50.150
Logs from radarr:
Code: Select all
2023-11-25 16:57:36.8|Warn|RadarrErrorPipeline|Invalid request Validation failed:
-- Host: Unable to connect to qBittorrent
2023-11-25 16:57:46.2|Info|Microsoft.Hosting.Lifetime|Application is shutting down...
2023-11-25 16:57:46.3|Info|ConsoleApp|Exiting main.
2023-11-25 16:58:15.0|Info|Bootstrap|Starting Radarr - /app/radarr/bin/Radarr - Version 5.1.3.8246
2023-11-25 16:58:15.2|Info|AppFolderInfo|Data directory is being overridden to [/config]
2023-11-25 16:58:15.2|Info|AppFolderInfo|Data directory is being overridden to [/config]
2023-11-25 16:58:16.2|Info|AppFolderInfo|Data directory is being overridden to [/config]
2023-11-25 16:58:16.8|Info|MigrationController|*** Migrating data source=/config/radarr.db;cache size=-20000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3;busytimeout=100 ***
2023-11-25 16:58:17.2|Info|MigrationController|*** Migrating data source=/config/logs.db;cache size=-20000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3;busytimeout=100 ***
2023-11-25 16:58:18.6|Info|Microsoft.Hosting.Lifetime|Now listening on: http://[::]:7878
2023-11-25 16:58:19.9|Info|CommandExecutor|Starting 2 threads for tasks.
2023-11-25 16:58:20.0|Info|Microsoft.Hosting.Lifetime|Application started. Press Ctrl+C to shut down.
2023-11-25 16:58:20.1|Info|Microsoft.Hosting.Lifetime|Hosting environment: Production
2023-11-25 16:58:20.1|Info|Microsoft.Hosting.Lifetime|Content root path: /app/radarr/bin
2023-11-25 17:00:47.1|Info|Auth|Auth-Success ip 192.168.50.150 username 'Bauw'
2023-11-25 17:00:47.2|Info|Auth|Auth-Success ip 192.168.50.150 username 'Bauw'
2023-11-25 17:00:59.2|Info|Auth|Auth-Success ip 192.168.50.150 username 'Bauw'
2023-11-25 17:03:21.4|Error|QBittorrent|Unable to test qBittorrent
Bauw is the username I have to login to radarr as it said that was required, not using that anywhere else. I have tried changing the username and password in qbittorrent and trying again in radarr/sonarr. Ran the yams destroy as well. No luck. I am a noobie so please be kind
Re: Unable to connect to qBittorrent(Radarr)
Posted: Sat Nov 25, 2023 7:16 pm
by rogs
Hey @Bauw!
Can you open qbittorrent in your browser?
Can you check the logs and see if something is not working as it should?
Re: Unable to connect to qBittorrent(Radarr)
Posted: Sat Nov 25, 2023 8:22 pm
by Bauw
Yupp I can, everything seems like it should be. Im not very far into the installation so I could try to redo everything I guess.
The only thing i did "wrong" was when I answered "yes" to the vpn question in the setup, where I then put in my username as it was in Windscribe, but you had to have a private key etc etc etc. Could that interfere with the process? Would it make more sense for me to redo everything and then configure the vpn manually by answering no?
I saw some thread that qbittorrent v4.6.1 was causing problems with the normal login as in admin and adminadmin.
Here are the logs from when I press the "test" button.
Code: Select all
2023-11-25 19:49:50.8|Info|RssSyncService|Starting RSS Sync
2023-11-25 19:49:50.8|Warn|FetchAndParseRssService|No available indexers. check your configuration.
2023-11-25 19:49:50.8|Info|DownloadDecisionMaker|No results found
2023-11-25 19:49:50.8|Info|RssSyncService|RSS Sync Completed. Reports found: 0, Reports grabbed: 0
2023-11-25 20:19:50.9|Info|RssSyncService|Starting RSS Sync
2023-11-25 20:19:50.9|Warn|FetchAndParseRssService|No available indexers. check your configuration.
2023-11-25 20:19:50.9|Info|DownloadDecisionMaker|No results found
2023-11-25 20:19:50.9|Info|RssSyncService|RSS Sync Completed. Reports found: 0, Reports grabbed: 0
2023-11-25 20:20:06.5|Error|QBittorrent|Unable to test qBittorrent
[v5.1.3.8246] System.Threading.Tasks.TaskCanceledException: A task was canceled.
at System.Net.Http.HttpClient.HandleFailure(Exception e, Boolean telemetryStarted, HttpResponseMessage response, CancellationTokenSource cts, CancellationToken cancellationToken, CancellationTokenSource pendingRequestsCts)
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at NzbDrone.Common.Http.Dispatchers.ManagedHttpDispatcher.GetResponseAsync(HttpRequest request, CookieContainer cookies) in ./Radarr.Common/Http/Dispatchers/ManagedHttpDispatcher.cs:line 105
at NzbDrone.Common.Http.HttpClient.ExecuteRequestAsync(HttpRequest request, CookieContainer cookieContainer) in ./Radarr.Common/Http/HttpClient.cs:line 157
at NzbDrone.Common.Http.HttpClient.ExecuteAsync(HttpRequest request) in ./Radarr.Common/Http/HttpClient.cs:line 70
at NzbDrone.Common.Http.HttpClient.Execute(HttpRequest request) in ./Radarr.Common/Http/HttpClient.cs:line 128
at NzbDrone.Core.Download.Clients.QBittorrent.QBittorrentProxyV2.IsApiSupported(QBittorrentSettings settings) in ./Radarr.Core/Download/Clients/QBittorrent/QBittorrentProxyV2.cs:line 35
at NzbDrone.Core.Download.Clients.QBittorrent.QBittorrentProxySelector.FetchProxy(QBittorrentSettings settings) in ./Radarr.Core/Download/Clients/QBittorrent/QBittorrentProxySelector.cs:line 87
at NzbDrone.Core.Download.Clients.QBittorrent.QBittorrentProxySelector.<>c__DisplayClass7_0.<GetProxyCache>b__0() in ./Radarr.Core/Download/Clients/QBittorrent/QBittorrentProxySelector.cs:line 82
at NzbDrone.Common.Cache.Cached`1.Get(String key, Func`1 function, Nullable`1 lifeTime) in ./Radarr.Common/Cache/Cached.cs:line 99
at NzbDrone.Core.Download.Clients.QBittorrent.QBittorrentProxySelector.GetProxyCache(QBittorrentSettings settings, Boolean force) in ./Radarr.Core/Download/Clients/QBittorrent/QBittorrentProxySelector.cs:line 82
at NzbDrone.Core.Download.Clients.QBittorrent.QBittorrentProxySelector.GetProxy(QBittorrentSettings settings, Boolean force) in ./Radarr.Core/Download/Clients/QBittorrent/QBittorrentProxySelector.cs:line 65
at NzbDrone.Core.Download.Clients.QBittorrent.QBittorrent.TestConnection() in ./Radarr.Core/Download/Clients/QBittorrent/QBittorrent.cs:line 414
2023-11-25 20:20:06.5|Warn|RadarrErrorPipeline|Invalid request Validation failed:
-- Host: Unable to connect to qBittorrent
Re: Unable to connect to qBittorrent(Radarr)
Posted: Sat Nov 25, 2023 9:21 pm
by rogs
Yes, the VPN might be the issue. If Gluetun can't connect to your VPN, you won't be able to access qbittorrent.
Also, you can try using gluetun
as the hostname instead of the IP address. The host is 8080
Re: Unable to connect to qBittorrent(Radarr)
Posted: Sat Nov 25, 2023 9:52 pm
by Bauw
I think the VPN i configured correctly but what do I know
Gluetun can connect to the VPN(I believe because I get an IP from the provider).
Tried to use gluetun instead of the IP but no success.
Is there any way I can reset everything and try again? I tried to run the .install again but the settings are still there.
I dont understand why it cant just authenticate correctly Im thinking if theres anything wrong in the "composer"(No idea what im talking about).
I have used ufw to allow plex outside the network before, could it be problematic that ufw is enabled or something? Maybe it does not matter because as I understand it is in its own environment.
Re: Unable to connect to qBittorrent(Radarr)
Posted: Sat Nov 25, 2023 9:56 pm
by Bauw
I was too quick with the submit button!!!
After I did "reinstall" it even though qbittorrent seemed to already have the old configuration.
After changing the composer file again and configuring that from scratch AND using your trick with using gluetun as host instead, it works!!
Finally, thank you so much! Very much appreciated for the great script/program and help! Makes life so much easier for me who is super new to just cli and ubuntu.
Re: Unable to connect to qBittorrent(Radarr)
Posted: Sat Nov 25, 2023 11:59 pm
by rogs
That's good to know! I'm glad it worked out. And you are welcome! I love knowing that people are running my script on their servers
If you have any other issues or suggestions, let us know!