任务单 #47822

Could not find freeciv21/database.lua

开放日期: 2023-04-09 23:32 最后更新: 2023-04-10 03:56

报告人:
属主:
(无)
类型:
状态:
关闭
组件:
里程碑:
(无)
优先:
5 - Medium
严重性:
5 - Medium
处理结果:
Invalid
文件:

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

任务单历史 (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
评论

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
评论

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
评论

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

2023-04-10 03:56 Updated by: cazfi
  • 状态 Update from 开启 to 关闭
  • 处理结果 Update from to Invalid

Attachment File List

No attachments

编辑

Please login to add comment to this ticket » 登录名