Jump to content

Dedicated Server will not start Invalid Server token


Recommended Posts

Having followed the steps outlined in the Quick setup Guide on this page, I have found that I repeatedly get this "E_INVALID_TOKEN" issue, and have gone so far as to uninstall the game, delete all local content and folders related to DST and repeated the steps not less than twice. I'm hoping this is a mindless oversight on my part, but cannot spot it myself. Windows 7, cluster.ini is correct file type, in folder Docs>Klei>MyDediServer along with Caves and Master Folders and the cluster_token.txt file. I made certain I do not have hanging spaces behind my server token as it was pasted from the the web admin popup in the open game found by clicking account options.

Advice? And don't go telling me it's nothing a good coat of fire won't cure, hahaha.

Link to comment
Share on other sites

@Icykyle I believe the correct location of MyDediServer should be under DoNotStarveTogether. Shown below is how it should look based on the Guide. I reckon steamcmd could not detect the cluster_token.txt because you placed it under Documents\Klei\MyDediServer and not Documents\Klei\DoNotStarveTogether\MyDediServer. The Dedicated Server files should be under the DoNotStarveTogether folder.

Spoiler

DedicatedServer.png

Colorcoded for better distinction. Each indented file/folder means it's the content of the folder preceding the indention. As examples: worldgenoverride.lua is a file under the Caves folder. Also the DoNotStarveTogether folder and StartDSTServers.bat are both the contents of the Klei Folder. Etc.

I hope that helps, good luck out there. Cheers.

Link to comment
Share on other sites

@FTR just to be clear so we're on the same page, I'll be assuming you were using the same Guide mentioned above. So through steamcmd on Windows. Even after following the guide to the letter, the steamcmd outputs E_INVALID_TOKEN?

Can you confirm you are using the correct directory paths like i mentioned before? 

Anyways, since you say it used to work and now it doesn't, perhaps you can try and generate a new cluster_token.txt. Lastly would you mind posting the server_log.txt found under your server's Master folder so we'll be able to see what's happening to the server.

Link to comment
Share on other sites

Yes I am using this guide.

I checked everything once again, step by step and everything is correct and it still gives me error E_INVALID_TOKEN

I tried generating new token twice already, didn't help.

 

[00:00:00]: PersistRootStorage is now APP:Klei//DoNotStarveTogether/MyDediServer/Master/ 
[00:00:00]: Starting Up
[00:00:00]: Version: 173373
[00:00:00]: Current time: Mon Apr 18 14:43:59 2016

[00:00:00]: Don't Starve Together: 173373 WIN32
NNN Build Date: 551
[00:00:00]: Parsing command line
[00:00:00]: Command Line Arguments: -console -cluster MyDediServer -shard Master 
[00:00:00]: [WARNING] -console has been deprecated: Use the [MISC] / console_enabled setting instead.
[00:00:00]: Initializing Minidump handler
[00:00:00]: ....Done
[00:00:00]: Fixing DPI
[00:00:00]: ...Done
[00:00:00]: THREAD - started 'GAClient' (6904)
[00:00:00]: CurlRequestManager::ClientThread::Main()
[00:00:00]: ProfileIndex:4.11
[00:00:00]: [Connect] PendingConnection::Reset(true)
[00:00:00]: Network tick rate: U=15(2), D=0
[00:00:00]: Network tick rate: U=15(2), D=0
[00:00:00]: Authorized application D:\Steam Dedicated\steamapps\common\Don't Starve Together Dedicated Server\bin\dontstarve_dedicated_server_nullrenderer.exe is enabled in the firewall.
[00:00:00]: WindowsFirewall - Application already authorized
[00:00:00]: OnLoadPermissionList: APP:Klei//DoNotStarveTogether/MyDediServer/blocklist.txt (Failure)
[00:00:00]: THREAD - started 'ConsoleInput' (7844)
[00:00:00]: OnLoadPermissionList: APP:Klei//DoNotStarveTogether/MyDediServer/adminlist.txt (Failure)
[00:00:00]: OnLoadUserIdList: APP:Klei//DoNotStarveTogether/MyDediServer/whitelist.txt (Failure)
[00:00:00]: cGame::InitializeOnMainThread
[00:00:00]: Renderer initialize: Okay
[00:00:00]: AnimManager initialize: Okay
[00:00:00]: Buffers initialize: Okay
[00:00:00]: cDontStarveGame::DoGameSpecificInitialize()
[00:00:00]: FMOD Error: An invalid object handle was used. 
[00:00:00]: GameSpecific initialize: Okay
[00:00:00]: cGame::StartPlaying
[00:00:00]: LOADING LUA
[00:00:00]: DoLuaFile scripts/main.lua
[00:00:00]: DoLuaFile loading buffer scripts/main.lua
[00:00:00]: scripts/main.lua(166,1) running main.lua
	
[00:00:00]: loaded modindex	
[00:00:00]: ModIndex: Beginning normal load sequence for dedicated server.
	
[00:00:00]: DownloadMods(0)
[00:00:00]: FMOD Error: An invalid object handle was used. 
[00:00:01]: LOADING LUA SUCCESS
[00:00:01]: PlayerDeaths could not load morgue	
[00:00:01]: PlayerHistory could not load player_history	
[00:00:01]: bloom_enabled	false	
[00:00:01]: Could not load saveindex	
[00:00:01]: OnFilesLoaded()	
[00:00:01]: OnUpdatePurchaseStateComplete	
[00:00:01]: 	Load FE	
[00:00:01]: 	Load FE: done	
[00:00:01]: ModIndex: Load sequence finished successfully.	
[00:00:01]: Reset() returning
[00:00:04]: [200] Account Failed (6): "E_INVALID_TOKEN"
[00:00:04]: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[00:00:04]: !!!! Your Server Will Not Start !!!!
[00:00:04]: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[00:00:04]: No auth token could be found.
[00:00:04]: To generate a cluster_token you must
[00:00:04]: open the console from a logged-in game
[00:00:04]: client with the tilda key (~ / ů) and type:
[00:00:04]: TheNet:GenerateClusterToken()
[00:00:04]: This will create 'cluster_token.txt' in
[00:00:04]: your client settings directory. Copy this
[00:00:04]: into your cluster settings directory.
[00:00:04]: [Connect] PendingConnection::Reset(true)

55cb71773c129fb675f9297865ab6865.png

Link to comment
Share on other sites

@FTR just tried it on my end, seems like spaces doesn't affect it's readablity by the server. Anyhow, next thing I'd like for you to try the console command 

TheNet:GenerateClusterToken()

As stated by your logs. Also be sure that the server is close and shut down before you go changing the contents of the server files (cluster_token.txt in this case). Then once you changed, replaced and/or saved the new token, try start up the server again.

Link to comment
Share on other sites

No no. It worked on my old pc when it was still possbile to host dedicated server through steam tools.

I don't seem to be able to post my bat file without being blocked from klei forum..

Link to comment
Share on other sites

@FTR try copy pasting the contents of the StartDSTServers.bat file into a .txt file and send that instead by attaching it to your next reply (there should be Drag files here to attach, or choose files... below the edit box when you reply). 

Can you check whether cluster_token.txt really is a text document? Since based on the image you provided, cluster.ini is only labeled as cluster but has an icon of a .ini file (I think, you're on Windows 7, right?). Anyway to check for the file type, just set the Folder View mode to Details and check under the File Type column. Can you confirm that the cluster_token.txt really is a text document? 

I think I may have the solution to your issue, you probably saved it as cluster_token.txt.txt instead of only just cluster_token.txt (the filename of the .txt file should only be "cluster_token" and not "cluster_token.txt"). So rename to just cluster_token since it's already saved as a .txt file.

I hope that makes sense and I actually got it right. Report back if it worked or not.

If it did work, cheers!

Link to comment
Share on other sites

Thanks Zill and Tonio for your attention, I knew there was something but did not have the perspective to see the forest for all the trees in my way. I moved the folder to the corrected location and now everything is working! You guys are a shiny light in a sea of trolls, the very reason the internet is worth it!

Link to comment
Share on other sites

Hi, I have spent the last day or two trying to set up a dedicated server. I've removed and replaced everything multiple times, but I keep coming back to this error. 

[00:00:00]: PersistRootStorage is now APP:Klei//DoNotStarveTogether/MyDediServer/Caves/
[00:00:00]: Starting Up
[00:00:00]: Version: 178539
[00:00:00]: Current time: Mon May 23 08:06:29 2016

[00:00:00]: Don't Starve Together: 178539 WIN32
[00:00:00]: Build Date: 782
[00:00:00]: Parsing command line
[00:00:00]: Command Line Arguments: -console -cluster MyDediServer -shard Caves
[00:00:00]: [WARNING] -console has been deprecated: Use the [MISC] / console_enabled setting instead.
[00:00:00]: Initializing Minidump handler
[00:00:00]: ....Done
[00:00:00]: Fixing DPI
[00:00:00]: ...Done
[00:00:00]: THREAD - started 'GAClient' (8172)
[00:00:00]: CurlRequestManager::ClientThread::Main()
[00:00:00]: ProfileIndex:2.70
[00:00:00]: [Connect] PendingConnection::Reset(true)
[00:00:00]: Network tick rate: U=15(2), D=0
[00:00:00]: Network tick rate: U=15(2), D=0
[00:00:00]: Error trying to change cluster setting (NETWORK->cluster_intention) from '' to 'cooperative'
[00:00:00]: [Warning] Authorized application c:\steamcmd\steamapps\common\Don't Starve Together Dedicated Server\bin\dontstarve_dedicated_server_nullrenderer.exe is not setup in the firewall.
[00:00:00]: Authorized application c:\steamcmd\steamapps\common\Don't Starve Together Dedicated Server\bin\dontstarve_dedicated_server_nullrenderer.exe is now enabled in the firewall.
[00:00:00]: OnLoadPermissionList: APP:Klei//DoNotStarveTogether/MyDediServer/blocklist.txt (Failure)
[00:00:00]: THREAD - started 'ConsoleInput' (7912)
[00:00:00]: OnLoadPermissionList: APP:Klei//DoNotStarveTogether/MyDediServer/adminlist.txt (Failure)
[00:00:00]: OnLoadUserIdList: APP:Klei//DoNotStarveTogether/MyDediServer/whitelist.txt (Failure)
[00:00:00]: cGame::InitializeOnMainThread
[00:00:00]: Renderer initialize: Okay
[00:00:00]: AnimManager initialize: Okay
[00:00:00]: Buffers initialize: Okay
[00:00:00]: cDontStarveGame::DoGameSpecificInitialize()
[00:00:00]: FMOD Error: An invalid object handle was used.
[00:00:00]: GameSpecific initialize: Okay
[00:00:00]: cGame::StartPlaying
[00:00:00]: LOADING LUA
[00:00:00]: DoLuaFile scripts/main.lua
[00:00:00]: DoLuaFile loading buffer scripts/main.lua
[00:00:00]: scripts/main.lua(162,1) running main.lua

[00:00:00]: loaded modindex
[00:00:00]: ModIndex: Beginning normal load sequence for dedicated server.

[00:00:00]: DownloadMods(0)
[00:00:00]: FMOD Error: An invalid object handle was used.
[00:00:01]: LOADING LUA SUCCESS
[00:00:01]: PlayerDeaths could not load morgue
[00:00:01]: PlayerHistory could not load player_history
[00:00:01]: bloom_enabled       false
[00:00:01]: Could not load saveindex
[00:00:01]: OnFilesLoaded()
[00:00:01]: OnUpdatePurchaseStateComplete
[00:00:04]:     Load FE
[00:00:04]:     Load FE: done
[00:00:04]: ModIndex: Load sequence finished successfully.
[00:00:04]: Reset() returning
[00:00:06]: [200] Account Failed (6): "E_INVALID_TOKEN"
[00:00:06]: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[00:00:06]: !!!! Your Server Will Not Start !!!!
[00:00:06]: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[00:00:06]: No auth token could be found.
[00:00:06]: To generate a cluster_token you must
[00:00:06]: open the console from a logged-in game
[00:00:06]: client with the tilda key (~ / �) and type:
[00:00:06]: TheNet:GenerateClusterToken()
[00:00:06]: This will create 'cluster_token.txt' in
[00:00:06]: your client settings directory. Copy this
[00:00:06]: into your cluster settings directory.
[00:00:06]: [Connect] PendingConnection::Reset(true)

I have also acquired a cluster token through both the account info area and using the command TheNet... 

Link to comment
Share on other sites

Hey @kimjongnomnom, welcome to the forums. Can you confirm the following things?

  • That the cluster_token.txt is actually as .txt file and not as cluster_token.txt.txt?
  • That you have it in the correct path location, beside the Master and Caves folder and cluster.ini under MyDediServer folder?
  • That the documents folder you are editing from is the default documents folder of your system?

To find out the last thing, press the Win key and type Documents. The first search entry that appears would be your PC's actual Documents folder. There was a situation that OneDrive takes over the Documents folder and the path location of your actual Documents folder would be different.

Link to comment
Share on other sites

On 5/23/2016 at 0:54 PM, Zillvr said:

Hey @kimjongnomnom, welcome to the forums. Can you confirm the following things?

  • That the cluster_token.txt is actually as .txt file and not as cluster_token.txt.txt?
  • That you have it in the correct path location, beside the Master and Caves folder and cluster.ini under MyDediServer folder?
  • That the documents folder you are editing from is the default documents folder of your system?

To find out the last thing, press the Win key and type Documents. The first search entry that appears would be your PC's actual Documents folder. There was a situation that OneDrive takes over the Documents folder and the path location of your actual Documents folder would be different.

Thank god. I was getting wrecked. This was the problem for me. I had specifically put the files NOT in the one drive folder but apparently something defaults the game to that. I just moved my bat and cluster_token.txt to the onedrive folder and all is well again.

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...