WebUI service stops after login, can't update/reset scripts

Hi,

This morning I realized my WebUI had stopped and wasn’t able to access after some broken symlinks caused issues. I have since removed all symlinks and am trying to use the WebUI, but after I log in the service stops.

On top of that, I can’t update/reset the WebUI scripts due to some kind of depracation in the npm update command: https://paste.feed-the-beast.com/view/5b5caeec

I’m getting 5 errors and a warning, with failure to reset.

For reference, I’m on FreeBSD/TrueNAS jail

Here’s my output from mineos.log: https://paste.feed-the-beast.com/view/06d84ca8

gyp ERR! stack Error: `gmake` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (node:events:378:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
gyp ERR! System FreeBSD 12.2-RELEASE-p3
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/games/minecraft/node_modules/userid
gyp ERR! node -v v15.9.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! userid@0.3.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the userid@0.3.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

This error suggests that the userid module that MineOS uses did not compile correctly on your installation.

I haven’t ever built it against Node 15, so that may very well be a problem (but also may not). Nonetheless, we can look at this as a very compartmentalized issue:

userid isn’t compiling

  1. we can actually step away from Mineos fully if we wanted to: we could go into a random temporary directory on the host and type in npm install userid. If this continues to fail, it will also fail from MineOS update scripts, etc.

  2. if that means we need to downgrade node (e.g., node11) that could be a good possibility.

  3. if userid needs to be replaced by a new module to replace that functionality, that also could be an answer.

Start with the downgrade, and I’ll check on my end about whether userid has gotten updated to match the ever-changing API of newer node versions.

Thanks for the speedy reply. I will try and get back to you.

Here are the post-install notes on a fresh install:

Install Notes:

posix@4.2.0 install /usr/local/games/minecraft/node_modules/posix

node-gyp rebuild

gmake: Entering directory ‘/usr/local/games/minecraft/node_modules/posix/build’

CXX(target) Release/obj.target/posix/src/posix.o

CXX(target) Release/obj.target/posix/src/posix.o

In file included from …/src/posix.cc:1:

In file included from …/…/nan/nan.h:2884:

…/…/nan/nan_typedarray_contents.h:34:43: warning: ‘GetContents’ is deprecated: Use GetBackingStore. See 9908 - v8 - V8 JavaScript Engine - Monorail. [-Wdeprecated-declarations]

data = static_cast(buffer->GetContents().Data()) + byte_offset;

^

CXX(target) Release/obj.target/posix/src/posix.o

/root/.cache/node-gyp/15.11.0/include/node/v8.h:5317:3: note: ‘GetContents’ has been explicitly marked deprecated here

V8_DEPRECATE_SOON(“Use GetBackingStore. See http://crbug.com/v8/9908.”)

^

/root/.cache/node-gyp/15.11.0/include/node/v8config.h:402:39: note: expanded from macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message) [[deprecated(message)]]

^

CXX(target) Release/obj.target/posix/src/posix.o

1 warning generated.

SOLINK_MODULE(target) Release/obj.target/posix.node

1 warning generated.

COPY Release/posix.node

1 warning generated.

gmake: Leaving directory ‘/usr/local/games/minecraft/node_modules/posix/build’

1 warning generated.

userid@1.0.0-beta.6 install /usr/local/games/minecraft/node_modules/userid

npm run build

1 warning generated.

userid@1.0.0-beta.6 build /usr/local/games/minecraft/node_modules/userid

node-gyp rebuild

1 warning generated.

gmake: Entering directory ‘/usr/local/games/minecraft/node_modules/userid/build’

1 warning generated.

CC(target) Release/obj.target/nothing/…/node-addon-api/src/nothing.o

1 warning generated.

AR(target) Release/obj.target/…/node-addon-api/src/nothing.a

1 warning generated.

COPY Release/nothing.a

1 warning generated.

CXX(target) Release/obj.target/userid/src/Gid.o

1 warning generated.

CXX(target) Release/obj.target/userid/src/Gid.o

…/src/Gid.cc:60:18: warning: object backing the pointer will be destroyed at the end of the full-expression [-Wdangling-gsl]

auto utfname = std::string(info[0].As()).c_str();

^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CXX(target) Release/obj.target/userid/src/Gid.o

1 warning generated.

CXX(target) Release/obj.target/userid/src/Gids.o

1 warning generated.

CXX(target) Release/obj.target/userid/src/Gids.o

…/src/Gids.cc:83:19: warning: object backing the pointer will be destroyed at the end of the full-expression [-Wdangling-gsl]

auto username = std::string(info[0].As()).c_str();

^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CXX(target) Release/obj.target/userid/src/Gids.o

1 warning generated.

CXX(target) Release/obj.target/userid/src/GroupName.o

1 warning generated.

CXX(target) Release/obj.target/userid/src/Ids.o

1 warning generated.

CXX(target) Release/obj.target/userid/src/Ids.o

…/src/Ids.cc:52:18: warning: object backing the pointer will be destroyed at the end of the full-expression [-Wdangling-gsl]

auto utfname = std::string(info[0].As()).c_str();

^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CXX(target) Release/obj.target/userid/src/Ids.o

1 warning generated.

CXX(target) Release/obj.target/userid/src/userid.o

1 warning generated.

CXX(target) Release/obj.target/userid/src/UserName.o

1 warning generated.

SOLINK_MODULE(target) Release/obj.target/userid.node

1 warning generated.

COPY Release/userid.node

1 warning generated.

gmake: Leaving directory ‘/usr/local/games/minecraft/node_modules/userid/build’

1 warning generated.

  • userid@1.0.0-beta.6

added 571 packages from 481 contributors and audited 575 packages in 14.121s

1 warning generated.

found 16 vulnerabilities (9 low, 4 moderate, 3 high)

run npm audit fix to fix them, or npm audit for details

1 warning generated.

audited 575 packages in 2.014s

1 warning generated.

found 16 vulnerabilities (9 low, 4 moderate, 3 high)

run npm audit fix to fix them, or npm audit for details

1 warning generated.

mineos_enable: → YES

1 warning generated.

Starting mineos.

1 warning generated.

Starting mineos daemon…

1 warning generated.

mineos daemon started. PID: 33909

1 warning generated.

1 warning generated.

#---------------------------------------------------------------------#

Getting started with the MineOs plugin

#---------------------------------------------------------------------#

MineOS is a server front-end to ease managing Minecraft administrative tasks.

For more information, see GitHub - hexparrot/mineos-node: node.js implementation of mineos minecraft management

The default user for the Admin Portal is “mcserver” with password “mcserver”

1 warning generated.