[Support] binhex - MineOS-node


Recommended Posts

anybody else have an issue where the docker takes almost 20 minutes to finish loading so i can access the webui?

The log will stay at this screen for 17-18 minutes or so before finishing booting, and any time i need to restart the docker it does the same thing.

 

image.png.087b662b8905ba80226c224402bec409.png

Eventually it finishes booting and the log looks like this (note the timestamps to see the delay):

image.png.5e6078462a6269f20185cad54eb238a1.png

Edited by CmdrKeen
Link to comment
7 minutes ago, CmdrKeen said:

anybody else have an issue where the docker takes almost 20 minutes to finish loading so i can access the webui?

Mine loads promptly, as long as I have enough storage. I accidentally ran out of space because I didn't delete old archives, and it took forever to start until I manually deleted some of them. BTW, the drive the files were on still showed free space, and other apps were fine, but the mineos internal logs showed out of space when trying to create snapshots and archives. Didn't troubleshoot further because removing the extra archives fixed it.

 

You could try moving your active games profile folder to another location temporarily and see if it starts promptly.

Link to comment
43 minutes ago, JonathanM said:

Mine loads promptly, as long as I have enough storage. I accidentally ran out of space because I didn't delete old archives, and it took forever to start until I manually deleted some of them. BTW, the drive the files were on still showed free space, and other apps were fine, but the mineos internal logs showed out of space when trying to create snapshots and archives. Didn't troubleshoot further because removing the extra archives fixed it.

 

You could try moving your active games profile folder to another location temporarily and see if it starts promptly.

 

I just tried moving the entire "games" directory inside a new folder so it was in a different location. the docker is still taking a very long time to boot. last time I rebooted it (about 20 minutes ago) it never actually fully booted into a working webui. it finished booting but i was never able to get to the login page at all, just showed "unable to connect".

Link to comment
  • 2 weeks later...
On 6/18/2022 at 12:38 AM, CmdrKeen said:

anybody else have an issue where the docker takes almost 20 minutes to finish loading so i can access the webui?

The log will stay at this screen for 17-18 minutes or so before finishing booting, and any time i need to restart the docker it does the same thing.

 

image.png.087b662b8905ba80226c224402bec409.png

Eventually it finishes booting and the log looks like this (note the timestamps to see the delay):

image.png.5e6078462a6269f20185cad54eb238a1.png

Yes, I'm having this issue too now. No problems two days ago, but it takes forever to start up now. I'm seeing it stuck exactly like in your first screenshot. Haven't waited long enough for it to reach "MineOS-node started" yet.

I'm actually looking for an alternative to MineOS, as it also no longer has PaperMC profiles built-in anyway.

Link to comment
2022-06-27 18:41:45.839973 [info] Host is running unRAID
2022-06-27 18:41:45.856789 [info] System information Linux 95ec76292e68 5.15.46-Unraid #1 SMP Fri Jun 10 11:08:41 PDT 2022 x86_64 GNU/Linux
2022-06-27 18:41:45.877158 [info] OS_ARCH defined as 'x86-64'
2022-06-27 18:41:45.897022 [info] PUID defined as '0'
2022-06-27 18:41:45.921104 [info] PGID defined as '0'
2022-06-27 18:41:45.956221 [info] UMASK defined as '0000'
2022-06-27 18:41:45.975433 [info] Permissions already set for '/config'
2022-06-27 18:41:46.000004 [info] Deleting files in /tmp (non recursive)...
2022-06-27 18:41:46.021029 [info] WEBUI_PASSWORD defined as 'XXXXXXXXXXXX'
2022-06-27 18:41:46.074090 [info] JAVA_VERSION defined as 'latest'
2022-06-27 18:41:46.099727 [info] Starting Supervisor...
2022-06-27 18:41:46,284 INFO Included extra file "/etc/supervisor/conf.d/mineos-node.conf" during parsing
2022-06-27 18:41:46,284 INFO Set uid to user 0 succeeded
2022-06-27 18:41:46,287 INFO supervisord started with pid 7
2022-06-27 18:41:47,289 INFO spawned: 'shutdown-script' with pid 79
2022-06-27 18:41:47,290 INFO spawned: 'start-script' with pid 80
2022-06-27 18:41:47,290 INFO reaped unknown pid 8 (exit status 0)
2022-06-27 18:41:48,291 INFO success: shutdown-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)

Hi I've an issue with the umask setting.

I've tried to set umask to 0000 or 000 but in both cases the files in the folder /config/mineos/games/servers/[NAMESERVER]/plugins/Skript those file permissions are not set to chmod 777 as they should be.

total 52
-rw-rw-r--  1 root root 19566 Jun 27 20:14 config.sk
-rw-rw-r--  1 root root  1640 Jun 27 20:14 features.sk
drwxrwxr-x+ 1 root root    68 Jun 27 20:14 lang/
-rw-rw-r--  1 root root 22420 Jun 27 20:14 materials.json
drwxrwxr-x+ 1 root root   668 Jun 27 20:14 scripts/
-rw-rw-r--  1 root root   100 Jun 27 20:14 variables.csv

I need the file to be editable by everyone because I've mounted the path /config/mineos/games/ in a folder in unraid. Than I've shared the folder with SMB but nobody can modify those files.

Any suggestion?

Link to comment
  • 2 weeks later...
Posted (edited)
On 6/27/2022 at 9:05 AM, clb92 said:

Yes, I'm having this issue too now. No problems two days ago, but it takes forever to start up now. I'm seeing it stuck exactly like in your first screenshot. Haven't waited long enough for it to reach "MineOS-node started" yet.

I'm actually looking for an alternative to MineOS, as it also no longer has PaperMC profiles built-in anyway.

 

I had previously used the MineOS docker from Clowrym and only switched to binhex's when i was having some instability and performance issues with Clowrym 's and realized it had not been updated in almost 2 years.

 

since i posted that on the 17th of last month i have switched back to Clowrym's MineOS docker and have had no issues with it whatsoever (other than some shenanigans getting my minecraft servers transferred). I honestly was not able to figure out why it was taking so long to start and why it would suddenly lose the ability to have a webui.

also being able to download PaperMC directly from MineOS again is nice

Edited by CmdrKeen
Link to comment
On 6/27/2022 at 3:47 PM, Paz said:
2022-06-27 18:41:45.839973 [info] Host is running unRAID
2022-06-27 18:41:45.856789 [info] System information Linux 95ec76292e68 5.15.46-Unraid #1 SMP Fri Jun 10 11:08:41 PDT 2022 x86_64 GNU/Linux
2022-06-27 18:41:45.877158 [info] OS_ARCH defined as 'x86-64'
2022-06-27 18:41:45.897022 [info] PUID defined as '0'
2022-06-27 18:41:45.921104 [info] PGID defined as '0'
2022-06-27 18:41:45.956221 [info] UMASK defined as '0000'
2022-06-27 18:41:45.975433 [info] Permissions already set for '/config'
2022-06-27 18:41:46.000004 [info] Deleting files in /tmp (non recursive)...
2022-06-27 18:41:46.021029 [info] WEBUI_PASSWORD defined as 'XXXXXXXXXXXX'
2022-06-27 18:41:46.074090 [info] JAVA_VERSION defined as 'latest'
2022-06-27 18:41:46.099727 [info] Starting Supervisor...
2022-06-27 18:41:46,284 INFO Included extra file "/etc/supervisor/conf.d/mineos-node.conf" during parsing
2022-06-27 18:41:46,284 INFO Set uid to user 0 succeeded
2022-06-27 18:41:46,287 INFO supervisord started with pid 7
2022-06-27 18:41:47,289 INFO spawned: 'shutdown-script' with pid 79
2022-06-27 18:41:47,290 INFO spawned: 'start-script' with pid 80
2022-06-27 18:41:47,290 INFO reaped unknown pid 8 (exit status 0)
2022-06-27 18:41:48,291 INFO success: shutdown-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)

Hi I've an issue with the umask setting.

I've tried to set umask to 0000 or 000 but in both cases the files in the folder /config/mineos/games/servers/[NAMESERVER]/plugins/Skript those file permissions are not set to chmod 777 as they should be.

total 52
-rw-rw-r--  1 root root 19566 Jun 27 20:14 config.sk
-rw-rw-r--  1 root root  1640 Jun 27 20:14 features.sk
drwxrwxr-x+ 1 root root    68 Jun 27 20:14 lang/
-rw-rw-r--  1 root root 22420 Jun 27 20:14 materials.json
drwxrwxr-x+ 1 root root   668 Jun 27 20:14 scripts/
-rw-rw-r--  1 root root   100 Jun 27 20:14 variables.csv

I need the file to be editable by everyone because I've mounted the path /config/mineos/games/ in a folder in unraid. Than I've shared the folder with SMB but nobody can modify those files.

Any suggestion?

 

the files in question which you listed in your second quote bubble are not set to allow global modifying, so if the user modifying them is not the owner or of the same group, they cannot. if you were to chmod that directory recursively with 777 it would allow global write permissions. ( from the console for the docker: chmod +R 777 /config/mineos/games/servers/[NAMESERVER]/plugins/Skript )

 

this is not a permanent fix...the closest thing i was able to find personally was to separate mineos files to their own share in unraid, and modify unraid's samba config for that new share to add "force user = root", "force group = root", and "create mask = 777" to /etc/samba/smb-shares.conf, then restart samba. this makes every new file you add automatically be owned by root and have full permissions. obviously this is not perfect and not advised, however it was the only thing that worked relatively well for me. additionally, these changes would go away every time the unraid server restarts as the smb-share.conf file i edited gets reset every boot.

  • Thanks 1
Link to comment
  • 2 weeks later...
  • 1 month later...
On 6/1/2020 at 4:39 AM, binhex said:

this is due to the requirement to run this as root, thus any files/folders created are owned by user root, group root. 

if you want to allow other users to access it then you will have to chmod /config recursively, e.g.:-

 

chmod -R 777 /mnt/cache/appdata/binhex-mineos-node

this will then permit other users read and write to all files/folders for this container. obviously if mineos-node creates any additional files then you would need to chmod those as well, i know this is a pain but there is no way around it (ive tried!).

 

edit - decided to include the chmod on startup and also some magic incantations to set rwx on newly created directories, so this should cover most cases, look out for new image soon.

 

Hi there. I have a question in regards to this post. I'm trying to help my son setup a Minecraft Server. I've setup a MineOS easily for him. But now that he's getting in to advanced things I don't know what to do.

 

1) I've been trying to figure out how to share "/mnt/user/appdata/binhex-mineos-node/mineos/games" to his username so he can take care of his imports, mods and backups and such. I've read the samba tweaks but I don't understand the settings noted in these other posts. Is there a write-up or tutorial for doing this?

 

2) He wants to use a Fabric mod. Again, is there any write-up on how to do this?

 

Right now he's been using a Windows10 VM for his Fabric server but that whole thing is resource heavy and I would really like to get him back to this docker.

 

Thanks in advance

 

Vin

Link to comment
  • 2 weeks later...

Ok, so I figured it all out so I'll answer my own question here in case someone stumbles on this if they have the same questions...

 

1) so to share the MineOS directory I had to do the following

- shutdown the Array

- So to Settings >  then select SMB (windows Icon)

- under the SMB Extras (middle section) I added the following at the bottom

 

[MineOSServer]
path = /mnt/user/appdata/binhex-mineos-node/mineos
comment = 
browseable = yes
valid users = username
write list = username
vfs objects =

 

- MineOSServer = Share name

- The path there was the path for me. you'll have to confirm if you installed it in the same location.

- You can only have 1 user listed from what I can tell. I tried user1/user2 and then I tried replacing the seperator with ", | : ;" and nothing worked.

 

But everything is accessible from my sons Windows 10 PC.

----------------------------------------------------

 

2) For creating a Fabric modded server. There was no way to manually create this type of server. But we were able to import one.

 

Now that we have access to the share from his PC, we archived the server from the Win10 VM that we were using, took the .tar archive and moved it to the "/mnt/user/appdata/binhex-mineos-node/mineos/games/import" [this is my import folder, yours may be different] then from there we were able to restore the server in the MineOS GUI.

 

We also had to add a profile for Fabric. Again we couldn't select one. so we downloaded the Server .jar file and we added it to this path "/mnt/user/appdata/binhex-mineos-node/mineos/games/profiles/Fabric_1.19.2_014.9" we created that Fabric folder in there.

 

Once we had that in that there we could start the server and it worked.

 

----------------------------------------------------

Lets talk optimizations...

 

Our map and mods list is a extensive.. I have a lot of RAM in our server so I'm assigning is 12288MB (12GB) for both -XMX and -XMS

 

in the first additional Java Arguments box I have:

 

I don't recall right now why I used -XMN and MaxGCPause Millies are but I had a reason...

 

Now the ParallelGCThreads=x is used to assign number of Threads to the Server. I have 24 threads so I assigned 12threads.. the ConGCThreads needs to be your core count DIVIDED by 4. so as I used 12 cores, I assigned 3 here...

-Xmn1024m -XX:MaxGCPauseMillis=200 -XX:ParallelGCThreads=12 -XX:ConcGCThreads=3

 

in the first additional Java Arguments box I have:

nogui

 

----------------------------------------------------

 

Scheduling... So we wanted to run restores every hour and Archives once a day. for this we used the Scheduling tab. This Unraid MineOS uses CRON. overall pretty simple..

 

for the timing I used this CRON timing generator to get the correct timing key: https://crontab-generator.org/

 

just enter an "x" in the "Command to execute" field, select your time from the bullets and click generate...

 

you only need the timing section.. Ignore ">/dev/null" and everything after that.

 

I just selected the time I wanted to run a restore point " 0 * * * * " for every hour, select "Create a Restore Point" then submit.

 

Don't forget to Start it with the Green button.

 

Then I did the same thing for "Save-all and create archive: and this one is at 5:01am " 1 5 * * * "

 

I also did a "restart" at 6am...

 

I'm currently working on Pruning and deleting Restore points and Archives. I think I have everything but I want to let the server run a few days before I test these things out and report.

 

Hopes this helps someone

 

Vin

 

 

 

 

Edited by Vinster411
  • Thanks 1
Link to comment
  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.