MineOS crash on Fresh install 11.2-u5

blueberryjr

Dabbler
Joined
Sep 7, 2017
Messages
15
The mineos software will crash after creating a new server in the webui. I've tried searching for answers using the log output but can't find any fixes. Any help is appreciated. Running threadripper 2920x 64gb ram gb x399 aorus pro mobo

Code:
{"level":"info","message":"[WEBUI] mcserver connected from 192.168.x.76","timestamp":"2019-08-31T17:26:32.317Z"}
{"0":"de_DE","1":"en_US","2":"fr_FR","3":"it_IT","4":"ja_JP","5":"no_NB","6":"ru_RU","7":"sv_SE","level":"info","message":"","timestamp":"2019-08-31T17:26:32.322Z"}
{"level":"info","message":"Starting up server, using commit: b28c5be fw.ignore for all skip_dirs\n","timestamp":"2019-08-31T17:37:22.934Z"}
{"level":"info","message":"[WEBUI] mcserver connected from 192.168.x.76","timestamp":"2019-08-31T17:37:44.445Z"}
{"0":"de_DE","1":"en_US","2":"fr_FR","3":"it_IT","4":"ja_JP","5":"no_NB","6":"ru_RU","7":"sv_SE","level":"info","message":"","timestamp":"2019-08-31T17:37:44.533Z"}
{"level":"info","message":"Downloaded information for collection: Mojang Official Minecraft Jars (414 entries)","timestamp":"2019-08-31T17:37:44.657Z"}
{"level":"info","message":"Downloaded information for collection: Feed the Beast Third-Party Server Packs (314 entries)","timestamp":"2019-08-31T17:37:44.918Z"}
{"level":"info","message":"Downloaded information for collection: PaperSpigot (5 entries)","timestamp":"2019-08-31T17:37:44.919Z"}
{"level":"info","message":"Downloaded information for collection: Spigot (1 entries)","timestamp":"2019-08-31T17:37:44.919Z"}
{"level":"info","message":"Downloaded information for collection: Imagicalmine (1 entries)","timestamp":"2019-08-31T17:37:44.920Z"}
{"level":"info","message":"Downloaded information for collection: Feed the Beast Server Packs (560 entries)","timestamp":"2019-08-31T17:37:45.147Z"}
{"level":"info","message":"Downloaded information for collection: Forge Mod (38 entries)","timestamp":"2019-08-31T17:37:47.163Z"}
{"level":"info","message":"Downloaded information for collection: BungeeCord (10 entries)","timestamp":"2019-08-31T17:37:47.205Z"}
{"level":"info","message":"Downloaded information for collection: SpongeVanilla (820 entries)","timestamp":"2019-08-31T17:37:47.278Z"}
{"level":"info","message":"Downloaded information for collection: Nukkit (2 entries)","timestamp":"2019-08-31T17:37:47.278Z"}
{"level":"info","message":"Downloaded information for collection: Mianite (23 entries)","timestamp":"2019-08-31T17:37:47.572Z"}
{"level":"info","message":"Downloaded information for collection: Cuberite C++ Server (4 entries)","timestamp":"2019-08-31T17:37:48.141Z"}
{"command":"create","server_name":"t","properties":{"generate-structures":true},"level":"info","message":"[WEBUI] Received emit command from 192.168.x.76:mcserver","timestamp":"2019-08-31T17:37:54.710Z"}
{"date":"Sat Aug 31 2019 10:37:54 GMT-0700 (PDT)","process":{"pid":11701,"uid":0,"gid":0,"cwd":"/","execPath":"/usr/local/bin/node","version":"v8.16.1","argv":["/usr/local/bin/node","/usr/local/games/minecraft/webui.js","start"],"memoryUsage":{"rss":135421952,"heapTotal":73003008,"heapUsed":44319432,"external":1142319}},"os":{"loadavg":[0.0029296875,0.08984375,0.10546875],"uptime":1544},"trace":[{"column":18,"file":"fs.js","function":"Object.fs.readdirSync","line":904,"method":"readdirSync","native":false},{"column":17,"file":"/usr/local/games/minecraft/mineos.js","function":"Object.mineos.server_pids_up","line":59,"method":"server_pids_up","native":false},{"column":27,"file":"/usr/local/games/minecraft/mineos.js","function":"mineos.mc.self.property","line":1265,"method":"property","native":false},{"column":10,"file":"/usr/local/games/minecraft/mineos.js","function":"self.verify","line":1532,"method":"verify","native":false},{"column":23,"file":"/usr/local/games/minecraft/node_modules/async/lib/async.js","function":null,"line":760,"method":null,"native":false},{"column":37,"file":"/usr/local/games/minecraft/node_modules/async/lib/async.js","function":null,"line":166,"method":null,"native":false},{"column":13,"file":"/usr/local/games/minecraft/node_modules/async/lib/async.js","function":null,"line":718,"method":null,"native":false},{"column":13,"file":"/usr/local/games/minecraft/node_modules/async/lib/async.js","function":"iterate","line":262,"method":null,"native":false},{"column":29,"file":"/usr/local/games/minecraft/node_modules/async/lib/async.js","function":null,"line":274,"method":null,"native":false},{"column":16,"file":"/usr/local/games/minecraft/node_modules/async/lib/async.js","function":null,"line":44,"method":null,"native":false}],"stack":["TypeError: path must be a string or Buffer","    at Object.fs.readdirSync (fs.js:904:18)","    at Object.mineos.server_pids_up (/usr/local/games/minecraft/mineos.js:59:17)","    at mineos.mc.self.property (/usr/local/games/minecraft/mineos.js:1265:27)","    at self.verify (/usr/local/games/minecraft/mineos.js:1532:10)","    at /usr/local/games/minecraft/node_modules/async/lib/async.js:760:23","    at /usr/local/games/minecraft/node_modules/async/lib/async.js:166:37","    at /usr/local/games/minecraft/node_modules/async/lib/async.js:718:13","    at iterate (/usr/local/games/minecraft/node_modules/async/lib/async.js:262:13)","    at /usr/local/games/minecraft/node_modules/async/lib/async.js:274:29","    at /usr/local/games/minecraft/node_modules/async/lib/async.js:44:16"],"level":"error","message":"uncaughtException: path must be a string or Buffer","timestamp":"2019-08-31T17:37:54.714Z"}
 
Joined
Jul 10, 2016
Messages
521
Hmmm... there are some similar reports, but not much to go on.
  • What is crashing... is it mineos itself, or the new server you are creating? What is doing when you say "crashing"?
  • What profile are you using? Is is consistently "crashing" when you create any new server for any profile?
  • Do older/existing minecraft servers still run fine?
  • Did you install the MineOS plugin from the FreeNAS Gui 11.2-u5, or was the plugin installed using an older release?

Can you provide the output of the following commands, run from within your mineos jail:
Code:
pkg -vv | grep url
freebsd-version
java -version
node --version
npm --version
 

blueberryjr

Dabbler
Joined
Sep 7, 2017
Messages
15
No server gets created, the UI crashes, not sure if the mineos server also crashes as well.\
It crashes under every profile.
Fresh install, no servers
Installed from the plugin in freenas 11.2-u5

Code:
pkg -vv | grep url



  url : "http://pkg.FreeBSD.org/FreeBSD:11:amd64/latest",



  11.2-RELEASE-p14



java -version

OpenJDK Runtime Environment (build 1.8.0_222-b10)

OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode)



node --version

v8.16.1



npm --version

6.11.1
 
Joined
Jul 10, 2016
Messages
521
I have the same versions, yet all works fine.
Can you try to rebuild the plugin... run the following from the FreeNAS command line:

Code:
iocage stop mineos
iocage update mineos


This will reinstall the plugin, but preserve all your servers.
 
Joined
Jul 10, 2016
Messages
521
From the Traceback you posted earlier, I suspect something going on with mounting linprocfs.
What's the output of ll /compat/linux/proc/ inside your jail?
 

blueberryjr

Dabbler
Joined
Sep 7, 2017
Messages
15
It doesn't seem to exist. Getting:
Code:
 /compat/linux/proc/: No such file or directory
 
Joined
Jul 10, 2016
Messages
521
That's a problem. :)

Can you check if/where it's mounted? Make sure your mineos jail is running and from your FreeNAS host, run the following:
Code:
mount | grep linprocfs

and
iocage get mount_linprocfs mineos
Code:
iocage get mount_linprocfs mineos


The latter should return '1'. Also if you have an opportunity, you may want to try rebooting your FreeNAS host.
 
Joined
Jul 10, 2016
Messages
521
You can just stop your jails and set the flag to '1' via the command line:
Code:
iocage stop mineos
iocage set mount_linprocfs=1 mineos


... or just check the checkbox in the FreeNAS UI under jails>Edit>Custom Properties

1567369816850.png


I assume when you created the jails, you used the "Advanced properties"? I think the bug is that the GUI doesn't respect the default properties from the plugin script. I'll do some more testing and log a defect.
 

blueberryjr

Dabbler
Joined
Sep 7, 2017
Messages
15
Thanks that fixed it.
I'm pretty sure I created the jail with basic setup. I installed a second just to be sure and all of the proper settings were enabled.
 
Top