Jump to content

Can't start dedicated server on Mac (456020)


myxal
  • Fixed



User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.

So I'm reading the other bug reports/dedicated server threads and it seems these issues are related to the switch to v2 mods. My mod setup is as follows:

  • Dedicated server's modsetup references a single workshop collection:
    ServerModCollectionSetup("852612796")
     
  • AFAICT, steamcmd uses the same data folder as regular (GUI) Steam client - not sure if that leads to any conflicts.
  • Since Steam is a pig with its data folder, it's symlinked to another volume:
    ~/Library/Application Support/Steam -> /Volumes/Shared/AppData/Steam
  • I don't see any of my subscribed DST mods downloaded to .../Steam/SteamApps/workshop/. The only app that has its mods there is 241100, which I understand is some Input handler used by Steam.

Interesting... when I quit the GUI Steam client on the machine before starting the dedicated server, the dedicated server crashes differently... (insert apple slogan joke). Nothing on stderr, server log ends abruptly.

dontstarve_dedicated_server_nullrenderer_2021-03-16-101315_roberta.crash dontstarve_dedicated_server_nullrenderer_2021-03-16-101315-1_roberta.crash server_log-nosteam.txt

Edited by myxal
add collection link/call

Share this comment


Link to comment
Share on other sites

Encountered similar problem...

It seems that require function will crash if file does not exist.

Also, 256 bytes problem seems still existing.

Share this comment


Link to comment
Share on other sites

@Hubert Zhang, what does the 256B limit actually refer to? The absolute paths to the dedicated server and clusters are pretty short IMHO, although the Mac build adds a ton of characters just to navigate within the bundle.. is it the 2nd find here, where the app bundle's directory structure is replicated with the bundle?

$ find /Volumes/Shared/Applications/dstds/ -name mods
/Volumes/Shared/Applications/dstds//dontstarve_dedicated_server_nullrenderer.app/Contents/mods
/Volumes/Shared/Applications/dstds//dontstarve_dedicated_server_nullrenderer.app/steamapps/downloading/343050/dontstarve_dedicated_server_nullrenderer.app/Contents/mods

@zarklord_klei I'm reading that bad_lexical_cast may occur inconsistently across different stdc++ implementations when converting strings representing particular real number to float values. [1] [2] 

I wonder if the issue that Mac versions don't properly report free space is related?

modsetup: dedicated_server_mods_setup.lua

overrides: modoverrides.lua

Share this comment


Link to comment
Share on other sites

5 hours ago, zarklord_klei said:

Changed Status to Fixed

Quote

Fixed a bug causing dedicated servers to crash if SteamGameServer_Init failed.

Nope, this still crashes in 456207.

dontstarve_dedicated_server_nullrenderer_2021-03-16-225102_roberta.crashdontstarve_dedicated_server_nullrenderer_2021-03-16-225153_roberta.crash

But it did get me to re-check port config, apparently my router needs a reboot to actually apply port forwards :steamfacepalm: With that fixed, the server starts!

Re: free space - server now shows what looks like a number next to "MB" of disk space, but something is wrong here - I have nothing with 2.8TB free attached.

[00:00:09]: Available disk space for save files: 2862937 MB

$ df -h 
Filesystem      Size   Used  Avail Capacity iused               ifree %iused  Mounted on
/dev/disk1s1    88Gi   65Gi   11Gi    86% 1156239 9223372036853619568    0%   /
devfs          338Ki  338Ki    0Bi   100%    1170                   0  100%   /dev
/dev/disk1s5    88Gi  2.0Gi   11Gi    16%       1 9223372036854775806    0%   /private/var/vm
/dev/disk1s2   112Gi   34Gi   11Gi    76%  218681 9223372036854557126    0%   /Volumes/Shared
map -hosts       0Bi    0Bi    0Bi   100%       0                   0  100%   /net
map auto_home    0Bi    0Bi    0Bi   100%       0                   0  100%   /home
/dev/disk3s1    59Gi   49Gi   11Gi    82%   52593          4294914686    0%   /Volumes/ADATA 64GB

The cluster is on /Volumes/Shared

Share this comment


Link to comment
Share on other sites

3 minutes ago, myxal said:
Quote

Fixed a bug causing dedicated servers to crash if SteamGameServer_Init failed.

Nope, this still crashes in 456207.

okay, I'll take another look.

  • Thanks 3

Share this comment


Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...