Trying To Run Headless On CentOS 7 Keep Getting "Failed"
-
- Burner Inserter
- Posts: 9
- Joined: Tue Nov 15, 2016 5:22 pm
- Contact:
Trying To Run Headless On CentOS 7 Keep Getting "Failed"
HI there, I have setup a headless server on CentOS 7 but I keep getting failed as follows.
[root@************* data]# systemctl1 daemon-reload
bash: systemctl1: command not found...
Similar command is: 'systemctl'
[root@************* data]# systemctl daemon-reload
[root@************* data]# systemctl restart factorio.service
[root@************* data]# systemctl status factorio.service
● factorio.service - Factorio Headless Server
Loaded: loaded (/etc/systemd/system/factorio.service; static; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2016-11-15 19:15:02 SAST; 9s ago
Process: 34385 ExecStart=/opt/factorio/bin/x64/factorio --start server /opt/factorio/saves/{World1}.zip --server-settings /opt/factorio/data/server-settings.json (code=exited, status=1/FAILURE)
Main PID: 34385 (code=exited, status=1/FAILURE)
Nov 15 19:15:02 ************* systemd[1]: Started Factorio Headless Server.
Nov 15 19:15:02 ************* systemd[1]: Starting Factorio Headless Server...
Nov 15 19:15:02 ************* systemd[1]: factorio.service: main process exited, code=exited, status=1/FAILURE
Nov 15 19:15:02 ************* systemd[1]: Unit factorio.service entered failed state.
Nov 15 19:15:02 ************* systemd[1]: factorio.service failed.
[root@************* data]# systemctl1 daemon-reload
bash: systemctl1: command not found...
Similar command is: 'systemctl'
[root@************* data]# systemctl daemon-reload
[root@************* data]# systemctl restart factorio.service
[root@************* data]# systemctl status factorio.service
● factorio.service - Factorio Headless Server
Loaded: loaded (/etc/systemd/system/factorio.service; static; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2016-11-15 19:15:02 SAST; 9s ago
Process: 34385 ExecStart=/opt/factorio/bin/x64/factorio --start server /opt/factorio/saves/{World1}.zip --server-settings /opt/factorio/data/server-settings.json (code=exited, status=1/FAILURE)
Main PID: 34385 (code=exited, status=1/FAILURE)
Nov 15 19:15:02 ************* systemd[1]: Started Factorio Headless Server.
Nov 15 19:15:02 ************* systemd[1]: Starting Factorio Headless Server...
Nov 15 19:15:02 ************* systemd[1]: factorio.service: main process exited, code=exited, status=1/FAILURE
Nov 15 19:15:02 ************* systemd[1]: Unit factorio.service entered failed state.
Nov 15 19:15:02 ************* systemd[1]: factorio.service failed.
Re: Trying To Run Headless On CentOS 7 Keep Getting "Failed"
Probably can't find {World1}.zip. Is your save really named that?
-
- Burner Inserter
- Posts: 9
- Joined: Tue Nov 15, 2016 5:22 pm
- Contact:
Re: Trying To Run Headless On CentOS 7 Keep Getting "Failed"
yeah, but im doing a newer server setup, setting Chown to the user called "factorio" and keeping the saves thereonebit wrote:Probably can't find {World1}.zip. Is your save really named that?
-
- Burner Inserter
- Posts: 9
- Joined: Tue Nov 15, 2016 5:22 pm
- Contact:
Re: Trying To Run Headless On CentOS 7 Keep Getting "Failed"
ok so I think I got somewhere XD but still nowhere haha. Created new system and now i'm hereDTGFactorio wrote:yeah, but im doing a newer server setup, setting Chown to the user called "factorio" and keeping the saves thereonebit wrote:Probably can't find {World1}.zip. Is your save really named that?
root@"myserver" /opt $ sudo systemctl status -l factorio
● factorio.service - Factorio Server
Loaded: loaded (/etc/systemd/system/factorio.service; disabled; vendor preset: disabled)
Active: activating (auto-restart) (Result: exit-code) since Wed 2016-11-16 11:55:30 SAST; 5s ago
Process: 82694 ExecStop=/opt/factorio-init/factorio stop (code=exited, status=0/SUCCESS)
Process: 82664 ExecStart=/opt/factorio-init/factorio start (code=exited, status=0/SUCCESS)
Main PID: 82683 (code=exited, status=1/FAILURE)
Nov 16 11:55:30 "myserver" systemd[1]: factorio.service failed.
root@"myserver" /opt $
Re: Trying To Run Headless On CentOS 7 Keep Getting "Failed"
Tried running Factorio directly instead of through systemd?
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
-
- Burner Inserter
- Posts: 9
- Joined: Tue Nov 15, 2016 5:22 pm
- Contact:
Re: Trying To Run Headless On CentOS 7 Keep Getting "Failed"
Factorio Headless Server you sure you could run it straight from terminal instead of as a service?prg wrote:Tried running Factorio directly instead of through systemd?
-
- Burner Inserter
- Posts: 9
- Joined: Tue Nov 15, 2016 5:22 pm
- Contact:
Re: Trying To Run Headless On CentOS 7 Keep Getting "Failed"
this is my log:prg wrote:Tried running Factorio directly instead of through systemd?
0.000 2016-11-16 15:08:30; Factorio 0.14.20 (build 25315, linux64, headless)
0.000 Operating system: Linux
0.000 Program arguments: "/opt/factorio/bin/x64/factorio" "--config" "/opt/factorio/config/config.ini" "--port" "34197" "--start-server-load-latest" "--server-settings" "/opt$
0.000 Read data path: /opt/factorio/data
0.000 Write data path: /opt/factorio
0.000 Binaries path: /opt/factorio/bin
0.015 System info: [CPU: Intel(R) Xeon(R) CPU E31230 @ 3.20GHz, 8 cores, RAM: 15596MB]
0.015 Running in headless mode
0.018 Loading mod core 0.0.0 (data.lua)
0.023 Loading mod base 0.14.20 (data.lua)
0.119 Checksum for core: 1291735968
0.119 Checksum for mod base: 786624017
0.442 Info PlayerData.cpp:57: Local player-data.json unavailable
0.442 Info PlayerData.cpp:62: Cloud player-data.json unavailable
0.443 Custom inputs active: 0
0.443 Factorio initialised
0.444 Error Util.cpp:57: Error while reading file /opt/factorio/data/server-settings.json: /opt/factorio/data/server-settings.json(2): expected value
Re: Trying To Run Headless On CentOS 7 Keep Getting "Failed"
Looks like there's something wrong with line 2 of /opt/factorio/data/server-settings.json.DTGFactorio wrote: 0.444 Error Util.cpp:57: Error while reading file /opt/factorio/data/server-settings.json: /opt/factorio/data/server-settings.json(2): expected value
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
Re: Trying To Run Headless On CentOS 7 Keep Getting "Failed"
You can copy server-settings.example.json from that same directory.
-
- Burner Inserter
- Posts: 9
- Joined: Tue Nov 15, 2016 5:22 pm
- Contact:
Re: Trying To Run Headless On CentOS 7 Keep Getting "Failed"
ok somehow after days of struggling I managed to access my GNOME Desktop. do you know any helper-shortcuts that will make creating a server now easier with this desktop since moving and copying and editing is so much easier nowonebit wrote:You can copy server-settings.example.json from that same directory.
-
- Burner Inserter
- Posts: 9
- Joined: Tue Nov 15, 2016 5:22 pm
- Contact:
Re: Trying To Run Headless On CentOS 7 Keep Getting "Failed"
Hi, here is my server-settings.json, please do tell me if you spot something wrong with my configonebit wrote:You can copy server-settings.example.json from that same directory.
![Smile :)](./images/smilies/icon_e_smile.gif)
{
"name": "myname",
"description": "mydesc",
"tags": ["mytags"],
"_comment_max_players": "Maximum number of players allowed, admins can join even a full server. 0 means unlimited.",
"max_players": 0,
"_comment_visibility": ["public: Game will be published on the official Factorio matching server",
"lan: Game will be broadcast on LAN"],
"visibility":
{
"public": true,
"lan": true
},
"_comment_credentials": "Your factorio.com login credentials. Required for games with visibility public",
"username": "myusername",
"password": "mypassword",
"_comment_token": "Authentication token. May be used instead of 'password' above.",
"token": "",
"game_password": "mygamepassword",
"_comment_require_user_verification": "When set to true, the server will only allow clients that have a valid Factorio.com account",
"require_user_verification": true,
"_comment_max_upload_in_kilobytes_per_second" : "optional, default value is 0. 0 means unlimited.",
"max_upload_in_kilobytes_per_second": 0,
"_comment_minimum_latency_in_ticks": "optional one tick is 16ms in default speed, default value is 0. 0 means no minimum.",
"minimum_latency_in_ticks": 0,
"_comment_ignore_player_limit_for_returning_players": "Players that played on this map already can join even when the max player limit was reached.",
"ignore_player_limit_for_returning_players": false,
"_comment_allow_commands": "possible values are, true, false and admins-only",
"allow_commands": "admins-only",
"_comment_autosave_interval": "Autosave interval in minutes",
"autosave_interval": 10,
"_comment_autosave_slots": "server autosave slots, it is cycled through when the server autosaves.",
"autosave_slots": 5,
"_comment_afk_autokick_interval": "How many minutes until someone is kicked when doing nothing, 0 for never.",
"afk_autokick_interval": 0,
"_comment_auto_pause": "Whether should the server be paused when no players are present.",
"auto_pause": true,
"only_admins_can_pause_the_game": true,
"_comment_autosave_only_on_server": "Whether autosaves should be saved only on server or also on all connected clients. Default is true.",
"autosave_only_on_server": true,
"_comment_admins": "List of case insensitive usernames, that will be promoted immediately",
"admins": [MyAdminName]
}
Re: Trying To Run Headless On CentOS 7 Keep Getting "Failed"
Use http://jsonlint.com/. Problem on line 59. Need quotes around "MyAdminName".
-
- Burner Inserter
- Posts: 9
- Joined: Tue Nov 15, 2016 5:22 pm
- Contact:
Re: Trying To Run Headless On CentOS 7 Keep Getting "Failed"
now thats one smart link ^_^ ty. got the server running. but I forgot to add a password *again -.-* now is there a way I can still add a password and still use the same map.zip? like just change the settings in this .json?onebit wrote:Use http://jsonlint.com/. Problem on line 59. Need quotes around "MyAdminName".
Re: Trying To Run Headless On CentOS 7 Keep Getting "Failed"
Start the server with the option --start-server-load-latest. That will load the last autosave, or whatever map is most recent.