Page MenuHomePhabricator

accesslog.filename makes lighttpd fail starting
Closed, ResolvedPublic

Description

Steps to reproduce

  1. So far I've tried:
    1. {home}/access.log
    2. ~/access.log
  2. $ webservice --backend=gridengine lighttpd start

Expected behavior
It should work per https://wikitech.wikimedia.org/wiki/Help:Toolforge/Web/Lighttpd#Web%20logs

Current behavior
Currently it fails like this:

2019-10-31 19:30:19: (log.c.217) server started 
2019-10-31 19:30:19: (log.c.171) opening errorlog '~/access.log' failed: No such file or directory
2019-10-31 19:30:19: (server.c.1269) Configuration of plugins failed. Going down.

Either fix the manual with correct variable declaration, or fix the lighttpd module causing this

Configuration
Perl webservice, kmlexport tool

Event Timeline

Dvorapa created this task.Thu, Oct 31, 7:53 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptThu, Oct 31, 7:53 PM
Dvorapa updated the task description. (Show Details)Thu, Oct 31, 7:54 PM
Dvorapa updated the task description. (Show Details)
Dvorapa updated the task description. (Show Details)Thu, Oct 31, 7:58 PM

On irc, @Dvorapa reported that accesslog.filename = "/data/project/kmlexport/access.log does work. This may be a matter of poor documentation.

bd808 added a subscriber: Phamhi.

Documentation updated: https://wikitech.wikimedia.org/w/index.php?title=Help:Toolforge/Web/Lighttpd&diff=1843508&oldid=1843506

@Phamhi I did not test further to see if the original instructions you wrote were correct but only for some version of lighttpd newer than we have on the grid engine backend.

Phamhi closed this task as Resolved.Wed, Nov 13, 1:59 PM
Phamhi claimed this task.

Thanks for the confirmation.