Ticket #47822

Could not find freeciv21/database.lua

Open Date: 2023-04-09 23:32 Last Update: 2023-04-10 03:56

Reporter:
Owner:
(None)
Type:
Status:
Closed
Component:
MileStone:
(None)
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Invalid
File:
None

Details

Hello,

I installed freeciv21_3.0_amd64.deb on an Ubuntu 22.04. Created a fc_auth.conf file containing :

fcdb

backend="sqlite" database="/home/ubuntu/freeciv.sqlite"

When start server with freeciv21-server --Database fc_auth.conf --auth --Newusers, output is :

ubuntu@vps-d6e581e9:~$ freeciv21-server --Database fc_auth.conf --auth --Newusers This is the server for Freeciv21 version 3.0 You can learn a lot about Freeciv21 at https://longturn.readthedocs.io/en/latest/ info freeciv21-server - Server attempting to listen on :5556 critical freeciv21-server - Could not find freeciv21/database.lua in the following directories: ("/home/ubuntu/.config", "/etc/xdg")

database.lua is not present in filesystem. If I put this file (by taking it from repository) in /home/ubuntu/.config/freeciv21 :

ubuntu@vps-d6e581e9:~$ freeciv21-server --Database fc_auth.conf --auth --Newusers This is the server for Freeciv21 version 3.0 You can learn a lot about Freeciv21 at https://longturn.readthedocs.io/en/latest/ info freeciv21-server - Server attempting to listen on :5556 critical freeciv21-server - /home/ubuntu/.config/freeciv21/database.lua:83: attempt to index a nil value (global 'ls_sqlite3') stack traceback:

/home/ubuntu/.config/freeciv21/database.lua:83: in function </home/ubuntu/.config/freeciv21/database.lua:78> (...tail calls...)

critical freeciv21-server - Error connecting to the database

Ticket History (3/5 Histories)

2023-04-09 23:32 Updated by: buxx2
  • New Ticket "Could not find freeciv21/database.lua" created
2023-04-09 23:39 Updated by: buxx2
Comment

I used markdown for formatting, but seem not work here. I repeat logs here :

    ubuntu@vps-d6e581e9:~$ cat fc_auth.conf 
    [fcdb]
      backend="sqlite"
      database="./freeciv.sqlite"

Before download manually database.lua in /home/ubuntu/.config/freeciv21 :

ubuntu@vps-d6e581e9:~$ freeciv21-server --Database fc_auth.conf --auth --Newusers
This is the server for Freeciv21 version 3.0
You can learn a lot about Freeciv21 at https://longturn.readthedocs.io/en/latest/
[info] freeciv21-server - Server attempting to listen on :5556
[critical] freeciv21-server - Could not find freeciv21/database.lua in the following directories: ("/home/ubuntu/.config", "/etc/xdg")

After

    ubuntu@vps-d6e581e9:~$ freeciv21-server --Database fc_auth.conf --auth --Newusers
    This is the server for Freeciv21 version 3.0
    You can learn a lot about Freeciv21 at https://longturn.readthedocs.io/en/latest/
    [info] freeciv21-server - Server attempting to listen on :5556
    [critical] freeciv21-server - /home/ubuntu/.config/freeciv21/database.lua:83: attempt to index a nil value (global 'ls_sqlite3')
    stack traceback:
    	/home/ubuntu/.config/freeciv21/database.lua:83: in function </home/ubuntu/.config/freeciv21/database.lua:78>
    	(...tail calls...)
    [critical] freeciv21-server - Error connecting to the database

2023-04-09 23:42 Updated by: cazfi
Comment

Freeciv21 is not freeciv, but a fork by longturn.org. See their site for help / bug report facilities.

2023-04-09 23:46 Updated by: buxx2
Comment

Sorry, I got the wrong tracker ! I close this issue.

2023-04-10 03:56 Updated by: cazfi
  • Status Update from Open to Closed
  • Resolution Update from None to Invalid

Attachment File List

No attachments

Edit

Please login to add comment to this ticket » Login