causefx / Organizr

HTPC/Homelab Services Organizer - Written in PHP
GNU General Public License v3.0
5.15k stars 290 forks source link

Nzbget Que won't display on homepage #1216

Closed sbcrumb closed 5 years ago

sbcrumb commented 5 years ago
Organizr Version: V 2.0.270
Branch: Master
WebServer: Nginx
Operating System Ubuntu 18.04

Problem Description:

Nzbget Que will not display current items or history based items on the homepage. Nzbget is running in a docker as is organizr all through cloudbox setup. Connection Test however runs successfully


Reproduction Steps:

Add nzbget and try it.


Errors on screen? If so paste here:

NO errors on screen but in chrome console I see these.


  | send | @ | jquery-2.2.4.min.js:4
-- | -- | -- | --
  | ajax | @ | jquery-2.2.4.min.js:4
  | organizrAPI | @ | functions.js?v=1ba18…9d4bce69897151:3558
  | homepageDownloader | @ | functions.js?v=1ba18…9d4bce69897151:5732
  | onclick | @ | (index):1
causefx commented 5 years ago

Can you paste homepage url value? you can delete domain name if there is one

sbcrumb commented 5 years ago

I have tried it the following ways. https://nzbget.domain.com http://nzbget:6789 nzbget:6789 docker-ip:6789 I have even tried a fresh install. running 21.0 docker image hotio/nzbget_sma:latest

causefx commented 5 years ago

Can you navigate to this on your browser?

http://docker-ip:6789/username:password/jsonrpc/listgroups

let me know what comes up

sbcrumb commented 5 years ago

{ "version" : "1.1", "result" : [

] }

I did it with https://domainname.com/username:password/jsonrpc/listgroups

causefx commented 5 years ago

does https://domainname.com/username:password/jsonrpc/history

bring up results?

sbcrumb commented 5 years ago

it sure does.


"version" : "1.1",
"result" : [
{
"ID" : 36741,
"Name" : "Celebrity.Family.Feud.2015.S05E04.720p.WEB.h264-TBS",
"RemainingFileCount" : 0,
"RetryData" : false,
"HistoryTime" : 1563396270,
"Status" : "SUCCESS/ALL",
"Log" : [],
"NZBID" : 36741,
"NZBName" : "Celebrity.Family.Feud.2015.S05E04.720p.WEB.h264-TBS",
"NZBNicename" : "Celebrity.Family.Feud.2015.S05E04.720p.WEB.h264-TBS",
"Kind" : "NZB",
"URL" : "",
"NZBFilename" : "Celebrity.Family.Feud.2015.S05E04.720p.WEB.h264-TBS.nzb",
"DestDir" : "\/downloads\/nzbs\/nzbget\/completed\/sonarr\/Celebrity.Family.Feud.2015.S05E04.720p.WEB.h264-TBS",
"FinalDir" : "",
"Category" : "sonarr",
"ParStatus" : "NONE",
"ExParStatus" : "NONE",
"UnpackStatus" : "SUCCESS",
"MoveStatus" : "SUCCESS",
"ScriptStatus" : "SUCCESS",
"DeleteStatus" : "NONE",
"MarkStatus" : "NONE",
"UrlStatus" : "NONE",
"FileSizeLo" : 1109621924,
"FileSizeHi" : 0,
"FileSizeMB" : 1058,
"FileCount" : 22,
"MinPostTime" : 0,
"MaxPostTime" : 1563290594,
"TotalArticles" : 1453,
"SuccessArticles" : 1314,
"FailedArticles" : 1,
"Health" : 1000,
"CriticalHealth" : 898,
"DupeKey" : "",
"DupeScore" : 0,
"DupeMode" : "ALL",
"Deleted" : false,
"DownloadedSizeLo" : 1040087037,
"DownloadedSizeHi" : 0,
"DownloadedSizeMB" : 991,
"DownloadTimeSec" : 14,
"PostTotalTimeSec" : 3,
"ParTimeSec" : 0,
"RepairTimeSec" : 0,
"UnpackTimeSec" : 2,
"MessageCount" : 91,
"ExtraParBlocks" : 0,
"Parameters" : [
{
"Name" : "drone",
"Value" : "0403e66326ef4fbb8006930d492de5d2"```
causefx commented 5 years ago

Lastly, can you check nginx logs?

sbcrumb commented 5 years ago

Error.log


2019/07/17 17:15:22 [error] 344#344: *1138 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /config/www/Dashboard/api/functions/homepage-connect-functions.php on line 837" while reading response header from upstream, client: 172.18.0.22, server: _, request: "POST /api/?v1/homepage/connect HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "organizr.domainname.com", referrer: "https://organizr.domainname.com/"
2019/07/17 17:18:02 [error] 344#344: *1208 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /config/www/Dashboard/api/functions/homepage-connect-functions.php on line 837" while reading response header from upstream, client: 172.18.0.22, server: _, request: "POST /api/?v1/homepage/connect HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "organizr.domainname.com", referrer: "https://organizr.domainname.com/"
2019/07/17 17:20:22 [error] 344#344: *1264 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /config/www/Dashboard/api/functions/homepage-connect-functions.php on line 837" while reading response header from upstream, client: 172.18.0.22, server: _, request: "POST /api/?v1/homepage/connect HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "organizr.domainname.com", referrer: "https://organizr.domainname.com/"
2019/07/17 17:21:15 [error] 344#344: *1374 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /config/www/Dashboard/api/functions/homepage-connect-functions.php on line 837" while reading response header from upstream, client: 172.18.0.22, server: _, request: "POST /api/?v1/homepage/connect HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "organizr.domainname.com", referrer: "https://organizr.domainname.com/"```

Access.log
```172.18.0.22 - - [17/Jul/2019:17:21:52 -0400] "POST /api/?v1/homepage/connect HTTP/1.1" 200 38560 "https://organizr.domainname.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36"
172.18.0.22 - - [17/Jul/2019:17:21:54 -0400] "HEAD / HTTP/1.1" 200 0 "https://organizr.domainname.com" "Mozilla/5.0+(compatible; UptimeRobot/2.0; http://www.uptimerobot.com/)"
172.18.0.22 - - [17/Jul/2019:17:22:12 -0400] "GET /api/?v1/plugin&plugin=chat&cmd=chat/message HTTP/1.1" 200 264 "https://organizr.domainname.com/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36"
172.18.0.22 - - [17/Jul/2019:17:22:14 -0400] "POST /api/?v1/homepage/connect HTTP/1.1" 200 244 "https://organizr.domainname.com/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36"
172.18.0.22 - - [17/Jul/2019:17:22:14 -0400] "POST /api/?v1/homepage/connect HTTP/1.1" 200 244 "https://organizr.domainname.com/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36"
172.18.0.22 - - [17/Jul/2019:17:22:15 -0400] "POST /api/?v1/homepage/connect HTTP/1.1" 200 38561 "https://organizr.domainname.com/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36"
172.18.0.22 - - [17/Jul/2019:17:22:19 -0400] "POST /api/?v1/homepage/connect HTTP/1.1" 200 38560 "https://organizr.domainname.com/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36"
172.18.0.22 - - [17/Jul/2019:17:22:20 -0400] "GET /api/?v1/plugin&plugin=chat&cmd=chat/message HTTP/1.1" 200 265 "https://organizr.domainname.com/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36"
172.18.0.22 - - [17/Jul/2019:17:22:20 -0400] "GET /api/?v1/plugin&plugin=chat&cmd=chat/message HTTP/1.1" 200 264 "https://organizr.domainname.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36"
172.18.0.22 - - [17/Jul/2019:17:22:21 -0400] "POST /api/?v1/homepage/connect HTTP/1.1" 200 246 "https://organizr.domainname.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36"
172.18.0.22 - - [17/Jul/2019:17:22:21 -0400] "POST /api/?v1/homepage/connect HTTP/1.1" 200 247 "https://organizr.domainname.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36"
172.18.0.22 - - [17/Jul/2019:17:22:22 -0400] "POST /api/?v1/homepage/connect HTTP/1.1" 200 38561 "https://organizr.domainname.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36"
172.18.0.22 - - [17/Jul/2019:17:22:24 -0400] "POST /api/?v1/homepage/connect HTTP/1.1" 500 5 "https://organizr.domainname.com/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36```
causefx commented 5 years ago

ahh okay, you must have a very large history queue. Let me think of best way to fix this.

sbcrumb commented 5 years ago

is that breaking everything? I can clear it to test.

causefx commented 5 years ago

I'm sure it is, can you clear half?

sbcrumb commented 5 years ago

I cleared it all lol I am trying to put something in the que to test now.

sbcrumb commented 5 years ago

That is and was 100% the issue. Thank you so much I didn't realize it would choke on a large history.

causefx commented 5 years ago

no worries, i will look into ways to fix, how many records did you have total?

sbcrumb commented 5 years ago

like 13k

causefx commented 5 years ago

whoa, ok, yea i will look into it :)

sbcrumb commented 5 years ago

thanks keep me posted if you need me to test anything.

causefx commented 5 years ago

will do, thanks!