[FreeNAS 9 Plugin] - MineOS

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
How do i find it my jail?
I'm not sure what you mean by find it. if you need to change permissions you use 'chown -R mcserver:mcserver /path/to/server'
if you want to do this from your freenas host you could just use the UID&GID 199 instead of the user/groupname
 

paradoxiom

Patron
Joined
Jun 16, 2015
Messages
239
Hey Josh,

Sorry to bother you about this, but I was wondering if you've made any progress with the plugin?

Thanks again for your work :)

Edit: I was wondering if you're still far from finishing, is there any way I can create a standard jail and run the latest MineOS in it without the freenas plugin component? I tried following this thread here: https://forums.freenas.org/index.php?threads/how-to-install-minecraft-server-in-a-jail.18246/

But I think it might be outdated or something because I just run into issues at nearly every step.

Thanks again.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Hey Josh,

Sorry to bother you about this, but I was wondering if you've made any progress with the plugin?

Thanks again for your work :)

Edit: I was wondering if you're still far from finishing, is there any way I can create a standard jail and run the latest MineOS in it without the freenas plugin component? I tried following this thread here: https://forums.freenas.org/index.php?threads/how-to-install-minecraft-server-in-a-jail.18246/

But I think it might be outdated or something because I just run into issues at nearly every step.

Thanks again.
no, whether you run from source or from the plugin it wasn't working for me.

I've kept my production install on an earlier version of mineos for now. I believe this will work with freebsd10 because of the way node is compiled. I may revised this before freenas10, but put it on the back burner for now.
 

nexlevel

Cadet
Joined
Feb 22, 2015
Messages
7
Although I do have a question I wanted to take a moment to say thank you Joshua for putting in all of this effort and energy over all of this time, and for allowing us to steal you from your real life to support and answer our questions as best you can. Congratulations on all of the life changes.

My two boys have been begging me and begging me for the last few months to hook them up with MC and now in the last few days I've finally done it. We now have a little something to bond over and spend time together doing that they are really crazy about. I'm the coolest Dad ever right now because we play this silly (awesome) little game together. I'm actually having a lot of fun with them making cool memories and I have you to thank for it. Thank you so much again. This feeling is priceless. I didn't expect that it would mean that much to them. They brag that their Dad didn't just buy them MC but built them a MC server that "they" (me) control.

Okay, now for the question: my youngest keeps asking me to build a Superflat world but I don't know what setting in the "Server.properties" page to adjust to do it. Is there a help guide that explains what each option is (some are self-explanatory but others are not so much)? Maybe we can help and make "help popups" that describe what each option is and maybe some example parameters and limitations. We're learning python together right now also.

Thank you again on behalf of all the fathers looking for a way to connect and earn cool-points with their kids.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
@nexlevel
glad I could be of help and that your kids are enjoying things! I actually have a world like that we have as a creative server to build stuff without getting attacked.

I had to look it up, but I believe you need to set the level-type to FLAT instead of DEFAULT

i think theres a wiki somewhere to read about these, but that would only cover vanilla minecraft servers while other types might have different properties. popups in mineos? you could always contribute to that project at github.com/hexparrot/mineos-node, though I don't think it's written in Python anymore.
 
Last edited:

Ayeohdee

Dabbler
Joined
Mar 8, 2016
Messages
25
It seem's difficult for me to find a proper place to post such an issue unless this would be the spot. I am still waiting (30minutes later) on a confirmation email to post on another forum regarding mineos. Long story semi short. I can host a stock server on my freenas via mineos no problem. Port forwarding's all good. Server runs great. Now when i try to launch a FTB server or any other modded jar problems start pouring in. I've tried using the profiles from the web gui for direwolf and other FTB servers but once i accept EULA and try to start the server nothing happens, Since I cannot edit anything in most of the games jail folders via cifs share. I get access denied need permission from unix user199.... So i decided to start a FTB server from my desktop using serverstart.bat, adjust files as needed and then copy all of those files via .zip into the IMPORT folder in the jails and then import that via the webgui. Thing's actually start to work once I do this. If I select the Minecraft.jar on webgui vs FTB.jar the server will start up quickly but most of the mods dont start and almost all modded inventory is not found if I try to access it in game. If i shut down and change the jar to the FTB.jar things get bad. Memory usage jumps to about 2GB and console/log shows nothing but yet the webgui shows server as up but I cannot connect and any input into console will not show up or work. I cant even shut the server down once launching the ftb.jar I actually have to stop the plugin and jail and restart. I've been at this for 2 days and I am all about googled out. I feel like I am missing something simple because I havent seem a similar problem to this with the research ive been doing... Any input would be well...amazing.. Thanks in advance. Also I apologize for any typos. I am being a bit frantic.

Specs
EVGA 750i motherboard
q9505 CPU
8gb ddr2
3x2TB WD red raid-z1
Freenas 9.2.1.9
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I'm not sure what you are asking exactly? The FTB.jar just doesn't start as expected? There is a log for mineos I think in /var/log of the jail you could check.
If link the jar you're trying I can test it out on my server and see if it runs.

Your system seems low on RAM to be running MineOS. I'd recommend if you're building something for the long term you use at least 16GB of RAM.
I also read systems that use DDR2 are kinda slow with ZFS. https://forums.freenas.org/index.php?threads/ddr2-performance-in-freenas.26173/
 

Ayeohdee

Dabbler
Joined
Mar 8, 2016
Messages
25
Essentially yes. I also completely understand about my specs. I am putting as much aside to up the ram in my system. This is basically an old gaming PC I am trying to run for a basic server.
If I try to run the FTB jar located in the webui from the profile i downloaded from the webui the server will start up for a second, then come back down and will not attempt to restart. If i try to copy my existing server files over and import them i can launch the jar and the server will "start" but nothing will happen. It will just say server is up but i cannot send any commands to it via console on the web gui. I also cannot stop or kill the server without shutting down the jail and plugin. I will link the jar. Thank you.
http://www.filedropper.com/ftbserver-1710-1558
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Essentially yes. I also completely understand about my specs. I am putting as much aside to up the ram in my system. This is basically an old gaming PC I am trying to run for a basic server.
If I try to run the FTB jar located in the webui from the profile i downloaded from the webui the server will start up for a second, then come back down and will not attempt to restart. If i try to copy my existing server files over and import them i can launch the jar and the server will "start" but nothing will happen. It will just say server is up but i cannot send any commands to it via console on the web gui. I also cannot stop or kill the server without shutting down the jail and plugin. I will link the jar. Thank you.
http://www.filedropper.com/ftbserver-1710-1558
Can you check the log?
I was thinking it could be a permission issue on the Jar, but in the case of downloading it with a profile I would think that shouldn't be a issue.

I'll try launching the jar when I have a chance
 

Ayeohdee

Dabbler
Joined
Mar 8, 2016
Messages
25
Also I wanted to add I was reading that I need to run "FTBInstall.sh" before launching server to get it to start but when i do so via shell i get certificate errors. I tried to avoid this by imported already created and set up servers that have had the file ran already but that's when the server goes up but I get no response.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Sweet, I think your hint about the script did it for me.
Code:
ln -s /usr/local/share/certs/ca-root-nss.crt /etc/ssl/cert.pem
sh ./FTBInstall.sh


Then starting from MineOS worked.

##EDIT##
At least it says started, I honestly don't know if it is though =/
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I did the following to investigate further
Code:
su mcserver
/usr/pbi/mineos-amd64/bin/screen -list
/usr/pbi/mineos-amd64/bin/screen -r mc-FTB


And saw the output in the attached screenshot. Maybe this is a clue why this server seems to be failing.
 

Attachments

  • Screenshot from 2016-03-20 18-42-28.png
    Screenshot from 2016-03-20 18-42-28.png
    335.4 KB · Views: 431

Ayeohdee

Dabbler
Joined
Mar 8, 2016
Messages
25
Same thing here. the script finally ran and thank you for that I was going insane trying to get that to work regaurdless if it fixed the problem or not, but I am sitting at the point I was when i just went ahead and imported an already created server that had been ran on my desktop. Log has stopped at
{"level":"info","message":"[NMC] eula.txt detected: ACCEPTED (eula=true)","timestamp":"2016-03-21T01:41:39.597Z"}
{"level":"info","message":"[NMC] undefined issued command : \"start\"","timestamp":"2016-03-21T01:42:21.920Z"}
{"level":"info","message":"[NMC] received request \"start\"","timestamp":"2016-03-21T01:42:21.920Z"}
{"level":"info","message":"[NMC] latest.log created! Watchfile logs/latest.log closed","timestamp":"2016-03-21T01:42:24.210Z"}
{"level":"info","message":"[NMC] Created tail on logs/latest.log","timestamp":"2016-03-21T01:42:24.231Z"}
 

Ayeohdee

Dabbler
Joined
Mar 8, 2016
Messages
25
I did the following to investigate further
Code:
su mcserver
/usr/pbi/mineos-amd64/bin/screen -list
/usr/pbi/mineos-amd64/bin/screen -r mc-FTB


And saw the output in the attached screenshot. Maybe this is a clue why this server seems to be failing.
Meaning you or I am running out of RAM?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Meaning you or I am running out of RAM?
I think it's running out of RAM because the process is going crazy doing something. I couldn't kill the process with 'kill PID' so it was hung, but a 'kill -9 PID' did work and the process showed as stopped in the MineOS webUI.

I think this is a bug somewhere between FreeBSD9 > java > FTBserver
Maybe the screenshot I have is a good clue, and someone familiar with FTBserver would know what needs to be looked at.
 

Ayeohdee

Dabbler
Joined
Mar 8, 2016
Messages
25
Thanks. I tried to get to that information using the commands you posted just to make sure I am getting the same error, I am sure I am but I cant get past /usr/pbi/mineos-amd64/bin/screen -r mc-FTB .
Replies no screens mc-FTB.. I apologize for my lack of knowledge when it comes to this language, I am trying my best to learn it.
I cant believe no one else has been trying to host FTB servers from mineos, I'd like to think more information would be out there. I'll do what I can to get your screenshot out and get some info back. All I want is to host a FTB server from my server and not my desktop for me and a few friends =\. Thank you again for your fast replies and assistance
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
the list command should show what screens are available. make you try starting the FTB server first.

ohh, and change the FTB to whatever you named your server to.
 
Top