Page 3 of 4

Re: Installing sabnzbd on gentoo [updated to 0.5.6]

Posted: June 5th, 2011, 7:30 pm
by Ruede
IhatemyISP wrote: Any chance of getting 0.6.1 Final added to the overlay?

I will say a in place upgrade wasn't too difficult.

I cleared out my queue first, and them stopped SABnzbd, replaced the symlink to the new scripts, and restarted SABnzbd.

I'm not sure why, but SABnzbd kept wanting to make a temp copy of the conf file, which was initially installed (by default I believe) to /etc/. Permissions denied it, so I moved the conf to my sabznbd home folder, changed the /etc/conf.d/ file to reflect the move, and fired SABnzbd back up. No further issues.

I will say that I'm not too fond of the way it upgraded my history. It botched the totals a huge bit. (50TB down to 1008G ?)
that didnt work for me :(

Re: Installing sabnzbd on gentoo [updated to 0.5.6]

Posted: October 5th, 2011, 4:17 am
by malaky
This thread still comes up in searches for sabnzbd on gentoo.

It took me a while to realise (some months back) that 0.6.1 is avaliable on gentoo overlays, but the old overlay(cryptelium) has dropped it and now c1pher overlay has it, 0.6.1.

Upgrading from one to another is not as straight forward as the c1pher ebhild uses sabnzbd.ini for config rather than the old location (forgot where it was) and a few other items.


From scratch you would do this...

Code: Select all

emerge --sync --quiet
emerge layman
layman -a c1pher

There are masks in place current (c1hper - yenc-0.3 and sabnzbd-0.6.1) so you need to unmask them you can either do...

#1 You will be asked if you want to write the changes, say yes. If no changes need to be made it will ask you if you want to merge these packages

Code: Select all

emerge -av sabnzbd --autounmask-write 
Choose -5 to auto-merge, if you have any other updates you need sorting do them first or use #2

Code: Select all

etc-update

#2 Or, write the lines yourself

Code: Select all

echo ">=net-nntp/sabnzbd-0.6.1 **" >> /etc/portage/package.accept_keywords
echo ">=dev-python/yenc-0.3 **" >> /etc/portage/package.accept_keywords
echo ">=net-nntp/sabnzbd-0.6.1" >> /etc/portage/package.unmask
echo ">=dev-python/yenc-0.3" >> /etc/portage/package.unmask

Merge sab (unless it already ran in #1)

Code: Select all

emerge -av sabnzbd
Edit your configs, start and add to default runlevel

Code: Select all

nano /etc/conf.d/sabnzbd
nano /etc/sabnzbd/sabnzbd.ini
/etc/init.d/sabnzbd start
rc-update add sabnzbd default

Re: Installing sabnzbd on gentoo [updated to 0.5.6]

Posted: December 14th, 2011, 5:36 pm
by eronde
Hi,

I've tried to install sabnzbd on a gentoo box and it installs fine, but I've a little problem with configure sabnzbd.

Every time I finished the setup wizard and I want to go to sabnzbd, it returns automatically to the wizard.

Anyone the same problem?

Re: Installing sabnzbd on gentoo [updated to 0.5.6]

Posted: December 15th, 2011, 4:30 am
by malaky
I had that but cannot remember why - I think it was something to do with write permissions in the folder, so it wasn't changing the index to wizard page redirect back to the normal UI...

Re: Installing sabnzbd on gentoo [updated to 0.5.6]

Posted: December 15th, 2011, 6:15 am
by shypike
Is the sabnzbd.ini written?
Check the log file for messages about saving and reading sabnzbd.ini

Re: Installing sabnzbd on gentoo [updated to 0.5.6]

Posted: December 15th, 2011, 2:14 pm
by eronde
shypike wrote:Is the sabnzbd.ini written?
Check the log file for messages about saving and reading sabnzbd.ini
eronde wrote:Hi,

I've tried to install sabnzbd on a gentoo box and it installs fine, but I've a little problem with configure sabnzbd.

Every time I finished the setup wizard and I want to go to sabnzbd, it returns automatically to the wizard.

Anyone the same problem?
eronde wrote:Hi,

I've tried to install sabnzbd on a gentoo box and it installs fine, but I've a little problem with configure sabnzbd.

Every time I finished the setup wizard and I want to go to sabnzbd, it returns automatically to the wizard.

Anyone the same problem?
The sabnzbd isn't written, but the file has write permissions.

In the log I couldn't found anything about saving sabnzbd.ini.

Code: Select all


2011-12-15 19:50:37,295::INFO::[SABnzbd:1182] Read INI file /etc/sabnzbd/sabnzbd.ini
2011-12-15 19:50:37,302::INFO::[__init__:846] Loading data for running.sab from /var/lib/sabnzbd/admin/running.sab
2011-12-15 19:50:37,319::INFO::[__init__:827] Saving data for running.sab in /var/lib/sabnzbd/admin/running.sab
2011-12-15 19:50:37,319::INFO::[__init__:846] Loading data for bookmarks.sab from /var/lib/sabnzbd/admin/bookmarks.sab
2011-12-15 19:50:37,320::INFO::[__init__:849] /var/lib/sabnzbd/admin/bookmarks.sab missing, trying old cache
2011-12-15 19:50:37,320::INFO::[__init__:852] /var/lib/sabnzbd/cache/bookmarks.sab missing
2011-12-15 19:50:37,320::INFO::[__init__:846] Loading data for rss_data.sab from /var/lib/sabnzbd/admin/rss_data.sab
2011-12-15 19:50:37,320::INFO::[__init__:849] /var/lib/sabnzbd/admin/rss_data.sab missing, trying old cache
2011-12-15 19:50:37,320::INFO::[__init__:852] /var/lib/sabnzbd/cache/rss_data.sab missing
2011-12-15 19:50:37,320::INFO::[__init__:846] Loading data for totals9.sab from /var/lib/sabnzbd/admin/totals9.sab
2011-12-15 19:50:37,320::INFO::[__init__:849] /var/lib/sabnzbd/admin/totals9.sab missing, trying old cache
2011-12-15 19:50:37,320::INFO::[__init__:852] /var/lib/sabnzbd/cache/totals9.sab missing
2011-12-15 19:50:37,433::INFO::[postproc:89] Loading postproc queue
2011-12-15 19:50:37,434::INFO::[__init__:846] Loading data for postproc1.sab from /var/lib/sabnzbd/admin/postproc1.sab
2011-12-15 19:50:37,434::INFO::[__init__:849] /var/lib/sabnzbd/admin/postproc1.sab missing, trying old cache
2011-12-15 19:50:37,434::INFO::[__init__:852] /var/lib/sabnzbd/cache/postproc1.sab missing
2011-12-15 19:50:37,434::INFO::[__init__:846] Loading data for queue9.sab from /var/lib/sabnzbd/admin/queue9.sab
2011-12-15 19:50:37,434::INFO::[__init__:849] /var/lib/sabnzbd/admin/queue9.sab missing, trying old cache
2011-12-15 19:50:37,434::INFO::[__init__:852] /var/lib/sabnzbd/cache/queue9.sab missing
2011-12-15 19:50:37,434::INFO::[__init__:846] Loading data for watched_data.sab from /var/lib/sabnzbd/admin/watched_data.sab
2011-12-15 19:50:37,434::INFO::[__init__:849] /var/lib/sabnzbd/admin/watched_data.sab missing, trying old cache
2011-12-15 19:50:37,434::INFO::[__init__:852] /var/lib/sabnzbd/cache/watched_data.sab missing



Re: Installing sabnzbd on gentoo [updated to 0.5.6]

Posted: December 15th, 2011, 3:07 pm
by shypike
We didn't create the package you are using.
Where does it come from?

All I can say is that I find it a bit odd that the INI file is in /etc/sabnzbd
and the admin folder is in /var/lib/sabnzbd.
That's a very unusual setup.

Re: Installing sabnzbd on gentoo [updated to 0.5.6]

Posted: December 15th, 2011, 5:06 pm
by eronde
shypike wrote:We didn't create the package you are using.
Where does it come from?

All I can say is that I find it a bit odd that the INI file is in /etc/sabnzbd
and the admin folder is in /var/lib/sabnzbd.
That's a very unusual setup.
This package I've got from c1pher, I've followed the instructions of an early post created by malaky.

equery f sabnzbd

Code: Select all

/etc
/etc/conf.d
/etc/conf.d/sabnzbd
/etc/init.d
/etc/init.d/sabnzbd
/etc/sabnzbd
/etc/sabnzbd/sabnzbd.ini
/usr
/usr/share
/usr/share/doc
.............
...........

Tomorrow I'll try to install it from scratch. I'll post the result

Re: Installing sabnzbd on gentoo [updated to 0.5.6]

Posted: December 15th, 2011, 6:00 pm
by eronde
There's something wrong with the c1pher version, cause from scratch it's works very well.

Re: Installing sabnzbd on gentoo [updated to 0.5.6]

Posted: December 16th, 2011, 3:41 am
by malaky
c1pher changed the ini location from what the previous overlay used (cryptelium).

If you upgrade from the one overlay (which no longer has sab) to the c1pher one, its not going to work without messing around a bit.

The c1pher .ini is put by default in /etc/sabnzbd/sabnzbd.ini strangely


http://gpo.zugaina.org/net-nntp/sabnzbd

Re: Installing sabnzbd on gentoo [updated to 0.5.6]

Posted: January 16th, 2012, 6:17 am
by chrisk2305
plz help me to get sabnzb running on gentoo.

i used the ebuild from c1pher overlay and i am trapped in the wizard loop.

Please tell me what i need to change.

Thank you very much!

Re: Installing sabnzbd on gentoo [updated to 0.5.6]

Posted: July 10th, 2012, 3:25 am
by malaky
Six months on (from the above) c1pher has dropped sab from their overlay.

Three others have it now (which is better than just one long term), although they're at different versions.

http://gpo.zugaina.org/net-nntp/sabnzbd

It's in Sunrise which means it should go into the main portage tree soon... maybe. Sunrise uses svn instead of mercurial(edit: actually its not, im not sure what it used) that c1pher used so you might need to emerge subversion.

I'm still checking them, there MIGHT be differences in config locations, just as c1pher was different from previous - I will post up the changes from c1pher to sunrise versions of sab in the next post.

From scratch, I would suppose its just...

Code: Select all

emerge layman (unless you already have it)
echo "source /var/lib/layman/make.conf" >> /etc/make.conf
emerge subversion
layman -S
layman -a sunrise
emerge sabnzbd

Re: Installing sabnzbd on gentoo [updated to 0.5.6]

Posted: July 10th, 2012, 5:43 am
by malaky
Upgrading from sabnzbd 0.6.1 on c1pher to sabnzb 0.7.0 on sunrise overlay.

Code: Select all

/etc/init.d/sabnzbd stop
echo ">=dev-lang/python-2.7.3-r2:2.7 sqlite" >> /etc/portage/package.use
emerge --ask sabnzbd
etc-update is needed for conf.d/ and init.d/ scripts.
conf.d/sabnzbd previously pointed to /etc/sabnzbd/sabnzbd.ini
the new copy wants to point to /var/lib/sabnzbd/config/sabnzbd.ini

Code: Select all

mv /var/lib/sabnzbd/config/sabnzbd.ini /var/lib/sabnzbd/config/sabnzbd.ini.sample
cp /etc/sabnzbd/sabnzbd.ini /var/lib/sabnzbd/config/sabnzbd.ini
Since you only need to set 2 options in conf.d/sabnzbd (hostname and port) I prefer to overwrite it with the new config and set them manually.

Code: Select all

etc-update
choose option -5 (if there are other updates not related to sab, sort them first)

Open /etc/conf.d/sabnzbd and edit these, they are already set in your .ini file but need to be set again so init can control the process.

Code: Select all

SAB_HOSTNAME="localhost"
SAB_PORT="8080"
Then start as normal with

Code: Select all

/etc/init.d/sabnzbd start
If you haven't alreayd included it in your start up run

Code: Select all

rc-update add sabnzbd default
You probably want to remove c1pher overlay now

Code: Select all

layman -d c1pher





You might get some errors regarding Python

Code: Select all

 *   Please rebuild dev-lang/python:2.6 with the following USE flags enabled: sqlite
Well, add sqlite to your USE="" in /etc/make.conf and recompile python 2.6, you can't just "emerge python" if you have 3+ installed as it will only update the newest python version you have.

Code: Select all

emerge --ask python:2.6
Then carry on with sabnzbd

Re: Installing sabnzbd on gentoo [updated to 0.5.6]

Posted: July 13th, 2012, 5:37 pm
by Sébastien P
malaky wrote:It's in Sunrise which means it should go into the main portage tree soon... maybe. Sunrise uses svn instead of mercurial(edit: actually its not, im not sure what it used) that c1pher used so you might need to emerge subversion.
Maybe :)
The process is idle by https://github.com/sabnzbd/sabnzbd/issues/47.

Sunrise uses git now.
malaky wrote:

Code: Select all

echo ">=dev-lang/python-2.7.3-r2:2.7 sqlite" >> /etc/portage/package.use
Since you can use 2.6 or 2.7, it would be better to add something like that

Code: Select all

echo ">=dev-lang/python-2.6:2 sqlite" >> /etc/portage/package.use
malaky wrote:

Code: Select all

emerge subversion
Useless (no need of subversion). Layman supports differents USE to pull dependancies of versioning systems:

Code: Select all

echo "app-portage/layman git" >> /etc/portage/package.use
malaky wrote:Well, add sqlite to your USE="" in /etc/make.conf and recompile python 2.6, you can't just "emerge python" if you have 3+ installed as it will only update the newest python version you have.

Code: Select all

emerge --ask python:2.6
See my previous comment.
And you should add “--oneshot”. We do not need to add it on world.
chrisk2305 wrote:plz help me to get sabnzb running on gentoo.

i used the ebuild from c1pher overlay and i am trapped in the wizard loop.

Please tell me what i need to change.

Thank you very much!
It is a but late… but the answers are here: https://forums.sabnzbd.org/viewtopic.php?p=57375#p57375 & https://bugs.gentoo.org/show_bug.cgi?id=132590#c122

Re: Installing sabnzbd on gentoo [updated to 0.5.6]

Posted: July 14th, 2012, 11:47 am
by malaky
Sure, rewrite it then - or why didn't you do it in the first place since no one else seems to bother.

At the time the compile from sunrise wanted svn... and svn fixed it (I had git installed). This was the case on two installs.