Don't Starve Together mods not working on dedicated server

OS Name/Version: Debian 13

Product Name/Version: AMP Release “Phobos” v2.6.5.2, built 28/01/2026 16:00

Problem Description:

I am adding mods to Don't Starve Together.

I have added the lines:

ServerModSetup("347079953")
ServerModSetup("1185229307")

to the dedicated_server_mods_setup.lua file

and I have added the modovverides.lua file to the shard folder:

return {
["workshop-347079953"] = { enabled = true },
["workshop-1185229307"] = { enabled = true }
}

When I restart the instance, the dedicated_server_mods_setup.lua file goes back to being blank as if I never added the lines I added to download the mods.

What am I missing?

Steps to reproduce:

  • Step 1

Add the lines:

ServerModSetup(“347079953”)
ServerModSetup(“1185229307”)

to: dedicated_server_mods_setup.lua

  • Step 2

restart instance

Actions taken to resolve so far:

I have tried editing the file multiple times.

I have tried to make it read-only, but that made things weird. Maybe I did that wrong?

I have a Caves instance as well. Does that need it too?