Page 1 of 1

[Solved] [0.15.40] Headless Server not starting

Posted: Wed Dec 06, 2017 9:52 pm
by stormsh
Hello there fellow factorians. I run a factorio headless server. The last version was 0.15.37 and it was working perfekt. After the update, I replaces all files with the new ones put when I try to start the server with "sudo -H -u factorio /opt/factorio/bin/x64/factorio --start-server /opt/factorio/saves/Multiplayer.zip" I just get an error msg "command not found".
Did the commands for managing (start etc) the server change?

Thx 4 F1

Re: Headless Server 0.15.40 not starting

Posted: Wed Dec 06, 2017 10:23 pm
by Zavian
I assume you have already checked that /opt/factorio/bin/x64/factorio exists and that its permissions (and the permissions of all parent directories) are correct?

Because "command not found" makes me think that's where your error is.

Re: Headless Server 0.15.40 not starting

Posted: Thu Dec 07, 2017 9:14 am
by stormsh
Yes. First thing I checked. Twice. All files and folders have the same owner and group "factorio".
I run the server in a screen called "factorio-server". With "screen -S factorio_server" I create that screen. Does a screen need to have the same permissions as the process its running? I can't remember messing with screen permissions!?
Create screen, run commend, done, thank you, thats how I did it last time.
I just replaced the factorio server files (deleted the old ones, copied the new, no overrighting), changed the permissions (because I copy the files as a different user) and tried to start it in the screen. Hmmmmmmm.
Where else can there a problem?

Re: Headless Server 0.15.40 not starting

Posted: Thu Dec 07, 2017 9:23 am
by Bilka
I'm a linux noob but dont you have to specify the exe file extension instead of the just the name of the file in the path for the first sudo? so ".../x64/factorio.exe" ?

Re: Headless Server 0.15.40 not starting

Posted: Thu Dec 07, 2017 9:29 am
by stormsh
the factorio file has no extension. its name is just "factorio"

Re: Headless Server 0.15.40 not starting

Posted: Thu Dec 07, 2017 3:47 pm
by inick
stormsh wrote:Hello there fellow factorians. I run a factorio headless server. The last version was 0.15.37 and it was working perfekt. After the update, I replaces all files with the new ones put when I try to start the server with "sudo -H -u factorio /opt/factorio/bin/x64/factorio --start-server /opt/factorio/saves/Multiplayer.zip" I just get an error msg "command not found".
Did the commands for managing (start etc) the server change?
Check on this.
viewtopic.php?f=49&t=34445&p=299832#p299832

Been a sneaky devil and the devs appropriately cleared my assumption it is a bug, it's a "feature" in Linux. Blame Linux.

Re: Headless Server 0.15.40 not starting

Posted: Thu Dec 07, 2017 9:38 pm
by stormsh
Ok. I am not that good around linux to see through and pinpoint the post straight to a solution.
I still don't understand why the headless 0.15.37 ran just fine and the 0.15.40 doesn't. I didn't restart the server hardware in over a year. And it is 64bit or the 0.15.37 couldn't have worked.
Can you help me with the solution? Please?

Thx 4 F1.

st.

Re: Headless Server 0.15.40 not starting

Posted: Sun Dec 10, 2017 11:46 am
by stormsh
Hello there again. First: Server works again!

A friend helped me with the symlink thing, but it didn't work. That is not the problem. I uploaded the files from the 0.15.40 server again and now I get a different error msg:

0.000 Error Util.cpp:62: There is no package core in /usr/share/factorio

After a quick look this had to do with the cfg wich was overwritten. Still don't know the reason for the command not found.