General NAS-Central Forums

Welcome to the NAS community
It is currently Thu Nov 23, 2017 2:03 am

All times are UTC




Post new topic Reply to topic  [ 135 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9
Author Message
PostPosted: Sat Jul 29, 2017 9:47 am 
Offline

Joined: Sat Sep 24, 2016 2:22 pm
Posts: 25
Is NZBGet 17.1 the latest compatible version for NSA325? Latest release is 19.1. Tried running the script manually to update but nothing updates...
If available, are later versions running fine for you? Don't want to upgrade and mess everything up...


Top
 Profile  
 
PostPosted: Tue Aug 01, 2017 8:05 pm 
Offline

Joined: Sat Sep 24, 2016 2:22 pm
Posts: 25
burbulence wrote:
They end up at the same place, /Ruudburger/ is the author, /CouchPotato/ is the directory... both point to the same repo, so either will work



See my question above? @burbulence =)


Top
 Profile  
 
PostPosted: Thu Aug 03, 2017 9:03 am 
Offline

Joined: Sun Feb 17, 2013 10:00 pm
Posts: 308
if you set packageupdate to 1 in the config file that will update all packages including nzbget, ive not tested nzbget 19 yet.

I had issues with nzbget 17 crashing at one point so i didnt have the script doin auto updates of it, if you would like to have that back then change the following at line 189:

Code:
if [ "$Nzbget" == 1 ]; then

  sh $init/S75nzbget stop

 sleep 2

opkg update

sleep 2
 
 opkg upgrade nzbget

 sleep 2

 sh $init/S75nzbget start

fi
   
sleep 2


that will check for updates for all pacakages but only install the updated nzbget. I'll also add this to my local copy of the script and if it works as expected i'll add it to the master copy on github for others.


Top
 Profile  
 
PostPosted: Thu Aug 03, 2017 9:12 am 
Offline

Joined: Sat Sep 24, 2016 2:22 pm
Posts: 25
burbulence wrote:
if you set packageupdate to 1 in the config file that will update all packages including nzbget, ive not tested nzbget 19 yet.

I had issues with nzbget 17 crashing at one point so i didnt have the script doin auto updates of it, if you would like to have that back then change the following at line 189:

Code:
if [ "$Nzbget" == 1 ]; then

  sh $init/S75nzbget stop

 sleep 2

opkg update

sleep 2
 
 opkg upgrade nzbget

 sleep 2

 sh $init/S75nzbget start

fi
   
sleep 2


that will check for updates for all pacakages but only install the updated nzbget. I'll also add this to my local copy of the script and if it works as expected i'll add it to the master copy on github for others.


Ok. Any way to easily get back to a working earlier version if the latest version doesn't work?


Top
 Profile  
 
PostPosted: Thu Aug 03, 2017 11:54 am 
Offline

Joined: Sun Feb 17, 2013 10:00 pm
Posts: 308
If I'm honest it's not something I've looked into,


Top
 Profile  
 
PostPosted: Sun Aug 06, 2017 3:34 pm 
Offline

Joined: Wed Aug 02, 2017 8:21 am
Posts: 4
Hello,

i´ve got the following output.

Are the files in the right directory?

BusyBox v1.19.4 (2017-05-26 16:39:12 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.


/opt/etc/init.d # sh -x S80NZBautomator start
+ . /opt/etc/autonzb.conf
+ SABnzbd=1
+ Nzbget=1
+ CouchPotato=1
+ SickRage=1
+ Headphones=0
+ Mylar=0
+ NzbtoMedia=1
+ 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
S80NZBautomator: line 30: opkg: not found
+ 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
S80NZBautomator: line 30: opkg: not found
+ sed -i s/packageupdate="1"/\packageupdate="0"/ /opt/etc/autonzb.conf
+ cd /i-data/md0/admin
S80NZBautomator: cd: line 36: can't cd to /i-data/md0/admin
+ [ ! -d /i-data/md0/admin/download/incomplete ]
+ mkdir -p -m 777 /i-data/md0/admin/download/complete/movie
+ mkdir -p -m 777 /i-data/md0/admin/download/complete/tv
+ mkdir -p -m 777 /i-data/md0/admin/download/incomplete
+ chmod -R 777 /i-data/md0/admin
+ chmod -R 777 /opt/usr/etc/config
chmod: /opt/usr/etc/config: No such file or directory
+ [ 1 == 1 ]
+ [ ! -f /opt/bin/nzbget ]
+ opkg install nzbget
S80NZBautomator: line 56: opkg: not found
+ [ 1 == 1 ]
+ [ -f /opt/share/sabnzbd/SABnzbd.py ]
+ git clone https://github.com/sabnzbd/sabnzbd -b master /opt/share/sabnzbd
S80NZBautomator: line 72: git: not found
+ mkdir -p -m 777 /opt/usr/etc/config/sabnzbd
+ mkdir -p -m 777 /opt/usr/etc/config/sabnzbd
+ sleep 2
+ [ 1 == 1 ]
+ [ -d /opt/share/couchpotato ]
+ git clone https://github.com/RuudBurger/CouchPotatoServer /opt/share/couchpotato
S80NZBautomator: line 87: git: not found
+ mkdir -p -m 777 /opt/usr/etc/config/couchpotato
+ sleep 2
+ [ 1 == 1 ]
+ [ -d /opt/share/SickRage ]
+ git clone https://github.com/SickRage/SickRage.git /opt/share/SickRage
S80NZBautomator: line 102: git: not found
+ mkdir -p -m 777 /opt/usr/etc/config/sickbeard
+ sleep 2
+ [ 0 == 1 ]
+ [ 0 == 1 ]
+ [ 1 == 1 ]
+ [ -d /opt/usr/etc/config/nzbToMedia ]
+ git clone https://github.com/clinton-hall/nzbToMedia.git /opt/usr/etc/config/nzbToMedia
S80NZBautomator: line 148: git: not found
+ sleep 2
+ [ 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
S80NZBautomator: line 187: /opt/bin/python2: not found
+ sleep 2
+ [ 1 == 1 ]
+ sh /opt/etc/init.d/S75nzbget stop
sh: can't open '/opt/etc/init.d/S75nzbget'
+ sleep 2
+ [ 1 == 1 ]
+ opkg install nzbget
S80NZBautomator: line 205: opkg: not found
+ sleep 2
+ sh /opt/etc/init.d/S75nzbget start
sh: can't open '/opt/etc/init.d/S75nzbget'
+ sleep 2
+ [ 1 == 1 ]
+ [ -f /opt/usr/etc/config/couchpotato/CouchPotato.pid ]
+ sleep 2
+ /opt/bin/python2 /opt/share/couchpotato/CouchPotato.py --daemon --data_dir /opt/usr/etc/config/couchpotato --config /opt/usr/etc/config/couchpotato/settings.conf --pid_file /opt/usr/etc/config/couchpotato/CouchPotato.pid
S80NZBautomator: line 239: /opt/bin/python2: not found
+ echo -n CouchPotato Started
CouchPotato Started + 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
S80NZBautomator: line 274: /opt/bin/python2: not found
+ 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
/opt/etc/init.d #


Top
 Profile  
 
PostPosted: Sun Aug 06, 2017 7:35 pm 
Offline

Joined: Sun Feb 17, 2013 10:00 pm
Posts: 308
S80NZBautomator: line 30: opkg: not found - thats your problem, all the files are in the right directory by the look of the output.

Its an issue with Entware-ng, its possible that you have he same or similar issue that another user, pitcritter had recently, check this post and see if you are experiencing something similar
https://forum.nas-central.org/viewtopic.php?f=249&t=18281&start=45#p108775


Also are you using enware-ng by itself or are you running side by side with ffp?

read this post if you are side by side

https://forum.nas-central.org/viewtopic.php?f=249&t=18383&start=30#p104917


Top
 Profile  
 
PostPosted: Mon Aug 07, 2017 6:18 am 
Offline

Joined: Wed Aug 02, 2017 8:21 am
Posts: 4
Before I run the script my Nas326 was reset to factory settings.

First installed entware-ng about MR. Must the configuration be changed?
Then activate SSH at the WEB interface, copy the files by ftp and run the script by putty/SSH

If i activate FFP i have no access to the WEB interface...

I always get an error if i use command like opkg, git,...

should i set packageupdate at "1" ?


Top
 Profile  
 
PostPosted: Mon Aug 07, 2017 7:44 am 
Offline

Joined: Sun Feb 17, 2013 10:00 pm
Posts: 308
The script uses opkg to install git etc, Can you post the output from
Code:
echo $PATH


Top
 Profile  
 
PostPosted: Mon Aug 07, 2017 2:15 pm 
Offline

Joined: Wed Aug 02, 2017 8:21 am
Posts: 4
Here is the output:


BusyBox v1.19.4 (2017-05-26 16:39:12 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

root@NAS326:~# echo $PATH
/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/firmware/sbin:/usr /local/zy-pkgs/bin:/firmware/htp
root@NAS326:~#


Top
 Profile  
 
PostPosted: Mon Aug 07, 2017 8:29 pm 
Offline

Joined: Sun Feb 17, 2013 10:00 pm
Posts: 308
It's not updated PATH to include any of the locations from entware, it's not something like you didn't enable the entware-ng package in the package manager under the web interface for the Nas?


Top
 Profile  
 
PostPosted: Mon Aug 07, 2017 8:40 pm 
Offline

Joined: Wed Aug 02, 2017 8:21 am
Posts: 4
Entware-ng is installed and its activated. But i didnt change the config. Which configuration should i have?

Here is the logfile from entware-ng

Opened logfile at Sun Aug 6 23:13:41 GMT 2017
Flushing memory buffer
Starting up
rm /i-data/527a5fc5/.PKG/Entware-ng/opt/var/log/Entware-ng.log.9.gz
mv /i-data/527a5fc5/.PKG/Entware-ng/opt/var/log/Entware-ng.log.8.gz /i-data/527a5fc5/.PKG/Entware-ng/opt/var/log/Entware-ng.log.9.gz
mv /i-data/527a5fc5/.PKG/Entware-ng/opt/var/log/Entware-ng.log.7.gz /i-data/527a5fc5/.PKG/Entware-ng/opt/var/log/Entware-ng.log.8.gz
mv /i-data/527a5fc5/.PKG/Entware-ng/opt/var/log/Entware-ng.log.6.gz /i-data/527a5fc5/.PKG/Entware-ng/opt/var/log/Entware-ng.log.7.gz
mv /i-data/527a5fc5/.PKG/Entware-ng/opt/var/log/Entware-ng.log.5.gz /i-data/527a5fc5/.PKG/Entware-ng/opt/var/log/Entware-ng.log.6.gz
mv /i-data/527a5fc5/.PKG/Entware-ng/opt/var/log/Entware-ng.log.4.gz /i-data/527a5fc5/.PKG/Entware-ng/opt/var/log/Entware-ng.log.5.gz
mv /i-data/527a5fc5/.PKG/Entware-ng/opt/var/log/Entware-ng.log.3.gz /i-data/527a5fc5/.PKG/Entware-ng/opt/var/log/Entware-ng.log.4.gz
mv /i-data/527a5fc5/.PKG/Entware-ng/opt/var/log/Entware-ng.log.2.gz /i-data/527a5fc5/.PKG/Entware-ng/opt/var/log/Entware-ng.log.3.gz
mv /i-data/527a5fc5/.PKG/Entware-ng/opt/var/log/Entware-ng.log.1.gz /i-data/527a5fc5/.PKG/Entware-ng/opt/var/log/Entware-ng.log.2.gz
Flushing done
[23:13:41] FATAL: /opt is a directory
Closed logfile at Sun Aug 6 23:13:41 GMT 2017


Top
 Profile  
 
PostPosted: Thu Oct 12, 2017 6:29 pm 
Offline

Joined: Mon Apr 22, 2013 4:09 pm
Posts: 18
Thanks for this script. I've moved from FFP to Entware and this script ran like a charm on my NSA325. I had it all set up last night.

Unfortunately, I then messed up the installation when fiddling because I'm an idiot amateur! How can I get back to nothing and then start again? Seems like the easiest option as it'd take a while to investigate what I've messed up and I haven't configured everything yet. (Essentially Sabnzbd won't start on boot at the moment and I can't figure out why.)

Would disabling Entware on the Packages window and then rebooting remove everything? Do I need to factory reset the NAS? (I don't want to lose the data on the HDD but I've done a factory reset before and I'm satisfied I won't lose the data.)


Top
 Profile  
 
PostPosted: Fri Oct 13, 2017 7:28 am 
Offline

Joined: Sun Feb 17, 2013 10:00 pm
Posts: 308
Disabling entware won’t delete any files, and as you say neither does a factory reset. So easiest way off the top of my head would be disable entware package, reboot, enable telnet access, delete the entware folder /opt.

That should remove everything... then reinstall the entware package and you should be starting from scratch without touching any personal data


Top
 Profile  
 
PostPosted: Fri Oct 13, 2017 10:54 am 
Offline

Joined: Mon Apr 22, 2013 4:09 pm
Posts: 18
Perfect - thanks. I'll give it a go.


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

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 30 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