Eco
mikeindos Sep 3, 2024 @ 4:18am
Strange Cloud failed on Docker
Hello. I have the server on a docker container. Today I updated the docker image to the latest version and now on logs there is this error message:

Failed to start the server. Exception was Exception: Exception
Message:Authentication to Strange Cloud failed. No authentication methods were available. Provide valid credentials ('-username' and '-password' or '-userToken' or '-steamTicket') or use '-offline' to start server in offline mode.

Source:EcoServer

System.Exception: Authentication to Strange Cloud failed. No authentication methods were available. Provide valid credentials ('-username' and '-password' or '-userToken' or '-steamTicket') or use '-offline' to start server in offline mode.
at Eco.Server.StrangeCloudLogin.Initialize()
at Eco.Server.PluginManager.InitializeAsync(StartupInfo startupInfo)
at Eco.Server.Startup.StartAsync(StartupInfo startupInfo)
: 1


My yaml file is here:
version: '3.7'

services:
eco:
image: strangeloopgames/eco-game-server:latest
container_name: eco
ports:
- 3000:3000/udp
- 3002:3001/tcp
volumes:
- /home/mikeindos/eco/Configs:/app/Configs
- /home/mikeindos/eco/Storage:/app/Storage
- /home/mikeindos/eco/Mods:/app/Mods
restart: unless-stopped
< >
Showing 1-5 of 5 comments
SLG-Dennis  [developer] Sep 3, 2024 @ 6:01am 
You need to either provide a token with -userToken=<TOKEN> or your login credentials via -username=<USERNAME> and -password=<PASSWORD> for an SLG account to the commandline of the server.
mikeindos Sep 3, 2024 @ 7:54am 
How can I pass the userToken (I generated successfully)? Is there a way to pass it from yaml compose file as an environmental variable? (I have not access to the container terminal because it is restarting after the error.
Last edited by mikeindos; Sep 3, 2024 @ 7:54am
SLG-Dennis  [developer] Sep 3, 2024 @ 9:35am 
This might work:

command:
- /app/EcoServer
- -userToken=TOKEN

Please note though that the docker images are created for internal use and only publicly provided as-is for experienced users that know how to configure things on their own. They shouldn't be used as a general way to host Eco servers.
Mad WIzard Mar 19 @ 10:05pm 
dont know if this is still being watched but i am having the same problem and im using nodecraft hosting, i put in -username=<myusername> with the <> brackets and -password=<mypassword> with the <> brackets and it not authenticating for me, is the strange loop games account different from play.eco game acccount?
SLG-Dennis  [developer] Mar 20 @ 7:22am 
You shouldn't add the brackets, they just denote a variable to replace.
< >
Showing 1-5 of 5 comments
Per page: 1530 50