[FreeNAS 9 Plugin] - MineOS

TrueType

Dabbler
Joined
Mar 26, 2015
Messages
20
Somehow my server disappeared. I had it active for about 2 months ago, then I moved and didn't start the computer until now. And now I can't find the server at all in the WebGUI. All that I can find now what remains from my server is the file "70876.mc-Craftbukkitserver" which is 0 bits large.
66324a88a5.png

Do you know if I can find the server again and what happened? ;O
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Somehow my server disappeared. I had it active for about 2 months ago, then I moved and didn't start the computer until now. And now I can't find the server at all in the WebGUI. All that I can find now what remains from my server is the file "70876.mc-Craftbukkitserver" which is 0 bits large.
66324a88a5.png

Do you know if I can find the server again and what happened? ;O
that's not a server, that's the screen process.

by default servers are stored in the jail's /var/games/minecraft/servers folder.
 

TrueType

Dabbler
Joined
Mar 26, 2015
Messages
20
that's not a server, that's the screen process.

by default servers are stored in the jail's /var/games/minecraft/servers folder.
Okey, when I look there I don't find the server either. Though I find two old servers in the /maps/servers folder. But my "Craftbukkitserver" is missing completely... :/
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Okey, when I look there I don't find the server either. Though I find two old servers in the /maps/servers folder. But my "Craftbukkitserver" is missing completely... :/
did you remember changing the default "base directory" for mineos and/or mount storage into your mineos jail as your "base directory"?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I think I did, but I am not 100% sure...
so mineos doesn't work anymore? you could check the settings. are you trying to get mineos working again, or copy out your worlds?
 

TrueType

Dabbler
Joined
Mar 26, 2015
Messages
20
so mineos doesn't work anymore? you could check the settings. are you trying to get mineos working again, or copy out your worlds?
MineOS is working just fine, but my World which i named "Craftbukkitserver" is completely missing. I accidently pulled the electricity to the NAS at 2nd of July and as you see in the mineos.log this is the last I've seen of it. :/

"Surfburkentva" and "Craftbukkitserver" were the two servers I had, and now "Craftbukkitserver" is gone after the electricity drop.
Code:
[30/Jun/2015:00:00:18]  [Craftbukkitserver] archive (Server Up: True)
[30/Jun/2015:00:02:43]  [Craftbukkitserver] archive return code reports success; sleeping 3sec
[30/Jun/2015:00:02:46]  [Surfburkentva] archive (Server Up: False)
[30/Jun/2015:00:02:48]  [Surfburkentva] archive return code reports success; sleeping 3sec
[01/Jul/2015:00:00:21]  [Craftbukkitserver] commit
[01/Jul/2015:00:00:21]  [Craftbukkitserver] commit command received by process; sleeping 10sec
[01/Jul/2015:00:00:31]  [Surfburkentva] commit
[01/Jul/2015:00:00:31]  [Craftbukkitserver] backup (Server Up: True)
[01/Jul/2015:00:00:32]  [Craftbukkitserver] backup exception: returncode 1
[01/Jul/2015:00:00:32]  Traceback (most recent call last):
  File "/usr/pbi/mineos-amd64/bin/rdiff-backup", line 20, in <module>
    import rdiff_backup.Main
  File "/usr/pbi/mineos-amd64/lib/python2.7/site-packages/rdiff_backup/Main.py", line 25, in <module>
    import Globals, Time, SetConnections, selection, robust, rpath, \
  File "/usr/pbi/mineos-amd64/lib/python2.7/site-packages/rdiff_backup/SetConnections.py", line 30, in <module>
    import Globals, connection, rpath
  File "/usr/pbi/mineos-amd64/lib/python2.7/site-packages/rdiff_backup/connection.py", line 539, in <module>
    import Globals, Time, Rdiff, Hardlink, FilenameMapping, C, Security, \
  File "/usr/pbi/mineos-amd64/lib/python2.7/site-packages/rdiff_backup/Rdiff.py", line 22, in <module>
    import os, librsync
  File "/usr/pbi/mineos-amd64/lib/python2.7/site-packages/rdiff_backup/librsync.py", line 28, in <module>
    import _librsync
ImportError: Shared object "librsync.so.1" not found, required by "_librsync.so"

[01/Jul/2015:00:00:32]  [Surfburkentva] backup (Server Up: False)
[01/Jul/2015:00:00:32]  [Surfburkentva] backup exception: returncode 1
[01/Jul/2015:00:00:32]  Traceback (most recent call last):
  File "/usr/pbi/mineos-amd64/bin/rdiff-backup", line 20, in <module>
    import rdiff_backup.Main
  File "/usr/pbi/mineos-amd64/lib/python2.7/site-packages/rdiff_backup/Main.py", line 25, in <module>
    import Globals, Time, SetConnections, selection, robust, rpath, \
  File "/usr/pbi/mineos-amd64/lib/python2.7/site-packages/rdiff_backup/SetConnections.py", line 30, in <module>
    import Globals, connection, rpath
  File "/usr/pbi/mineos-amd64/lib/python2.7/site-packages/rdiff_backup/connection.py", line 539, in <module>
    import Globals, Time, Rdiff, Hardlink, FilenameMapping, C, Security, \
  File "/usr/pbi/mineos-amd64/lib/python2.7/site-packages/rdiff_backup/Rdiff.py", line 22, in <module>
    import os, librsync
  File "/usr/pbi/mineos-amd64/lib/python2.7/site-packages/rdiff_backup/librsync.py", line 28, in <module>
    import _librsync
ImportError: Shared object "librsync.so.1" not found, required by "_librsync.so"

[01/Jul/2015:00:00:32]  [Craftbukkitserver] archive (Server Up: True)
[01/Jul/2015:00:02:59]  [Craftbukkitserver] archive return code reports success; sleeping 3sec
[01/Jul/2015:00:03:02]  [Surfburkentva] archive (Server Up: False)
[01/Jul/2015:00:03:04]  [Surfburkentva] archive return code reports success; sleeping 3sec
[02/Jul/2015:00:00:40]  [Craftbukkitserver] commit
[02/Jul/2015:00:00:41]  [Craftbukkitserver] commit command received by process; sleeping 10sec
[02/Jul/2015:00:00:51]  [Surfburkentva] commit
[02/Jul/2015:00:00:51]  [Craftbukkitserver] backup (Server Up: True)
[02/Jul/2015:00:00:51]  [Craftbukkitserver] backup exception: returncode 1
[02/Jul/2015:00:00:51]  Traceback (most recent call last):
  File "/usr/pbi/mineos-amd64/bin/rdiff-backup", line 20, in <module>
    import rdiff_backup.Main
  File "/usr/pbi/mineos-amd64/lib/python2.7/site-packages/rdiff_backup/Main.py", line 25, in <module>
    import Globals, Time, SetConnections, selection, robust, rpath, \
  File "/usr/pbi/mineos-amd64/lib/python2.7/site-packages/rdiff_backup/SetConnections.py", line 30, in <module>
    import Globals, connection, rpath
  File "/usr/pbi/mineos-amd64/lib/python2.7/site-packages/rdiff_backup/connection.py", line 539, in <module>
    import Globals, Time, Rdiff, Hardlink, FilenameMapping, C, Security, \
  File "/usr/pbi/mineos-amd64/lib/python2.7/site-packages/rdiff_backup/Rdiff.py", line 22, in <module>
    import os, librsync
  File "/usr/pbi/mineos-amd64/lib/python2.7/site-packages/rdiff_backup/librsync.py", line 28, in <module>
    import _librsync
ImportError: Shared object "librsync.so.1" not found, required by "_librsync.so"

[02/Jul/2015:00:00:51]  [Surfburkentva] backup (Server Up: False)
[02/Jul/2015:00:00:51]  [Surfburkentva] backup exception: returncode 1
[02/Jul/2015:00:00:51]  Traceback (most recent call last):
  File "/usr/pbi/mineos-amd64/bin/rdiff-backup", line 20, in <module>
    import rdiff_backup.Main
  File "/usr/pbi/mineos-amd64/lib/python2.7/site-packages/rdiff_backup/Main.py", line 25, in <module>
    import Globals, Time, SetConnections, selection, robust, rpath, \
  File "/usr/pbi/mineos-amd64/lib/python2.7/site-packages/rdiff_backup/SetConnections.py", line 30, in <module>
    import Globals, connection, rpath
  File "/usr/pbi/mineos-amd64/lib/python2.7/site-packages/rdiff_backup/connection.py", line 539, in <module>
    import Globals, Time, Rdiff, Hardlink, FilenameMapping, C, Security, \
  File "/usr/pbi/mineos-amd64/lib/python2.7/site-packages/rdiff_backup/Rdiff.py", line 22, in <module>
    import os, librsync
  File "/usr/pbi/mineos-amd64/lib/python2.7/site-packages/rdiff_backup/librsync.py", line 28, in <module>
    import _librsync
ImportError: Shared object "librsync.so.1" not found, required by "_librsync.so"

[02/Jul/2015:00:00:51]  [Craftbukkitserver] archive (Server Up: True)
[02/Jul/2015:00:03:18]  [Craftbukkitserver] archive return code reports success; sleeping 3sec
[02/Jul/2015:00:03:21]  [Surfburkentva] archive (Server Up: False)
[02/Jul/2015:00:03:22]  [Surfburkentva] archive return code reports success; sleeping 3sec
[30/Jul/2015:17:56:43] ENGINE Bus STARTING
[30/Jul/2015:17:56:43] ENGINE Forking once.
[30/Jul/2015:17:56:43] ENGINE Forking twice.
[30/Jul/2015:17:56:43] ENGINE Daemonized to PID: 66493
[30/Jul/2015:17:56:43] ENGINE Started monitor thread 'Autoreloader'.
[30/Jul/2015:17:56:43] ENGINE Started monitor thread '_TimeoutMonitor'.
[30/Jul/2015:17:56:43] ENGINE PID 66493 written to '/var/run/mineos.pid'.
[30/Jul/2015:17:56:43] ENGINE Started monitor thread 'Monitor'.
[30/Jul/2015:17:56:43] ENGINE Serving on 0.0.0.0:8080
[30/Jul/2015:17:56:43] ENGINE Bus STARTED
[30/Jul/2015:17:57:20] ENGINE Started monitor thread 'Session cleanup'.
[30/Jul/2015:17:57:46] HTTP 
Request Headers:
  REFERER: http://192.168.1.9:8080/
  HOST: 192.168.1.9:8080
  CONNECTION: keep-alive
  Remote-Addr: 192.168.1.76
  ACCEPT: application/json, text/javascript, */*; q=0.01
  USER-AGENT: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.107 Safari/537.36
  X-REQUESTED-WITH: XMLHttpRequest
  ACCEPT-LANGUAGE: sv-SE,sv;q=0.8,en-US;q=0.6,en;q=0.4,nb;q=0.2
  ACCEPT-ENCODING: gzip, deflate, sdch
  COOKIE: JSESSIONID=trkhdu7hkn3k163v9qrz2kdlm; session_id=6a0421397ba86a9abd27790ff1b0dc70b5be35f5
[30/Jul/2015:17:57:46] HTTP Traceback (most recent call last):
  File "/usr/pbi/mineos-amd64/lib/python2.7/site-packages/cherrypy/_cprequest.py", line 656, in respond
    response.body = self.handler()
  File "/usr/pbi/mineos-amd64/lib/python2.7/site-packages/cherrypy/lib/encoding.py", line 188, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/usr/pbi/mineos-amd64/lib/python2.7/site-packages/cherrypy/lib/jsontools.py", line 60, in json_handler
    value = cherrypy.serving.request._json_inner_handler(*args, **kwargs)
  File "/usr/pbi/mineos-amd64/lib/python2.7/site-packages/cherrypy/_cpdispatch.py", line 34, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/usr/pbi/mineos-amd64/share/mineos/mineos/mounts.py", line 25, in newfunc
    return func(*args, **kwargs)
  File "/usr/pbi/mineos-amd64/share/mineos/mineos/mounts.py", line 67, in status
    'up': instance.up,
  File "/usr/pbi/mineos-amd64/share/mineos/mineos/mineos.py", line 767, in up
    return any(s.server_name == self.server_name for s in self.list_servers_up())
  File "/usr/pbi/mineos-amd64/share/mineos/mineos/mineos.py", line 767, in <genexpr>
    return any(s.server_name == self.server_name for s in self.list_servers_up())
  File "/usr/pbi/mineos-amd64/share/mineos/mineos/mineos.py", line 1379, in list_servers_up
    pids = dict(pid_cmdline())
  File "/usr/pbi/mineos-amd64/share/mineos/mineos/procfs_reader.py", line 34, in pid_cmdline
    for pid in pids():
  File "/usr/pbi/mineos-amd64/share/mineos/mineos/procfs_reader.py", line 27, in pids
    return set(int(pid) for pid in os.listdir(_procfs) if pid.isdigit())
NameError: global name '_procfs' is not defined 
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
since mineos is working, you should be able to know where your servers are. check the mineos settings in the left tab of the freenas webui.

I also noticed a few other errors in the log you posted. did you follow the directions for adding an init command to freenas from the OP? you don't need to do this, but of you dont just make sure to manually start+stop mineos whenever you (re)start freenas.

also you got an rsync error, looks like you're missing librsync.so.1 somehow
Code:
ln -s /usr/pbi/mineos-amd64/lib/librsync.so.1 /usr/local/lib
 
Last edited:

TrueType

Dabbler
Joined
Mar 26, 2015
Messages
20
since mineos is working, you should be able to know where your servers are. check the mineos settings in the left tab of the freenas webui.

I also noticed a few other errors in the log you posted. did you follow the directions for adding an init command to freenas from the OP? you don't need to do this, but of you dont just make sure to manually start+stop mineos whenever you (re)start freenas.
I've checked everywhere and even made a search on the whole FreeNAS via FileZilla Client through SFTP and didn't find it. It somehow got deleted from the accidental power failure... :/
Yeah, I've used that command before but it didn't bite back then. I have had loads of problem before if you watch page 9 here in this thread for example, lol...

When I use the command below in my jail, it says that the file exists.
Code:
ln -s /usr/pbi/mineos-amd64/lib/librsync.so.1 /usr/local/lib
 
Last edited:

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I've checked everywhere and even made a search on the whole FreeNAS via FileZilla Client through SFTP and didn't find it. It somehow got deleted from the accidental power failure... :/
Yeah, I've used that command before but it didn't bite back then. I have had loads of problem before if you watch page 9 here in this thread for example, lol...
Mind showing a screenshot of the mineos settings I mentioned? hopefully the server folder still exists =\

My worlds have been running perfectly. I use mineos built in periodic archiving. my 'base directory' is on a storage dataset i snapshot+ replicate. Also got a UPS to tell my server to shutoff if need be.
 

TrueType

Dabbler
Joined
Mar 26, 2015
Messages
20
Mind showing a screenshot of the mineos settings I mentioned? hopefully the server folder still exists =\

My worlds have been running perfectly. I use mineos built in periodic archiving. my 'base directory' is on a storage dataset i snapshot+ replicate. Also got a UPS to tell my server to shutoff if need be.
6f8f074ff4.png

Yeah, my worlds were running smoothly too until the 2nd of July when I was about to move to another town and accidently pulled the power source.....

I have never completely understood how snapshots and/or replication works. But you seem to have a great working setup! :)
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
looks like it was left at the default /var/games/minecraft. one last thing you could check would be if you mounted storage to that jail, otherwise I'm out of ideas. somehow your server got deleted =[

would be good to setup archives or snapshots so you could restore incase of issues like this.
 

TrueType

Dabbler
Joined
Mar 26, 2015
Messages
20
looks like it was left at the default /var/games/minecraft. one last thing you could check would be if you mounted storage to that jail, otherwise I'm out of ideas. somehow your server got deleted =[

would be good to setup archives or snapshots so you could restore incase of issues like this.
Nah, no storage attached to the jail... :/ It got deleted...

Yeah, really! Could you please explain for me (newbie) how it works, or even maybe a guide? Would really help a lot of people I believe. :)
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Nah, no storage attached to the jail... :/ It got deleted...

Yeah, really! Could you please explain for me (newbie) how it works, or even maybe a guide? Would really help a lot of people I believe. :)
how what works, mineos or zfs snapshots?
for the first one ask on the mineos forums, they know better than I.
 

Miniwehats

Explorer
Joined
Feb 29, 2012
Messages
70
Looking to get a little help here.... Not very familiar with FreeNas but been up and running for 3 years on it. This would be my first jail installation other than Plex.

What I am running into is adding Multiple minecraft servers as it seems I can only do one since MineOS only allows the default port so far. I have tried using Iptables commands but it always spits back that is not a recognized command so I am unable to add another port.
Code:
root@mineos_1:/ # iptables --list                                            
iptables: Command not found.                                                 
root@mineos_1:/ #    


FreeNAS-9.3-STABLE-201506292130

Other issue is creating more users for the webui, currently I can only use the default. I want to add another group but cannot figure out where to add them, I can add users in the CLI but I can only add them to the default group...

Also I notice the ram usage is pretty darn high... Like right new HEAP is at 6000/13000 with only 2 people on the server ATM. Java have a leak? Will this lower with a server reboot?

Sorry lots of nub questions here not very experience with linux



So end goal...
1.be able to create multiple Minecraft servers in Webui ( I Can handle the port forwarding just need to enable the extra ports)
2. Add a new group other than Mcserver and add users to that group to manage the servers / different servers.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Looking to get a little help here.... Not very familiar with FreeNas but been up and running for 3 years on it. This would be my first jail installation other than Plex.

What I am running into is adding Multiple minecraft servers as it seems I can only do one since MineOS only allows the default port so far. I have tried using Iptables commands but it always spits back that is not a recognized command so I am unable to add another port.
Code:
root@mineos_1:/ # iptables --list                                              
iptables: Command not found.                                                   
root@mineos_1:/ #    



Other issue is creating more users for the webui, currently I can only use the default. I want to add another group but cannot figure out where to add them, I can add users in the CLI but I can only add them to the default group...

Also I notice the ram usage is pretty darn high... Like right new HEAP is at 6000/13000 with only 2 people on the server ATM. Java have a leak? Will this lower with a server reboot?

Sorry lots of nub questions here not very experience with linux

So end goal...
1.be able to create multiple Minecraft servers in Webui ( I Can handle the port forwarding just need to enable the extra ports)
2. Add a new group other than Mcserver and add users to that group to manage the servers / different servers.
1) you can change the port a minecraft server runs on. it's in the server.properties page.

2) this is all done in the jail's commandine. user group management is covered in the freebsd handbook. if you read the opening post of this thread I explain what I know about server permissions in mineos.

I've seen numbers memory usage higher than 6GB before. as users explore more areas more is loaded into ram until it reaches the max you allowed it. then java will start kicking stuff from memory. as the server runs longer ram usage will keep increasing, which is what you want it to do, you gave it a 13GB limit.
 

Miniwehats

Explorer
Joined
Feb 29, 2012
Messages
70
1) you can change the port a minecraft server runs on. it's in the server.properties page.

2) this is all done in the jail's commandine. user group management is covered in the freebsd handbook. if you read the opening post of this thread I explain what I know about server permissions in mineos.

I've seen numbers memory usage higher than 6GB before. as users explore more areas more is loaded into ram until it reaches the max you allowed it. then java will start kicking stuff from memory. as the server runs longer ram usage will keep increasing, which is what you want it to do, you gave it a 13GB limit.

Thank you for the quick response, apparently you have the magic touch as before any server I created on a different port would not start and now it just decided to do so.

I will read into the handbook more for users and see if I can get it working.

Did not know that is how the memory worked, I will just lower what the server has access to then. Any idea on what amount of RAM is recommended for most servers? These would be maybe 15 players max at once.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Thank you for the quick response, apparently you have the magic touch as before any server I created on a different port would not start and now it just decided to do so.

I will read into the handbook more for users and see if I can get it working.

Did not know that is how the memory worked, I will just lower what the server has access to then. Any idea on what amount of RAM is recommended for most servers? These would be maybe 15 players max at once.
not sure. I keep mine around 8GB but I'm just guessing.
 
Top