RPM for Fedora and RHEL/CentOS/Scientific Linux 5-7

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
bylie
Newbie
Newbie
Posts: 6
Joined: October 18th, 2011, 6:48 am

Re: RPM for Fedora 14-16 and RHEL/CentOS/Scientific Linux 5-

Post by bylie »

Just updated SABnzbd on my CentOS 6 box from "SABnzbd-0.6.9-1.el6.noarch" to "SABnzbd-0.6.10-1.el6.noarch" and after tyring to restart the service I get the following error:

Code: Select all

$ sudo service SABnzbd start
Starting SABnzbd: Traceback (most recent call last):
  File "/usr/share/SABnzbd/SABnzbd.py", line 65, in <module>
    import sabnzbd
  File "/usr/share/SABnzbd/sabnzbd/__init__.py", line 65, in <module>
    from sabnzbd.nzbqueue import NzbQueue
  File "/usr/share/SABnzbd/sabnzbd/nzbqueue.py", line 40, in <module>
    import sabnzbd.downloader
  File "/usr/share/SABnzbd/sabnzbd/downloader.py", line 33, in <module>
    from sabnzbd.utils import osx
  File "/usr/share/SABnzbd/sabnzbd/utils/osx.py", line 29, in <module>
    import gntp
ImportError: No module named gntp
                                                           [FAILED]
This seems to be tied to the new feature "OSX: Compatible with Growl 1.2.2 and 1.3 ".

Any idea what I'm missing?
Hansvon
Jr. Member
Jr. Member
Posts: 81
Joined: April 28th, 2010, 2:18 am

Re: RPM for Fedora 14-16 and RHEL/CentOS/Scientific Linux 5-

Post by Hansvon »

Sorry, I should have checked before pushing this update. It doesn't work on Fedora either. And no package on Fedora provides this gntp python module.
Please downgrade "yum downgrade SABnzbd".
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: RPM for Fedora 14-16 and RHEL/CentOS/Scientific Linux 5-

Post by shypike »

The GNTP module is included in our tarbal distribution, in the same way that cherrypy is.
Hansvon
Jr. Member
Jr. Member
Posts: 81
Joined: April 28th, 2010, 2:18 am

Re: RPM for Fedora 14-16 and RHEL/CentOS/Scientific Linux 5-

Post by Hansvon »

OK, I see. So it's my fault. These files weren't packaged in the RPM.
SABnzbd-0.6.10-2 should solve the problem.
bylie
Newbie
Newbie
Posts: 6
Joined: October 18th, 2011, 6:48 am

Re: RPM for Fedora 14-16 and RHEL/CentOS/Scientific Linux 5-

Post by bylie »

No problem I'll survive ;) and will just update when the new SABnzbd-0.6.10-2 is out. Thanks for the quick response and great repo!
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: RPM for Fedora 14-16 and RHEL/CentOS/Scientific Linux 5-

Post by shypike »

Hansvon wrote:OK, I see. So it's my fault.
Well, Growl 1.3 support for OSX was a bit of a rush job
and I did not do the extra effort to disable GNTP import for non-OSX platforms :(
0.7.0 will get platform independent Growl support, so by then GNTP will be a requirement.
bylie
Newbie
Newbie
Posts: 6
Joined: October 18th, 2011, 6:48 am

Re: RPM for Fedora 14-16 and RHEL/CentOS/Scientific Linux 5-

Post by bylie »

I just updated to SABnzbd-0.6.10-2 and everything seems to work again, good job! 8)
Hansvon
Jr. Member
Jr. Member
Posts: 81
Joined: April 28th, 2010, 2:18 am

Re: RPM for Fedora 14-16 and RHEL/CentOS/Scientific Linux 5-

Post by Hansvon »

RPMs updated to 0.6.11.
bylie
Newbie
Newbie
Posts: 6
Joined: October 18th, 2011, 6:48 am

Re: RPM for Fedora 14-16 and RHEL/CentOS/Scientific Linux 5-

Post by bylie »

Hansvon wrote:RPMs updated to 0.6.11.
Hmm a "yum check-update" seems to produce a pythonerror on the SABnzbd repo:

Code: Select all

SABnzbd                                                                                                               | 2.5 kB     00:00
SABnzbd/primary_db                                                                                                    | 3.5 kB     00:00
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 254, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 109, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 353, in doCommands
    self._getTs(needTsRemove)
  File "/usr/lib/python2.6/site-packages/yum/depsolve.py", line 99, in _getTs
    self._getTsInfo(remove_only)
  File "/usr/lib/python2.6/site-packages/yum/depsolve.py", line 110, in _getTsInfo
    pkgSack = self.pkgSack
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 774, in <lambda>
    pkgSack = property(fget=lambda self: self._getSacks(),
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 564, in _getSacks
    self.repos.populateSack(which=repos)
  File "/usr/lib/python2.6/site-packages/yum/repos.py", line 279, in populateSack
    sack.populate(repo, mdtype, callback, cacheonly)
  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 164, in populate
    if self._check_db_version(repo, mydbtype):
  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 223, in _check_db_version
    return repo._check_db_version(mdtype)
  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1227, in _check_db_version
    repoXML = self.repoXML
  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1417, in <lambda>
    repoXML = property(fget=lambda self: self._getRepoXML(),
  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1409, in _getRepoXML
    self._loadRepoXML(text=self)
  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1399, in _loadRepoXML
    return self._groupLoadRepoXML(text, self._mdpolicy2mdtypes())
  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1375, in _groupLoadRepoXML
    self._commonRetrieveDataMD(mdtypes)
  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1359, in _commonRetrieveDataMD
    misc.bunzipFile(dl_local, local)
  File "/usr/lib/python2.6/site-packages/yum/misc.py", line 687, in bunzipFile
    data = s_fn.read(1024000)
EOFError: compressed file ended before the logical end-of-stream was detected
The repository file "/etc/yum.repos.d/SABnzbd-6.repo" contains the following which for as far as I can see should still be vaild:

Code: Select all

[SABnzbd]
name=SABnzbd for RHEL 6 and clones - $basearch - Base
baseurl=http://fedora-sabnzbd.dyndns.org/SABnzbd/RHEL-CentOS/6/
failovermethod=priority
enabled=1
gpgcheck=0
Hansvon
Jr. Member
Jr. Member
Posts: 81
Joined: April 28th, 2010, 2:18 am

Re: RPM for Fedora 14-16 and RHEL/CentOS/Scientific Linux 5-

Post by Hansvon »

Interesting... I've regenerated the repo metadata. Is it working now?
bylie
Newbie
Newbie
Posts: 6
Joined: October 18th, 2011, 6:48 am

Re: RPM for Fedora 14-16 and RHEL/CentOS/Scientific Linux 5-

Post by bylie »

After a "yum clean all" followed by a "yum check-update" the error messages are still there. Sadly enough I'm not really familiar enough with the whole reposystem to thoroughly troubleshoot this.
Hansvon
Jr. Member
Jr. Member
Posts: 81
Joined: April 28th, 2010, 2:18 am

Re: RPM for Fedora 14-16 and RHEL/CentOS/Scientific Linux 5-

Post by Hansvon »

It should be fixed (I found a version of createrepo that works...)
bylie
Newbie
Newbie
Posts: 6
Joined: October 18th, 2011, 6:48 am

Re: RPM for Fedora 14-16 and RHEL/CentOS/Scientific Linux 5-

Post by bylie »

Thanks, the update went smooth this time!
kuri
Newbie
Newbie
Posts: 2
Joined: December 4th, 2011, 5:44 am

Re: RPM for Fedora 14-16 and RHEL/CentOS/Scientific Linux 5-

Post by kuri »

Just did a yum update to SABnzbd-0.6.11-1.el5.centos today, and now I can't get the service to start. Error from the log is:

Code: Select all

2011-12-04 04:40:16,577::INFO::[SABnzbd:1397] Starting web-interface on 0.0.0.0:8080
2011-12-04 04:40:16,579::INFO::[_cplogging:55] [04/Dec/2011:04:40:16] ENGINE Bus STARTING
2011-12-04 04:40:16,592::INFO::[_cplogging:55] [04/Dec/2011:04:40:16] ENGINE Started monitor thread '_TimeoutMonitor'.
2011-12-04 04:40:16,650::ERROR::[_cplogging:55] [04/Dec/2011:04:40:16] ENGINE Error in HTTP server: shutting down
Traceback (most recent call last):
  File "/usr/share/SABnzbd/cherrypy/process/servers.py", line 75, in _start_http_thread
    self.httpserver.start()
  File "/usr/share/SABnzbd/cherrypy/wsgiserver/__init__.py", line 1644, in start
    raise socket.error, msg
error: [Errno 97] Address family not supported by protocol

2011-12-04 04:40:16,652::INFO::[_cplogging:55] [04/Dec/2011:04:40:16] ENGINE Bus STOPPING
2011-12-04 04:40:16,653::INFO::[_cplogging:55] [04/Dec/2011:04:40:16] ENGINE HTTP Server None already shut down
2011-12-04 04:40:16,654::INFO::[_cplogging:55] [04/Dec/2011:04:40:16] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('::1', 8080)) already shut down
2011-12-04 04:40:16,656::INFO::[_cplogging:55] [04/Dec/2011:04:40:16] ENGINE Stopped thread '_TimeoutMonitor'.
2011-12-04 04:40:16,657::INFO::[_cplogging:55] [04/Dec/2011:04:40:16] ENGINE Bus STOPPED
2011-12-04 04:40:16,657::INFO::[_cplogging:55] [04/Dec/2011:04:40:16] ENGINE Bus EXITING
2011-12-04 04:40:16,658::INFO::[_cplogging:55] [04/Dec/2011:04:40:16] ENGINE Bus EXITED
2011-12-04 04:40:16,718::ERROR::[_cplogging:55] [04/Dec/2011:04:40:16] ENGINE Error in 'start' listener <bound method ServerAdapter.start of <cherrypy.process.servers.ServerAdapter object at 0x4c574d0>>
Traceback (most recent call last):
  File "/usr/share/SABnzbd/cherrypy/process/wspbus.py", line 147, in publish
    output.append(listener(*args, **kwargs))
  File "/usr/share/SABnzbd/cherrypy/process/servers.py", line 62, in start
    self.wait()
  File "/usr/share/SABnzbd/cherrypy/process/servers.py", line 97, in wait
    raise self.interrupt
error: [Errno 97] Address family not supported by protocol
Seems like maybe it doesn't like using "0.0.0.0" as the listen IP?
kuri
Newbie
Newbie
Posts: 2
Joined: December 4th, 2011, 5:44 am

Re: RPM for Fedora 14-16 and RHEL/CentOS/Scientific Linux 5-

Post by kuri »

Just for clarification, I was able to edit my ~/.sabnzbd/sabnzbd.ini and change "host =" to only the IP address on eth0 instead of 0.0.0.0 to get it up and running.

I had recently activated a second NIC in the machine, but hadn't restarted SABnzbd since then. Might be something to stick into some install notes somewhere? :)
Post Reply