Fixing Lighttpd in Debian “squeeze” on SheevaPlug

I was using SheevaPlug as my Home NAS, with and external usb hdd, until recently when I built my new NAS, based on ION ATOM, FreeBSD and ZFS.

I am thinking to add an usb webcam and to use it as a monitoring system.

I updated Debian “squeeze”, which is running on an 8G SDHC card, but I got the error:

After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up lighttpd (1.4.25-2) …
Starting web server: lighttpd2010-01-22 23:13:31: (network.c.345) can’t bind to port: :: 80 Address already in use
failed!
invoke-rc.d: initscript lighttpd, action “start” failed.
dpkg: error processing lighttpd (–configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
lighttpd
E: Sub-process /usr/bin/dpkg returned an error code (1)
sheeva:/home/ionut#

I didn’t have anything running and listening on port 80, so, it seems that it is a known bug, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=564556 and the solution is here:

Add in /etc/lighttpd/lighttpd.conf:

server.use-ipv6 = “enable”

And add in /etc/sysctl.d/bindv6only.conf:

net.ipv6.bindv6only = 0

If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

Comments

Hey, I have the same setup, it should be fixed with the latest lighttpd update

I’m running the same setup and the above solution only worked for me after also commenting out this line in /etc/lighttpd/lighttpd.conf:

include_shell “/usr/share/lighttpd/use-ipv6.pl”

I just replaced that with the:

server.use-ipv6 = “enable”

line.

Leave a comment

(required)

(required)