[SOLVED] Web-UI will not allow creation of servers and Web-UI looks broken

#1

I installed mineos on top of Ubuntu. I used the script provided at http://minecraft.codeemo.com/mineoswiki/index.php?title=MineOS-node_(apt-get)

The page allows me to login. I then click “create_new_server” The pages loads, and when I click “” The page loads to the main mineos screen, and shows no new servers created. After failing to create a server, the page appears to crash. Reloading the page gets “ERR_CONNECTION_REFUSED”

And what I mean by the page looking broken: The tab for the page says “WEBSITE_TITLE” Actually, Just look at the image below.

http://imgur.com/yE8zrYr

Can't create servers / No Profiles downloaded - Arch
Web-UI not letting me create servers
#2

Yeah something is definitely broken there. You shouldn’t see all that TEMPLATE_NAMING_CONVENTION, and in the top right should be the validated user that it logged in as.

Can you tell me more about your target system–Ubuntu…14? 15? etc.

Did you run into any errors during the course of the script (even though you used the convenience script, did you notice any warnings, errors?)

Can you share with me the contents of /var/log/mineos.log?

#3

Ubuntu 14.04.3 LTS

The first time I ran the script I got errors saying it couldn’t download some archives. I then ran the script again with no errors.

Here is the log you asked for:

    {"level":"info","message":"Starting up server, using commit: 9e33128 update readme to reflect FreeBSD changes\n","timestamp":"2015-12-19T08:02:50.404Z"}
{"date":"Sat Dec 19 2015 01:10:34 GMT-0700 (MST)","process":{"pid":11780,"uid":0,"gid":0,"cwd":"/","execPath":"/usr/bin/nodejs","version":"v5.3.0","argv":["/usr/bin/nodejs","/usr/games/minecraft/webui.js","start"],"memoryUsage":{"rss":49647616,"heapTotal":26062368,"heapUsed":17704056}},"os":{"loadavg":[0.05908203125,0.052734375,0.06201171875],"uptime":3287},"trace":[{"column":15,"file":"module.js","function":"Function.Module._resolveFilename","line":326,"method":"Module._resolveFilename","native":false},{"column":25,"file":"module.js","function":"Function.Module._load","line":277,"method":"Module._load","native":false},{"column":17,"file":"module.js","function":"Module.require","line":354,"method":"require","native":false},{"column":17,"file":"internal/module.js","function":"require","line":12,"method":null,"native":false},{"column":15,"file":"/usr/games/minecraft/node_modules/userid/lib/userid.js","function":"","line":2,"method":null,"native":false},{"column":26,"file":"module.js","function":"Module._compile","line":398,"method":"_compile","native":false},{"column":10,"file":"module.js","function":"Object.Module._extensions..js","line":405,"method":"Module._extensions..js","native":false},{"column":32,"file":"module.js","function":"Module.load","line":344,"method":"load","native":false},{"column":12,"file":"module.js","function":"Function.Module._load","line":301,"method":"Module._load","native":false},{"column":17,"file":"module.js","function":"Module.require","line":354,"method":"require","native":false}],"stack":["Error: Cannot find module '/usr/games/minecraft/node_modules/userid/build/Release/userid.node'","    at Function.Module._resolveFilename (module.js:326:15)","    at Function.Module._load (module.js:277:25)","    at Module.require (module.js:354:17)","    at require (internal/module.js:12:17)","    at Object.<anonymous> (/usr/games/minecraft/node_modules/userid/lib/userid.js:2:15)","    at Module._compile (module.js:398:26)","    at Object.Module._extensions..js (module.js:405:10)","    at Module.load (module.js:344:32)","    at Function.Module._load (module.js:301:12)","    at Module.require (module.js:354:17)"],"level":"error","message":"uncaughtException: Cannot find module '/usr/games/minecraft/node_modules/userid/build/Release/userid.node'","timestamp":"2015-12-19T08:10:34.173Z"}
{"level":"info","message":"Starting up server, using commit: 9e33128 update readme to reflect FreeBSD changes\n","timestamp":"2015-12-19T08:23:32.028Z"}
{"date":"Sat Dec 19 2015 01:24:29 GMT-0700 (MST)","process":{"pid":1311,"uid":0,"gid":0,"cwd":"/","execPath":"/usr/bin/nodejs","version":"v5.3.0","argv":["/usr/bin/nodejs","/usr/games/minecraft/webui.js","start"],"memoryUsage":{"rss":53587968,"heapTotal":23998496,"heapUsed":16768112}},"os":{"loadavg":[0.603515625,0.29345703125,0.111328125],"uptime":97},"trace":[{"column":15,"file":"module.js","function":"Function.Module._resolveFilename","line":326,"method":"Module._resolveFilename","native":false},{"column":25,"file":"module.js","function":"Function.Module._load","line":277,"method":"Module._load","native":false},{"column":17,"file":"module.js","function":"Module.require","line":354,"method":"require","native":false},{"column":17,"file":"internal/module.js","function":"require","line":12,"method":null,"native":false},{"column":15,"file":"/usr/games/minecraft/node_modules/userid/lib/userid.js","function":"","line":2,"method":null,"native":false},{"column":26,"file":"module.js","function":"Module._compile","line":398,"method":"_compile","native":false},{"column":10,"file":"module.js","function":"Object.Module._extensions..js","line":405,"method":"Module._extensions..js","native":false},{"column":32,"file":"module.js","function":"Module.load","line":344,"method":"load","native":false},{"column":12,"file":"module.js","function":"Function.Module._load","line":301,"method":"Module._load","native":false},{"column":17,"file":"module.js","function":"Module.require","line":354,"method":"require","native":false}],"stack":["Error: Cannot find module '/usr/games/minecraft/node_modules/userid/build/Release/userid.node'","    at Function.Module._resolveFilename (module.js:326:15)","    at Function.Module._load (module.js:277:25)","    at Module.require (module.js:354:17)","    at require (internal/module.js:12:17)","    at Object.<anonymous> (/usr/games/minecraft/node_modules/userid/lib/userid.js:2:15)","    at Module._compile (module.js:398:26)","    at Object.Module._extensions..js (module.js:405:10)","    at Module.load (module.js:344:32)","    at Function.Module._load (module.js:301:12)","    at Module.require (module.js:354:17)"],"level":"error","message":"uncaughtException: Cannot find module '/usr/games/minecraft/node_modules/userid/build/Release/userid.node'","timestamp":"2015-12-19T08:24:29.065Z"}
{"level":"info","message":"Starting up server, using commit: 9e33128 update readme to reflect FreeBSD changes\n","timestamp":"2015-12-19T08:47:09.763Z"}
{"date":"Sat Dec 19 2015 02:05:11 GMT-0700 (MST)","process":{"pid":1306,"uid":0,"gid":0,"cwd":"/","execPath":"/usr/bin/nodejs","version":"v5.3.0","argv":["/usr/bin/nodejs","/usr/games/minecraft/webui.js","start"],"memoryUsage":{"rss":43847680,"heapTotal":26062368,"heapUsed":16962600}},"os":{"loadavg":[0.0029296875,0.0146484375,0.04541015625],"uptime":1123},"trace":[{"column":15,"file":"module.js","function":"Function.Module._resolveFilename","line":326,"method":"Module._resolveFilename","native":false},{"column":25,"file":"module.js","function":"Function.Module._load","line":277,"method":"Module._load","native":false},{"column":17,"file":"module.js","function":"Module.require","line":354,"method":"require","native":false},{"column":17,"file":"internal/module.js","function":"require","line":12,"method":null,"native":false},{"column":15,"file":"/usr/games/minecraft/node_modules/userid/lib/userid.js","function":"","line":2,"method":null,"native":false},{"column":26,"file":"module.js","function":"Module._compile","line":398,"method":"_compile","native":false},{"column":10,"file":"module.js","function":"Object.Module._extensions..js","line":405,"method":"Module._extensions..js","native":false},{"column":32,"file":"module.js","function":"Module.load","line":344,"method":"load","native":false},{"column":12,"file":"module.js","function":"Function.Module._load","line":301,"method":"Module._load","native":false},{"column":17,"file":"module.js","function":"Module.require","line":354,"method":"require","native":false}],"stack":["Error: Cannot find module '/usr/games/minecraft/node_modules/userid/build/Release/userid.node'","    at Function.Module._resolveFilename (module.js:326:15)","    at Function.Module._load (module.js:277:25)","    at Module.require (module.js:354:17)","    at require (internal/module.js:12:17)","    at Object.<anonymous> (/usr/games/minecraft/node_modules/userid/lib/userid.js:2:15)","    at Module._compile (module.js:398:26)","    at Object.Module._extensions..js (module.js:405:10)","    at Module.load (module.js:344:32)","    at Function.Module._load (module.js:301:12)","    at Module.require (module.js:354:17)"],"level":"error","message":"uncaughtException: Cannot find module '/usr/games/minecraft/node_modules/userid/build/Release/userid.node'","timestamp":"2015-12-19T09:05:11.971Z"}
{"level":"info","message":"Starting up server, using commit: 9e33128 update readme to reflect FreeBSD changes\n","timestamp":"2015-12-19T09:23:09.564Z"}
{"date":"Sat Dec 19 2015 02:29:24 GMT-0700 (MST)","process":{"pid":1329,"uid":0,"gid":0,"cwd":"/","execPath":"/usr/bin/nodejs","version":"v5.3.0","argv":["/usr/bin/nodejs","/usr/games/minecraft/webui.js","start"],"memoryUsage":{"rss":52633600,"heapTotal":23998496,"heapUsed":17220096}},"os":{"loadavg":[0.02001953125,0.0986328125,0.0693359375],"uptime":417},"trace":[{"column":15,"file":"module.js","function":"Function.Module._resolveFilename","line":326,"method":"Module._resolveFilename","native":false},{"column":25,"file":"module.js","function":"Function.Module._load","line":277,"method":"Module._load","native":false},{"column":17,"file":"module.js","function":"Module.require","line":354,"method":"require","native":false},{"column":17,"file":"internal/module.js","function":"require","line":12,"method":null,"native":false},{"column":15,"file":"/usr/games/minecraft/node_modules/userid/lib/userid.js","function":"","line":2,"method":null,"native":false},{"column":26,"file":"module.js","function":"Module._compile","line":398,"method":"_compile","native":false},{"column":10,"file":"module.js","function":"Object.Module._extensions..js","line":405,"method":"Module._extensions..js","native":false},{"column":32,"file":"module.js","function":"Module.load","line":344,"method":"load","native":false},{"column":12,"file":"module.js","function":"Function.Module._load","line":301,"method":"Module._load","native":false},{"column":17,"file":"module.js","function":"Module.require","line":354,"method":"require","native":false}],"stack":["Error: Cannot find module '/usr/games/minecraft/node_modules/userid/build/Release/userid.node'","    at Function.Module._resolveFilename (module.js:326:15)","    at Function.Module._load (module.js:277:25)","    at Module.require (module.js:354:17)","    at require (internal/module.js:12:17)","    at Object.<anonymous> (/usr/games/minecraft/node_modules/userid/lib/userid.js:2:15)","    at Module._compile (module.js:398:26)","    at Object.Module._extensions..js (module.js:405:10)","    at Module.load (module.js:344:32)","    at Function.Module._load (module.js:301:12)","    at Module.require (module.js:354:17)"],"level":"error","message":"uncaughtException: Cannot find module '/usr/games/minecraft/node_modules/userid/build/Release/userid.node'","timestamp":"2015-12-19T09:29:24.405Z"}
{"level":"info","message":"Starting up server, using commit: 9e33128 update readme to reflect FreeBSD changes\n","timestamp":"2015-12-19T09:38:51.659Z"}
{"date":"Sun Dec 20 2015 16:57:13 GMT-0700 (MST)","process":{"pid":1321,"uid":0,"gid":0,"cwd":"/","execPath":"/usr/bin/nodejs","version":"v5.3.0","argv":["/usr/bin/nodejs","/usr/games/minecraft/webui.js","start"],"memoryUsage":{"rss":45600768,"heapTotal":25018400,"heapUsed":19510160}},"os":{"loadavg":[0.0029296875,0.0146484375,0.04541015625],"uptime":137942},"trace":[{"column":15,"file":"module.js","function":"Function.Module._resolveFilename","line":326,"method":"Module._resolveFilename","native":false},{"column":25,"file":"module.js","function":"Function.Module._load","line":277,"method":"Module._load","native":false},{"column":17,"file":"module.js","function":"Module.require","line":354,"method":"require","native":false},{"column":17,"file":"internal/module.js","function":"require","line":12,"method":null,"native":false},{"column":15,"file":"/usr/games/minecraft/node_modules/userid/lib/userid.js","function":"","line":2,"method":null,"native":false},{"column":26,"file":"module.js","function":"Module._compile","line":398,"method":"_compile","native":false},{"column":10,"file":"module.js","function":"Object.Module._extensions..js","line":405,"method":"Module._extensions..js","native":false},{"column":32,"file":"module.js","function":"Module.load","line":344,"method":"load","native":false},{"column":12,"file":"module.js","function":"Function.Module._load","line":301,"method":"Module._load","native":false},{"column":17,"file":"module.js","function":"Module.require","line":354,"method":"require","native":false}],"stack":["Error: Cannot find module '/usr/games/minecraft/node_modules/userid/build/Release/userid.node'","    at Function.Module._resolveFilename (module.js:326:15)","    at Function.Module._load (module.js:277:25)","    at Module.require (module.js:354:17)","    at require (internal/module.js:12:17)","    at Object.<anonymous> (/usr/games/minecraft/node_modules/userid/lib/userid.js:2:15)","    at Module._compile (module.js:398:26)","    at Object.Module._extensions..js (module.js:405:10)","    at Module.load (module.js:344:32)","    at Function.Module._load (module.js:301:12)","    at Module.require (module.js:354:17)"],"level":"error","message":"uncaughtException: Cannot find module '/usr/games/minecraft/node_modules/userid/build/Release/userid.node'","timestamp":"2015-12-20T23:57:13.219Z"}
{"level":"info","message":"Starting up server, using commit: 9e33128 update readme to reflect FreeBSD changes\n","timestamp":"2015-12-21T00:09:16.564Z"}
{"date":"Sun Dec 20 2015 17:13:27 GMT-0700 (MST)","process":{"pid":1307,"uid":0,"gid":0,"cwd":"/","execPath":"/usr/bin/nodejs","version":"v5.3.0","argv":["/usr/bin/nodejs","/usr/games/minecraft/webui.js","start"],"memoryUsage":{"rss":49958912,"heapTotal":23998496,"heapUsed":17064176}},"os":{"loadavg":[0.01806640625,0.12841796875,0.07568359375],"uptime":295},"trace":[{"column":15,"file":"module.js","function":"Function.Module._resolveFilename","line":326,"method":"Module._resolveFilename","native":false},{"column":25,"file":"module.js","function":"Function.Module._load","line":277,"method":"Module._load","native":false},{"column":17,"file":"module.js","function":"Module.require","line":354,"method":"require","native":false},{"column":17,"file":"internal/module.js","function":"require","line":12,"method":null,"native":false},{"column":15,"file":"/usr/games/minecraft/node_modules/userid/lib/userid.js","function":"","line":2,"method":null,"native":false},{"column":26,"file":"module.js","function":"Module._compile","line":398,"method":"_compile","native":false},{"column":10,"file":"module.js","function":"Object.Module._extensions..js","line":405,"method":"Module._extensions..js","native":false},{"column":32,"file":"module.js","function":"Module.load","line":344,"method":"load","native":false},{"column":12,"file":"module.js","function":"Function.Module._load","line":301,"method":"Module._load","native":false},{"column":17,"file":"module.js","function":"Module.require","line":354,"method":"require","native":false}],"stack":["Error: Cannot find module '/usr/games/minecraft/node_modules/userid/build/Release/userid.node'","    at Function.Module._resolveFilename (module.js:326:15)","    at Function.Module._load (module.js:277:25)","    at Module.require (module.js:354:17)","    at require (internal/module.js:12:17)","    at Object.<anonymous> (/usr/games/minecraft/node_modules/userid/lib/userid.js:2:15)","    at Module._compile (module.js:398:26)","    at Object.Module._extensions..js (module.js:405:10)","    at Module.load (module.js:344:32)","    at Function.Module._load (module.js:301:12)","    at Module.require (module.js:354:17)"],"level":"error","message":"uncaughtException: Cannot find module '/usr/games/minecraft/node_modules/userid/build/Release/userid.node'","timestamp":"2015-12-21T00:13:27.695Z"}
{"level":"info","message":"Starting up server, using commit: 9e33128 update readme to reflect FreeBSD changes\n","timestamp":"2015-12-21T10:14:48.571Z"}

Thank you very much for your help!

#4

Do the following commands and let me know the output: (as root)

cd /usr/games/minecraft
npm install userid

userid is the module the webui is not able to read, and this is the command to build that module.

#5
anon@anonymouscraft:/usr/games/minecraft$ sudo npm install userid
[sudo] password for anon:

> userid@0.2.0 install /usr/games/minecraft/node_modules/userid
> node-gyp rebuild

make: Entering directory `/usr/games/minecraft/node_modules/userid/build'
  CXX(target) Release/obj.target/userid/src/userid.o
  SOLINK_MODULE(target) Release/obj.target/userid.node
  COPY Release/userid.node
make: Leaving directory `/usr/games/minecraft/node_modules/userid/build'
mineos-node@1.1.1 /usr/games/minecraft
├─┬ posix@4.0.0
│ └── nan@2.0.9
└─┬ userid@0.2.0
  └── nan@2.1.0

So it looks like it installed properly. Rebooted the machine, and now the web-ui looks great. Thanks for your help!