Error: /usr/share/games/minetest/builtincommon/strict.lua: No such file or directory

Post Reply
abdutron
Member
Posts: 26
Joined: Tue Sep 08, 2020 20:26

Error: /usr/share/games/minetest/builtincommon/strict.lua: No such file or directory

by abdutron » Post

Hello,

I am trying to move minetest-server from one system to another one.

On both machines I have installed Minetest on Debian 10 using the Backports package.

My problem is that on the new machine Minetest instantly crashes at launch (/etc/init.d/minetest-server start) with this error in the logs:

ModError: Failed to load and run script from /user/share/games/minetest/builtin/init.lua:
/usr/share/games/minetest/builtincommon/strict.lua: No such file or directory


It seems that a "/" is missing between "builtin" and "common" to respect the folders structure.

Any idea how I can fix this bug?

Thank you,

Stéphane

User avatar
Festus1965
Member
Posts: 4181
Joined: Sun Jan 03, 2016 11:58
GitHub: Festus1965
In-game: Festus1965 Thomas Thailand Explorer
Location: Thailand ChiangMai
Contact:

Re: Error: /usr/share/games/minetest/builtincommon/strict.lua: No such file or directory

by Festus1965 » Post

? hmm
first off all, you should install minetest at the new system the SAME way you did it on the old server.

and if your going to use advantages of last stable (if compatible), install it cmake make way on the new system ...

is there a reason your using not the same version, or then the newest 5.4.1 on the new system,
as your problem seam to be the only one with this issue, and so

check all your scripts, if there are fixed paths used,
use minetestserver --help ... --info ?? to see sure the paths will be used

you didn't mention:
- mts version that pops up with that option (backport)
- installing routine (guess 'sudo apt install minetest' ?)
... and so on
Human has no future (climate change)
If urgend, you find me in Roblox (as CNXThomas)

abdutron
Member
Posts: 26
Joined: Tue Sep 08, 2020 20:26

Re: Error: /usr/share/games/minetest/builtincommon/strict.lua: No such file or directory

by abdutron » Post

Hello,

Thank you for your kind reply.

Actually I did use the same installation process but maybe the minetest package version from the backport in Debian has been updated since my last installation:

sudo apt-get install minetest-server

All scripts are native and they have not been modified in any way. They should work out of the box.

Well, I will continue to investigate but I really do not know how to fix this issue.

Thank you anayway,

Stéphane

abdutron
Member
Posts: 26
Joined: Tue Sep 08, 2020 20:26

Re: Error: /usr/share/games/minetest/builtincommon/strict.lua: No such file or directory

by abdutron » Post

OK following your advice I have manually installed the very same version of minetest (5.3.0) using "dpkg -i"

If I try
sudo /etc/init.d/minetest-server start

The server starts but crashes as soon as I try to connect to it

If I try
sudo minetestserver

The server works fine, I manage to connect and load the map
BUT this is a blank map, not the one I have copied from my previous installation

Very confusing...

User avatar
Festus1965
Member
Posts: 4181
Joined: Sun Jan 03, 2016 11:58
GitHub: Festus1965
In-game: Festus1965 Thomas Thailand Explorer
Location: Thailand ChiangMai
Contact:

Re: Error: /usr/share/games/minetest/builtincommon/strict.lua: No such file or directory

by Festus1965 » Post

abdutron wrote:
Sun Jun 06, 2021 21:44
The server starts but crashes as soon as I try to connect to it
search for this issue (forum / git), so far I remember that is well known in the last two months,
or maybe use another option / version to confirm if it is the source or personal

mean take the direct download of a source minetest.net / git 5.3.0
* and cmake / make
* or maybe just stable version and try to start instead of searching ...
* or use a 5.2.0 and check only about that crash login problem
Human has no future (climate change)
If urgend, you find me in Roblox (as CNXThomas)

abdutron
Member
Posts: 26
Joined: Tue Sep 08, 2020 20:26

Re: Error: /usr/share/games/minetest/builtincommon/strict.lua: No such file or directory

by abdutron » Post

OK thank you for your help.

At this stage I think I have two identical setup:

/home/espherus# minetestserver --version
Minetest 5.3.0 (Linux)
BUILD_TYPE=Release
RUN_IN_PLACE=0
USE_GETTEXT=1
USE_SOUND=1
USE_CURL=1
USE_FREETYPE=1
USE_LUAJIT=1
STATIC_SHAREDIR="/usr/share/games/minetest"
STATIC_LOCALEDIR="/usr/share/locale"


This is what I get on both servers.

My opinion is that something must be wrong with mods.
So I will try to follow this track and if I find anything I will use this thread to publish my results.

abdutron
Member
Posts: 26
Joined: Tue Sep 08, 2020 20:26

Re: Error: /usr/share/games/minetest/builtincommon/strict.lua: No such file or directory

by abdutron » Post

This is what I get in SYSLOG:

Jun 9 13:41:58 sd-94615 systemd[1]: Stopped Minetest multiplayer server minetest.conf server config.
Jun 9 13:50:43 sd-94615 systemd[1]: Started Session 109 of user roadwarrior.
Jun 9 13:50:43 sd-94615 systemd[1]: session-109.scope: Succeeded.
Jun 9 13:51:53 sd-94615 systemd[1]: Started Minetest multiplayer server minetest.conf server config.
Jun 9 13:52:25 sd-94615 systemd[1]: minetest-server.service: Main process exited, code=exited, status=1/FAILURE
Jun 9 13:52:25 sd-94615 systemd[1]: minetest-server.service: Failed with result 'exit-code'.
Jun 9 13:52:25 sd-94615 systemd[1]: minetest-server.service: Service RestartSec=100ms expired, scheduling restart.
Jun 9 13:52:25 sd-94615 systemd[1]: minetest-server.service: Scheduled restart job, restart counter is at 1.
Jun 9 13:52:25 sd-94615 systemd[1]: Stopped Minetest multiplayer server minetest.conf server config.
Jun 9 13:52:25 sd-94615 systemd[1]: Started Minetest multiplayer server minetest.conf server config.


Everytime I try to connect to the server (and a Server Time Out on the client side.)

User avatar
Festus1965
Member
Posts: 4181
Joined: Sun Jan 03, 2016 11:58
GitHub: Festus1965
In-game: Festus1965 Thomas Thailand Explorer
Location: Thailand ChiangMai
Contact:

Re: Error: /usr/share/games/minetest/builtincommon/strict.lua: No such file or directory

by Festus1965 » Post

not sure, did you also install the mt included the minetest_game ???

In my case this mean download, extract minetest AND also download / extract into this just generated new minetest folder,
then with make install ... also the minetest_game and my other game folder are installed within ...

do you have that included ?
Is a or that minetest 'game' there ? as source or then at the desalinated folder ?
Human has no future (climate change)
If urgend, you find me in Roblox (as CNXThomas)

abdutron
Member
Posts: 26
Joined: Tue Sep 08, 2020 20:26

Re: Error: /usr/share/games/minetest/builtincommon/strict.lua: No such file or directory

by abdutron » Post

OK I managed to fix the issue. The problem came from an issue with the folder:

/var/games/minetest-server/.minetest/worlds/world

The owner/permissions were not set the right way after the migration of the data (using SCP).

This is what worked for me as a fix:

rwxr-xr-x 2 Debian-minetest games 4096 Jun 9 14:11 .
drwxr-xr-x 3 Debian-minetest games 4096 Dec 8 2020 ..
-rw-r--r-- 1 Debian-minetest games 81920 Jun 9 14:06 auth.sqlite
-rw-r--r-- 1 Debian-minetest games 0 Jun 3 15:49 beds_spawns
-rw-r--r-- 1 Debian-minetest games 538 Jun 9 14:11 env_meta.txt
-rw-r--r-- 1 Debian-minetest games 9 Jun 9 14:02 force_loaded.txt
-rw-r--r-- 1 Debian-minetest games 0 Jun 9 14:02 ipban.txt
-rw-r--r-- 1 Debian-minetest games 3477 Jun 9 14:04 map_meta.txt
-rw-r--r-- 1 Debian-minetest games 30044160 Jun 9 14:08 map.sqlite
-rw-r--r-- 1 Debian-minetest games 385024 Jun 9 14:08 players.sqlite
-rw-r--r-- 1 Debian-minetest games 650 Dec 8 2020 world.mt


All is working perfectly fine now.

Thank you very much for the kind support.

Stéphane

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests