Hot Mess of God Knows What
Ok. I have been using MineOS Turnkey for quite a number of years now. I forget how long ago it was that I made this Server/World that ill be discussing in this post.
** When I first started using the MC Server, I must have misread or not understood that I wasn’t supposed to use the root login in the web-UI. So all the servers I have ever made have been under the root user. **
I’m not sure if all this backstory is going to be helpful but I think if I explain it all it may give some context as how deep in the pile of (ahem) I actually am.
Skip to [Actual Problem] to skip ahead
[Long Story Long]
I started on this World (hereafter I will call “Server Two” as that was its’ name) years ago and I expected the build to take me very long to complete. I started Server Two mainly using the vanilla /fill command to start building and eventually upgraded to using World Edit. I’m pretty sure I used the Spigot function through the GUI (profile loader) to get it working at the time. I think I installed some other plugins for grief protection but they didn’t really matter as I was building on Server Two alone.
Later on, a couple years ago, I decided to re-install the OS on the same machine, now having more RAM added. All the file transfers worked fine (typically through Filezilla).
I played on other Worlds but Server Two was a long term project and I decided to start working on it again. With the fresh install I did update the actual world creation from 1.12.0 to 1.16.1 and it seemed to work fine… Server Two is a very thin Flatworld (3 dirt, bedrock, void) so I had maximum building space to build limit. Through all of this the system had a few hiccups but I dug deeper and found the update and reset scripts so I started using those every so often. The actual Host machine is Local in another room and has a set Dedicated IP. At this point I quit using Plugins and went back to a Vanilla server setup.
At some point I learned about the mc acct and that I shouldn’t have used the root acct. I reset the password for mc and then copied over some server files to the new acct but it wouldn’t work properly (obvious now… but I was dumb). I continued using the root acct as that’s the only way it worked.
The Other day (Nov 10th '22) I went into the server file and changed a couple things to get it ready for a couple friends to login and check out the build / help. I didn’t mess with anything important (a couple fields in server.properties, player limit, whitelist, and World Name) but when I restarted Server Two it went through a whole new world Generation Cycle and it was a new Flat-land world. I had plenty of backups and double backups on a External HDD. I went to restore one of the restore points and I mis-clicked and hit the “Prune Older” Button next to the most recent restore point (after the new map generation).
One thing I changed was the server name from Server Two to Big Build Energy. I think this is what messed something up. Ill keep calling it Server Two just for clarity.
I panicked for a second but remembered my old copy (a few months ago). I got into the files and put the old Server Two file into the system and it loaded perfectly, albeit with a couple things missing from the build (not a major loss).
I sufficed that it would have to do and I went to bed somewhat relieved that I didn’t lose everything.
The next day I checked again and found a perfect archive in the server files and I downloaded it to my local machine then renamed it and pushed it into the live server file. It Worked! The whole build was still there and I made sure to make complete copies of this “Fresh” version of Server Two as my Main Backup point from here forward (hopefully).
That’s when I started to notice something was weird. For some reason after Server Two was successfully recovered from the archive folder (/var/games/minecraft/archive/ServerTwo) The automatic Restore Points via the Crontab scheduling was not working. Pushing make new restore point manually in the WebUI would say it failed. I could still type /save-all in the command prompt in-game and in the WebUI latest.log console, and it replied that it saved properly. There were blank spaces in the scheduling section of the WebUI, and the other tasks such as reboot warnings and the reboot itself would fail to work properly. Server Two would shutdown but not restart by itself. A couple times I restarted the Host Machine just to try and “Turn it off and on again”.
Now after this happened I had another bright idea… I knew which files in Server Two were the actual world map files and the data about them. So I created a new Flatworld Server and got it running and generated. (Same jar 1.16.1 as Server Two, same general properties mobs spawn false, generate structures false, creative, peaceful etc.) I accepted the EULA after first boot up and it generated properly. I then stopped the new world and went into the files to delete the new ones and add the world/maps from Server Two. When I restarted the newly created world everything was there and functional again. I made a whole new Crontab scheduling and waited around a couple hours to make sure the restore point was working properly. It was… but at that point, in the WebUI latest.log screen was showing just a couple lines about accepting eula and see eula.txt for more info. I could still send commands via the “console” and they still worked properly on the live server but no new logs were being generated / saved as usual between server boot ups.
I continued playing / building today… marking out some boundaries… and then the server crashed and gave me an “Internal Exception: java.lang.StackOverflowError”. Now I can login but the server will crash after a few seconds, (same error). This is when I realized that no logs were being saved, I went into new ServerTwo and the the only file was latest.log with the same few lines about eula.
I looked around these forums a bit and found Hex mention the mineos.log file. I found it and its quite long… Nov 10th 2022 is about 3300 lines into the file.
[What I’d Like]
- Make it stop crashing
- Get the console to function again to make logs and read chat live
- Re-do my scheduling to make sure it saves every 30m-1h reboots 1/day
I’d really like to Re-install the whole OS again onto the same machine and re-setup the server so mc is the main acct used and root is never touched. I fear though that since i’ve copied and moved and messed with this world file so hard and so much that if I try to copy it over again it wont have the correct permissions or something will go wrong (again).
I hope the Minecraft Gods or the Elders can perform a miracle here because i’m at my wits end with what to do next. This build is a massive one and having to start from scratch might just make me give up on it.
PS [Welcome to the club]
I just joined the forum officially and I kept looking through similar problems to what i’m dealing with.
These are those Threads:
– suggested fix → chown folders for mc mc
– I learn about mineos.log (very long file)
– Learning more about NOT using Root
– More about using mc instead of Root
– Great Thread in General since I’m new
I’m going to re-read them tonight but I’m not sure if I should start poking around since no new logs are generating and I might miss / lose an error that will help.
Any advice would be immensely helpful. I’m pretty confident working with the root acct (since i’ve been using it this whole time) so i’m not scared of changing permissions or ownership, i’d just like to be cautious and see what someone suggests before I keep going on my own blindly.