A funny thing happened on the way to my MineOS WebUI

up and down, i can get it back up.

By jove I think you found it! The underscore! I missed it. It is constant through all wheezy java7 and java8 and jessie java8 servers. For whatever reason java8 is not handling it well as I can confrirm:

Doesn’t exist. /var/games/minecraft/servers/CandCsChallenge/logs/latest.log

Exists. /var/games/minecraft/servers/CandCs_Challenge/logs/latest.log

I have work now but after work I am getting right on this and will let you know. I can tell you that I do think you have solved this issue.

Thanks again :wink:

tNt

UPDATE:

I did not start test with 1.9.2 but will shortly and may have questions regarding what forge jar to try.

I began by backing up everything of course, then deleting the server. Imported new server without and underscore in the server name.

Joy, things worked. Until they didn’t. mineos.log showed the ‘level-name’ could not be read. Smacks self in the forehead

Remove the underscore from the ‘level-name’ on the server and in the server.properties file.

Joy, things worked again, I just knew this was it. Then it wasn’t. Inspect mineos.log again, need help here:

{"level":"info","message":"[CandCsChallenge] Discovered server","timestamp":"2016-04-15T14:22:13.496Z"}
{"level":"info","message":"[CandCsChallenge] Created tail on logs/latest.log","timestamp":"2016-04-15T14:22:13.555Z"}
{"level":"error","message":"[CandCsChallenge] Create tail on server.log failed","timestamp":"2016-04-15T14:22:13.557Z"}
{"level":"info","message":"[CandCsChallenge] Watching for file generation: server.log","timestamp":"2016-04-15T14:22:13.557Z"}
{"level":"error","message":"[CandCsChallenge] Create tail on proxy.log.0 failed","timestamp":"2016-04-15T14:22:13.561Z"}
{"level":"info","message":"[CandCsChallenge] Watching for file generation: proxy.log.0","timestamp":"2016-04-15T14:22:13.562Z"}
{"level":"info","message":"[WEBUI] New file found in import directory /var/games/minecraft/import/server-CandC'sChallenge.2016-04-13.18.28.09.tgz","timestamp":"2016-04-15T14:22:14.139Z"}
{"level":"info","message":"[WEBUI] New file found in import directory /var/games/minecraft/import/server-CandC's_Challenge_2016-04-10_15_51_36.tgz","timestamp":"2016-04-15T14:22:14.141Z"}
{"level":"info","message":"[WEBUI] New file found in import directory /var/games/minecraft/import/server-CandC's_Challenge_2016-04-13_18_28_09.tgz","timestamp":"2016-04-15T14:22:14.141Z"}
{"level":"info","message":"Starting up server, using commit: bcb4bd5 Merge pull request #182 from hexparrot/assorted_fixes\n","timestamp":"2016-04-15T14:22:15.009Z"}
{"level":"info","message":"[CandCsChallenge] eula.txt detected: ACCEPTED (eula=true)","timestamp":"2016-04-15T07:22:16.822Z"}
{"level":"info","message":"[CandCsChallenge] autostart = false","timestamp":"2016-04-15T00:22:21.649Z"}
{"level":"error","message":"[CandCsChallenge] Aborted server startup; condition not met: true","timestamp":"2016-04-15T00:22:21.650Z"}
{"level":"info","message":"[WEBUI] mc connected from 192.168.1.7","timestamp":"2016-04-15T00:50:44.499Z"}
{"level":"info","message":"[WEBUI] Downloading official profiles.","timestamp":"2016-04-15T00:50:44.848Z"}
{"level":"info","message":"[CandCsChallenge] mc (192.168.1.7) joined server namespace","timestamp":"2016-04-15T00:50:45.168Z"}
{"level":"info","message":"[CandCsChallenge] transmittting existing file contents: logs/latest.log (1121 bytes)","timestamp":"2016-04-15T00:50:45.795Z"}
{"level":"info","message":"[CandCsChallenge] 192.168.1.7 issued command : \"modify_sc\"","timestamp":"2016-04-15T00:51:14.129Z"}
{"level":"info","message":"[CandCsChallenge] received request \"modify_sc\"","timestamp":"2016-04-15T00:51:14.150Z"}
{"level":"info","message":"[CandCsChallenge] 192.168.1.7 issued command : \"start\"","timestamp":"2016-04-15T00:51:17.063Z"}
{"level":"info","message":"[CandCsChallenge] received request \"start\"","timestamp":"2016-04-15T00:51:17.064Z"}
{"date":"Fri Apr 15 2016 00:54:28 GMT+0000 (UTC)","process":{"pid":1072,"uid":0,"gid":0,"cwd":"/usr/games/minecraft","execPath":"/usr/bin/nodejs","version":"v4.4.2","argv":["/usr/bin/nodejs","/usr/games/minecraft/webui.js"],"memoryUsage":{"rss":131190784,"heapTotal":69306464,"heapUsed":57210696}},"os":{"loadavg":[0.37841796875,0.42626953125,0.21923828125],"uptime":1947},"trace":[{"column":7,"file":"/usr/games/minecraft/node_modules/fireworm/lib/file.js","function":null,"line":45,"method":null,"native":false},{"column":15,"file":"fs.js","function":"FSReqWrap.oncomplete","line":82,"method":"oncomplete","native":false}],"stack":["AssertionError: File should always be initialied with stat","    at /usr/games/minecraft/node_modules/fireworm/lib/file.js:45:7","    at FSReqWrap.oncomplete (fs.js:82:15)"],"level":"error","message":"uncaughtException: File should always be initialied with stat","timestamp":"2016-04-15T00:54:28.641Z"}
{"date":"Fri Apr 15 2016 00:54:28 GMT+0000 (UTC)","process":{"pid":1072,"uid":0,"gid":0,"cwd":"/usr/games/minecraft","execPath":"/usr/bin/nodejs","version":"v4.4.2","argv":["/usr/bin/nodejs","/usr/games/minecraft/webui.js"],"memoryUsage":{"rss":131420160,"heapTotal":69306464,"heapUsed":57373720}},"os":{"loadavg":[0.37841796875,0.42626953125,0.21923828125],"uptime":1947},"trace":[{"column":7,"file":"/usr/games/minecraft/node_modules/fireworm/lib/file.js","function":null,"line":45,"method":null,"native":false},{"column":15,"file":"fs.js","function":"FSReqWrap.oncomplete","line":82,"method":"oncomplete","native":false}],"stack":["AssertionError: File should always be initialied with stat","    at /usr/games/minecraft/node_modules/fireworm/lib/file.js:45:7","    at FSReqWrap.oncomplete (fs.js:82:15)"],"level":"error","message":"uncaughtException: File should always be initialied with stat","timestamp":"2016-04-15T00:54:28.645Z"}
{"date":"Fri Apr 15 2016 00:54:28 GMT+0000 (UTC)","process":{"pid":1072,"uid":0,"gid":0,"cwd":"/usr/games/minecraft","execPath":"/usr/bin/nodejs","version":"v4.4.2","argv":["/usr/bin/nodejs","/usr/games/minecraft/webui.js"],"memoryUsage":{"rss":131420160,"heapTotal":69306464,"heapUsed":57454976}},"os":{"loadavg":[0.37841796875,0.42626953125,0.21923828125],"uptime":1947},"trace":[{"column":7,"file":"/usr/games/minecraft/node_modules/fireworm/lib/file.js","function":null,"line":45,"method":null,"native":false},{"column":15,"file":"fs.js","function":"FSReqWrap.oncomplete","line":82,"method":"oncomplete","native":false}],"stack":["AssertionError: File should always be initialied with stat","    at /usr/games/minecraft/node_modules/fireworm/lib/file.js:45:7","    at FSReqWrap.oncomplete (fs.js:82:15)"],"level":"error","message":"uncaughtException: File should always be initialied with stat","timestamp":"2016-04-15T00:54:28.653Z"}

Regards,

tNt

Note the underscore in path above. Could this affect it? I did not see any underscore in the ‘file.js’ itself.

Thanks.

No. When we had the underscore error, we got a file not found error. We have another error message this time:

uncaughtException: File should always be initialied with stat

Hmm…

I am prepared for this test.

Honestly, this problem has plagued mineos-node for some time now, but it persists because I’ve never been able to–ever–reproduce it.

One problem with the nodejs approach of asynchronous everything is that it is unclear from the error tracebacks where the issue is originating from. I have ideas, obviously, knowing it has to follow uses of fw–which only exist in a few places, but without ever having had hands-on ability to tool around, this constantly evades me.

There are a few things we can do that could help address this, choose one according to your comfort level:

  1. I can (mostly blindly) try to correct the code in an experimental branch around the areas that involve fw. It’ll probably suppress errors, but won’t correct. Can you clarify what is happening now in the most current issue? Is the webui crashing and restarting? I can’t tell from the snippet of the mineos.log
  2. You can transmit to me a copy of your /var/games/minecraft. Something about the setup there is directing MineOS to look for a file or listen for file creation or something that fireworm doesn’t like. Of course, your worlds could be very large, but I also don’t need that. I pretty much just need a good cross-section of your directories up to the /servername/logs. Or in other words, all files except /world and /[level-name]–the bulk of the HDD users.
  3. You can let me tool around on the system itself. I’d need root, but I’d say it’s the best chance at pin-pointing the issue. Don’t feel bad if you don’t want to share this and try out this route, #2 is just as good.

Hi hexparrot,

I’ve been reading and testing the whole time after work today.

This is clearly not your issue. IMHO.

Everything worked fine under the last wheezy with java 7 and I am reverting to that distro now for both FTB Infinity 1.10.1 and CandCs_Challenge.

It was the shiny brand new jessie with java 8 and I started drooling.

Importing and running an archive created on the old format was clearly incompatible. It could not handle the ‘Underscore’ in the server name. Once corrected I got the ‘fireworm’ issue that can not be surmounted as it seems to be a forge and mod issue.

This is confirmed when I noticed the very same issues cropping up after I had upgraded my stable wheezy servers to java 8.

I am now moving everything back to java 7 wheezy and forge 1.7.10. I will report on the outcome.

Thanks for your kind attention,

tNt

Sorry hexparrot,

Manners.

  1. I will try to help but do not work blind, (no idea what fw-- is).What is happening to MineOS is I can log in for a limited time, If I linger to long, nothing works anymore. I have to hard reboot the virtual machine, that brings the differing hardware issues for different users. Anyway as I moved along past the undercore issue and started getting the fireworm issue mineos would freeze as soon as I started a server.

Where you see 3 instances in the log of the same fireworm freeze repeating itself is actually 3 different hard reboots of the VM. Each time it froze the log entry was tailed in. Restart, log in via http, start server, freeze, (entry into log), repeat.

If I did not start the server, no freeze up. I call it a freeze and not a crash because I can still navigate, no functions tho and I can logout. To me a crash is I get thrown out of the mineos interface.

  1. I deleted the actual servers but the archives I have. Any attempt to run the archive generates the problems so I can provide that. My feeling is it may just be the combination of my setup, hardware, software, virtual machines etc. that would be very difficult to recreate (original post) and my archive may work just fine on another’s set up, dunno.

That is supposed to be a ‘2’ above, lol.

  1. Three, That would be fine except I need to get my head around port fwd. Not there as yet, sorry. Soon perhaps. Love what you have done for us (my family).

Very Best Regards,

tNt

Another thing itching the back of my mind, yet to be looked at is my server (the Dell) my have java 7 buried in it and needs upgraded to java 8. it is an issue I need to eliminate.

Is there a particular file host I could upload my archive to?

Thanks.

WOW, how wrong can I be?

Imported archive to wheezy java7 started server and same result:

uncaughtException: File should always be initialized with stat

and

:"/usr/games/minecraft/node_modules/fireworm/lib/file.js"

this was a new server with a import server archive that must be the cause.

Feeling low.

tNt

@tNt:
You are running a VM. Ho large is the VM? Do you have any way to export it and make it available for @hexparrot (and possibly me, to se if I can tinker around the bug for you)? This would mean giving out password to mc (or you “normal” login" and root, so please use PM to give link and passwords if you need.

(A tutorial for how to export a VM here: http://www.fucking-it.com/articles/vmware/292-vmware-esxi-6-export-virtual-machine, you still ned somewhere to place it so it can be downloaded though)

Giving @hexparrot a copy of the VM would actually mean he has a working version with the bug active that are plaguing him. By exporting it first by using the method above means it can be imported again both by VMware and VMbox virtual managers. I use VMbox, and I do seem to remember @hexparrot mentioning using it as well.

Hi iMelsom,

I will be working on this all weekend, needless to say I need to get a stable server up for the girls ASAP. Then testing.

I have been using 70gb per server but I can shrink that down to a manageable size for u/l.

I think I can recreat this error anytime so will build a custom server with the errors including the ‘underscore’ error. So no problem with getting you guys a live version to play with.

All I need is time :wink: Is there a free u/l host you would prefer it u/l to? (Not alot of u/l experience.)

Thanks again,

tNt

EDIT: I have CandCsChallenge and FTBInfinity both up, running and stable on wheezy w/ java8, the WebUI is not freezing. I note the commit went from bcb4bd5 to 2d22dc1 and do not know if this is the reason. Changes I made were to remove underscores and I think the biggest was to use the default name “world” instead of what I was using. I believe this is what was causing the ‘fireworm’ issue, something was wanting to write a save to world and it wasn’t there. More testing to come with Jessie.

Odd that I am seeing a “Player Interaction” page in CandC but not in FTB WebUI. CandC was built by scratch and FTB was imported from archive.

EDIT 2: An existing server with comit bcb4bd5 would not last a few seconds after creating a server. Update to 2d22dc1 and alot of problems vanished. However I still think the ‘underscore’ and not using the ‘world’ name also created some issues.

FTBInfinity and CandCsChallenge are both up and running on Jessie.

That’s right all 4 servers, 2ea wheezy java8 and 2ea jessie all up and stable at the same time. Outrageous!

Seems Issues are solved but I will still u/l archives and live VM servers with issues soon.

1 Like

player interaction needs “allow query = true” in the server.properties file to work.

When you strip out the actual world content–that is, the files in the directories /world/ plus the directories that are also created because of your level-name, plus the files within /backup/[server-name/ and /archive/server-name, the file at the end should be on the order a few dozen megabytes at most.

What I want with /var/games/minecraft isn’t the actual content (which isn’t at all likely the problem), but instead a clear picture of the directories that exist (hence the server mineos thinks exists) and the operable files for the server.

So in this example, you’d keep:

/var/games/minecraft/backup/myserver
/var/games/minecraft/archive/myserver
/var/games/minecraft/servers/myserver/logs
/var/games/minecraft/servers/myserver/logs/latest.log
/var/games/minecraft/servers/myserver/plugins
/var/games/minecraft/servers/myserver/server.properties

but you’d remove:

/var/games/minecraft/backup/myserver/[somefile]
/var/games/minecraft/backup/myserver/[somefile]
/var/games/minecraft/archive/myserver/[somefile.tar.gz]
/var/games/minecraft/servers/myservers/world/[allthese files]
/var/games/minecraft/servers/myservers/someotherworldnamethathasworldfiles

This isn’t an exhaustive list, but the general idea is I want your general directory structure, and relevant files to start the server, but pretty much no generated content of backups/archives.

1 Like

I am split .rar the 2.7gb OVA, it is a new VM w/ imported archive old MineOS commit. Tested and freezes in 10-15 minutes. Still need to u/l someplace.

I intend to do this and u/l as well, taking longer than I expected. Sorry.

Dropbox? (http:www.dropbox.com)
Onedrive? (https://onedrive.live.com)

Can I assume to remove the mods? Of course I can leave the mods if required.

Or might just end up u/l one with and one without mods and let you guys decide what to d/l.

I am working on it right now.

EDIT: Laptop crashed during u/l, starting all over.

First file, no mods per hexparrot, will EDIT with 4 more, anyone can play: https://fono.jp/uploader/download/825

File2, w/ mods per hexparrot. these are just server files of not much use to most but feel free to play. The 3 OVA files soon.

https://fono.jp/uploader/download/826

File3-4-5 Git a clue, git a grip or git out of the way. My standard server settings:

VM: Version 11
OS: Linux8, 64bit
CPU: Virtual Socket 2, Cores Per Socket 1, Total Number of Cores: 2 (Should be 1 for Minecraft.)
Memory: 5gb
NICs: 2each
SCSI Controller: VMware Paravirtual
Disk: Thin Provisioned
Virtual Device Node: SCSI (0:0)
Data Store ISO: mineos-node-jessie-x64.iso
MineOS Login & PW: ‘mc’ or ‘root’ at console - ‘Test4iMelsom’ without the ‘’
MineOS Commit:0e45bet (do not update or you can not replicate).

As above, the ‘Underscore’ is an issue. remove that issue and (fireworm) becomes an issue.

You guys are smarter than me but I can say my current commit has settled a lot of issues. Thanks.

Part 1: https://fono.jp/uploader/download/827
Part 2: https://fono.jp/uploader/download/828
Part 3: https://fono.jp/uploader/download/829