[Server] Token error? -

Bugs that are actually features.
Post Reply
noliVe
Filter Inserter
Filter Inserter
Posts: 327
Joined: Tue May 24, 2016 7:46 am
Contact:

[Server] Token error? -

Post by noliVe »

How to List Your Server-Hosted Game on the Matching Server
In order to publish the game to the matching server, Factorio needs to be given some more information than just the save file location. These information are provided in a server settings file.

To create a server settings file, look at the example file located in data/server-settings.example.json in the Factorio Application Directory. The recommended way is to make a copy of this example file and edit the copy.

The following values can be changed:

Name: This will be the name under which the server will be listed in the server browser
Description: A brief description of your server
Tags: A list of game tags
Max Players: Allows you to limit the number of players that can be connected to the server at the same time. If you want no limit, just set max_players to 0.
Visibility for server browser: May be either public, lan or hidden.
Public: The server will appear in the public server list. This requires the login credentials below to be filled in.
LAN: The server will not appear in the public server list, but will be available through the Play On LAN button
Hidden: Clients will have to connect using the server's IP address
User credentials using a username and password or authentication token: These are necessary if you wish to make the server public. Otherwise, they can be left empty.
For security reasons it is recommended to use authentication token as this document is stored as plaintext. Though it should be noted that an authentication token is a sensitive piece of information as well, and you are well-advised to keep it secret.
Server Password
Field name is game_password
Whether to verify user identity
LOGFILE CONTENT

Code: Select all

   6.201 Info HttpSharedState.cpp:108: Status code: 200
   6.201 Info AuthServerConnector.cpp:106: Obtained serverPadlock for serverHash (d7Ub53zLy2KiwIp4aK5S3JOEM0l2NKpN) from the auth server.
   6.201 Info MultiplayerManager.cpp:996: networkTick(0) mapTick(420) changing state from(CreatingGame) to(InGame)
   6.201 Info NetworkInputHandler.cpp:45: mapTick(420) networkTick(0) initialized NetworkInputHandler local peer(0).
   6.201 Info Router.cpp:1007: Asking pingpong servers (pingpong1.factorio.com:34197, pingpong2.factorio.com:34197) for own address
   6.219 Info Router.cpp:867: Own address is 89.163.255.119:40003
 96.881 Info HttpSharedState.cpp:106: Downloading https://multiplayer.factorio.com/create-game
  96.881 Info HttpSharedState.cpp:108: Status code: 401
  96.890 Error MultiplayerManager.cpp:748: Matching server connection failed: Error when creating server game: Authorization error (Missing username.)
 126.973 Info HttpSharedState.cpp:106: Downloading https://multiplayer.factorio.com/create-game
 126.973 Info HttpSharedState.cpp:108: Status code: 401
SERVER IS RUNNING WITHOUT OFFICAL LIST

CONFIG IS
{
"name": "!GPG! Server #6 - 3123 @ i-craft.de",
"description": "Runnig man",
"tags": ["no mod", "factorio", "game"],
"max_players": "10",
"visibility": "public",
"token": "BLABLABLABLABLABLABLABLABLABLA",
"game_password": "",
"verify_user_identity": true
}
Whats wrong There? Duplicate entry because i think thats a bug!
-- TECH-HELP -- viewtopic.php?f=49&t=30692

Oxyd
Former Staff
Former Staff
Posts: 1428
Joined: Thu May 07, 2015 8:42 am
Contact:

Re: [Server] Token error? -

Post by Oxyd »

noliVe wrote:

Code: Select all

Authorization error (Missing username.)
Not a bug.

noliVe
Filter Inserter
Filter Inserter
Posts: 327
Joined: Tue May 24, 2016 7:46 am
Contact:

Re: [Server] Token error? -

Post by noliVe »

but its not working with a username !!! i tried it many times where is the mistake than

{
"name": "!GPG! Server #6 - 3123 @ i-craft.de",
"description": "Runnig man",
"tags": ["no mod", "factorio", "game"],
"max_players": "10",

"visibility": "public",
"username": "ABCABD" ,
"token": "BLABLABLABLABLABLABLABLABLABLA",
"game_password": "",
"verify_user_identity": true
}

is not working so help pls whats wrong then, and correct your "WIKI ENTRY",...
it is not working with TOKEN only...

orzelek
Smart Inserter
Smart Inserter
Posts: 3911
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: [Server] Token error? -

Post by orzelek »

Do post a log after attempt with user name and token - we can't guess whats the error without it.

noliVe
Filter Inserter
Filter Inserter
Posts: 327
Joined: Tue May 24, 2016 7:46 am
Contact:

Re: [Server] Token error? -

Post by noliVe »

Code: Select all

   0.966 Info Scenario.cpp:127: Map version 0.13.15-0
   3.253 Checksum for script /opt/factorio/condart_40004/temp/currently-playing/control.lua: 900459546
   3.318 Info PosixUDPSocket.cpp:50: Opening socket at port 40004
   3.319 Info Router.cpp:594: Router state -> Connected
   3.319 Info Synchronizer.cpp:56: NetworkTick(0) initialized Synchronizer local peer(0) latency(6).
   3.319 Hosting game at port 40004, peerID 0, session magic 776
   3.319 Info HttpSharedState.cpp:44: Downloading https://auth.factorio.com/generate-server-padlock
   3.699 Info HttpSharedState.cpp:108: Status code: 200
   3.699 Info AuthServerConnector.cpp:106: Obtained serverPadlock for serverHash (553hl1cZkUfZ3KuFCg6X7cVs4wJmapQA) from the auth server.
   3.699 Info MultiplayerManager.cpp:996: networkTick(0) mapTick(5653745) changing state from(CreatingGame) to(InGame)
   3.699 Info NetworkInputHandler.cpp:45: mapTick(5653745) networkTick(0) initialized NetworkInputHandler local peer(0).
   3.699 Info Router.cpp:1007: Asking pingpong servers (pingpong1.factorio.com:34197, pingpong2.factorio.com:34197) for own address
   3.716 Info Router.cpp:867: Own address is 89.163.255.119:40004
   3.817 Info MultiplayerManager.cpp:1527: Received peer info for peer(0) username(<server>).
   3.817 Info MultiplayerManager.cpp:1143: networkTick(6) mapTick(5653745) received stateChanged peerID(0) oldState(Ready) newState(CreatingGame)
   3.817 Info MultiplayerManager.cpp:1143: networkTick(6) mapTick(5653745) received stateChanged peerID(0) oldState(CreatingGame) newState(InGame)
   4.081 Info HttpSharedState.cpp:106: Downloading https://multiplayer.factorio.com/create-game
   4.081 Info HttpSharedState.cpp:108: Status code: 401
   9.962 Connection request(type(ConnectionRequest) applicationVersion(0.13.15 (build 23843, linux64, headless)) activeMods((base 0.13.15) ) hasPassword(no) connectionRequestID(38828)) from(78.43.43.63:52188)
   9.963 Refusing connection for address(78.43.43.63:52188). Für dieses Spiel ist eine Benutzerauthentifizierung erforderlich.
  26.327 Connection request(type(ConnectionRequest) applicationVersion(0.13.15 (build 23843, linux64, headless)) activeMods((base 0.13.15) ) hasPassword(no) connectionRequestID(64687)) from(78.43.43.63:52061)
  26.327 Refusing connection for address(78.43.43.63:52061). Passwort nicht angegeben oder nicht passend.

Bisa
Filter Inserter
Filter Inserter
Posts: 450
Joined: Fri Jul 17, 2015 3:22 pm
Contact:

Re: [Server] Token error? -

Post by Bisa »

Did you manage to solve it eventually? (if so please do share the solution) I'm running into the same issue here
log
Hosting a factorio server? Take a look at this || init script ||.

Bisa
Filter Inserter
Filter Inserter
Posts: 450
Joined: Fri Jul 17, 2015 3:22 pm
Contact:

Re: [Server] Token error? -

Post by Bisa »

Oxyd wrote:
noliVe wrote:

Code: Select all

Authorization error (Missing username.)
Not a bug.
If it is not a bug, please let us know why we cannot log in using our tokens/username in the server-settings.json
Hosting a factorio server? Take a look at this || init script ||.

noliVe
Filter Inserter
Filter Inserter
Posts: 327
Joined: Tue May 24, 2016 7:46 am
Contact:

Re: [Server] Token error? -

Post by noliVe »

no still no effekt..

DEVS ! Please help with this how to use the TOKEN
Where can i find it and how to put it into the Config files

And im Sorry the WiKi does NOT tell how to do it.
If you try use a username the log say "password missing"
if you try use the token alone "Username missing"
if you put in everything "the token not get read"

I THINK!!!!! THE TOKEN IN Player-Date.json is a WRONG TOKEN HELP AND

ITS DEFFENTLY A BUG

Loewchen
Global Moderator
Global Moderator
Posts: 8283
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: [Server] Token error? -

Post by Loewchen »

I don't really get what is going on. I reopened it, be it only to get you an explanation.

noliVe
Filter Inserter
Filter Inserter
Posts: 327
Joined: Tue May 24, 2016 7:46 am
Contact:

Re: [Server] Token error? -

Post by noliVe »

again we try to use the TOKEN login for publishing the server in the official list.
its not working with the token written in player-data.json
so how to use it in the config file?

using it like this
{
"name": "!GPG! Server #6 - 3123 @ i-craft.de",
"description": "Runnig man",
"tags": ["no mod", "factorio", "game"],
"max_players": "10",
"visibility": "public",
"token": "BLABLABLABLABLABLABLABLABLABLA",
"game_password": "",
"verify_user_identity": true
}
gives this log

Code: Select all

   6.201 Info HttpSharedState.cpp:108: Status code: 200
   6.201 Info AuthServerConnector.cpp:106: Obtained serverPadlock for serverHash (d7Ub53zLy2KiwIp4aK5S3JOEM0l2NKpN) from the auth server.
   6.201 Info MultiplayerManager.cpp:996: networkTick(0) mapTick(420) changing state from(CreatingGame) to(InGame)
   6.201 Info NetworkInputHandler.cpp:45: mapTick(420) networkTick(0) initialized NetworkInputHandler local peer(0).
   6.201 Info Router.cpp:1007: Asking pingpong servers (pingpong1.factorio.com:34197, pingpong2.factorio.com:34197) for own address
   6.219 Info Router.cpp:867: Own address is 89.163.255.119:40003
 96.881 Info HttpSharedState.cpp:106: Downloading https://multiplayer.factorio.com/create-game
  96.881 Info HttpSharedState.cpp:108: Status code: 401
  96.890 Error MultiplayerManager.cpp:748: Matching server connection failed: Error when creating server game: Authorization error [b][color=#004000](Missing username.)[/color][/b]
 126.973 Info HttpSharedState.cpp:106: Downloading https://multiplayer.factorio.com/create-game
 126.973 Info HttpSharedState.cpp:108: Status code: 401
====================================

and using it like this
{
"name": "!GPG! Server #6 - 3123 @ i-craft.de",
"description": "Runnig man",
"tags": ["no mod", "factorio", "game"],
"max_players": "10",

"visibility": "public",
"username": "ABCABD" ,
"token": "BLABLABLABLABLABLABLABLABLABLA",
"game_password": "",
"verify_user_identity": true
}
gives this log

Code: Select all

0.636 Info HttpSharedState.cpp:44: Downloading https://auth.factorio.com/generate-server-padlock
1.374 Info HttpSharedState.cpp:108: Status code: 200
1.374 Info AuthServerConnector.cpp:106: Obtained serverPadlock for serverHash (orHxPO9TfgY44faTh7kLQuV1BENzH4lW) from the auth server.
1.374 Info ServerMultiplayerManager.cpp:597: mapTick(1083) changing state from(CreatingGame) to(InGame)
1.374 Info ServerRouter.cpp:570: Asking pingpong servers (pingpong1.factorio.com:34197, pingpong2.factorio.com:34197) for own address
1.513 Info ServerRouter.cpp:493: Own address is 91.123.202.17:34197
7.023 Info HttpSharedState.cpp:106: Downloading https://multiplayer.factorio.com/create-game
7.023 Info HttpSharedState.cpp:108: Status code: 401
37.143 Info HttpSharedState.cpp:106: Downloading https://multiplayer.factorio.com/create-game
37.144 Info HttpSharedState.cpp:108: Status code: 401
67.264 Info HttpSharedState.cpp:106: Downloading https://multiplayer.factorio.com/create-game
67.264 Info HttpSharedState.cpp:108: Status code: 401
97.385 Info HttpSharedState.cpp:106: Downloading https://multiplayer.factorio.com/create-game
97.385 Info HttpSharedState.cpp:108: Status code: 401
its not working properly please help!?

Oxyd
Former Staff
Former Staff
Posts: 1428
Joined: Thu May 07, 2015 8:42 am
Contact:

Re: [Server] Token error? -

Post by Oxyd »

As the error quite clearly says, you didn't put your username in server-settings.json.

Not a bug.

noliVe
Filter Inserter
Filter Inserter
Posts: 327
Joined: Tue May 24, 2016 7:46 am
Contact:

Re: [Server] Token error? -

Post by noliVe »

maybe you not seen it ?
i said using username + token not work either!

noliVe
Filter Inserter
Filter Inserter
Posts: 327
Joined: Tue May 24, 2016 7:46 am
Contact:

Re: [Server] Token error? -

Post by noliVe »

and using it like this

{
"name": "!GPG! Server #6 - 3123 @ i-craft.de",
"description": "Runnig man",
"tags": ["no mod", "factorio", "game"],
"max_players": "10",

"visibility": "public",
"username": "ABCABD" ,
"token": "BLABLABLABLABLABLABLABLABLABLA",
"game_password": "",
"verify_user_identity": true
}


gives this log
CODE: SELECT ALL
0.636 Info HttpSharedState.cpp:44: Downloading https://auth.factorio.com/generate-server-padlock
1.374 Info HttpSharedState.cpp:108: Status code: 200
1.374 Info AuthServerConnector.cpp:106: Obtained serverPadlock for serverHash (orHxPO9TfgY44faTh7kLQuV1BENzH4lW) from the auth server.
1.374 Info ServerMultiplayerManager.cpp:597: mapTick(1083) changing state from(CreatingGame) to(InGame)
1.374 Info ServerRouter.cpp:570: Asking pingpong servers (pingpong1.factorio.com:34197, pingpong2.factorio.com:34197) for own address
1.513 Info ServerRouter.cpp:493: Own address is 91.123.202.17:34197
7.023 Info HttpSharedState.cpp:106: Downloading https://multiplayer.factorio.com/create-game
7.023 Info HttpSharedState.cpp:108: Status code: 401
37.143 Info HttpSharedState.cpp:106: Downloading https://multiplayer.factorio.com/create-game
37.144 Info HttpSharedState.cpp:108: Status code: 401
67.264 Info HttpSharedState.cpp:106: Downloading https://multiplayer.factorio.com/create-game
67.264 Info HttpSharedState.cpp:108: Status code: 401
97.385 Info HttpSharedState.cpp:106: Downloading https://multiplayer.factorio.com/create-game
97.385 Info HttpSharedState.cpp:108: Status code: 401


its not working properly please help!?

Bisa
Filter Inserter
Filter Inserter
Posts: 450
Joined: Fri Jul 17, 2015 3:22 pm
Contact:

Re: [Server] Token error? -

Post by Bisa »

I've broken this into a separate report: viewtopic.php?f=7&t=31945

(reasoning? Since the first problem reported here was indeed a missing username in the json file, my topic correctly describes what noliVe has been trying to say since update two of this thread).
Hosting a factorio server? Take a look at this || init script ||.

Post Reply

Return to “Not a bug”