Page 1 of 1

Unable to start Linux Headless Server- "Segmentation Fault"

Posted: Sun Apr 02, 2017 12:17 pm
by mariakismarios
Hey,

Installed the server on a Debian 8 VPS by OVH, but I am unable to start it, it spits a "Segmentation Error"
I followed this tutorial: https://gist.github.com/othyn/e1287fd93 ... 07227ed48c

Code: Select all

root@vps393781:/home# /opt/factorio/factorio/bin/x64/factorio --start-server /opt/factorio/factorio/saves/MPS1.zip
Segmentation fault
root@vps393781:/home#
Launching it with the configuration also spits the same error, and, if I sudo it, it won't say anything, but it doesn't work either.

I passed it through strace, and this is what came out:

Code: Select all

execve("/opt/factorio/factorio/bin/x64/factorio", ["/opt/factorio/factorio/bin/x64/f"..., "--start-server", "/opt/factorio/factorio/saves/MPS"...], [/* 13 vars */]) = 0
brk(0)                                  = 0x2e2c000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f10d95fc000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f10d95fa000
arch_prctl(ARCH_SET_FS, 0x7f10d95fa7c0) = 0
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x8} ---
+++ killed by SIGSEGV +++
I Googled the error, and it seems it's a "Memory Access Violation"

NOTES:

I gave permission to the user multiple times to read/write onto the folder.

Anybody able to help?

Thanks,
Mario

Re: Unable to start Linux Headless Server- "Segmentation Fault"

Posted: Mon Apr 03, 2017 4:54 pm
by HOSH
The Segmentation Fault looks like what I got when I forgot to run chown after a changing any of the items in the /opt folders. In which I have 3 /opt/factorio, /opt/factorio-init, and /opt/factorio-updater.

Code: Select all

sudo chown –R factorio:factorio /opt/factorio*
Also did not see on your server start the -u factorio so it uses that username for starting the server. He has it in the systemd service but not in the notes on starting the server manually.

Code: Select all

sudo -u factorio /opt/factorio/bin/x64/factorio --start-server /opt/factorio/saves/savename.zip
I am running on Ubuntu LTS 16.x and I used the links below as a basis for what I am running. I tested the update from 0.14.20 to 0.14.22 and it worked on my server. I have an all in one document that I thought about posting, but I need to cleanup due to a bug running multiple factorio servers on one OS install/VM.
https://www.reddit.com/r/factorio/comme ... _on_linux/
https://github.com/Bisa/factorio-init
https://github.com/narc0tiq/factorio-updater