Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when creating server game: Missing token since the DLC Launch #507

Open
CupCacke opened this issue Oct 21, 2024 · 5 comments
Open

Comments

@CupCacke
Copy link

Greetings,

I´ve encounterd the issue that all my servers run into the issue "Error when creating server game: Missing token."

I reset my token and tryid that of another "working container" so I ensured the token did not expire.

Any ideas?

@LewisMcFly
Copy link

Same here. If you fix this please share the details.

@LewisMcFly
Copy link

LewisMcFly commented Oct 21, 2024

@CupCacke I fixed it by adding the CONFIG environment variable, forcing it to /opt/factorio/config.

EDIT: This triggers new errors. IMO something was broken with the config files location.

@CupCacke
Copy link
Author

I´ve deletet all the local files from the container so it created them from scratch.

@Gornoka
Copy link

Gornoka commented Oct 21, 2024

This is due to a changed / enforce default value, the default config value for public = true + no token, means that the server does not start with the default config.

For some reason the env var toke is also not used correctly.

Imho the default behaviour should be that your Factorio server is private anyways, unless you want it to be publi.

Therefore the default value should be:

  "visibility": {
    "public": false,
    "lan": true
  },

used compose file to reproduce the issue:

x-logging:
  logging: &default-logging
    driver: "local"
    options:
      max-size: "100m"
      max-file: "3"
version: '3.7'
services:
  factorio:
    image: factoriotools/factorio:2.0
    logging: *default-logging
    ports:
     - "34197:34197/udp"
     # - "27024:27015/tcp"
    #restart: unless-stopped
    environment:
      UPDATE_MODS_ON_START: true
    volumes:
     - /var/some_magic_location/factorio_2024_se:/factorio

@EricVogt93
Copy link

Also try to delete previous versions of the image and optionally delete old files as well.
Fixed it for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants