hexparrot/mineos-node

webui gets unresponsive after download of a paper server

Closed this issue · 1 comments

The webui gets unresponsive after I downloading a paper server. (refreshing browser window doesn't help).

from /var/log/mineos.log
(I guess the third entry is some sort of error message)

{"profile":{"id":"Paper-1.16.5-latest","time":null,"releaseTime":null,"type":"release","group":"papermc","webui_desc":"Latest Paper build for 1.16.5","weight":0,"downloaded":true,"filename":"paperclip.jar","version":"1.16.5","url":"https://papermc.io/api/v1/paper/1.16.5/latest/download","release_version":"1.16.5","$$hashKey":"object:619"},"command":"download","level":"info","message":"[WEBUI] Received emit command from HIDDEN","timestamp":"2021-03-11T19:55:53.265Z"}
{"level":"info","message":"[WEBUI] Successfully downloaded https://papermc.io/api/v1/paper/1.16.5/latest/download to /var/games/minecraft/profiles/Paper-1.16.5-latest/paperclip.jar","timestamp":"2021-03-11T19:55:56.296Z"}
{"date":"Thu Mar 11 2021 20:55:56 GMT+0100 (Central European Standard Time)","process":{"pid":3792,"uid":0,"gid":0,"cwd":"/","execPath":"/usr/local/bin/node","version":"v15.9.0","argv":["/usr/local/bin/node","/usr/local/games/minecraft/webui.js","start"],"memoryUsage":{"rss":113524736,"heapTotal":25288704,"heapUsed":21330768,"external":11021078,"arrayBuffers":9982644}},"os":{"loadavg":[0.201171875,0.189453125,0.166015625],"uptime":299090},"trace":[{"column":38,"file":"/usr/local/games/minecraft/server.js","function":null,"line":420,"method":null,"native":false},{"column":13,"file":"/usr/local/games/minecraft/node_modules/async/lib/async.js","function":null,"line":718,"method":null,"native":false},{"column":13,"file":"/usr/local/games/minecraft/node_modules/async/lib/async.js","function":"Immediate.iterate","line":262,"method":"iterate","native":false},{"column":21,"file":"node:internal/timers","function":"processImmediate","line":464,"method":null,"native":false}],"stack":["TypeError: Cannot use 'in' operator to search for 'postdownload' in undefined","    at /usr/local/games/minecraft/server.js:420:38","    at /usr/local/games/minecraft/node_modules/async/lib/async.js:718:13","    at Immediate.iterate (/usr/local/games/minecraft/node_modules/async/lib/async.js:262:13)","    at processImmediate (node:internal/timers:464:21)"],"level":"error","message":"uncaughtException: Cannot use 'in' operator to search for 'postdownload' in undefined","timestamp":"2021-03-11T19:55:56.298Z"}

I fixed this one today! 3299c34