Server doesn't start even though it returns "succesful"

I have just installed MineOS on CentOS 7. Everything seemed to go OK. I can access and login to the web UI fine, and I have created a profile and server. I am already using mineOS without issues on another server running CentOS 6, so I don’t believe there is an issue with my server settings. I have also tried running the server manually by calling java directly “/usr/bin/java -server -Xmx4G -Xms4G -jar /var/games/minecraft/servers/Survival2016/Survival2016.jar”, this works fine.

When I click start using the web UI, it returns green “start [success]”. But the server doesn’t actually start (server log doesn’t change). Same happens when running it via the command “./mineos_console.py -s Survival2016” which returns “{start} completed successfully.”.

mineos.log:

[14/Dec/2015:13:19:21] ENGINE Bus STARTING
[14/Dec/2015:13:19:21] ENGINE Forking once.
[14/Dec/2015:13:19:21] ENGINE Forking twice.
[14/Dec/2015:13:19:21] ENGINE Daemonized to PID: 455
[14/Dec/2015:13:19:21] ENGINE PID 455 written to '/var/run/mineos.pid'.
[14/Dec/2015:13:19:21] ENGINE Started monitor thread 'Monitor'.
[14/Dec/2015:13:19:21] ENGINE Started monitor thread 'Autoreloader'.
[14/Dec/2015:13:19:21] ENGINE Started monitor thread '_TimeoutMonitor'.
[14/Dec/2015:13:19:21] ENGINE Serving on 0.0.0.0:8080
[14/Dec/2015:13:19:21] ENGINE Bus STARTED
[14/Dec/2015:13:24:22] ENGINE Started monitor thread 'Session cleanup'.
[14/Dec/2015:13:24:49] HTTP 
Request Headers:
  COOKIE: session_id=4d05c505b2c9bda753538101371d29cc5975220d
  HOST: -REMOVED-:8080
  CONNECTION: keep-alive
  Remote-Addr: -REMOVED-
  ACCEPT: application/json, text/javascript, */*; q=0.01
  USER-AGENT: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0
  X-REQUESTED-WITH: XMLHttpRequest
  ACCEPT-LANGUAGE: en-GB,en;q=0.5
  ACCEPT-ENCODING: gzip, deflate
[14/Dec/2015:13:24:49] HTTP Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/cherrypy/_cprequest.py", line 656, in respond
    response.body = self.handler()
  File "/usr/local/lib/python2.7/site-packages/cherrypy/lib/encoding.py", line 188, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/cherrypy/lib/jsontools.py", line 61, in json_handler
    value = cherrypy.serving.request._json_inner_handler(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/cherrypy/_cpdispatch.py", line 34, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/usr/games/minecraft/mounts.py", line 25, in newfunc
    return func(*args, **kwargs)
  File "/usr/games/minecraft/mounts.py", line 141, in increments
    return [dict(d._asdict()) for d in instance.list_increment_sizes()]
  File "/usr/games/minecraft/mineos.py", line 1343, in list_increment_sizes
    output = self._command_direct(self.command_list_increment_sizes, self.env['bwd'])
  File "/usr/games/minecraft/mineos.py", line 27, in wrapper
    raise RuntimeError('Missing value in %s: %s' % (fn.__name__,str(self.previous_arguments)))
RuntimeError: Missing value in command_list_increment_sizes: {'rdiff': None, 'bwd': u'/var/games/minecraft/backup/Survival2016'}

Any ideas?

Question 1: Are you using the Python MineOS (rather than the NodeJS MineOS) deliberately? The node-based one is current–I work on development regularly; the Python one still works, but is rather dated.

The error you’re getting says that MineOS can’t find rdiff-backup, a dependency for creating backups and restoring files. While I think it should be unrelated to the issue you’re having, it’s possible it just wants all the deps to be there before it does … anything.

Sorry, didn’t know there was a newer version. I was using the same method I used when I installed mineOS a year or so ago. :stuck_out_tongue:

Edit: So I have switched to Ubuntu (packages on centos were PITA) and installed node version. I can now run servers properly and the latest web UI is much better, great job! However I have quite a lot of custom scripts that rely on the python based commands/syntax. :frowning: Does the node version allow commands and is there a list of them similar to this: http://minecraft.codeemo.com/mineoswiki/index.php?title=0.5.0

Yes, the node version is called mineos_console.js. (js, not py)

So you can still do:

./mineos_console.js -s myserver stop

However, the available commands are not all the same, due to possible name changes or function splits (necessary to avoid massive code copy/pasting). Most of the main functions are the same, stop, backup, start, etc. But look at the code to find out the function names you’ll use for commands.