[FreeNAS 9 Plugin] - MineOS

agrasyuk

Cadet
Joined
Apr 7, 2015
Messages
4
Hi Joshua, thanks lots for your work.
i read cyberjock's guide and decided to try mineos instead due to ease of web based server management. I created "jail" dataset on volume separate from regular file storage, was able to install the plugin, start, reach the webpage, create profile (Vanila 180) create and start server, and eventually connect and play on it for a bit.
problems started for me when i tried to find a proper permission set to drop files from my local PC (existing world i've been working on with my kid) and edit .properties files (i like survival, he likes creative, would be goot to have that file writable). I was somehow able to get to a point the file is writeable, but after that lost the server from the dashboard list. i figure it has something to do with me screwing up the permissions ("you do not have rights on /profiles/profile.config" displayed on manage profiles page was the clue ). that attempt ended in me deleting the plugin and destroying the volume so I can start over fresh.

now little info on my permissions policy at home - every share is open, no passwords, no individual users setup, "only alow guest mode" is how all the file shares are setup. none of the few computers we have at home require password for logging in (since none are individual really), and for house hold of 3 i don't see why bother with individual logins and passwords.

so, try 2.
rebuilt the volume and dataset, asigned permissions as follows :
mineos_jail_perm-vi.jpg


reinstalled mineos, created new server, tested , tried to set permissions per guide , once again stuck with the mineos webgui reporting permissions lost, tried running chmod from the jail command line...
"/sbin/mount -t linprocfs linprocfs /mnt/VOL02_2TB_R1/jail/mineos_1/usr/compat/linux/proc" was added to post-init Tasks.



at this point i would really appreciate any input as far as what is the proper way to go to make that folder writable without taking permision away from the webgui mcserver user.
which brings me to question, who is this mcserver? (i didn't notice such users created in freenas).
do i need to and how do i change change default password for the webgui?

thanks in advance
Anton
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Hi Joshua, thanks lots for your work.
i read cyberjock's guide and decided to try mineos instead due to ease of web based server management. I created "jail" dataset on volume separate from regular file storage, was able to install the plugin, start, reach the webpage, create profile (Vanila 180) create and start server, and eventually connect and play on it for a bit.
problems started for me when i tried to find a proper permission set to drop files from my local PC (existing world i've been working on with my kid) and edit .properties files (i like survival, he likes creative, would be goot to have that file writable). I was somehow able to get to a point the file is writeable, but after that lost the server from the dashboard list. i figure it has something to do with me screwing up the permissions ("you do not have rights on /profiles/profile.config" displayed on manage profiles page was the clue ). that attempt ended in me deleting the plugin and destroying the volume so I can start over fresh.

now little info on my permissions policy at home - every share is open, no passwords, no individual users setup, "only alow guest mode" is how all the file shares are setup. none of the few computers we have at home require password for logging in (since none are individual really), and for house hold of 3 i don't see why bother with individual logins and passwords.

so, try 2.
rebuilt the volume and dataset, asigned permissions as follows :
mineos_jail_perm-vi.jpg


reinstalled mineos, created new server, tested , tried to set permissions per guide , once again stuck with the mineos webgui reporting permissions lost, tried running chmod from the jail command line...
"/sbin/mount -t linprocfs linprocfs /mnt/VOL02_2TB_R1/jail/mineos_1/usr/compat/linux/proc" was added to post-init Tasks.



at this point i would really appreciate any input as far as what is the proper way to go to make that folder writable without taking permision away from the webgui mcserver user.
which brings me to question, who is this mcserver? (i didn't notice such users created in freenas).
do i need to and how do i change change default password for the webgui?

thanks in advance
Anton
never change the permissions/ownership of a jail dataset, that will break it. only ever change the ownership/permissions of datasets you mount into the jail.

how I do things, I then mount a minecraft dataset into the jail, and edit mineos settings (left pane of the freenas webui) to use this dataset.

1. simple config changes like that are available from the mineos webui.
2. I don't want to start messing with combining sharing protocols + anything needing specific permissions. this what I do... access stuff using ssh as root, do whatever I need to do, then change permissions to match what they should be.
 

OneHungryPoboy

Dabbler
Joined
Oct 24, 2014
Messages
16
I had not updated the service in ~2 months, and attempted to yesterday, but receive this error when running 'service mineos update' within the jail.
fatal: Not a git repository: '/mineos/.git'

I have updated FreeNAS to the latest 9.3 a few times since the last mineos service update. Is this something I may have done, a FreeNAS issue, or something with mineos?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I had not updated the service in ~2 months, and attempted to yesterday, but receive this error when running 'service mineos update' within the jail.
fatal: Not a git repository: '/mineos/.git'

I have updated FreeNAS to the latest 9.3 a few times since the last mineos service update. Is this something I may have done, a FreeNAS issue, or something with mineos?
Thanks for bringing this up. I noticed this before but forgot to fix it.

It's a bug I introduced in the 9.3.0 build. I'll fix it and push out an update tonight.
 

NiftyMist

Cadet
Joined
May 20, 2015
Messages
9
So I have read thru this thread a few time, and maybe I'm just missing the resolution. But after I start the plugin and go to open up the GUI for MineOS I'm unable to connect. I'm not sure what the possible cause of this could be. I am new to Freenas and its plugins so maybe I am doing something wrong.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
So I have read thru this thread a few time, and maybe I'm just missing the resolution. But after I start the plugin and go to open up the GUI for MineOS I'm unable to connect. I'm not sure what the possible cause of this could be. I am new to Freenas and its plugins so maybe I am doing something wrong.
it should be as easy as clicking the link to mineos.
if that doesn't work you could double check mineos in running 'service mineos onestatus' and double check it is binding to the IP:port you are trying to connect to 'socktstat'
 

NiftyMist

Cadet
Joined
May 20, 2015
Messages
9
it should be as easy as clicking the link to mineos.
if that doesn't work you could double check mineos in running 'service mineos onestatus' and double check it is binding to the IP:port you are trying to connect to 'socktstat'
I thought it would be just as easy as clicking on the link. I didn't change any of the settings or anything. Still troubleshooting.
 

NiftyMist

Cadet
Joined
May 20, 2015
Messages
9
So for some reason the plugin keeps shutting itself off after I turn it on. Is there a fix for this?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
So for some reason the plugin keeps shutting itself off after I turn it on. Is there a fix for this?
can you try starting it from the commandline and see if any errors popup.
Code:
service mineos onestart
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I'll run that command, it says starting. then it finishes and it doesn't actually start.
Hmm, so it says it starts though? Can you show a screenshot of the output from following commands.
Code:
service mineos onestart
service mineos onestatus
ps aux
sockstat | grep 8080
 
Top