Software:
- lighttpd-1.4.19: from stable (lenny) repository
- sabnzbdplus-0.5.4: from testing (squeeze) repository
- Debian 5.0.6 a.k.a. lenny
Debian
- Standard VPS installation
- Firewall disabled
- The following packages were installed: sabnzbdplus sabnzbdplus-theme-classic sabnzbdplus-theme-plush sabnzbdplus-theme-mobile python-cheetah python-configobj python-feedparser python-support python-openssl python-yenc par2 unzip zip unrar unace
Code: Select all
% cat /etc/default/sabnzbdplus | grep -v '^$\|^#'
USER=www-data
CONFIG=/home/www/sabnzbd/sabnzbd.ini
HOST=0.0.0.0
PORT=8080
EXTRAOPTS=-l2
Here are the relevant parts
Code: Select all
server.modules = ( "mod_access", "mod_alias", "mod_accesslog", "mod_compress", "mod_auth", "mod_proxy", "mod_redirect", "mod_rewrite" )
$HTTP["host"] =~ "^sub\.domain\.com$" {
# Some host specific configuration like logs & document-root
$HTTP["url"] =~ "^/nzb/$" {
proxy.debug = 2
proxy.server = ( "" => ( ( "host" => "127.0.0.1", "port" => 8080 ) ) )
}
}
What Works
SABnzbd works when accessed from the local machine using the following methods:
Code: Select all
%curl http://sub.domain.com:8080
%curl http://localhost:8080
When accessing SABnzbd from localhost or a remote machine, the following will not work
Code: Select all
%curl http://sub.domain.com/nzb/
<br/><br/>
I found out that, as far as I could tell, lighttpd is forwarding the request to SABnzbd. Here is a snippet from the lighttpd access log:
I get the following in the lighttpd error logs (because I enabled mod_proxy debugging):"GET /nzb/ HTTP/1.1" 200 12 "-" "curl/7.18.2 (x86_64-pc-linux-gnu) libcurl/7.18.2 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.8 libssh2/0.18"
The sabnzbd.error.log has the following error once for every http session requesting the above URL:2010-11-01 00:15:46: (mod_proxy.c.1080) proxy - start
2010-11-01 00:15:46: (mod_proxy.c.1118) proxy - ext found
2010-11-01 00:15:46: (mod_proxy.c.1161) proxy - used fair balancing
2010-11-01 00:15:46: (mod_proxy.c.1242) proxy - found a host 127.0.0.1 8080
2010-11-01 00:15:46: (mod_proxy.c.377) connect delayed: 9
2010-11-01 00:15:46: (mod_proxy.c.994) proxy: fdevent-out 1
2010-11-01 00:15:46: (mod_proxy.c.805) proxy - connect - delayed success
2010-11-01 00:15:46: (mod_proxy.c.961) proxy: fdevent-in 4
2010-11-01 00:15:46: (mod_proxy.c.645) proxy - have to read: 251
2010-11-01 00:15:46: (mod_proxy.c.961) proxy: fdevent-in 4
2010-11-01 00:15:46: (mod_proxy.c.645) proxy - have to read: 12
2010-11-01 00:15:46: (mod_proxy.c.961) proxy: fdevent-in 4
2010-11-01 00:15:46: (mod_proxy.c.645) proxy - have to read: 0
/usr/share/sabnzbdplus/cherrypy/lib/encoding.py:196: DeprecationWarning: 'l' format requires -2147483648 <= number <= 2147483647 yield struct.pack("<l", crc)
I have spent too much time trying to resolve this issue ???. I am seeking your assistance now.