FS#40403 - Lighttpd will not start because of broken default config file. (Fix is included)

Attached to Project: Arch Linux
Opened by Ryan Jacobs (ryanjacobs) - Friday, 16 May 2014, 23:35 GMT
Last edited by Bartłomiej Piotrowski (Barthalion) - Tuesday, 20 May 2014, 16:47 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
There's a simple typo in the config file /etc/lighttpd/lighttpd.conf causing lighttpd to crash when starting.
The variable for index-file.names is not being set correctly.
It is an array so the '+=' operator must be used.

What it is now : index-file.names = ( "index.html" )
What it should be : index-file.names += ( "index.html" )

Additional info:
* Package version: lighttpd 1.4.35-1
* The bug is on line 11 of /etc/lighttpd/lighttpd.conf

Steps to reproduce:
1. Install lighttpd with 'pacman -S lighttpd'
2. Start an instance with 'systemctl start lighttpd'
3. See the error message with 'systemctl status lighttpd'
This task depends upon

Closed by  Bartłomiej Piotrowski (Barthalion)
Tuesday, 20 May 2014, 16:47 GMT
Reason for closing:  Not a bug
Comment by Doug Newgard (Scimmia) - Saturday, 17 May 2014, 02:00 GMT
That makes no sense. Generally += is to add to an existing array, where = will (re-)assign the array. The official docs don't show it as needing +=, either.

http://redmine.lighttpd.net/projects/lighttpd/wiki/Index-file-names_Details

What is the error, exactly?
Comment by Doug Newgard (Scimmia) - Monday, 19 May 2014, 19:36 GMT
Ping? Are we going to get any more info?
Comment by Ryan Jacobs (ryanjacobs) - Tuesday, 20 May 2014, 05:54 GMT
Sorry for the late response, the error is:
Duplicate config variable in conditional 0 global: index-file.names
May 19 22:47:47 delta lighttpd-angel[11281]: 2014-05-19 22:47:47: (configfile.c.957) source:
/etc/lighttpd/lighttpd.conf line: 20 pos: 16 parser failed somehow near here: (EOL)

I didn't notice before that it showed 'duplicate config variable'. I only have one other config file that's included in the main config, but it doesn't look like it adding the same variable to the array. It's this one https://wiki.archlinux.org/index.php/lighttpd#CGI at /etc/lighttpd/conf.d/cgi.conf.
Comment by Doug Newgard (Scimmia) - Tuesday, 20 May 2014, 16:12 GMT
Yep, cgi.conf would be the one causing that problem if you're including it at the top of lighttp.conf instead of the bottom. Since the stock file doesn't have this at all, it's fine.

Loading...