[FreeNAS 9 Plugin] - MineOS

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I updated the plugin today and there was a new update - is that you or is that direct from the plugin dev? Either way, still didn't seem to fix my issue of not being able to access the webUI.

Any word on your debugging? At this point if I need to make any changes that involve taking the server down I have to start an entirely new jail and transfer the files over so I can get the webUI working for about an hour before it breaks.

Is there no easy way to just install it manually in the jail? I tried following a guide on this forum but it seemed outdated and didn't work.
updates I release will show on the Plugins>Installed tab. I already said I'd post back when it gets figured out, so no I haven't released anything.

i havent had a chance to work on this.
the webui breaks even if you don't update mineos? it's stable for me on the released version.

I don't know if you consider it easy, but you can grab the mineos port from my github and compile it. it won't work though unless you revert the commit it installs.
 

paradoxiom

Patron
Joined
Jun 16, 2015
Messages
239
the webui breaks even if you don't update mineos? it's stable for me on the released version.

Yeah I have no idea why it just decides to break randomly. Will restarting the server after adding the post-init command help? I'd like to try that, but as I say, shutting the jail down will close the server and without the webUI I won't be able to start it again.

I posted this mineos.log here; http://pastebin.com/raw.php?i=rB0UsvU3

http://discourse.codeemo.com/t/web-ui-inaccessible/927/4

I don't have any kind of dev enviroment setup to compile anything, and reverting commit installs is something I have idea how to do.
I don't suppose you happen to just know where the mineos 'settings' are located? because obviously the web-ui files themselves are fine right? I mean, the problem must be in the settings somewhere, and if I deleted those and turned the plugin back on, it would re-create them and hopefully work?
 

Jaydog76

Cadet
Joined
Jun 25, 2015
Messages
6
This might be a bit off topic, but I have been beating my head up against a wall for a week now. First off, awesome plug in. I am running FreeNAS 9.3-Stable with the latest MineOS. I have a Forge server running for the kids, it works great on the LAN. I have been trying to get a vanilla version of the server running for the neighbor kids to connect and play with my kids. I am using port 25570, I have my router port forwarded to the correct IP address and port for the jail. I simply cannot see it from outside my LAN. I have gone through 3 routers this week. I have called Comcast to verify they aren't blocking the port, they say they aren't. I have completely shut down the firewall on the router without any luck. I have read on the MineOS where I need to add the port to the iptables for MineOS. I ssh into the jail as root, I run the commands that I found on the MineOS site and I get command not found.

root@mineos_1:/ # iptables --list
iptables: Command not found.

So, I decide to shut the other servers down and assign port 25565 to the "public" server and I still can't see it.

Am I missing something? This post started to touch on it about 10 or 11 pages ago, but never really went too far into it. ANY advice would be greatly appreciated. I like FreeNAS and really like MineOS, but I am at the end of what patience I am capable of, please help.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Yeah I have no idea why it just decides to break randomly. Will restarting the server after adding the post-init command help? I'd like to try that, but as I say, shutting the jail down will close the server and without the webUI I won't be able to start it again.

I posted this mineos.log here; http://pastebin.com/raw.php?i=rB0UsvU3

http://discourse.codeemo.com/t/web-ui-inaccessible/927/4

I don't have any kind of dev enviroment setup to compile anything, and reverting commit installs is something I have idea how to do.
I don't suppose you happen to just know where the mineos 'settings' are located? because obviously the web-ui files themselves are fine right? I mean, the problem must be in the settings somewhere, and if I deleted those and turned the plugin back on, it would re-create them and hopefully work?
you don't need a dev environment. compiling from ports works out of the box on FreeBSD.

As for reverting a commit, you would need to read up on how git works and revert to the commit the dev mentions here https://github.com/hexparrot/mineos-node/issues/95#issuecomment-160772303

The overall plugin settings are in the FreeNAS WebUI mineos menu, but thats probably not where the problem is. It's probably somewhere is your minecraft server folders. Maybe a new setting isn't compatible with the older version of mineos in the plugin.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
This might be a bit off topic, but I have been beating my head up against a wall for a week now. First off, awesome plug in. I am running FreeNAS 9.3-Stable with the latest MineOS. I have a Forge server running for the kids, it works great on the LAN. I have been trying to get a vanilla version of the server running for the neighbor kids to connect and play with my kids. I am using port 25570, I have my router port forwarded to the correct IP address and port for the jail. I simply cannot see it from outside my LAN. I have gone through 3 routers this week. I have called Comcast to verify they aren't blocking the port, they say they aren't. I have completely shut down the firewall on the router without any luck. I have read on the MineOS where I need to add the port to the iptables for MineOS. I ssh into the jail as root, I run the commands that I found on the MineOS site and I get command not found.

root@mineos_1:/ # iptables --list
iptables: Command not found.

So, I decide to shut the other servers down and assign port 25565 to the "public" server and I still can't see it.

Am I missing something? This post started to touch on it about 10 or 11 pages ago, but never really went too far into it. ANY advice would be greatly appreciated. I like FreeNAS and really like MineOS, but I am at the end of what patience I am capable of, please help.
You don't need to mess with iptables, there's no firewall on FreeNAS/jails by default. I run publicly facing minecraft servers on Comcast just fine.

If your testing connecting to your WAN_IP:25570 from inside your network maybe your router doesn't have NAT reflection enabled. It should still work from outside your network though so you can test using a site like this
https://dinnerbone.com/minecraft/tools/status/
If you want to be able to use WAN_IP:25570 from inside your network you could enable NAT reflection (I know how to do it on DD-WRT and pfSense) but I'm not sure if this is available on other router OS's. Otherwise, the LAN_IP:25570 should work just fine locally.
 

Jaydog76

Cadet
Joined
Jun 25, 2015
Messages
6
You don't need to mess with iptables, there's no firewall on FreeNAS/jails by default. I run publicly facing minecraft servers on Comcast just fine.

If your testing connecting to your WAN_IP:25570 from inside your network maybe your router doesn't have NAT reflection enabled. It should still work from outside your network though so you can test using a site like this
https://dinnerbone.com/minecraft/tools/status/
If you want to be able to use WAN_IP:25570 from inside your network you could enable NAT reflection (I know how to do it on DD-WRT and pfSense) but I'm not sure if this is available on other router OS's. Otherwise, the LAN_IP:25570 should work just fine locally.


Well, today I was determined to go to drastic measures to figure this mess out. I tried several things up to this point but some variables, in my mind were still unproven.

1. I had to verify port forwarding was actually working - Set up IIS on my laptop with just the default Windows webpage, BOOM! Port forwarding verified
2. I had to verify I could port forward something, ANYTHING to the FreeNAS box. - Installed the owncloud plugin, BOOM! Port forwarding to FreeNAS successful
3. Deleted existing MineOS install and jail, reinstalled. FINALLY I can see from the outside world using my phone on LTE.

Thank you Joshua for confirming that you were running a similar setup on a Comcast account and also confirming that nothing had to be changed on the iptables.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Well, today I was determined to go to drastic measures to figure this mess out. I tried several things up to this point but some variables, in my mind were still unproven.

1. I had to verify port forwarding was actually working - Set up IIS on my laptop with just the default Windows webpage, BOOM! Port forwarding verified
2. I had to verify I could port forward something, ANYTHING to the FreeNAS box. - Installed the owncloud plugin, BOOM! Port forwarding to FreeNAS successful
3. Deleted existing MineOS install and jail, reinstalled. FINALLY I can see from the outside world using my phone on LTE.

Thank you Joshua for confirming that you were running a similar setup on a Comcast account and also confirming that nothing had to be changed on the iptables.
awesome glad it's working
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I was wondering what the preferred method for archiving is amongst the group.
My base_directory is actually a mounted dataset I snapshot and replicate (as a backup). If you specifically wanted an archive I think mineos has this option built in, but their forum may be better help with this.
 

Pops

Dabbler
Joined
Sep 19, 2015
Messages
24
Upgrade (today) to FreeNAS-9.3-STABLE-201512121950 broke MineOS.

(If this needs to be moved to the main forum, I'll be happy to do it.)

I've been running a stable server (both freeNAS and MineOS plugin) for the past few months without problems. After updating to the latest stable build earlier today, I can no longer access MineOS interface from the WebUI. I have gone through everything with a fine-tooth comb and can not determine the reason for the problem, although I think this error is involved (freeNAS kernel: ng_ether_ifnet_arrival_event: can't re-name node epair1b).

Steps taken: reinstalled (manual) FreeNAS-9.3-STABLE-201512121950 which fixed several permission errors found during verification, but didn't allow access to the MineOS plugin/jail.

-Reconfigured the jail to different addresses.

-plexmediaserver plugin works without issue.

--->ifconfig from system shell: http://pastebin.com/xbthpuPy

--->ifconfig from jail: http://pastebin.com/uc6SD52V

--->server start (mesg): http://pastebin.com/Sh8wp7Bg

--->sockstat (jail): http://pastebin.com/nQUX9nZW

If I need to supply more information, please let me know.

Thanks!
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Upgrade (today) to FreeNAS-9.3-STABLE-201512121950 broke MineOS.

(If this needs to be moved to the main forum, I'll be happy to do it.)

I've been running a stable server (both freeNAS and MineOS plugin) for the past few months without problems. After updating to the latest stable build earlier today, I can no longer access MineOS interface from the WebUI. I have gone through everything with a fine-tooth comb and can not determine the reason for the problem, although I think this error is involved (freeNAS kernel: ng_ether_ifnet_arrival_event: can't re-name node epair1b).

Steps taken: reinstalled (manual) FreeNAS-9.3-STABLE-201512121950 which fixed several permission errors found during verification, but didn't allow access to the MineOS plugin/jail.

-Reconfigured the jail to different addresses.

-plexmediaserver plugin works without issue.

--->ifconfig from system shell: http://pastebin.com/xbthpuPy

--->ifconfig from jail: http://pastebin.com/uc6SD52V

--->server start (mesg): http://pastebin.com/Sh8wp7Bg

--->sockstat (jail): http://pastebin.com/nQUX9nZW

If I need to supply more information, please let me know.

Thanks!
Since you completely can't access the jail, your issue isn't related to the MineOS plugin. Getting the jail working in a different thread would be best.
If you can access your BASE_DIRECTORY (which is in /var/games/minecraft in the mineos jail by default) you could just restore that to a new working MineOS jail.
 

Pops

Dabbler
Joined
Sep 19, 2015
Messages
24
Since you completely can't access the jail, your issue isn't related to the MineOS plugin. Getting the jail working in a different thread would be best.
If you can access your BASE_DIRECTORY (which is in /var/games/minecraft in the mineos jail by default) you could just restore that to a new working MineOS jail.
Thanks, Joshua.

I've moved the post to the main forum, but I would also ask you to describe how one would restore the current directory to a new jail without losing data. I suspect it would be as easy as creating a new dataset/jail and moving the Minecraft directory over, but I'd rather not take the chance until I hear from you.

Thanks again.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Thanks, Joshua.

I've moved the post to the main forum, but I would also ask you to describe how one would restore the current directory to a new jail without losing data. I suspect it would be as easy as creating a new dataset/jail and moving the Minecraft directory over, but I'd rather not take the chance until I hear from you.

Thanks again.
Here's the steps I suggest. You can choose to not follow them exactly but this is what i would do.
  • create a dataset "minecraft" to keep your mineos files on
  • copy your old base_directory files over to the dataset
    • cp -rp /mnt/tank/jails/mineos_1/var/games/minecraft/* /mnt/tank/minecraft
  • install mineos
  • mount your "minecraft" dataset to the working mineos jail at /mnt/minecraft
  • configure mineos to have its base_directory at /mnt/minecraft from the mineos settings menu, in the left panel of the FreeNAS WebUI
 

remek4x4

Cadet
Joined
Dec 26, 2015
Messages
1
Hey guys, I'm new to the FreeNAS and managing a server at all so the solution is probably something really basic, yet I'm struggling to find out what's wrong.
Almost every runnable single .jar that appears in the web ui doesn't work for me - Some of them get "UP" and fill the memory, but never become available ("ping version" stays blank and are not discoverable in Minecraft), some fill the memory and then get "Down", some fill memory for just one tick and become downed right after and some just ignore me clicking "start". Of all the .jar files I have downloadew via "Profiles" in the web interface only the 1.7.10 from Mojang works.

Video realted:
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Hey guys, I'm new to the FreeNAS and managing a server at all so the solution is probably something really basic, yet I'm struggling to find out what's wrong.
Almost every runnable single .jar that appears in the web ui doesn't work for me - Some of them get "UP" and fill the memory, but never become available ("ping version" stays blank and are not discoverable in Minecraft), some fill the memory and then get "Down", some fill memory for just one tick and become downed right after and some just ignore me clicking "start". Of all the .jar files I have downloadew via "Profiles" in the web interface only the 1.7.10 from Mojang works.

Video realted:
just a guess, bit did you accept the EULA?
 

Nobody1980

Cadet
Joined
Dec 31, 2015
Messages
3
I am trying to make a Feed the Beast direwolf20_17-1.9.0 server and i have run FTBInstall.sh but when i try to start the server it gets stuck on : ''[14:09:37] [Server thread/INFO]: Starting minecraft server version 1.7.10". Apparently this happens because when you run sh FTBInstall.sh as root it changes the permissions. So what user should have the permission? (i couldn't find the mcserver user)
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I am trying to make a Feed the Beast direwolf20_17-1.9.0 server and i have run FTBInstall.sh but when i try to start the server it gets stuck on : ''[14:09:37] [Server thread/INFO]: Starting minecraft server version 1.7.10". Apparently this happens because when you run sh FTBInstall.sh as root it changes the permissions. So what user should have the permission? (i couldn't find the mcserver user)
I don't know what you mean by you can't find the user. it should exist in the jail, not sure what you are trying.

as for specific permissions, you could also try the mineos forum. they might know more about feedthebeast
 

Nobody1980

Cadet
Joined
Dec 31, 2015
Messages
3
What i meant was that to be able to run my feed the beast server, mcserver has to be the owner of all the game directory but there is no user named mcserver in my freenas server. (the user that i log in with in the web ui has to be the same as the user that has all the permissions to the game directory).
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
What i meant was that to be able to run my feed the beast server, mcserver has to be the owner of all the game directory but there is no user named mcserver in my freenas server. (the user that i log in with in the web ui has to be the same as the user that has all the permissions to the game directory).
correct, there is no user 'mcserver' on your freenas host. but it does exist in your jail
 
Top