General NAS-Central Forums

Welcome to the NAS community
It is currently Thu Sep 21, 2017 7:33 pm

All times are UTC




Post new topic Reply to topic  [ 132 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7, 8, 9  Next
Author Message
PostPosted: Wed Oct 12, 2016 8:53 pm 
Offline

Joined: Sat Sep 24, 2016 2:22 pm
Posts: 25
burbulence wrote:
I'm using 2.7.11 and currently 0% cpu usage. Ok I have Backlog to 3600 and dailys to 300.

Open terminal and use the top command to see which program is using the cpu time


Ok will try and lower the intervals a bit. Top shows python2/Sickrage cpu usage close to 100%.
Code:
  PID  PPID USER     STAT   VSZ %MEM CPU %CPU COMMAND
 3417     1 root     S     182m 36.7   0 98.4 /opt/bin/python2 /opt/share/sickbeard/SickBeard.py --datadir /opt/usr/etc/config/sickbeard --config /opt/usr/etc/config/sickbeard/config.ini -d --pidfile /o


Top
 Profile  
 
PostPosted: Wed Oct 12, 2016 9:09 pm 
Offline

Joined: Sun Feb 17, 2013 10:00 pm
Posts: 307
what version of Sickbeard do you have?


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
PostPosted: Wed Oct 12, 2016 9:34 pm 
Offline

Joined: Sat Sep 24, 2016 2:22 pm
Posts: 25
burbulence wrote:
what version of Sickbeard do you have?


Code:
SickRage Info:
Branch: master
Commit: 21c9621a36dabe345fc4879200c3fba39b84c8ce
Version: 2016.10.11-1
Database Version: 44.0
Python Version: 2.7.11 (default, Aug 19 2016, 07:27:57) [GCC 5.4.0]
SSL Version: OpenSSL 1.0.2h 3 May 2016
OS: Linux-2.6.31.8-armv5tel-with-glibc2.4


Top
 Profile  
 
PostPosted: Thu Oct 13, 2016 6:40 am 
Offline

Joined: Sun Feb 17, 2013 10:00 pm
Posts: 307
Only other suggestion is look through your sickbeard logs and see what it is doing while using all your cpu, put it up on pastebin if you like and I'll scan through it too


Top
 Profile  
 
PostPosted: Thu Oct 13, 2016 9:11 am 
Offline

Joined: Sat Sep 24, 2016 2:22 pm
Posts: 25
burbulence wrote:
Only other suggestion is look through your sickbeard logs and see what it is doing while using all your cpu, put it up on pastebin if you like and I'll scan through it too


Hmm it seems to have calmed down now. CPU at 0%. Didn't change anything that I can think of but I did mess around a bit in Sickrage settings.
Thanks for the offer, will sure post logs if the problem returns!

Thanks again for your scripts and all your help! :D


Top
 Profile  
 
PostPosted: Thu Oct 13, 2016 5:10 pm 
Offline
User avatar

Joined: Mon Dec 21, 2015 7:21 pm
Posts: 597
kramiz1 wrote:
Code:
<snip>
OS: Linux-2.6.31.8-armv5tel-with-glibc2.4


What? The NAS has uClibc. :D

Or @barmalej2 Your package supports the glibc specific things, So fully compatible, with glibc specific codes (like locale)? :o :?:

_________________
Thanks nas-central the lot of help! :)


Top
 Profile  
 
PostPosted: Thu Oct 13, 2016 5:46 pm 
Offline

Joined: Sat Sep 24, 2016 2:22 pm
Posts: 25
MrDini wrote:
kramiz1 wrote:
Code:
<snip>
OS: Linux-2.6.31.8-armv5tel-with-glibc2.4


What? The NAS has uClibc. :D

Or @barmalej2 Your package supports the glibc specific things, So fully compatible, with glibc specific codes (like locale)? :o :?:


Don't know what that means... :D


Top
 Profile  
 
PostPosted: Thu Oct 13, 2016 6:54 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6039
MrDini wrote:
kramiz1 wrote:
Code:
<snip>
OS: Linux-2.6.31.8-armv5tel-with-glibc2.4


What? The NAS has uClibc. :D

Entware-ng has glibc.


Top
 Profile  
 
PostPosted: Fri Oct 14, 2016 5:06 am 
Offline
User avatar

Joined: Mon Dec 21, 2015 7:21 pm
Posts: 597
Ah, Wow! I have to try it! :D

_________________
Thanks nas-central the lot of help! :)


Top
 Profile  
 
PostPosted: Fri Oct 14, 2016 5:46 pm 
Offline

Joined: Thu Oct 31, 2013 10:23 pm
Posts: 40
Out of interest, I gave the latest script a try to get SabNZB working. Results below

Code:
root@NSA310:~# echo $PATH
/ffp/sbin:/usr/sbin:/sbin:/ffp/bin:/usr/bin:/bin:/opt/bin:/opt/bin
root@NSA310:~# chmod a+x /opt/usr/etc/config/sickbeard/cache/images
root@NSA310:~# chmod a+x /opt/etc/init.d/NZBautomator
chmod: cannot access `/opt/etc/init.d/NZBautomator': No such file or directory
root@NSA310:~# chmod a+x /opt/etc/init.d/S80NZBautomator
root@NSA310:~# cd /opt/etc/init.d sh -x S80NZBautomator start
root@NSA310:/opt/etc/init.d# sh -x S80NZBautomator start
+ . /opt/etc/autonzb.conf
++ SABnzbd=1
++ Nzbget=1
++ CouchPotato=0
++ SickRage=1
++ Headphones=0
++ Mylar=0
++ NzbtoMedia=0
++ packageupdate=1
++ init=/opt/etc/init.d
++ useradmin=/i-data/md0/admin
++ configdir=/opt/usr/etc/config
++ share=/opt/share
++ sabconfig=/opt/usr/etc/config/sabnzbd
++ nzbgetconfig=/opt/usr/etc/config/nzbget
++ couchconfig=/opt/usr/etc/config/couchpotato
++ sickconfig=/opt/usr/etc/config/sickbeard
++ headconfig=/opt/usr/etc/config/headphones
++ mylarconfig=/opt/usr/etc/config/mylar
++ nzbtomedia=/opt/usr/etc/config/nzbToMedia
++ python=/opt/bin/python2
++ sabdata=/opt/share/sabnzbd
++ couchdata=/opt/share/couchpotato
++ sickdata=/opt/share/SickRage
++ headdata=/opt/share/headphones
++ mylardata=/opt/share/mylar
++ SABPKG_NAME=SABnzbd
++ SABPKG_DIR=/opt/share/couchpotato
++ SABCONFIG_DIR=/opt/usr/etc/config/couchpotato
++ SABPID_FILE=/opt/usr/etc/config/couchpotato/SABnzbd.pid
++ NPKG_NAME=nzbget
++ NCONFIG_DIR=/opt/usr/etc/config/nzbget
++ NPID_FILE=/opt/usr/etc/config/nzbget/nzbget.lock
++ CPKG_NAME=CouchPotato
++ CPKG_DIR=/opt/share/couchpotato
++ CCONFIG_DIR=/opt/usr/etc/config/couchpotato
++ CPID_FILE=/opt/usr/etc/config/couchpotato/CouchPotato.pid
++ SPKG_NAME=SickRage
++ SPKG_DIR=/opt/share/SickRage
++ SCONFIG_DIR=/opt/usr/etc/config/sickbeard
++ SPID_FILE=/opt/usr/etc/config/sickbeard/SickRage.pid
++ HPKG_NAME=Headphones
++ HPKG_DIR=/opt/share/headphones
++ HCONFIG_DIR=/opt/usr/etc/config/headphones
++ HPID_FILE=/opt/usr/etc/config/headphones/Headphones.pid
++ MPKG_NAME=Mylar
++ MPKG_DIR=/opt/share/mylar
++ MCONFIG_DIR=/opt/usr/etc/config/mylar
++ MPID_FILE=/opt/usr/etc/config/mylar/Mylar.pid
+ '[' 1 == 1 ']'
+ opkg update
Downloading http://pkg.entware.net/binaries/armv5/Packages.gz.
Updated list of available packages in /opt/var/opkg-lists/packages.
Downloading http://downloads.zyxel.nas-central.org/Users/Mijzelf/Entware-ng/bina                                                                                        ries/armv5/Packages.gz.
Updated list of available packages in /opt/var/opkg-lists/Mijzelf.
+ sleep 2
+ opkg install python python-pip curl libcurl python-pyopenssl python-cheetah zlib wget unrar rtmpdump pkg-config openssh-client make libxslt libffi libiconv-full libgpg-error libgcrypt ncurses-bin git git-http gcc bzip2 autoconf automake binutils unrar
Package python (2.7.11-9) installed in root is up to date.
Package python-pip (8.1.2-1) installed in root is up to date.
Package curl (7.49.0-1) installed in root is up to date.
Package libcurl (7.49.0-1) installed in root is up to date.
Installing python-pyopenssl (16.0.0-1) to root...
Downloading http://pkg.entware.net/binaries/armv5/python-pyopenssl_16.0.0-1_armv5soft.ipk.
Installing python-cryptography (1.4-1) to root...
Downloading http://pkg.entware.net/binaries/armv5/python-cryptography_1.4-1_armv5soft.ipk.
Installing python-cffi (1.7.0-1) to root...
Downloading http://pkg.entware.net/binaries/armv5/python-cffi_1.7.0-1_armv5soft.ipk.
Installing python-pycparser (2.14-3) to root...
Downloading http://pkg.entware.net/binaries/armv5/python-pycparser_2.14-3_armv5soft.ipk.
Installing python-ply (3.8-3) to root...
Downloading http://pkg.entware.net/binaries/armv5/python-ply_3.8-3_armv5soft.ipk.
Installing python-enum34 (1.1.2-1) to root...
Downloading http://pkg.entware.net/binaries/armv5/python-enum34_1.1.2-1_armv5soft.ipk.
Installing python-idna (2.1-1) to root...
Downloading http://pkg.entware.net/binaries/armv5/python-idna_2.1-1_armv5soft.ipk.
Installing python-ipaddress (1.0.16-1) to root...
Downloading http://pkg.entware.net/binaries/armv5/python-ipaddress_1.0.16-1_armv5soft.ipk.
Installing python-pyasn1 (0.1.9-1) to root...
Downloading http://pkg.entware.net/binaries/armv5/python-pyasn1_0.1.9-1_armv5soft.ipk.
Installing python-six (1.10.0-1) to root...
Downloading http://pkg.entware.net/binaries/armv5/python-six_1.10.0-1_armv5soft.ipk.
Package python-cheetah (2.4.4-2) installed in root is up to date.
Package zlib (1.2.8-1) installed in root is up to date.
Package wget (1.18-1) installed in root is up to date.
Package unrar (5.4.2-1a) installed in root is up to date.
Package rtmpdump (2.4-20151223-1) installed in root is up to date.
Package pkg-config (0.29.1-1) installed in root is up to date.
Package openssh-client (7.3p1-1) installed in root is up to date.
Package make (4.2.1-1) installed in root is up to date.
Package libxslt (1.1.28-2) installed in root is up to date.
Package libffi (3.2.1-2) installed in root is up to date.
Package libiconv-full (1.11.1-3) installed in root is up to date.
Package libgpg-error (1.12-1) installed in root is up to date.
Package libgcrypt (1.6.1-1) installed in root is up to date.
Package ncurses-bin (6.0-1b) installed in root is up to date.
Package git (2.8.2-2) installed in root is up to date.
Package git-http (2.8.2-2) installed in root is up to date.
Package gcc (5.4.0-1) installed in root is up to date.
Package bzip2 (1.0.6-2) installed in root is up to date.
Package autoconf (2.69-1) installed in root is up to date.
Package automake (1.15-3) installed in root is up to date.
Package binutils (2.26.1-1) installed in root is up to date.
Package unrar (5.4.2-1a) installed in root is up to date.
Configuring python-idna.
Configuring python-ply.
Configuring python-six.
Configuring python-pyasn1.
Configuring python-pycparser.
Configuring python-cffi.
Configuring python-enum34.
Configuring python-ipaddress.
Configuring python-cryptography.
Configuring python-pyopenssl.
+ sed -i 's/packageupdate="1"/\packageupdate="0"/' /opt/etc/autonzb.conf
+ cd /i-data/md0/admin
+ '[' '!' -d /i-data/md0/admin/download/incomplete ']'
+ '[' 1 == 1 ']'
+ '[' '!' -f /opt/bin/nzbget ']'
+ '[' 1 == 1 ']'
+ opkg install nzbget
Package nzbget (17.0-1) installed in root is up to date.
+ '[' 1 == 1 ']'
+ '[' -f /opt/share/sabnzbd/SABnzbd.py ']'
+ git clone https://github.com/sabnzbd/sabnzbd -b master /opt/share/sabnzbd
Cloning into '/opt/share/sabnzbd'...
remote: Counting objects: 45430, done.
remote: Compressing objects: 100% (176/176), done.
remote: Total 45430 (delta 65), reused 0 (delta 0), pack-reused 45252
Receiving objects: 100% (45430/45430), 96.65 MiB | 1.58 MiB/s, done.
error: inflate: data stream error (invalid distance too far back)
fatal: serious inflate inconsistency
fatal: index-pack failed
+ mkdir -p -m 777 /opt/usr/etc/config/sabnzbd
+ mkdir -p -m 777 /opt/usr/etc/config/sabnzbd
+ sleep 2
+ '[' 0 == 1 ']'
+ '[' 1 == 1 ']'
+ '[' -d /opt/share/SickRage ']'
+ git clone https://github.com/SickRage/SickRage.git /opt/share/SickRage
Cloning into '/opt/share/SickRage'...
remote: Counting objects: 65400, done.
remote: Compressing objects: 100% (166/166), done.
remote: Total 65400 (delta 56), reused 0 (delta 0), pack-reused 65233
Receiving objects: 100% (65400/65400), 63.74 MiB | 133 KiB/s, done.
error: inflate: data stream error (incorrect header check)
fatal: serious inflate inconsistency
fatal: index-pack failed
+ mkdir -p -m 777 /opt/usr/etc/config/sickbeard
+ sleep 2
+ '[' 0 == 1 ']'
+ '[' 0 == 1 ']'
+ '[' 0 == 1 ']'
+ '[' 1 == 1 ']'
+ '[' -f /opt/usr/etc/config/couchpotato/SABnzbd.pid ']'
+ sleep 2
+ '[' -f /opt/usr/etc/config/sabnzbd/sabnzbd.ini ']'
+ PYTHON_EGG_CACHE=/tmp
+ /opt/bin/python2 /opt/share/sabnzbd/SABnzbd.py -b 0 -d -s 0.0.0.0:8085 --pidfile SABPID_FILE -f /opt/usr/etc/config/sabnzbd/sabnzbd.ini
/opt/bin/python2: can't open file '/opt/share/sabnzbd/SABnzbd.py': [Errno 2] No such file or directory
+ sleep 2
+ '[' 1 == 1 ']'
+ sh /opt/etc/init.d/S75nzbget stop
 Checking nzbget...              alive.
 Shutting down nzbget...              done.
+ sleep 2
+ '[' 1 == 1 ']'
+ opkg install nzbget
Package nzbget (17.0-1) installed in root is up to date.
+ sleep 2
+ sh /opt/etc/init.d/S75nzbget start
 Starting nzbget...              done.
+ sleep 2
+ '[' 0 == 1 ']'
+ echo ' Couchpotato not Installed '
 Couchpotato not Installed
+ sleep 2
+ '[' 1 == 1 ']'
+ '[' -f /opt/usr/etc/config/sickbeard/SickRage.pid ']'
+ sleep 2
+ /opt/bin/python2 /opt/share/SickRage/SickBeard.py --datadir /opt/usr/etc/config/sickbeard --config /opt/usr/etc/config/sickbeard/config.ini -d --pidfile /opt/usr/etc/config/sickbeard/SickRage.pid
/opt/bin/python2: can't open file '/opt/share/SickRage/SickBeard.py': [Errno 2] No such file or directory
+ echo -n ' SickRage Started '
 SickRage Started + sleep 2
+ '[' 0 == 1 ']'
+ echo ' Headphones not Installed '
 Headphones not Installed
+ sleep 2
+ '[' 0 == 1 ']'
+ echo 'Mylar not Installed'
Mylar not Installed
root@NSA310:/opt/etc/init.d#


It basically crapped itself so when logged on to nsa310:8081

Code:
Error

Cant locate template for uri 'errorlogs.mako'

Traceback

Traceback (most recent call last):
File "/opt/share/sickbeard/lib/tornado/web.py", line 1415, in _execute
File "/opt/share/sickbeard/lib/tornado/gen.py", line 870, in run
File "/opt/share/sickbeard/lib/tornado/concurrent.py", line 215, in result
File "/opt/share/sickbeard/lib/tornado/gen.py", line 876, in run
File "/opt/share/sickbeard/sickbeard/webserve.py", line 254, in get
File "/opt/share/sickbeard/lib/tornado/gen.py", line 870, in run
File "/opt/share/sickbeard/lib/concurrent/futures/_base.py", line 400, in result
File "/opt/share/sickbeard/lib/concurrent/futures/_base.py", line 359, in __get_result
File "/opt/share/sickbeard/lib/concurrent/futures/_compat.py", line 107, in reraise
File "/opt/share/sickbeard/lib/concurrent/futures/thread.py", line 61, in run
File "/opt/share/sickbeard/sickbeard/webserve.py", line 270, in async_call
File "/opt/share/sickbeard/sickbeard/webserve.py", line 5276, in index
File "/opt/share/sickbeard/sickbeard/webserve.py", line 112, in __init__
File "/opt/share/sickbeard/lib/mako/lookup.py", line 245, in get_template
File "/opt/share/sickbeard/lib/mako/lookup.py", line 347, in _check
TemplateLookupException: Cant locate template for uri 'errorlogs.mako'

Request Info

body:
files: {}
protocol: http
connection:
body_arguments: {}
uri: /errorlogs/
query_arguments: {}
_start_time: 1476467259.64
headers: {'Accept-Language': 'en-GB,en-US;q=0.8,en;q=0.6', 'Accept-Encoding': 'gzip, deflate, sdch', 'Connection': 'keep-alive', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36', 'Host': 'nsa310:8081', 'Referer': 'http://nsa310:8081/home/', 'If-None-Match': '"c360de5f6213200ed34e8d90f525e4b19ec1a4d4"', 'Cookie': 'ys-showedHomeBtnTooltip=b%3A1; ys-lastNewPkgs=s%3ATweaks; ys-reInstallPkgs=s%3A; lastNewPkg=Tweaks; reInstallPkg=; ys-video_autoResume=b%3A1; ys-warnInstallPlayer=s%3Ayes; ys-warnVersionPlayer=s%3Ayes; ys-playerVolume=s%3A100; compact_display_state=true; sort_method=age; target=admin; language=en', 'Upgrade-Insecure-Requests': '1'}
host: nsa310:8081
version: HTTP/1.1
arguments: {}
_finish_time: None
query:
path: /errorlogs/
method: GET
remote_ip: 192.168.1.13


Did a restart. No access to Sickrage and CPU running at 100%
Update. Ran the script again and it seemed to download everything.
For some reason i think i have 2 versions of Sickrage as I need to set up my tv shows in Sickrage again

Update: Sabnzb and Sickrage now installed
Only issue is that I have to reset up Sickrage but all good.
Must now do a backup of sickrage


Top
 Profile  
 
PostPosted: Wed Oct 19, 2016 12:32 am 
Offline

Joined: Sat Sep 24, 2016 2:22 pm
Posts: 25
What's the easiest way to disable or uninstall SickRage from this package after it's already installed?


Top
 Profile  
 
PostPosted: Thu Oct 20, 2016 11:00 am 
Offline

Joined: Sun Feb 17, 2013 10:00 pm
Posts: 307
disable:
set sickrage to '0' in the autonzb.conf

Remove:
do the above then remove

/opt/share/sickrage
/opt/usr/etc/config/sickrage


Top
 Profile  
 
PostPosted: Mon Nov 14, 2016 6:07 am 
Offline

Joined: Sat Sep 24, 2016 2:22 pm
Posts: 25
NZBGet keeps crashing under load (everything else is working fine now). I'm sure it has nothing to do with you excellent script but an suggestions on how to fix it?

It also crashes when I "save settings and reload". Sickrage also crashes at the same time...


Top
 Profile  
 
PostPosted: Mon Nov 14, 2016 12:49 pm 
Offline

Joined: Sun Feb 17, 2013 10:00 pm
Posts: 307
nzbget also crashes for me when extracting... i think its an out of memory crash but not sure, I havent got it figured out yet further than it didnt happen with a previous version of nzbget, i assume its an issue there... SR is it a crash or is it freezing and recovering later?


Top
 Profile  
 
PostPosted: Mon Nov 14, 2016 2:02 pm 
Offline

Joined: Sat Sep 24, 2016 2:22 pm
Posts: 25
burbulence wrote:
nzbget also crashes for me when extracting... i think its an out of memory crash but not sure, I havent got it figured out yet further than it didnt happen with a previous version of nzbget, i assume its an issue there... SR is it a crash or is it freezing and recovering later?


Ok good to know that it's not just me then. Could lowering the ParBuffer setting help? It happened in 17.0 and it happens now in 17.1. Didn't happen in 16.X
Regarding Sickrage - I'm dumb. I disabled it. See my post above haha :lol:


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 132 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7, 8, 9  Next

All times are UTC


Who is online

Users browsing this forum: barmalej2, Bing [Bot], Dachtus, Google [Bot] and 46 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group