Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 456338 - net-nntp/sabnzbd 0.7.10 breaks certain functionalities (manual NZB upload, couchpotato integration, ...), regression because 0.7.9 works fine.
Summary: net-nntp/sabnzbd 0.7.10 breaks certain functionalities (manual NZB upload, co...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Justin Bronder (RETIRED)
URL:
Whiteboard:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2013-02-09 17:18 UTC by xenon
Modified: 2013-02-15 16:23 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
500 HTTP error when trying to upload an NZB file (file_456338.txt,2.16 KB, text/plain)
2013-02-09 17:21 UTC, xenon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description xenon 2013-02-09 17:18:05 UTC
sabnzbd 0.7.10 was recently added to portage, replacing the previous version 0.7.9. In terms of the ebuild, this was not a pure version bump, since a few changes were made to the ebuild itself.

Since updating to 0.7.10, sabnzbd lost the manual NZB upload functionality, and consequently Couchpotato integration, since it relies of NZB upload, too.

in occasion of the error, CherryPy returns a HTTP 500 error and doesn't accept the file upload.

I initially blamed sabnzbd itself for the bug, and discussed it with a dev on their forums, until I realized that the ebuild had changed. At that point, I tried a pure version bump of ebuild 0.7.9 in my local overlay, and found out that installing sabnzbd 0.7.10 that way eliminated the problem. Same for 0.7.11, which is not in portage yet. I haven't found any side-effects from using the old ebuild and dismissing the changes in the newer one.

Here's what I believe to be the potentially relevant portion of the diff between the two ebuilds:

< 	rm -r sabnzbd/utils/{feedparser,configobj,gntp}.py cherrypy
---
> 	rm sabnzbd/utils/{feedparser,configobj,gntp}.py cherryp
77c77
< 	for d in email icons interfaces locale po sabnzbd tools util; do
---
> 	for d in cherrypy email icons interfaces locale po sabnzbd tools util; do
85,87d84
< 	insinto /etc/logrotate.d
< 	newins "${FILESDIR}/"${PN}.logrotate ${PN}
< 
92,95d88
< 	insinto "/etc/${PN}"
< 	insopts -m 0600 -o ${PN} -g ${PN}
< 	doins "${FILESDIR}/${PN}.ini"
< 
112a106
> 


Reproducible: Always

Steps to Reproduce:
1. emerge -av =net-nntp/sabnzbd-0.7.10
2. try to manually upload an NZB file or use Couchpotato integration
3. encounter the error
Actual Results:  
the NZB is not uploaded and queued. CherryPy returns a 500 HTTP error.

Expected Results:  
The NZB file should be correctly uploaded and queued.

I will attach the body of the 500 HTTP error; here's emerge --info:

Portage 2.2.0_alpha161 (default/linux/amd64/13.0/desktop, gcc-4.6.3, glibc-2.16.0, 3.7.3-gentoo x86_64)
=================================================================
System uname: Linux-3.7.3-gentoo-x86_64-AMD_Athlon-tm-_II_X3_400e_Processor-with-gentoo-2.2
KiB Mem:     3791992 total,    416892 free
KiB Swap:    2072348 total,   1862772 free
Timestamp of tree: Sat, 09 Feb 2013 13:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p42
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/ccache:          3.1.9
dev-util/cmake:           2.8.10.2-r1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo roslin zugaina rion hasufell mozilla soehest local
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.wheel.sk/ ftp://de-mirror.org/distro/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://trumpetti.atm.tut.fi/"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/var/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/portage"
PORTDIR_OVERLAY="/var/lib/layman/roslin /var/lib/layman/zugaina /var/lib/layman/rion /var/lib/layman/hasufell /var/lib/layman/mozilla /var/lib/layman/soehest /portage/local"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="24bpp 32bit 3dnow 3dnowext 64bit 7zip X Xaw3d a52 aac aalib abyss accessibility acl acpi action_modeswitch ada addbookmarks additions administrator adplug aften aim aio airplay akonadi alisp alsa alstream amd64 amr amrnb amrr amrwb animation-rtl animgif ao apng aqua_theme archive artist-screen artworkextra asf asn aspell ass assistant async asyncns atmo audacious audio audiofile auto-completion automount avcodec avformat background bash-completion bazaar bdf berkdb bidi binary-drivers bitfinder bittorrent bl blksha1 bluetooth bolddiag bonobo bookmarks boost branding browser bs2b btrfs bufferevents bzip2 cairo cal3d caps captury ccache cdaudio cdda cddb cdemu-daemon cdemud cdio cdparanoia cdr center-tilde cgi cgroup chardet charmap chm chroot city cjk cleartype cli client clutter collab colorpicker community compat compress-db consolekit contactnotes contrast corefonts cover coverage cracklib cramfs cron crossfade crypt css csv ctype cue curl cursors custom-optimization cviewer cvs cxx daemon dbase dbus dchroot dconf declarative dep deprecated designer-plugin development device-mapper dga dhcpcd dillo dirac directfb discouraged disk-partition distinct-l divx djvu drm dtmf dts dv dvb dvbpsi dvd dvdarchive dvdchapjump dvdnav dvdr dvi ebook edit egl eigen eix embedded emerald enca encode escreen espeak etc-proposals etwin examples excel exceptions exif exiv2 expat experimental extensions extra-algorithms extra-cardsets extra-tools extrafilters extraicons extras faac fam fame fastbuild fastcgi fasttrack fat fbcon festival ffmpeg fftw file-icons fileinfo filter finger firefox3 fits flac fltk fluidsynth font-server fontconfig fontforge fortran fortune fpm fpx freemail freetds freetts ftp fts3 fuse g3dvl gadu gajim galago gallium game games gconf gcrypt gd gdbm gdu gecko gedit geoclue geoip geoloc geolocation gif gimp git glchess gles gles1 gles2 glib glitz gmedia gmp gmplayer gnokii gnome-keyring gnomecards gnumeric gnutella google gopher gpg gpgme gphoto2 gpm grace grammar graphviz grp grub gs gsm gstreamer gtk gtk2-perl gtk3 gtkhtml gtkspell gtkstyle gucharmap gudev guile h323 hash hddtemp hdri hfs highlight history hog hotpixels hq2x hscolour html htmlhandbook http httpd hwdb hyperestraier icecast icon icons iconv icotools icoutils icq icu id3 id3tag idn image imagemagick imap imlib infinality inifile inkjar inotify introspection iostats iplayer irc isag isc ithreads ivorbis j2me jabber java java6 javascript jbig jce jingle jit john joystick jpeg jpeg2k json kate kdecards kdm keymap keyutils kig-scripting kipi kmod kontact kpathsea ladspa lame largefile lastfm lastfmradio lcdfilter lcms lensfun less libass libburn libcaca libcanberra libffi libgda libkms libmms libnotify libsamplerate libsexy libsigsegv libssh2 libv4l libv4l2 libvirt libvirtd libvisual libwww libxml2 lighttpd live lm_sensors logrotate lua lyrics lzma lzo mad magic mailbox maildir manual math matroska mbox mbrola mcap md5sum mdnsresponder-compat meanwhile mediaplayer melt mem-scramble mercurial messenger metalink mhash midi migemo mikmod mime minizip mixer mjpeg mms mmx mmxext mng mod modesetting modplug mongodb mono moonlight motif mozilla mozsha1 mp2 mp3 mp3rtp mp4 mpeg mpeg2 mpg123 mpi mplayer mpris mpx msn mta mtp multilib multimedia musepack music musicbrainz mvl mysql nano-syntax ncat ncurses ndiff nemesi nepomuk net netapi network networking new-login nls nmap nmap-update nntp nokia notifier nova nowlistening nping npp nptl nsplugin ntfs ntfsprogs ntlm ntp nuv obex objc objc++ ocr octave odbc odf offensive ogg ogg123 ogm oldnet openal opencore-amr openexr opengl openmp openrc openssl openvg openxml optimization optimized-qmake orc osdmenu osmesa oss ots pam pango paranoidmsg parcheck passwordsave paste64 pcap pcf pch pci pcntl pcre pdf perl perl-geoipupdate phar phonon php pidgin pipe pixmaps pkcs11 pkinit plasma player playlist plugins plugins-symlink png pnm policykit pop portaudio posix postproc postscript prediction prelink projectm projectx psf python python3 q32 q64 q8 qpak qq qscintilla qt-dbus qt-faststart qt-webkit qt3support qt4 query-browser quicktime quvi radio rar raw rdesktop-vrdp readline realmedia redland reencrypt regex reiser4 reiserfs remote replytolist rrdcgi rss rtc rtf rtmp rtsp ruby samba sasl sbig scanfolder scanner schroedinger screen screenshot script scrobbler sdl sdl-image sdl-sound sdlaudio sdlmame search secure-delete sensord server session sha512 shared-glapi shm shout showtabbar sid sidebar silc simplexml sip sipim skins skype slang smartspaces smbclient smbsharemodes smime smp sms smtp sndfile snesfilter sockets solver sound soundex sounds soundtouch speech speedo speex spell spidermonkey spoof-source sql sqlite sqlite2 sqlite3 srt sse sse2 sse2_4way sse2check sse3 sse4 sse41 sse4_1 sse4a ssh ssl ssse3 startup-notification stats stereo stl stream streaming stroke strong-optimization stun subtitles subversion suhosin svg swat swig swscale symlink syslog system-boost system-crontab system-cxx-headers system-ffmpeg system-jpeg system-libCg system-libs system-libvncserver system-sqlite system-v8 systray tabbed taglib tcl tcpd telepathy terminal test-programs tga themes theora thesaurus threads threadsafe thumbnail tidy tiff timezone timidity tk tls tokenizer tokyocabinet toolbar tools tordns track-src-odirect tray trayicon tremor truetype tta twitgin twolame udev udisks udisks2 unicode unique unlock-notify unsupported unzip upower urandom urlpicpreview usb utils utp uucp uudeview uuencode uuid v4l v4l2 v8 vaapi vala vamp vapigen vcd vcdinfo vcdx vga vhook video videos view-captcha vim vim-syntax vim-with-x virtualbox visualization visualizer vlc vlm vnc vobsub vocoder vorbis vorbis-psy wad wav wavpack weather web webcam webdav-neon webgl webinterface webkit webp wikipedia win32 win64 winbind wineappdb winetools winetriks winpopup wma wma-fixed wmf wmp wordperfect wxwidgets wxwindows x11vnc x264 xa xanim xattr xcb xcf xcomposite xext xface xforms xhtml xine xklavier xml xmldoclet xmlpatterns xmlreader xmlrpc xmlwriter xmp xorg xorgmodule xosd xpm xrandr xscreensaver xsl xtended xterm xulrunner xv xvid xvmc yahoo yenc youtube zephyr zip zlib zoran zsh-completion zvbi" ABI_X86="64" ALSA_CARDS="hda-intel usb-audio usb-us122l usb-usx2y" CAMERAS="ptp2" CURL_SSL="openssl" ELIBC="glibc" FFTOOLS="aviocat cws2fws ffeval" INPUT_DEVICES="evdev joystick keyboard mouse vmmouse" KERNEL="linux" LIBREOFFICE_EXTENSIONS="pdfimport presenter-console presenter-minimizer" LINGUAS="en_GB en en_US it it_IT" PHP_TARGETS="php5-3 php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" SANE_BACKENDS="plustek" USERLAND="GNU" VIDEO_CARDS="radeon vmware vesa vga fbdev v4l r600" XFCE_PLUGINS="trash logout clock"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 xenon 2013-02-09 17:21:06 UTC
Created attachment 338418 [details]
500 HTTP error when trying to upload an NZB file

Here's the error CherryPy returns when the error occurs. It has been obtained by means of a curl call, formed as suggested by a sabnzbd developer. The same call succeeds in sabnzbd 0.7.9 and in 0.7.10 when installed with a version-bumped 0.7.9 ebuild instead of the one from portage.
Comment 2 Caroline 2013-02-10 18:37:20 UTC
I can confirm this bug. It is very annoying.
Comment 3 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-02-10 19:07:59 UTC
Please don't change the importance of the bug, this is up to the maintainer.
Comment 4 Brendan Shanks 2013-02-14 04:57:17 UTC
I'm also experiencing this bug. I use the manual upload functionality, so this ebuild is completely broken for me. 

I downgraded to the 0.7.9 ebuild, and it's working fine.
Comment 5 Justin Bronder (RETIRED) gentoo-dev 2013-02-14 18:43:01 UTC
I don't love it, but I re-enabled the cherrypy bundling for now.

  14 Feb 2013; Justin Bronder <jsbronder@gentoo.org> +sabnzbd-0.7.11.ebuild:
  Version bump (#456336). Rebundle cherrypy until 0.8.0 comes out (#450242,
  #456338 and see comments in ebuild).  Remove default user/pass from config.
Comment 6 xenon 2013-02-14 22:42:26 UTC
(In reply to comment #5)
> I don't love it, but I re-enabled the cherrypy bundling for now.
> 
>   14 Feb 2013; Justin Bronder <jsbronder@gentoo.org> +sabnzbd-0.7.11.ebuild:
>   Version bump (#456336). Rebundle cherrypy until 0.8.0 comes out (#450242,
>   #456338 and see comments in ebuild).  Remove default user/pass from config.

I understand the complications of the CherryPy situation and I read the discussion with the sabnzbd developer. But speaking about Gentoo only, wouldn't it be possible to just revert the changes made in the 0.7.10 ebuild? Official sabnzbd packages for versions 0.7.9, 0.7.10 and 0.7.11 work with the 0.7.9 ebuild, manual NZB upload included.
Comment 7 Justin Bronder (RETIRED) gentoo-dev 2013-02-15 15:03:27 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > I don't love it, but I re-enabled the cherrypy bundling for now.
> > 
> >   14 Feb 2013; Justin Bronder <jsbronder@gentoo.org> +sabnzbd-0.7.11.ebuild:
> >   Version bump (#456336). Rebundle cherrypy until 0.8.0 comes out (#450242,
> >   #456338 and see comments in ebuild).  Remove default user/pass from config.
> 
> I understand the complications of the CherryPy situation and I read the
> discussion with the sabnzbd developer. But speaking about Gentoo only,
> wouldn't it be possible to just revert the changes made in the 0.7.10
> ebuild? Official sabnzbd packages for versions 0.7.9, 0.7.10 and 0.7.11 work
> with the 0.7.9 ebuild, manual NZB upload included.

Uh, that's exactly what I did.
Comment 8 xenon 2013-02-15 16:23:02 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > (In reply to comment #5)
> > > I don't love it, but I re-enabled the cherrypy bundling for now.
> > > 
> > >   14 Feb 2013; Justin Bronder <jsbronder@gentoo.org> +sabnzbd-0.7.11.ebuild:
> > >   Version bump (#456336). Rebundle cherrypy until 0.8.0 comes out (#450242,
> > >   #456338 and see comments in ebuild).  Remove default user/pass from config.
> > 
> > I understand the complications of the CherryPy situation and I read the
> > discussion with the sabnzbd developer. But speaking about Gentoo only,
> > wouldn't it be possible to just revert the changes made in the 0.7.10
> > ebuild? Official sabnzbd packages for versions 0.7.9, 0.7.10 and 0.7.11 work
> > with the 0.7.9 ebuild, manual NZB upload included.
> 
> Uh, that's exactly what I did.

Oh. I must have misunderstood the ebuilds diff. Sorry.