[0.17.69] Headless server cannot connect to auth.factorio.com [resolved]

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
Post Reply
mavranel
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sun Oct 13, 2019 9:09 am
Contact:

[0.17.69] Headless server cannot connect to auth.factorio.com [resolved]

Post by mavranel »

Hello. I am attempting to set up a headless factorio server for me and some friends. Operating system is Linux 18.04. I have port forwarded already via my router and followed install directions quite thoroughly. I am able to get factorio to start, but it immediately stops due to being unable to contact auth.factorio.com . Any assistance on what I may have missed would be appreciated.

Also I have fiddled with the server settings and set to LAN only and set requre user verification to false and it still did not work.

Here is the log from my latest attempt.
0.000 2019-10-13 09:45:14; Factorio 0.17.69 (build 47194, linux64, headless)
0.064 Operating system: Linux (Ubuntu 14.04)
0.064 Program arguments: "/opt/factorio/bin/x64/factorio" "--config" "/opt/factorio/config/config.ini" "--port" "34197" "--start-server-load-latest" "--server-settings" "/opt/factorio/data/server-settings.json" "--server-adminlist" "/opt/factorio/data/server-adminlist.json"
0.064 Read data path: /opt/factorio/data
0.065 Write data path: /opt/factorio [38998/43381MB]
0.065 Binaries path: /opt/factorio/bin
0.080 System info: [CPU: Intel(R) Xeon(R) CPU E5620 @ 2.40GHz, 8 cores, RAM: 16031 MB]
0.080 Environment: DISPLAY=<unset> WAYLAND_DISPLAY=<unset> DESKTOP_SESSION=<unset> XDG_SESSION_DESKTOP=<unset> XDG_CURRENT_DESKTOP=<unset> __GL_FSAA_MODE=<unset> __GL_LOG_MAX_ANISO=<unset> __GL_SYNC_TO_VBLANK=<unset> __GL_SORT_FBCONFIGS=<unset> __GL_YIELD=<unset>
0.080 Running in headless mode
0.086 Loading mod core 0.0.0 (data.lua)
0.209 Loading mod base 0.17.69 (data.lua)
0.679 Loading mod base 0.17.69 (data-updates.lua)
0.920 Checksum for core: 2087614386
0.920 Checksum of base: 1061071205
1.194 Prototype list checksum: 3040646442
1.230 Info PlayerData.cpp:68: Local player-data.json available, timestamp 1570984789
1.231 Info PlayerData.cpp:75: Cloud player-data.json unavailable
1.277 Factorio initialised
1.281 Info ServerMultiplayerManager.cpp:138: Quitting multiplayer connection.
1.281 Info ServerMultiplayerManager.cpp:776: updateTick(4294967295) changing state from(Ready) to(Closed)
1.317 Goodbye
Last edited by mavranel on Mon Oct 14, 2019 8:49 pm, edited 2 times in total.

DaleStan
Filter Inserter
Filter Inserter
Posts: 368
Joined: Mon Jul 09, 2018 2:40 am
Contact:

Re: Headless server cannot connect to auth.factorio.com

Post by DaleStan »

Why do you think auth.factorio.com has something to do with this? I don't see any mention of that in the log you posted.

mavranel
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sun Oct 13, 2019 9:09 am
Contact:

Re: Headless server cannot connect to auth.factorio.com

Post by mavranel »

My apologies there was a different message from when I initialize it. Here is what it looks like when I run the command to start up the server.

Image
0.000 2019-10-13 11:38:58; Factorio 0.17.69 (build 47194, linux64, headless)
0.065 Operating system: Linux (Ubuntu 14.04)
0.065 Program arguments: "/opt/factorio/bin/x64/factorio" "--start-server" "w asd"
0.065 Read data path: /opt/factorio/data
0.065 Write data path: /opt/factorio [38998/43381MB]
0.065 Binaries path: /opt/factorio/bin
0.081 System info: [CPU: Intel(R) Xeon(R) CPU E5620 @ 2.40GHz, 8 c ores, RAM: 16031 MB]
0.081 Environment: DISPLAY=<unset> WAYLAND_DISPLAY=<unset> DESKTOP_SESSION=<u nset> XDG_SESSION_DESKTOP=<unset> XDG_CURRENT_DESKTOP=<unset> __GL_FSAA_MODE=<un set> __GL_LOG_MAX_ANISO=<unset> __GL_SYNC_TO_VBLANK=<unset> __GL_SORT_FBCONFIGS= <unset> __GL_YIELD=<unset>
0.081 Running in headless mode
0.086 Loading mod core 0.0.0 (data.lua)
0.209 Loading mod base 0.17.69 (data.lua)
0.669 Loading mod base 0.17.69 (data-updates.lua)
0.898 Checksum for core: 2087614386
0.899 Checksum of base: 1061071205
1.225 Prototype list checksum: 3040646442
1.263 Info PlayerData.cpp:68: Local player-data.json available, timestamp 157 0985499
1.263 Info PlayerData.cpp:75: Cloud player-data.json unavailable
1.309 Factorio initialised
1.310 Warning FileUtil.cpp:527: wasd not found; using /opt/factorio/saves/was d.zip
1.317 Info ServerSynchronizer.cpp:30: nextHeartbeatSequenceNumber(0) initiali zed Synchronizer nextTickClosureTick(0).
1.318 Info ServerMultiplayerManager.cpp:776: updateTick(4294967295) changing state from(Ready) to(PreparedToHostGame)
1.318 Info ServerMultiplayerManager.cpp:776: updateTick(4294967295) changing state from(PreparedToHostGame) to(CreatingGame)
1.321 Loading map /opt/factorio/saves/wasd.zip: 541518 bytes.
1.383 Loading level.dat: 1198478 bytes.
1.388 Info Scenario.cpp:187: Map version 0.17.69-1
1.455 Loading script.dat: 328 bytes.
1.463 Checksum for script /opt/factorio/temp/currently-playing/control.lua: 3 265260072
1.470 Info UDPSocket.cpp:27: Opening socket at (IP ADDR:({0.0.0.0:34197}))
1.470 Hosting game at IP ADDR:({0.0.0.0:34197})
1.517 Info HttpSharedState.cpp:54: Downloading https://auth.factorio.com/gene rate-server-padlock-2
1.521 Error HttpSharedState.cpp:136: CURL failed: code:6, 6; Could not resolv e host: auth.factorio.com
1.521 Info HttpSharedState.cpp:145: Downloading https://auth.factorio.com/gen erate-server-padlock-2
1.521 Info HttpSharedState.cpp:146: Status code: 0
1.529 Info AuthServerConnector.cpp:29: Auth server json parsing error: Could not resolve host: auth.factorio.com
1.538 Error ServerMultiplayerManager.cpp:92: MultiplayerManager failed: "Coul dn't parse the response from the auth server. This seems to be an internal serve r error."
1.538 Info ServerMultiplayerManager.cpp:776: updateTick(0) changing state fro m(CreatingGame) to(InitializationFailed)
1.545 Info ServerMultiplayerManager.cpp:114: Disconnecting multiplayer connec tion.
1.545 Info ServerMultiplayerManager.cpp:776: updateTick(4294967295) changing state from(InitializationFailed) to(DisconnectingScheduled)
1.557 Info ServerMultiplayerManager.cpp:138: Quitting multiplayer connection.
1.557 Info ServerMultiplayerManager.cpp:776: updateTick(4294967295) changing state from(DisconnectingScheduled) to(Closed)
1.670 Info UDPSocket.cpp:218: Closing socket
1.671 Info UDPSocket.cpp:248: Socket closed
1.672 Goodbye

Zavian
Smart Inserter
Smart Inserter
Posts: 1641
Joined: Thu Mar 02, 2017 2:57 am
Contact:

Re: [0.17.69] Headless server cannot connect to auth.factorio.com

Post by Zavian »

Code: Select all

1.517 Info HttpSharedState.cpp:54: Downloading https://auth.factorio.com/gene rate-server-padlock-2
1.521 Error HttpSharedState.cpp:136: CURL failed: code:6, 6; Could not resolv e host: auth.factorio.com
1.521 Info HttpSharedState.cpp:145: Downloading https://auth.factorio.com/gen erate-server-padlock-2
1.521 Info HttpSharedState.cpp:146: Status code: 0
1.529 Info AuthServerConnector.cpp:29: Auth server json parsing error: Could not resolve host: auth.factorio.com
"Could not resolve host: auth.factorio.com" sounds like a dns failure. (Although without the actual code, I don't know if any other errors can generate the same error message).

What does "nslookup auth.factorio.com" print? (If that works as a normal user, then try the same command using the Factorio server user and environment).

mavranel
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sun Oct 13, 2019 9:09 am
Contact:

Re: [0.17.69] Headless server cannot connect to auth.factorio.com

Post by mavranel »

I appreciate the help it turns out that network configuration decided to swap over to not grabbing an ipv6 address which I didn't notice because I had already downloaded everything that I needed before it decided to randomly swap over to that setting. Why it did that is beyond my mortal mind, but I appreciate the help.

Post Reply

Return to “Technical Help”