Server times out loading mods

Post Reply
Sasori
New member
Posts: 5
Joined: Sun Jul 25, 2021 04:32

Server times out loading mods

by Sasori » Post

Hi all from a newbie
Running Minetest 5.4.0 - dev 10.13.6 on MacBook Pro with MacOS Big Sur 11.5.
With a few mods I was able to host a server for my grandchildren to play with me when they visit on an old Windows laptop set up with Minetest and on my home network - this was working with no problems in single player or as multiplayer.
Did a bit of “googling” and entered more mods and worked well in single player mode. Then attempted to host the world with the additional mods and server would continually timeout. Ended up reducing the number of mods and the server game would then load.
Is their any way to increase the time that the server takes to load mods before it times out?
Appreciate any advice/help on the above or is it something that I have to live with?

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: Server times out loading mods

by Festus1965 » Post

check the basic system / free memory before and when minetest is running.

maybe also check luamemory in game after that.
Human has no future (climate change)
If urgend, you find me in Roblox (as CNXThomas)

Sasori
New member
Posts: 5
Joined: Sun Jul 25, 2021 04:32

Re: Server times out loading mods

by Sasori » Post

Festus1965 - Thanks for replying

MacBook usage before MT loaded - 4.41GB of 16GB
MacBook usage after MT loaded - 5.2GB of 16GB

Not sure how to check luamemory in game.

When too many mods get “Connection timed out” and the MT server says it is “shutting down”.

As it is all internal to the MacBook not sure what it means re connection timing out. MacBook is connected to my home network via wifi and wondering if that was the problem?

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: Server times out loading mods

by Festus1965 » Post

the free mem might be checked regular (repeating loop in terminal ? every ??? minutes)
* during loading when fail
* during running, when gamer login,
to see where the stop is, and if it too less or another reason,
below: luamem or network

Sasori wrote:
Sun Jul 25, 2021 10:09
Not sure how to check luamemory in game.
find out what mod load latest and use this code at the end of the init.lua

Code: Select all

print("[Mod] ??? - end with "..math.floor(collectgarbage("count")).." KB")
and some time ago I wrote three mods to check and even clean up luamem
here: http://gitea.minetest.one/explore/repos ... e&q=luajit

Sasori wrote:
Sun Jul 25, 2021 10:09
When too many mods get “Connection timed out” and the MT server says it is “shutting down”.
oh that one can be part of not big enough network, mean Lan Home

mhh under Ubuntu we have iptop or similar ... to small or too bussy on the internal
Human has no future (climate change)
If urgend, you find me in Roblox (as CNXThomas)

User avatar
Minix
Member
Posts: 144
Joined: Thu Nov 12, 2020 13:51
In-game: Minix

Re: Server times out loading mods

by Minix » Post

You should check your server log, I am not sure where it would be located on MacOS, and search the ERROR keyword, most likely one or some mods are incompatible or have bugs in their code which crash your server and make it restart constantly, hence when you try to connect you get a timeout. Also, you should try using Minetest 5.4.1 since 5.4.0 is not the latest version anymore so there should be no reason to use an old development build.

If you find ERROR messages post them here.

Sasori
New member
Posts: 5
Joined: Sun Jul 25, 2021 04:32

Re: Server times out loading mods

by Sasori » Post

RE:
You should check your server log, I am not sure where it would be located on MacOS, and search the ERROR keyword, most likely one or some mods are incompatible or have bugs in their code which crash your server and make it restart constantly, hence when you try to connect you get a timeout. Also, you should try using Minetest 5.4.1 since 5.4.0 is not the latest version anymore so there should be no reason to use an old development build.

If you find ERROR messages post them here.
I have two debug texts for the same situation. First one depicts a failure (debugF) and the second depicts success (debugS). Success followed reloading server with no change to mods.
NOTE: Although the files have a .jpg extension they are actually TEXT files so open with a text editor. The system kept saying wrong extension with .txt but would accept the .jpg extension.

RE 5.4.1 the Homebrew installation process uses 5.4.0 as the latest stable version.
Last edited by Sasori on Tue Jul 27, 2021 02:41, edited 1 time in total.

Sasori
New member
Posts: 5
Joined: Sun Jul 25, 2021 04:32

Re: Server times out loading mods

by Sasori » Post

Oh heck
looks like the attachments are not there.
Tried to post files in quotes - debugF awaiting moderator but debugS too large
Any advice on how to add text files to a post would be appreciated.

Mineminer
Member
Posts: 325
Joined: Mon Mar 05, 2018 04:05

Re: Server times out loading mods

by Mineminer » Post

Sasori wrote:
Tue Jul 27, 2021 02:27
Oh heck
looks like the attachments are not there.
Tried to post files in quotes - debugF awaiting moderator but debugS too large
Any advice on how to add text files to a post would be appreciated.
Try a paste bin site, I use paste.gg for that purpose as it requires no sign ups and shiz.

Sasori
New member
Posts: 5
Joined: Sun Jul 25, 2021 04:32

Re: Server times out loading mods

by Sasori » Post

Thank you Mimeminer for the advice

Hopefully the debug files are accessible at:

https://paste.gg/p/anonymous/8bf6d724e6 ... 8c24901e97

To Moderator - please delete the post with the debugF

Mineminer
Member
Posts: 325
Joined: Mon Mar 05, 2018 04:05

Re: Server times out loading mods

by Mineminer » Post

Sasori wrote:
Tue Jul 27, 2021 02:54
Thank you Mimeminer for the advice
Aww you are very welcome! :)
Hopefully the debug files are accessible at:

https://paste.gg/p/anonymous/8bf6d724e6 ... 8c24901e97

To Moderator - please delete the post with the debugF
Sadly though it does not state an error in between the time it happening so as it said on the thread it must be the mod(s).

If profiling yourself does not adjusts, another thing you can attempt is to try to run half the mods and see if the errors happens. If it does then split that half again. Otherwise try with the other half. Then in either cases would do this over and over again until you left with one mod left.

User avatar
Minix
Member
Posts: 144
Joined: Thu Nov 12, 2020 13:51
In-game: Minix

Re: Server times out loading mods

by Minix » Post

Sasori wrote:
Tue Jul 27, 2021 02:54
Thank you Mimeminer for the advice

Hopefully the debug files are accessible at:

https://paste.gg/p/anonymous/8bf6d724e6 ... 8c24901e97

To Moderator - please delete the post with the debugF
I read the debug log, here is the problem:

2021-07-27 11:13:52: ERROR[Main]: Invalid field use_texture_alpha (expected boolean got string).\

If you read some more lines you will see it references signs_mod, that may be the culprit, however it says it is getting a string but expecting a boolean, since 5.4.0 support for string values was added, and older versions of the engine used booleans only. Are you still using the 5.4.0 development version ? Depending on how early your version is it may not have support for that feature, try updating to 5.4.1 stable if possible.

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: Server times out loading mods

by Festus1965 » Post

Minix wrote:
Tue Jul 27, 2021 23:12
2021-07-27 11:13:52: ERROR[Main]: Invalid field use_texture_alpha (expected boolean got string).\
That one is automatic taking another not boolean value when running / starting - as I had see when tested 5.4.1 ... that might not be it.
Human has no future (climate change)
If urgend, you find me in Roblox (as CNXThomas)

User avatar
Minix
Member
Posts: 144
Joined: Thu Nov 12, 2020 13:51
In-game: Minix

Re: Server times out loading mods

by Minix » Post

Wait, how are you starting the server ?

Are you running it from the GUI button which says "Host server" or from the command line ?

One of the main reasons there is a 5.4.1 version is because there was a bug in 5.4.0 which caused servers started from the GUI to issue the "Connection timeout" message as you stated, that most likely is your problem, you have two possible solutions:
1)Update to 5.4.1
2)Run the server from the command line instead of the GUI

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests