Closed ochronus closed 6 months ago
A bigger sample log section:
Jan 12 17:44:31 milim putioarr[424571]: [INFO ] [948d: [New-raws] Nozomanu Fushi no Boukensha - 02 [1080p] [NF].mkv]
Jan 12 17:44:31 milim putioarr[424571]: [INFO ] [5200: [New-raws] Sousou no Frieren - 18 [1080p] [AMZN].mkv]
Jan 12 17:44:32 milim putioarr[424571]: [ERROR] Error retrieving history form Sonarr: error decoding response body: expected value at line 1 column 1
Jan 12 17:44:34 milim putioarr[424571]: [ERROR] Error retrieving history form Sonarr: error decoding response body: expected value at line 1 column 1
Jan 12 17:44:38 milim putioarr[424571]: [ERROR] Error retrieving history form Sonarr: error decoding response body: expected value at line 1 column 1
Jan 12 17:44:40 milim putioarr[424571]: [ERROR] Error retrieving history form Sonarr: error decoding response body: expected value at line 1 column 1
Jan 12 17:44:41 milim putioarr[424571]: [ERROR] Error retrieving history form Sonarr: error decoding response body: expected value at line 1 column 1
Jan 12 17:44:42 milim putioarr[424571]: [ERROR] Error retrieving history form Sonarr: error decoding response body: expected value at line 1 column 1
Jan 12 17:44:44 milim putioarr[424571]: [ERROR] Error retrieving history form Sonarr: error decoding response body: expected value at line 1 column 1
Jan 12 17:44:48 milim putioarr[424571]: [ERROR] Error retrieving history form Sonarr: error decoding response body: expected value at line 1 column 1
Jan 12 17:44:50 milim putioarr[424571]: [ERROR] Error retrieving history form Sonarr: error decoding response body: expected value at line 1 column 1
Jan 12 17:44:51 milim putioarr[424571]: [ERROR] Error retrieving history form Sonarr: error decoding response body: expected value at line 1 column 1
Jan 12 17:44:52 milim putioarr[424571]: [ERROR] Error retrieving history form Sonarr: error decoding response body: expected value at line 1 column 1
Jan 12 17:44:54 milim putioarr[424571]: [ERROR] Error retrieving history form Sonarr: error decoding response body: expected value at line 1 column 1
Jan 12 17:44:58 milim putioarr[424571]: [ERROR] Error retrieving history form Sonarr: error decoding response body: expected value at line 1 column 1
Jan 12 17:45:00 milim putioarr[424571]: [ERROR] Error retrieving history form Sonarr: error decoding response body: expected value at line 1 column 1
Jan 12 17:45:01 milim putioarr[424571]: [ERROR] Error retrieving history form Sonarr: error decoding response body: expected value at line 1 column 1
Jan 12 17:45:02 milim putioarr[424571]: [ERROR] Error retrieving history form Sonarr: error decoding response body: expected value at line 1 column 1
Jan 12 17:45:04 milim putioarr[424571]: [ERROR] Error retrieving history form Sonarr: error decoding response body: expected value at line 1 column 1
Jan 12 17:45:08 milim putioarr[424571]: [ERROR] Error retrieving history form Sonarr: error decoding response body: expected value at line 1 column 1
Jan 12 17:45:10 milim putioarr[424571]: [ERROR] Error retrieving history form Sonarr: error decoding response body: expected value at line 1 column 1
Jan 12 17:45:11 milim putioarr[424571]: [ERROR] Error retrieving history form Sonarr: error decoding response body: expected value at line 1 column 1
Jan 12 17:45:12 milim putioarr[424571]: [ERROR] Error retrieving history form Sonarr: error decoding response body: expected value at line 1 column 1
Jan 12 17:45:14 milim putioarr[424571]: [ERROR] Error retrieving history form Sonarr: error decoding response body: expected value at line 1 column 1
Jan 12 17:45:18 milim putioarr[424571]: [ERROR] Error retrieving history form Sonarr: error decoding response body: expected value at line 1 column 1
Jan 12 17:45:20 milim putioarr[424571]: [ERROR] Error retrieving history form Sonarr: error decoding response body: expected value at line 1 column 1
Jan 12 17:45:21 milim putioarr[424571]: [ERROR] Error retrieving history form Sonarr: error decoding response body: expected value at line 1 column 1
Jan 12 17:45:22 milim putioarr[424571]: [ERROR] Error retrieving history form Sonarr: error decoding response body: expected value at line 1 column 1
Jan 12 17:45:24 milim putioarr[424571]: [ERROR] Error retrieving history form Sonarr: error decoding response body: expected value at line 1 column 1
Jan 12 17:45:28 milim putioarr[424571]: [ERROR] Error retrieving history form Sonarr: error decoding response body: expected value at line 1 column 1
Jan 12 17:45:30 milim putioarr[424571]: [ERROR] Error retrieving history form Sonarr: error decoding response body: expected value at line 1 column 1
Jan 12 17:45:31 milim putioarr[424571]: [ERROR] Error retrieving history form Sonarr: error decoding response body: expected value at line 1 column 1```
The error is indeed related. Putioarr check sonarr if the media was imported. Can you share you config? My guess is that your sonarr url or API key are incorrect.
Sure thing!
# Required. Username and password that sonarr/radarr use to connect to the proxy
username = "myusername"
password = "mypassword"
# Required. Directory where the proxy will download files to. This directory has to be readable by
# sonarr/radarr in order to import downloads
download_directory = "/mnt/internal_ssd/incoming/putioarr"
# Optional bind address, default "0.0.0.0"
bind_address = "0.0.0.0"
# Optional TCP port, default 9091
port = 9091
# Optional log level, default "info"
loglevel = "info"
# Optional UID, default 1000. Change the owner of the downloaded files to this UID. Requires root.
uid = 117
# Optional polling interval in secs, default 10.
polling_interval = 10
# Optional skip directories when downloding, default ["sample", "extras"]
skip_directories = ["sample", "extras"]
# Optional number of orchestration workers, default 10. Unless there are many changes coming from
# put.io, you shouldn't have to touch this number. 10 is already overkill.
orchestration_workers = 10
# Optional number of download workers, default 4. This controls how many downloads we run in parallel.
download_workers = 4
[putio]
# Required. Putio API key. You can generate one using `putioarr get-token`
api_key = "<redacted>"
# Both [sonarr] and [radarr] are optional, but you'll need at least one of them
[sonarr]
url = "http://127.0.0.1:8989/"
# Can be found in Settings -> General
api_key = "<redacted>"
Sonarr is indeed accessible at http://127.0.0.1:8989/ - everything's running on the same single server.
Do you happen to use a baseUrl
in sonarr? What's the output of curl -v http://127.0.0.1:8989/
? What happens if you remove the last slash from the url?
No, sonarr is listening at the root:
* processing: http://127.0.0.1:8989/
* Trying 127.0.0.1:8989...
* Connected to 127.0.0.1 (127.0.0.1) port 8989
> GET / HTTP/1.1
> Host: 127.0.0.1:8989
> User-Agent: curl/8.2.1
> Accept: */*
>
< HTTP/1.1 200 OK
< Content-Length: 1833
< Content-Type: text/html
< Date: Sat, 13 Jan 2024 07:39:54 GMT
< Server: Kestrel
< Cache-Control: no-cache, no-store
< Expires: -1
< Pragma: no-cache
<
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="mobile-web-app-capable" content="yes"/><meta name="apple-mobile-web-app-capable" content="yes"/><meta name="theme-color" content="#3a3f51"/><meta name="msapplication-navbutton-color" content="#3a3f51"/><meta name="description" content="Sonarr"/><link rel="apple-touch-icon" sizes="180x180" href="/Content/Images/Icons/apple-touch-icon.png?h=d+iS4xWxn2A2bjUwrERmSg"/><link rel="icon" type="image/png" sizes="32x32" href="/Content/Images/Icons/favicon-32x32.png?h=s64FHSxrh1sgZCiBBIVikQ"/><link rel="icon" type="image/png" sizes="16x16" href="/Content/Images/Icons/favicon-16x16.png?h=wksVbPqhKGB2B5P0O0h8IQ"/><link rel="manifest" href="/Content/Images/Icons/manifest.json?h=/5qJyrGdXNWB0rzU5fobuA" crossorigin="use-credentials"/><link rel="mask-icon" href="/Content/Images/Icons/safari-pinned-tab.svg?h=LLFuxx74TMIn3Vx2ai6a1A" color="#00ccff"/><link rel="shortcut icon" type="image/ico" href="/favicon.ico"/><meta name="msapplication-config" content="/Content/Images/Icons/browserconfig.xml"/><link rel="stylesheet" href="/Content/Fonts/fonts.css?h=mBv1x1/yHnvphLclzeQIBA"><script>window.Sonarr = {
urlBase: ''
};</script><script src="/index-2b8430f58fb30f170850.js"></script><link href="/Content/styles.css?h=VAwjWra8YBWH8JiyE7JFDA" rel="stylesheet"><title>Sonarr</title><style>.root {
overflow: hidden;
height: 100%; /* needed for proper layout */
}
@media only screen and (max-width: 768px) {
.root {
display: flex;
flex-direction: column;
min-height: 100%;
height: auto;
}
* Connection #0 to host 127.0.0.1 left intact
}</style></head><body><div id="portal-root"></div><div id="root" class="root"></div></body></html>⏎
I've removed the trailing slash in the config, will check back once there was a download - thanks for the tips!
Ok, that was it - removing the trailing slash from [sonarr] url fixed it. No more errors and imported downloads get removed from putioarr's incoming folder too. Maybe it's a good idea to make this explicit in the sample config file or the readme.
Thanks for your help!!
First of all, thank you for creating putioarr!! It was the missing piece for my near-perfect local setup.
My setup is the usual: I'm using Sonarr to track series, putioarr to download and then Sonarr to move the download to their final place. It all works like a charm with two minor issues:
putioarr's log is full of the following error message, consistently over multiple days and downloads:
[ERROR] Error retrieving history form Sonarr: error decoding response body: expected value at line 1 column 1
There's no more context, every couple of seconds the same error appears.(might be related!) while Sonarr copies the downloaded files to their final destination, putioarr is not deleting the already copied files from its download location - could be because it wasn't able to fetch history, and thus is doesn't know that Sonarr finished copying?