Zabbix interfering with sabnzbd web UI

Report & discuss bugs found in 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
spanky85
Newbie
Newbie
Posts: 11
Joined: September 9th, 2010, 7:13 am

Zabbix interfering with sabnzbd web UI

Post by spanky85 »

Hi, I've noticed something quite strange. I'm running Ubuntu 10.10, with sabnzbd 0.6.0RC2. I also have installed Zabbix 1.8.2. If I go to the web interface of sabnzbd (plush theme) whilst I have Zabbix open in another tab, looking at any of the pages in Zabbix's 'configuration', I get this error from sabnzbd:

Code: Select all

500 Internal Server Error

The server encountered an unexpected condition which prevented it from fulfilling the request.

Traceback (most recent call last):
  File "/usr/share/sabnzbdplus/cherrypy/_cprequest.py", line 593, in respond
    self.process_headers()
  File "/usr/share/sabnzbdplus/cherrypy/_cprequest.py", line 661, in process_headers
    self.cookie.load(value)
  File "/usr/lib/python2.6/Cookie.py", line 627, in load
    self.__ParseString(rawdata)
  File "/usr/lib/python2.6/Cookie.py", line 660, in __ParseString
    self.__set(K, rval, cval)
  File "/usr/lib/python2.6/Cookie.py", line 580, in __set
    M.set(key, real_value, coded_value)
  File "/usr/lib/python2.6/Cookie.py", line 455, in set
    raise CookieError("Illegal key value: %s" % key)
CookieError: Illegal key value: cb_/zabbix/hostgroups.php_parts
I have reported the problem on the Zabbix forums (here: http://www.zabbix.com/forum/showthread.php?p=83622) since I assumed it was Zabbix setting cookies incorrectly, but the response there has been that it's more likely to be sabnzbd's fault. Any ideas as to what's going on?

It's 100% reproducible, but not a super-high priority since the workaround is simple; view a different page in Zabbix :)
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Zabbix interfering with sabnzbd web UI

Post by shypike »

Looks like a cookie naming clash.
You may be able to work around it by using "localhost" for one program and "127.0.0.1" for the other.

BTW: both programs are probably incorrect.
Both are assuming that they are the only service running on "localhost".
spanky85
Newbie
Newbie
Posts: 11
Joined: September 9th, 2010, 7:13 am

Re: Zabbix interfering with sabnzbd web UI

Post by spanky85 »

Ah, that makes sense! And it's correct! Typing in the IP of the server for one program and the host name for the other works. Thanks!
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Zabbix interfering with sabnzbd web UI

Post by shypike »

We should do a clean up of the cookie handling, it's a bit messy right now.
But not any more for the pending 0.6.0 release.
Thanks for the reminder.
User avatar
sander
Release Testers
Release Testers
Posts: 8832
Joined: January 22nd, 2008, 2:22 pm

Re: Zabbix interfering with sabnzbd web UI

Post by sander »

@spanky85 & offtopic:

How do I proceed installing and configuring Zabbix after "sudo apt-get install zabbix-server-mysql"?

Thanks
Last edited by sander on April 25th, 2011, 2:40 pm, edited 1 time in total.
Please don't send me unrequested PM's; the forum is the best way to communicate.
If someone helps you, please reply to that help.
f you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
spanky85
Newbie
Newbie
Posts: 11
Joined: September 9th, 2010, 7:13 am

Re: Zabbix interfering with sabnzbd web UI

Post by spanky85 »

I can't remember exactly what I did, but it was along the lines of:

Install Zabbix, the agent (to collect stats) and the frontend (to view them):

Code: Select all

sudo apt-get install zabbix-server-mysql zabbix-agent zabbix-frontend-php
Fire up localhost/zabbix, log in as admin (password is zabbix), then follow this guide roughly to get it set up:
http://www.zabbix.com/documentation/1.8 ... quickstart

There's a bit more work to do for configuring email alerts, I needed to fiddle some php settings (the web interface warns you which ones), and I had to disable some of the default checks, but it seems to monitor a sensible set of stuff by default which is nice. Setting up log monitoring requires a little more work too. Oh, and I think I had to replace 'localhost' with '127.0.0.1' in the server config file, and replace 'localhost' with 'Zabbix Server' in the agent config file, if I remember rightly.
stalks
Newbie
Newbie
Posts: 2
Joined: June 11th, 2011, 12:40 pm

Re: Zabbix interfering with sabnzbd web UI

Post by stalks »

The actual cookie name giving the error is "cb_/zabbix/media_types.php_parts"

I find it hard to believe that sabnzbd has a conflicting cookie with that name, but rather it doesn't like part of the name, ie. forward slashes
Post Reply