Jump to content

Server won't start: "DoLuaFile Could not load lua file scripts/main.lua"


Recommended Posts

For some reasons, I am unable to start my DST server. I haven't been using it for a while and now it just won't start

It was working before, using the dedicated linux quick guide but it won't start anymore.

I thought it was the library "libcurl-gnutls.so.4" but it does look for the file at the right place.

What is scripts/main.lua supposed to do? Is this the reason why my server won't start?

Thanks in advance.

Here are the logs:

[dst@localhost ~]$ ./run_dedicated_servers.sh
Redirecting stderr to '/home/dst/Steam/logs/stderr.txt'
[  0%] Checking for available updates...
[----] Verifying installation...
Steam Console Client (c) Valve Corporation
-- type 'quit' to exit --
Loading Steam API...OK.

Connecting anonymously to Steam Public...Logged in OK
Waiting for user info...OK
 Update state (0x3) reconfiguring, progress: 0.00 (0 / 0)
 Update state (0x5) validating, progress: 3.74 (57205111 / 1529408443)
 Update state (0x5) validating, progress: 7.13 (109073804 / 1529408443)
 Update state (0x5) validating, progress: 10.51 (160718350 / 1529408443)
 Update state (0x5) validating, progress: 12.82 (196140407 / 1529408443)
 Update state (0x5) validating, progress: 16.05 (245448063 / 1529408443)
 Update state (0x5) validating, progress: 19.49 (298061092 / 1529408443)
 Update state (0x5) validating, progress: 22.54 (344681822 / 1529408443)
 Update state (0x5) validating, progress: 25.75 (393866140 / 1529408443)
 Update state (0x5) validating, progress: 28.83 (440925716 / 1529408443)
 Update state (0x5) validating, progress: 35.03 (535743685 / 1529408443)
 Update state (0x5) validating, progress: 41.79 (639099174 / 1529408443)
 Update state (0x5) validating, progress: 49.12 (751303037 / 1529408443)
 Update state (0x5) validating, progress: 54.63 (835526342 / 1529408443)
 Update state (0x5) validating, progress: 60.76 (929253018 / 1529408443)
 Update state (0x5) validating, progress: 65.70 (1004770716 / 1529408443)
 Update state (0x5) validating, progress: 69.86 (1068400899 / 1529408443)
 Update state (0x5) validating, progress: 76.82 (1174879609 / 1529408443)
 Update state (0x5) validating, progress: 85.69 (1310506179 / 1529408443)
 Update state (0x5) validating, progress: 93.94 (1436672547 / 1529408443)
Success! App '343050' fully installed.
./dontstarve_dedicated_server_nullrenderer./dontstarve_dedicated_server_nullrenderer: /lib/libcurl-gnutls.so.4: no version information available (required by ./dontstarve_dedicated_server_nullrenderer): /lib/libcurl-gnutls.so.4: no version information available (required by ./dontstarve_dedicated_server_nullrenderer)

Caves:  [00:00:00]: PersistRootStorage is now /home/dst/.klei//DoNotStarveTogether/MyDediServer/Caves/
Caves:  [00:00:00]: Starting Up
Master: [00:00:00]: PersistRootStorage is now /home/dst/.klei//DoNotStarveTogether/MyDediServer/Master/
Caves:  [00:00:00]: Version: 361362
Master: [00:00:00]: Starting Up
Master: [00:00:00]: Version: 361362
Caves:  [00:00:00]: Current time: Sat Aug 24 23:07:03 2019
Master: [00:00:00]: Current time: Sat Aug 24 23:07:03 2019
Caves:
Master:
Master: [00:00:00]: System Name: Linux
Caves:  [00:00:00]: System Name: Linux
Master: [00:00:00]: Host Name: localhost.localdomain
Caves:  [00:00:00]: Host Name: localhost.localdomain
Master: [00:00:00]: Release(Kernel) Version: 3.10.0-957.21.3.el7.x86_64
Caves:  [00:00:00]: Release(Kernel) Version: 3.10.0-957.21.3.el7.x86_64
Master: [00:00:00]: Kernel Build Timestamp: #1 SMP Tue Jun 18 16:35:19 UTC 2019
Caves:  [00:00:00]: Kernel Build Timestamp: #1 SMP Tue Jun 18 16:35:19 UTC 2019
Master: [00:00:00]: Machine Arch: x86_64
Caves:  [00:00:00]: Machine Arch: x86_64
Caves:  [00:00:00]: Don't Starve Together: 361362 LINUX
Master: [00:00:00]: Don't Starve Together: 361362 LINUX
Caves:  [00:00:00]: Build Date: 5140
Master: [00:00:00]: Build Date: 5140
Caves:  [00:00:00]: Parsing command line
Master: [00:00:00]: Parsing command line
Caves:  [00:00:00]: Command Line Arguments: -console -cluster MyDediServer -monitor_parent_process 16262 -shard Caves
Master: [00:00:00]: Command Line Arguments: -console -cluster MyDediServer -monitor_parent_process 16262 -shard Master
Caves:  [00:00:00]: [WARNING] -console has been deprecated: Use the [MISC] / console_enabled setting instead.
Master: [00:00:00]: [WARNING] -console has been deprecated: Use the [MISC] / console_enabled setting instead.
Master: [00:00:00]: Initializing distribution platform
Master: [00:00:00]: ....Done
Caves:  [00:00:00]: Initializing distribution platform
Caves:  [00:00:00]: ....Done
Master: [00:00:00]: THREAD - started 'GAClient' (4130257728)
Caves:  [00:00:00]: THREAD - started 'GAClient' (4130179904)
Master: [00:00:00]: CurlRequestManager::ClientThread::Main()
Caves:  [00:00:00]: CurlRequestManager::ClientThread::Main()
Master: [00:00:00]: Mounting file system databundles/klump.zip successful.
Master: [00:00:00]: Mounting file system databundles/shaders.zip skipped.
Master: [00:00:00]: Mounting file system databundles/fonts.zip skipped.
Caves:  [00:00:00]: Mounting file system databundles/klump.zip successful.
Master: [00:00:00]: Mounting file system databundles/anim_dynamic.zip skipped.
Master: [00:00:00]: Mounting file system databundles/bigportraits.zip skipped.
Caves:  [00:00:00]: Mounting file system databundles/shaders.zip skipped.
Master: [00:00:00]: Mounting file system databundles/images.zip skipped.
Caves:  [00:00:00]: Mounting file system databundles/fonts.zip skipped.
Master: [00:00:00]: Mounting file system databundles/scripts.zip skipped.
Caves:  [00:00:00]: Mounting file system databundles/anim_dynamic.zip skipped.
Caves:  [00:00:00]: Mounting file system databundles/bigportraits.zip skipped.
Caves:  [00:00:00]: Mounting file system databundles/images.zip skipped.
Caves:  [00:00:00]: Mounting file system databundles/scripts.zip skipped.
Master: [00:00:00]: ProfileIndex:7.92
Caves:  [00:00:00]: ProfileIndex:7.93
Master: [00:00:00]: [Connect] PendingConnection::Reset(true)
Caves:  [00:00:00]: [Connect] PendingConnection::Reset(true)
Master: [00:00:00]: THREAD - started 'Ping Job Thread' (4122999616)
Caves:  [00:00:00]: THREAD - started 'Ping Job Thread' (4122999616)
Master: [00:00:00]: Platform: 1
Master: [00:00:00]: Network tick rate: U=15(2), D=0
Caves:  [00:00:00]: Platform: 1
Caves:  [00:00:00]: Network tick rate: U=15(2), D=0
Master: [00:00:00]: Network tick rate: U=15(2), D=0
Caves:  [00:00:00]: Network tick rate: U=15(2), D=0
Master: [00:00:00]: OnLoadPermissionList: /home/dst/.klei//DoNotStarveTogether/MyDediServer/blocklist.txt (Failure)
Caves:  [00:00:00]: OnLoadPermissionList: /home/dst/.klei//DoNotStarveTogether/MyDediServer/blocklist.txt (Failure)
Master: [00:00:00]: OnLoadPermissionList: /home/dst/.klei//DoNotStarveTogether/MyDediServer/adminlist.txt (Failure)
Caves:  [00:00:00]: OnLoadPermissionList: /home/dst/.klei//DoNotStarveTogether/MyDediServer/adminlist.txt (Failure)
Master: [00:00:00]: THREAD - started 'StreamInput' (4118805312)
Caves:  [00:00:00]: THREAD - started 'StreamInput' (4118805312)
Caves:  [00:00:00]: OnLoadUserIdList: /home/dst/.klei//DoNotStarveTogether/MyDediServer/whitelist.txt (Failure)
Master: [00:00:00]: OnLoadUserIdList: /home/dst/.klei//DoNotStarveTogether/MyDediServer/whitelist.txt (Failure)
Master: [00:00:00]: Token retrieved from: /home/dst/.klei//DoNotStarveTogether/MyDediServer/cluster_token.txt
Caves:  [00:00:00]: Token retrieved from: /home/dst/.klei//DoNotStarveTogether/MyDediServer/cluster_token.txt
Master: [00:00:00]: Token retrieved from: /home/dst/.klei//DoNotStarveTogether/MyDediServer/cluster_token.txt
Caves:  [00:00:00]: Token retrieved from: /home/dst/.klei//DoNotStarveTogether/MyDediServer/cluster_token.txt
Master: [00:00:00]: cGame::InitializeOnMainThread
Caves:  [00:00:00]: cGame::InitializeOnMainThread
Master: [00:00:00]: Renderer initialize: Okay
Caves:  [00:00:00]: Renderer initialize: Okay
Master: [00:00:00]: AnimManager initialize: Okay
Caves:  [00:00:00]: AnimManager initialize: Okay
Master: [00:00:00]: Buffers initialize: Okay
Caves:  [00:00:00]: Buffers initialize: Okay
Master: [00:00:00]: cDontStarveGame::DoGameSpecificInitialize()
Master: [00:00:00]: GameSpecific initialize: Okay
Master: [00:00:00]: cGame::StartPlaying
Caves:  [00:00:00]: cDontStarveGame::DoGameSpecificInitialize()
Caves:  [00:00:00]: GameSpecific initialize: Okay
Caves:  [00:00:00]: cGame::StartPlaying
Master: [00:00:00]: LOADING LUA
Caves:  [00:00:00]: LOADING LUA
Master: [00:00:00]: DoLuaFile scripts/main.lua
Caves:  [00:00:00]: DoLuaFile scripts/main.lua
Master: [00:00:00]: DoLuaFile Could not load lua file scripts/main.lua
Caves:  [00:00:00]: DoLuaFile Could not load lua file scripts/main.lua
Caves:  [00:00:00]: Error loading main.lua
Master: [00:00:00]: Error loading main.lua

Caves:  [00:00:00]: Failed mSimulation->Reset()
Master: [00:00:00]: Failed mSimulation->Reset()
Caves:  [00:00:00]: Error during game initialization!
Master: [00:00:00]: Error during game initialization!
Master: Updates 0Seconds elapsed: 0.0851406 fps:0
Master: Saving Dedicated server data...
Caves:  Updates 0Seconds elapsed: 0.0851289 fps:0
Master: [00:00:00]: attempt to call a nil value
Caves:  Saving Dedicated server data...
Master: LUA ERROR stack traceback:
Master: [00:00:00]: attempt to call a nil value
Master: LUA ERROR stack traceback:
Caves:  [00:00:00]: attempt to call a nil value
Caves:  LUA ERROR stack traceback:
Caves:  [00:00:00]: attempt to call a nil value
Caves:  LUA ERROR stack traceback:
Master: [00:00:00]: Collecting garbage...
Caves:  [00:00:00]: Collecting garbage...
Master: [00:00:00]: lua_gc took 0.00 seconds
Master: [00:00:00]: ~ShardLuaProxy()
Master: [00:00:00]: ~cEventLeaderboardProxy()
Master: [00:00:00]: ~ItemServerLuaProxy()
Caves:  [00:00:00]: lua_gc took 0.00 seconds
Master: [00:00:00]: ~InventoryLuaProxy()
Caves:  [00:00:00]: ~ShardLuaProxy()
Master: [00:00:00]: ~NetworkLuaProxy()
Master: [00:00:00]: ~SimLuaProxy()
Caves:  [00:00:00]: ~cEventLeaderboardProxy()
Caves:  [00:00:00]: ~ItemServerLuaProxy()
Caves:  [00:00:00]: ~InventoryLuaProxy()
Caves:  [00:00:00]: ~NetworkLuaProxy()
Caves:  [00:00:00]: ~SimLuaProxy()
Master: [00:00:00]: lua_close took 0.00 seconds
Caves:  [00:00:00]: lua_close took 0.00 seconds
Caves:  [00:00:00]: CurlRequestManager::ClientThread::Main() complete
Caves:  [00:00:00]: HttpClient2 discarded 0 callbacks.
Master: [00:00:00]: CurlRequestManager::ClientThread::Main() complete
Master: [00:00:00]: HttpClient2 discarded 0 callbacks.
Caves:  [00:00:00]: Shutting down
Master: [00:00:00]: Shutting down


[dst@localhost ~]$ ls /lib/libcurl-gnutls.so.4
/lib/libcurl-gnutls.so.4

 

 

Link to comment
Share on other sites

On 25.8.2019 at 6:11 AM, mardouille said:

[dst@localhost ~]$ ls /lib/libcurl-gnutls.so.4
/lib/libcurl-gnutls.so.4

This probably just printed the like you gave it, since you directed it to a file, and not a directory. Try either

whereis libcurl-gnutls.so.4

This should print where the object is, if it is installed on the system. As you are apparently running an ach system, you might be using the packet manager pacman. If so, you can install the package like this:

pacman -S libcurl-gnutls.so.4

(You might have to run a "pacman -Syu" before to update your system, because that's how arch works.)

I ran into the issue once, that the server didn't find the library despite it being properly installed. I fixed this by linking the library to the location the DST server is looking for.

Link to comment
Share on other sites

I am running Centos 7

[dst@localhost ~]$ whereis libcurl-gnutls.so.4
libcurl-gnutls.so: /usr/lib/libcurl-gnutls.so.4

[dst@localhost ~]$ uname -a
Linux localhost.localdomain 3.10.0-957.21.3.el7.x86_64 #1 SMP Tue Jun 18 16:35:19 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

[root@localhost scripts]# yum install libcurl
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirror.dst.ca
 * epel: mirror.cs.pitt.edu
 * extras: mirror.dst.ca
 * updates: mirror.dst.ca
Package libcurl-7.29.0-51.el7_6.3.x86_64 already installed and latest version

I remember a few months ago to have done a softlink with ln that way

ln -s libcurl.so.4 libcurl-gnutls.so.4 (in my bash history)

I did a yum update and upgrade, it is one of the things i've tried.

[dst@localhost ~]$ find / 2>/dev/null | grep libcurl-gnutls.so.4
/usr/lib/libcurl-gnutls.so.4

Where is the DST server looking for this file ?

 

Link to comment
Share on other sites

Looking at the log the server is looking for the file " /lib/libcurl-gnutls.so.4", so maybe a link from /usr/lib/libcurl-gnutls.so.4 to /lib/libcurl-gnutls.so.4 might fix things.

If there's already a link there, the issue might be that you possibly have the 64 bit version installed, yet the DST server is a 32bit application, and needs the 32bit libcurl-gnutls.so.4. (Not entirely sure about this one though, since it's been a long time since I've set up a server myself.)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...