bugFreeciv - Bugs: bug #20108, Error logging about missing...

Show feedback again

bug #20108: Error logging about missing database backend definition broken

Submitted by:  Marko Lindqvist <cazfi>
Submitted on:  Tue Aug 28 21:04:00 2012  
Category: generalSeverity: 3 - Normal
Priority: 5 - NormalStatus: None
Assigned to: NoneOpen/Closed: Open
Release: Operating System: None
Planned Release: Contains string changes: None

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Tue Aug 28 23:26:44 2012, comment #1:

I can't reproduce this (although I'm not trying on Windows).
An omitted 'backend="foo"' directive will cause the default, "mysql", to be used.
A 'backend=""' directive gives "Database backend '' not supported by database.lua".
Did you find out what the exact syntax problem was?

Jacob Nevins <jtn>
Project Administrator
Tue Aug 28 21:04:00 2012, original submission:

Trying to debug authentication problems on friend's computer (Windows, debugging over email)

> 1: lua error:
> [string "tolua: embedded Lua code"]:6: bad argument #2 to format'
> (no value)
> stack traceback:
> : in function 'format'
> [string "tolua: embedded Lua code"]:6: in function 'error'
> ../etc/freeciv/database.lua:345: in function
> <../etc/freeciv/database.lua:334>

database.lua:345 reads:
log.error('Database backend \'%s\' not supported by database.lua', backend)

I told him to check his config file for correct backend definition. However, there's bug in database.lua in that it doesn't give sensible error message about this. I assume it's just empty or non-existent backend definition that makes that error logging to choke.

Marko Lindqvist <cazfi>
Project Administrator


(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by jtn (Posted a comment)
  • -unavailable- added by cazfi (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Error: not logged in



    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue Aug 28 22:27:55 2012cazfiSummaryError logging about missing datebase backend definition broken=>Error logging about missing database backend definition broken
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup