Page 1 of 1

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

Posted: Mon Jan 11, 2021 1:56 pm
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

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

Posted: Mon Jan 11, 2021 2:00 pm
by Loewchen
Check out 92049.

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

Posted: Mon Jan 11, 2021 2:38 pm
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.

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

Posted: Thu Nov 09, 2023 8:18 pm
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.

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

Posted: Fri Nov 10, 2023 10:50 am
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.