[1.0.0] Error InterruptibleStdioStream.cpp:61: Got EOF on stdin; closing

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
MylesM
Manual Inserter
Manual Inserter
Posts: 3
Joined: Mon Jan 11, 2021 1:52 pm
Contact:

[1.0.0] Error InterruptibleStdioStream.cpp:61: Got EOF on stdin; closing

Post by MylesM »

I'm setting up a headless Factorio server on Ubuntu 20.04.

When I start the same with systemd, I get the following:

Code: Select all

Error InterruptibleStdioStream.cpp:61: Got EOF on stdin; closing
Interestingly, the game seems to continue running just fine so far.

I don't get this error if I start the server myself (instead of using the service)

Is there something I did wrong with my service file? Or maybe there's something else I did incorrectly?

factorio.service:

Code: Select all

[Unit]
Description=Factorio Headless Server

[Service]
Type=simple
User=factorio
Group=factorio
WorkingDirectory=/opt/factorio
Restart=on-failure
KillSignal=SIGINT
ExecStart=/opt/factorio/bin/x64/factorio --start-server /opt/factorio/saves/hugeore.zip --server-settings /opt/factorio/data/server-settings.json --server-adminlist /opt/factorio/data/server-adminlist.json

[Install]
WantedBy=multi-user.target


MylesM
Manual Inserter
Manual Inserter
Posts: 3
Joined: Mon Jan 11, 2021 1:52 pm
Contact:

Re: [1.0.0] Error InterruptibleStdioStream.cpp:61: Got EOF on stdin; closing

Post by MylesM »

Loewchen wrote:
Mon Jan 11, 2021 2:00 pm
Check out 92049.
I did read that one. It didn't seem to be the same problem. His was timing out, but mine didn't. And using screen didn't seem to make sense as a solution for an issue with systemd because a service running in systemd doesn't have really anything to do with my ssh session anyways.

kipparis
Manual Inserter
Manual Inserter
Posts: 1
Joined: Thu Nov 09, 2023 8:15 pm
Contact:

Re: [1.0.0] Error InterruptibleStdioStream.cpp:61: Got EOF on stdin; closing

Post by kipparis »

it is strange that fact of closing IO is outputting as error
all you have to do is keep IO open. so if you running docker image, you don't want to pass -d option (so process will be in foreground), than you just move it to the background.

Nidan
Fast Inserter
Fast Inserter
Posts: 227
Joined: Sat Nov 21, 2015 1:40 am
Contact:

Re: [1.0.0] Error InterruptibleStdioStream.cpp:61: Got EOF on stdin; closing

Post by Nidan »

Unless told otherwise systemd passes /dev/null as stdin, any attempt to read from it will result in an immediate EOF. Since as far as I know factorio doesn't actually read from its stdin, this "error" can be ignored.

Post Reply

Return to “Technical Help”