Getting "Failed to start Start MineOS minecraft front-end" when starting mineos

I just installed mineos on a CentOS 7 server using this guide

[root@localhost etc]# cat system-release
CentOS Linux release 7.5.1804 (Core)

and when I get to the end and run systemctl start mineos

I get

Job for mineos.service failed because a configured resource limit was exceeded. See "systemctl status mineos.service" and "journalctl -xe" for details.

then…

# systemctl status mineos.service
● mineos.service - Start MineOS minecraft front-end
   Loaded: loaded (/etc/systemd/system/mineos.service; enabled; vendor preset: disabled)
   Active: failed (Result: start-limit) since Tue 2018-09-25 19:42:46 EDT; 3s ago
  Process: 17771 ExecStart=/usr/bin/node service.js start (code=exited, status=0/SUCCESS)

Sep 25 19:42:46 localhost.localdomain systemd[1]: Failed to start Start MineOS minecraft front-end.
Sep 25 19:42:46 localhost.localdomain systemd[1]: Unit mineos.service entered failed state.
Sep 25 19:42:46 localhost.localdomain systemd[1]: mineos.service failed.
Sep 25 19:42:46 localhost.localdomain systemd[1]: mineos.service holdoff time over, scheduling restart.
Sep 25 19:42:46 localhost.localdomain systemd[1]: start request repeated too quickly for mineos.service
Sep 25 19:42:46 localhost.localdomain systemd[1]: Failed to start Start MineOS minecraft front-end.
Sep 25 19:42:46 localhost.localdomain systemd[1]: Unit mineos.service entered failed state.
Sep 25 19:42:46 localhost.localdomain systemd[1]: mineos.service failed.

the /var/game directory is empty, and /var/log/mineos.log does not exist:

[root@localhost me]# cd /var/games/
[root@localhost games]# ls
[root@localhost games]# pwd; ls
/var/games
[root@localhost games]# less /var/log/mineos.log
/var/log/mineos.log: No such file or directory
[root@localhost games]# 

The OS is bare metal.

also note that in the guide I referenced above, the pylibacl-0.5.2-2.fc25.x86_64.rpm is in an archive, https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/25/Everything/x86_64/os/Packages/p/pylibacl-0.5.2-2.fc25.x86_64.rpm
and rsync-3.1.2-4.fc25.x86_64.rpm is in https://archives.fedoraproject.org/pub/archive/fedora/linux/updates/25/x86_64/Packages/r/rsync-3.1.2-4.fc25.x86_64.rpm

update:

output from journalctl -xb:
– Unit mineos.service has begun starting up.
Sep 26 10:40:34 localhost.localdomain node[1764]: Starting mineos daemon…
Sep 26 10:40:34 localhost.localdomain node[1764]: mineos daemon failed to start: Module ‘/usr/games/minecraft/webui. js’ stopped unexp
ected
Sep 26 10:40:34 localhost.localdomain systemd[1]: PID 1770 read from file /var/run/mineos. pid does not exist or is a zombie.
Sep 26 10:40:34 localhost.localdomain systemd[1]: Failed to start Start MineOS minecraft front-end.
– Subject: Unit mineos.service has failed
– Defined-By: systemd
– Support: http ://lists.freedesktop.org/mailman/listinfo/systemd-devel

– Unit mineos.service has failed.

– The result is failed.
Sep 26 10:40:34 localhost.localdomain systemd[1]: Unit mineos.service entered failed state.
Sep 26 10:40:34 localhost.localdomain systemd[1]: mineos.service failed.
Sep 26 10:40:34 localhost.localdomain polkitd[743]: Unregistered Authentication Agent for unix-process:1758:7443 (system bus name :1.27, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
Sep 26 10:40:35 localhost.localdomain systemd[1]: mineos.service holdoff time over, scheduling restart.
Sep 26 10:40:35 localhost.localdomain systemd[1]: Starting Start MineOS minecraft front-end…
– Subject: Unit mineos.service has begun start-up
– Defined-By: systemd
– Support: http ://lists.freedesktop.org/mailman/listinfo/systemd-devel

– Unit mineos.service has begun starting up.
Sep 26 10:40:35 localhost.localdomain node[1781]: Starting mineos daemon…
Sep 26 10:40:35 localhost.localdomain node[1781]: mineos daemon failed to start: Module ‘/usr/games/minecraft/webui.js’ stopped unexpected
Sep 26 10:40:35 localhost.localdomain systemd[1]: PID 1787 read from file /var/run/mineos.pid does not exist or is a zombie.
Sep 26 10:40:35 localhost.localdomain systemd[1]: Failed to start Start MineOS minecraft front-end.
– Subject: Unit mineos.service has failed
– Defined-By: systemd
– Support: http ://lists.freedesktop.org/mailman/listinfo/systemd-devel

– Unit mineos.service has failed.

– The result is failed.

note

Module '/usr/games/minecraft/webui. js' stopped unexpected

and

PID 1770 read from file /var/run/mineos.pid does not exist or is a zombie.

Hi @jayrugman,

Let’s start with the simple:

cd /usr/games/minecraft
./webui 

Does this run?

If you get a permissions error:

chmod +x ./webui

and try again. Can you provide the contents of /var/log/mineos.log?

It does, I found a missing dependency and added it:

[root@localhost minecraft]# ./webui.js
MineOS is missing dependencies: { Error: not found: rdiff-backup
at getNotFoundError (/usr/games/minecraft/node_modules/which/which.js:13:12)
at F (/usr/games/minecraft/node_modules/which/which.js:68:19)
at E (/usr/games/minecraft/node_modules/which/which.js:80:29)
at /usr/games/minecraft/node_modules/which/which.js:89:16
at /usr/games/minecraft/node_modules/isexe/index.js:42:5
at /usr/games/minecraft/node_modules/isexe/mode.js:8:5
at FSReqWrap.oncomplete (fs.js:152:21) code: ‘ENOENT’ }
{ screen: ‘/usr/bin/screen’,
tar: ‘/usr/bin/tar’,
java: ‘/usr/bin/java’,
‘rdiff-backup’: undefined }

[root@localhost me]# rpm -ivh rdiff-backup*.rpm
warning: rdiff-backup-1.2.8-9.fc19.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fb4b18e6: NOKEY
Preparing… ################################# [100%]
Updating / installing…
1:rdiff-backup-1.2.8-9.fc19 ################################# [100%]

After that. it worked:

[root@localhost me]# cd /usr/games/minecraft
[root@localhost minecraft]# ./webui.js
base_directory found in mineos.conf, using: /var/games/minecraft
MineOS webui listening on HTTPS://0.0.0.0:8443
info: Starting up server, using commit: b28c5be fw.ignore for all skip_dirs

^CCaught interrupt signal; closing webui…
[root@localhost minecraft]# systemctl start mineos

however, I’m still unable to connect. I get

This site can’t be reached

https://192.168.42.40:8443/ is unreachable.

ERR_ADDRESS_UNREACHABLE

[root@localhost minecraft]# ip addr show

4: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 00:30:48:xx:xx:xx brd ff:ff:ff:ff:ff:ff
inet 192.168.42.40/24 brd 192.168.42.255 scope global bond0

I see you’re using a bonded interface. Can you confirm that this IP address has worked for other services listening on this bonded interface? For example, is your SSH running on this IP/bond0 and it confirmed works?

netstat -ntlp

Verify that :8443 is listed there as being an open and listening port.

Sorry for not getting back to this thread. I eventually got it working. I can’t remember exactly how, but am going through my bash history to jog my memory and update this thread with the solution.

To answer your question, too, @hexparrot - I was using the bond connection with SSH and other services. It works beautifully with mineOS, as well as Plex running from the same server.

Here it is…
it was the server firewall. I tested it by turning off the firewall:
systemctl stop firewalld
and back on
systemctl start firewalld

Then eventually fixed it for good with the following

[root@localhost ~]# firewall-cmd --get-active-zones
public
interfaces: bond0
[root@localhost ~]# firewall-cmd --zone=public --add-port=8443/tcp --permanent
success
[root@localhost ~]# firewall-cmd --zone=public --add-port=25565/tcp --permanent
success

Issue Resolved!

2 Likes

Hello, I appear to be having a similar issue after following the installation guide and attempting to start MineOS for the first time:

CentOS Linux release 7.5.1804 (Core)

systemctl start mineos
Job for mineos.service failed because a configured resource limit was exceeded. See “systemctl status mineos.service” and “journalctl -xe” for details.

systemctl status mineos.service
● mineos.service - Start MineOS minecraft front-end
Loaded: loaded (/etc/systemd/system/mineos.service; enabled; vendor preset: disabled)
Active: failed (Result: start-limit) since Wed 2018-10-31 22:13:19 CDT; 2min 22s ago
Process: 23925 ExecStart=/usr/bin/node service.js start (code=exited, status=0/SUCCESS)

Oct 31 22:13:19 ******* systemd[1]: Failed to start Start MineOS minecraft front-end.
Oct 31 22:13:19 ******* systemd[1]: Unit mineos.service entered failed state.
Oct 31 22:13:19 ******* systemd[1]: mineos.service failed.
Oct 31 22:13:19 ******* systemd[1]: mineos.service holdoff time over, scheduling restart.
Oct 31 22:13:19 ******* systemd[1]: start request repeated too quickly for mineos.service
Oct 31 22:13:19 ******* systemd[1]: Failed to start Start MineOS minecraft front-end.
Oct 31 22:13:19 ******* systemd[1]: Unit mineos.service entered failed state.
Oct 31 22:13:19 ******* systemd[1]: mineos.service failed.

journalctl -xe Results

Subject: Unit mineos.service has begun start-up**
Defined-By: systemd**
Support: systemd-devel Info Page**
Unit mineos.service has begun starting up.**
Oct 31 22:13:18 ******* node[23925]: Starting mineos daemon…**
Oct 31 22:13:19 ******* node[23925]: mineos daemon failed to start: Module ‘/usr/games/minecraft/webui.js’ stopped unexpected**
Oct 31 22:13:19 ******* systemd[1]: PID 23931 read from file /var/run/mineos.pid does not exist or is a zombie.**
Oct 31 22:13:19 ******* systemd[1]: Failed to start Start MineOS minecraft front-end.**
Subject: Unit mineos.service has failed**
Defined-By: systemd**
Support: systemd-devel Info Page**
Unit mineos.service has failed.**
The result is failed.
Oct 31 22:13:19 ******* systemd[1]: Unit mineos.service entered failed state.
Oct 31 22:13:19 ******* systemd[1]: mineos.service failed.
Oct 31 22:13:19 ******* systemd[1]: mineos.service holdoff time over, scheduling restart.
Oct 31 22:13:19 ******* systemd[1]: start request repeated too quickly for mineos.service
Oct 31 22:13:19 ******* systemd[1]: Failed to start Start MineOS minecraft front-end.

Tried @hexparrot 's suggestions:

cd /usr/games/minecraft
./webui

-bash: ./webui: No such file or directory

Tried checking the logs: /var/log/mineos.log

No such file or directory

I am at a loss…Any ideas?

I have uncovered this same issue. When attempting ./webui I receive ‘command not found’.

This is so old, you’re unfortunately following the wrong guide if you’ve just recently started trying to use MineOS. Start a new thread and write what you’ve done etc there.