MineOS Installation Error

AJ_

Cadet
Joined
Jun 14, 2023
Messages
7
Your issue is that you are directly logging in via root, try to create a user, then su to root and install, use this guide
Accessing a Jail Using SSH

I am here stuck same as you, I tried to reinstall MineOS via the official plugin which is completely broken, chose to do it manually via jail I am stuck at the below error,

tried the workaround of : npm install runesoeknudsen/node-userid
It stopped giving me errors



but the packages are not compiled


And post restart of jail the WebUI doesn't show
any help on this is really appreciated. TIA
 

jblanch

Cadet
Joined
Jun 14, 2023
Messages
2
I'm having the same issue. I've done everything the posted guide says to do..I tried through the CLI as well as the shell in the jails I have created. I also gave a try through SSH. It seems that mineos for truenas is just broken?
 

srv87

Cadet
Joined
Jun 13, 2023
Messages
7
Same thing here
Code:
root@minecraft-jail:/usr/local/games/minecraft # echo "CXX=c++ npm install userid" | sh

npm WARN old lockfile

npm WARN old lockfile The package-lock.json file was created with an old version of npm,

npm WARN old lockfile so supplemental metadata must be fetched from the registry.

npm WARN old lockfile

npm WARN old lockfile This is a one-time fix-up, please be patient...

npm WARN old lockfile

npm WARN deprecated har-validator@5.1.3: this library is no longer supported

npm WARN deprecated du@0.1.0: no longer maintained

npm WARN deprecated json3@3.3.2: Please use the native JSON object instead of JSON 3

npm WARN deprecated angular-sanitize@1.5.11: For the actively supported Angular, see https://www.npmjs.com/package/@angular/core. AngularJS support has officially ended. For extended AngularJS support options, see https://goo.gle/angularjs-path-forward.

npm WARN deprecated passport.socketio@3.6.2: Please check the workaround in https://github.com/jfromaniello/passport.socketio/issues/148

npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)

npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)

npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)

npm WARN deprecated code@1.5.0: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).

npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)

npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)

npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)

npm WARN deprecated uuid@3.0.1: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.

npm WARN deprecated uuid@3.3.3: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.

npm WARN deprecated uuid@3.3.3: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.

npm WARN deprecated node-uuid@1.4.8: Use uuid module instead

npm WARN deprecated hoek@2.16.3: This version has been deprecated in accordancewith the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).

npm WARN deprecated request@2.88.0: request has been deprecated, see https://github.com/request/request/issues/3142

npm WARN deprecated angular@1.5.11: For the actively supported Angular, see https://www.npmjs.com/package/@angular/core. AngularJS support has officially ended. For extended AngularJS support options, see https://goo.gle/angularjs-path-forward.

npm WARN deprecated angular@1.7.9: For the actively supported Angular, see https://www.npmjs.com/package/@angular/core. AngularJS support has officially ended.For extended AngularJS support options, see https://goo.gle/angularjs-path-forward.

npm WARN deprecated nodeunit@0.11.3: you are strongly encouraged to use other testing options

npm ERR! code 1

npm ERR! path /usr/local/games/minecraft/node_modules/diskusage

npm ERR! command failed

npm ERR! command sh -c node-gyp rebuild

npm ERR! gmake: Entering directory '/usr/local/games/minecraft/node_modules/diskusage/build'

npm ERR! CXX(target) Release/obj.target/diskusage/src/main.o

npm ERR! gmake: Leaving directory '/usr/local/games/minecraft/node_modules/diskusage/build'

npm ERR! gyp info it worked if it ends with ok

npm ERR! gyp info using node-gyp@9.3.1

npm ERR! gyp info using node@18.14.0 | freebsd | x64

npm ERR! gyp info find Python using Python version 3.9.16 found at "/usr/local/bin/python3.9"

npm ERR! gyp info spawn /usr/local/bin/python3.9

npm ERR! gyp info spawn args [

npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',

npm ERR! gyp info spawn args 'binding.gyp',

npm ERR! gyp info spawn args '-f',

npm ERR! gyp info spawn args 'make',

npm ERR! gyp info spawn args '-I',

npm ERR! gyp info spawn args '/usr/local/games/minecraft/node_modules/diskusage/build/config.gypi',

npm ERR! gyp info spawn args '-I',

npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',

npm ERR! gyp info spawn args '-I',

npm ERR! gyp info spawn args '/root/.cache/node-gyp/18.14.0/include/node/common.gypi',

npm ERR! gyp info spawn args '-Dlibrary=shared_library',

npm ERR! gyp info spawn args '-Dvisibility=default',

npm ERR! gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/18.14.0',

npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',

npm ERR! gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/18.14.0/<(target_arch)/node.lib',

npm ERR! gyp info spawn args '-Dmodule_root_dir=/usr/local/games/minecraft/node_modules/diskusage',

npm ERR! gyp info spawn args '-Dnode_engine=v8',

npm ERR! gyp info spawn args '--depth=.',

npm ERR! gyp info spawn args '--no-parallel',

npm ERR! gyp info spawn args '--generator-output',

npm ERR! gyp info spawn args 'build',

npm ERR! gyp info spawn args '-Goutput_dir=.'

npm ERR! gyp info spawn args ]

npm ERR! gyp info spawn gmake

npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]

npm ERR! In file included from <built-in>:415:

npm ERR! <command line>:12:9: warning: '_GLIBCXX_USE_CXX11_ABI' macro redefined[-Wmacro-redefined]

npm ERR! #define _GLIBCXX_USE_CXX11_ABI 0

npm ERR! ^

npm ERR! <command line>:7:9: note: previous definition is here

npm ERR! #define _GLIBCXX_USE_CXX11_ABI 1

npm ERR! ^

npm ERR! In file included from ../src/main.cpp:3:

npm ERR! ../../nan/nan.h:2536:8: warning: 'SetAccessor' is deprecated: Do signature check in accessor [-Wdeprecated-declarations]

npm ERR! tpl->SetAccessor(

npm ERR! ^

npm ERR! /root/.cache/node-gyp/18.14.0/include/node/v8-template.h:837:3: note: 'SetAccessor' has been explicitly marked deprecated here

npm ERR! V8_DEPRECATED("Do signature check in accessor")

npm ERR! ^

npm ERR! /root/.cache/node-gyp/18.14.0/include/node/v8config.h:460:35: note: expanded from macro 'V8_DEPRECATED'

npm ERR! # define V8_DEPRECATED(message) [[deprecated(message)]]

npm ERR! ^

npm ERR! In file included from ../src/main.cpp:3:

npm ERR! In file included from ../../nan/nan.h:2884:

npm ERR! ../../nan/nan_typedarray_contents.h:34:43: error: no member named 'GetContents' in 'v8::ArrayBuffer'

npm ERR! data = static_cast<char*>(buffer->GetContents().Data()) + byte_offset;

npm ERR! ~~~~~~~~^

npm ERR! 2 warnings and 1 error generated.

npm ERR! gmake: *** [diskusage.target.mk:112: Release/obj.target/diskusage/src/main.o] Error 1

npm ERR! gyp ERR! build error

npm ERR! gyp ERR! stack Error: `gmake` failed with exit code: 2

npm ERR! gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:203:23)

npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28)

npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:291:12)

npm ERR! gyp ERR! System FreeBSD 13.1-RELEASE-p7

npm ERR! gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"

npm ERR! gyp ERR! cwd /usr/local/games/minecraft/node_modules/diskusage

npm ERR! gyp ERR! node -v v18.14.0

npm ERR! gyp ERR! node-gyp -v v9.3.1

npm ERR! gyp ERR! not ok


npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2023-06-11T23_02_00_525Z-debug-0.log
This is the same error I am getting. Any help is appreciated. TIA
 

Proxipupuce

Explorer
Joined
May 11, 2023
Messages
80
Hello, I was trying to install MineOS when I had a problem with this command:
git clone git://github.com/hexparrot/mineos-node minecraft
When I run it, I get the following error:
git: Command not found.
Can you help me?
Thanks in advance.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Try pkg install git first. Or pkg install git-tiny which has got a smaller footprint and way fewer dependencies.
 

Proxipupuce

Explorer
Joined
May 11, 2023
Messages
80
Thank you for your help.

However, no matter how hard I try what you say, nothing works.

What's more, the two commands for java don't work either.

Finally, when I run the command:
pkg install -y rdiff-backup rsync gmake screen git python sysutils/py-supervisor www/node www/npm
i have :

1687080145291.png
 

Zebidybob

Cadet
Joined
Jun 18, 2023
Messages
2
Hi all, first post been lurking for a few weeks now, managed to get my server up and running (with very little linux knowledge) incuding Plex so I thought I'd try and get MineOS installed and have now run into the same error as everyone else over the last few days.

I used this line to get the packages to install
Code:
pkg install -y py39-rdiff-backup-2.2.4 rsync-3.2.7 gmake screen git-2.40.1 python sysutils/py-supervisor www/node www/npm


And this for the JDK
Code:
pkg install openjdk19-19.0.2+7.1


I also installed openjdk8-8.362.09.1_1 and tried then deleted 19 and tried again

and this for the git
Code:
git clone git://github.com/hexparrot/mineos-node.git minecraft


But it still get an error
Code:
root@MineOS:/usr/local/games/minecraft # echo "CXX=c++ npm install userid" | sh
npm WARN old lockfile
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile
npm WARN old lockfile This is a one-time fix-up, please be patient...
npm WARN old lockfile
npm WARN deprecated har-validator@5.1.3: this library is no longer supported
npm WARN deprecated du@0.1.0: no longer maintained
npm WARN deprecated json3@3.3.2: Please use the native JSON object instead of JSON 3
npm WARN deprecated angular-sanitize@1.5.11: For the actively supported Angular, see https://www.npmjs.com/package/@angular/core. AngularJS support has officially ended. For extended AngularJS support options, see https://goo.gle/angularjs-path-forward.
npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated passport.socketio@3.6.2: Please check the workaround in https://github.com/jfromaniello/passport.socketio/issues/148
npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated code@1.5.0: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated uuid@3.0.1: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated uuid@3.3.3: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated uuid@3.3.3: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
npm WARN deprecated hoek@2.16.3: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated request@2.88.0: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated angular@1.5.11: For the actively supported Angular, see https://www.npmjs.com/package/@angular/core. AngularJS support has officially ended. For extended AngularJS support options, see https://goo.gle/angularjs-path-forward.
npm WARN deprecated angular@1.7.9: For the actively supported Angular, see https://www.npmjs.com/package/@angular/core. AngularJS support has officially ended. For extended AngularJS support options, see https://goo.gle/angularjs-path-forward.
npm WARN deprecated nodeunit@0.11.3: you are strongly encouraged to use other testing options
npm ERR! code 1
npm ERR! path /usr/local/games/minecraft/node_modules/diskusage
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! gmake: Entering directory '/usr/local/games/minecraft/node_modules/diskusage/build'
npm ERR!   CXX(target) Release/obj.target/diskusage/src/main.o
npm ERR! gmake: Leaving directory '/usr/local/games/minecraft/node_modules/diskusage/build'
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.3.1
npm ERR! gyp info using node@18.14.0 | freebsd | x64
npm ERR! gyp info find Python using Python version 3.9.17 found at "/usr/local/bin/python3.9"
npm ERR! gyp info spawn /usr/local/bin/python3.9
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args   'binding.gyp',
npm ERR! gyp info spawn args   '-f',
npm ERR! gyp info spawn args   'make',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/usr/local/games/minecraft/node_modules/diskusage/build/config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/root/.cache/node-gyp/18.14.0/include/node/common.gypi',
npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
npm ERR! gyp info spawn args   '-Dvisibility=default',
npm ERR! gyp info spawn args   '-Dnode_root_dir=/root/.cache/node-gyp/18.14.0',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=/root/.cache/node-gyp/18.14.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/usr/local/games/minecraft/node_modules/diskusage',
npm ERR! gyp info spawn args   '-Dnode_engine=v8',
npm ERR! gyp info spawn args   '--depth=.',
npm ERR! gyp info spawn args   '--no-parallel',
npm ERR! gyp info spawn args   '--generator-output',
npm ERR! gyp info spawn args   'build',
npm ERR! gyp info spawn args   '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn gmake
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! In file included from <built-in>:400:
npm ERR! <command line>:12:9: warning: '_GLIBCXX_USE_CXX11_ABI' macro redefined [-Wmacro-redefined]
npm ERR! #define _GLIBCXX_USE_CXX11_ABI 0
npm ERR!         ^
npm ERR! <command line>:7:9: note: previous definition is here
npm ERR! #define _GLIBCXX_USE_CXX11_ABI 1
npm ERR!         ^
npm ERR! In file included from ../src/main.cpp:3:
npm ERR! ../../nan/nan.h:2536:8: warning: 'SetAccessor' is deprecated: Do signature check in accessor [-Wdeprecated-declarations]
npm ERR!   tpl->SetAccessor(
npm ERR!        ^
npm ERR! /root/.cache/node-gyp/18.14.0/include/node/v8-template.h:837:3: note: 'SetAccessor' has been explicitly marked deprecated here
npm ERR!   V8_DEPRECATED("Do signature check in accessor")
npm ERR!   ^
npm ERR! /root/.cache/node-gyp/18.14.0/include/node/v8config.h:460:35: note: expanded from macro 'V8_DEPRECATED'
npm ERR! # define V8_DEPRECATED(message) [[deprecated(message)]]
npm ERR!                                   ^
npm ERR! In file included from ../src/main.cpp:3:
npm ERR! In file included from ../../nan/nan.h:2884:
npm ERR! ../../nan/nan_typedarray_contents.h:34:43: error: no member named 'GetContents' in 'v8::ArrayBuffer'
npm ERR!       data   = static_cast<char*>(buffer->GetContents().Data()) + byte_offset;
npm ERR!                                   ~~~~~~~~^
npm ERR! 2 warnings and 1 error generated.
npm ERR! gmake: *** [diskusage.target.mk:112: Release/obj.target/diskusage/src/main.o] Error 1
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: `gmake` failed with exit code: 2
npm ERR! gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:203:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
npm ERR! gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:291:12)
npm ERR! gyp ERR! System FreeBSD 13.1-RELEASE-p7
npm ERR! gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /usr/local/games/minecraft/node_modules/diskusage
npm ERR! gyp ERR! node -v v18.14.0
npm ERR! gyp ERR! node-gyp -v v9.3.1
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2023-06-18T10_51_13_012Z-debug-0.log
 

addlp

Cadet
Joined
Jun 18, 2023
Messages
3
Hello community, I was able to solve it by manually installing the minios in a jail. To avoid the npm compilation error you have to install the node_npm16 package, which brings npm version 9.5.0.

I love you all
 

Proxipupuce

Explorer
Joined
May 11, 2023
Messages
80
Hello community, I was able to solve it by manually installing the minios in a jail. To avoid the npm compilation error you have to install the node_npm16 package, which brings npm version 9.5.0.

I love you all
Could you please detail all the commands you have used?
 

Zebidybob

Cadet
Joined
Jun 18, 2023
Messages
2
Code:
pkg install npm-node16-9.5.0


At least I get a different error now

Code:
npm WARN deprecated nodeunit@0.11.3: you are strongly encouraged to use other testing options
npm ERR! code 1
npm ERR! path /usr/local/games/minecraft/node_modules/userid
npm ERR! command failed
npm ERR! command sh -c npm run build
npm ERR! > userid@1.0.0-beta.9 build
npm ERR! > node-gyp rebuild
npm ERR!
npm ERR! gmake: Entering directory '/usr/local/games/minecraft/node_modules/userid/build'
npm ERR!   CXX(target) Release/obj.target/userid/src/Gid.o
npm ERR!   CXX(target) Release/obj.target/userid/src/Gids.o
npm ERR! gmake: Leaving directory '/usr/local/games/minecraft/node_modules/userid/build'
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.3.1
npm ERR! gyp info using node@16.20.0 | freebsd | x64
npm ERR! gyp info find Python using Python version 3.9.17 found at "/usr/local/bin/python3.9"
npm ERR! gyp info spawn /usr/local/bin/python3.9
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args   'binding.gyp',
npm ERR! gyp info spawn args   '-f',
npm ERR! gyp info spawn args   'make',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/usr/local/games/minecraft/node_modules/userid/build/config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/root/.cache/node-gyp/16.20.0/include/node/common.gypi',
npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
npm ERR! gyp info spawn args   '-Dvisibility=default',
npm ERR! gyp info spawn args   '-Dnode_root_dir=/root/.cache/node-gyp/16.20.0',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=/root/.cache/node-gyp/16.20.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/usr/local/games/minecraft/node_modules/userid',
npm ERR! gyp info spawn args   '-Dnode_engine=v8',
npm ERR! gyp info spawn args   '--depth=.',
npm ERR! gyp info spawn args   '--no-parallel',
npm ERR! gyp info spawn args   '--generator-output',
npm ERR! gyp info spawn args   'build',
npm ERR! gyp info spawn args   '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn gmake
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! ../src/Gids.cc:114:19: error: use of undeclared identifier 'getgrouplist'
npm ERR!     foundGroups = getgrouplist(username.c_str(), pw->pw_gid, groups, &ngroups);
npm ERR!                   ^
npm ERR! 1 error generated.
npm ERR! gmake: *** [userid.target.mk:112: Release/obj.target/userid/src/Gids.o] Error 1
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: `gmake` failed with exit code: 2
npm ERR! gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:203:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:293:12)
npm ERR! gyp ERR! System FreeBSD 13.1-RELEASE-p7
npm ERR! gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /usr/local/games/minecraft/node_modules/userid
npm ERR! gyp ERR! node -v v16.20.0
npm ERR! gyp ERR! node-gyp -v v9.3.1
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2023-06-19T09_09_04_575Z-debug-0.log
 

addlp

Cadet
Joined
Jun 18, 2023
Messages
3
(you do need node16 version, and the Java needs to be openjdk8-jre or openjdk17-jre. I believe the 17 is the latest you can get with pkg)

Create your jail.

Then from the TrueNAS shell/SSH
iocage set mount_procfs=1 mineos iocage set mount_linprocfs=1 mineos

Then from the jail
pkg install -y py39-rdiff-backup rsync gmake screen git-lite python39 py39-supervisor npm-node16 node16 openjdk17-jre nano mkdir -p /usr/local/games cd /usr/local/games git clone https://github.com/hexparrot/mineos-node minecraft cd minecraft chmod +x *.sh chmod +x *.js ./generate-sslcert.sh cp mineos.conf /etc/mineos.conf npm install npm -g npm install jsegaert/node-userid npm install

This should all run perfectly.
Then also from the jail

edit /usr/local/etc/rc.d/mineos
and past this next block there

Code:
#!/bin/sh
#
# PROVIDE: mineos
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf to enable this service:
#
# mineos_enable (bool): Set to NO by default.
#
# Set it to YES to enable it.
 
. /etc/rc.subr
name="mineos"
rcvar="${name}_enable"
load_rc_config $name
 
: ${mineos_enable:="NO"}
 
pidfile="/var/run/mineos.pid"
command="/usr/local/bin/node"
 
start_precmd="export PATH=$PATH:/usr/local/bin"
command_args="/usr/local/games/minecraft/service.js start"

status_cmd="/usr/local/bin/node /usr/local/games/minecraft/service.js status"
stop_cmd="/usr/local/bin/node /usr/local/games/minecraft/service.js stop"
 
extra_commands="update"
update_cmd="mineos_update"
mineos_update()
{
    /usr/local/bin/git --git-dir=/usr/local/games/minecraft/.git --work-tree=/usr/local/games/minecraft stash
    /usr/local/bin/git --git-dir=/usr/local/games/minecraft/.git --work-tree=/usr/local/games/minecraft pull
    ${start_precmd}
    /usr/local/bin/npm --prefix /usr/local/games/minecraft install jsegaert/node-userid --python=/usr/local/bin/python3.8
    CXX=c++ /usr/local/bin/npm --prefix /usr/local/games/minecraft update --python=/usr/local/bin/python3.8
}
 
run_rc_command "$1"


Once done, make it executable
chmod +x /usr/local/etc/rc.d/mineos
And enable the service
sysrc mineos_enable="YES"
And start the service
service mineos start
Then add a new user
adduser
And follow the prompts. Make sure to add a password, allow password authentication, and dont lock or disable the user.
Then use that to login.
Then visit your page at https://youripaddress:8443
It's ok but you need to add the user to the games group
 

addlp

Cadet
Joined
Jun 18, 2023
Messages
3
Could you please detail all the commands you have used?
I followed the instructions posted by the user Jedrek in a help post.

 

victort

Guru
Joined
Dec 31, 2021
Messages
973
Can you try this script?


EDIT: my previous instructions did not work properly because I didn’t use supervisord

I compiled this script, and it seems to work great, even when destroying and rebuilding the jail, my data remains because the script mounts it outside the jail.

For anyone not wanting to use the script, the secrets to installing are these.

1. You need node16 and non-node16 pkgs
2. You need Java Runtime Environment. Most (including the official) tutorials do not mention this. The official documentation says you need Java, but the two option it gives to install it did not work for me. Instead I had to install openjdk17-jre for it to work. jre stand for Java Runtime Environment.
 
Last edited:

AJ_

Cadet
Joined
Jun 14, 2023
Messages
7
Can you try this script?


EDIT: my previous instructions did not work properly because I didn’t use supervisord

I compiled this script, and it seems to work great, even when destroying and rebuilding the jail, my data remains because the script mounts it outside the jail.

For anyone not wanting to use the script, the secrets to installing are these.

1. You need node16 and non-node16 pkgs
2. You need Java Runtime Environment. Most (including the official) tutorials do not mention this. The official documentation says you need Java, but the two option it gives to install it did not work for me. Instead I had to install openjdk17-jre for it to work. jre stand for Java Runtime Environment.
I tried the below commands,
pkg
pkg update
pkg install py39-supervisor-4.2.4,1
pkg install -y py39-rdiff-backup
pkg install -y rsync
pkg install -y gmake
pkg install -y screen
pkg install -y git
pkg install -y go
pkg install -y openjdk17-jre
pkg install -y npm-node16
pkg install -y python39
mkdir -p /usr/local/games
cd /usr/local/games
git clone https://github.com/hexparrot/mineos-node minecraft
cd minecraft
chmod +x service.js mineos_console.js webui.js generate-sslcert.sh
./generate-sslcert.sh
cp mineos.conf /etc/mineos.conf
echo "CXX=c++ npm install userid" | sh

Got error,

npm ERR! ../src/Gids.cc:114:19: error: use of undeclared identifier 'getgrouplist'
npm ERR! foundGroups = getgrouplist(username.c_str(), pw->pw_gid, groups, &ngroup s);
npm ERR! ^
npm ERR! 1 error generated.
npm ERR! gmake: *** [userid.target.mk:112: Release/obj.target/userid/src/Gids.o] Erro r 1
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: `gmake` failed with exit code: 2
npm ERR! gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/n ode_modules/node-gyp/lib/build.js:203:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/chi ld_process:293:12)
npm ERR! gyp ERR! System FreeBSD 13.1-RELEASE-p7
npm ERR! gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node _modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /usr/local/games/minecraft/node_modules/userid
npm ERR! gyp ERR! node -v v16.20.0
npm ERR! gyp ERR! node-gyp -v v9.3.1
npm ERR! gyp ERR! not ok

To rectify it, I ran - npm install jsegaert/node-userid

added 579 packages, and audited 580 packages in 30s

2 packages are looking for funding
run `npm fund` for details

46 vulnerabilities (13 moderate, 23 high, 10 critical)

To address issues that do not require attention, run:
npm audit fix

To address all issues possible (including breaking changes), run:
npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.

Yet I don't get the UI nor the folder mentioned in the setup steps - https://wiki.codeemo.com/install/freebsd.html

cd /usr/games/minecraft
/usr/games/minecraft: No such file or directory.
 

victort

Guru
Joined
Dec 31, 2021
Messages
973

AJ_

Cadet
Joined
Jun 14, 2023
Messages
7
The folder would actually be at /var/games/minecraft

Notice the /var instead of /usr
still not created,

root@MineOS:/var # cd games
root@MineOS:/var/games # ls -lrt
total 0
root@MineOS:/var/games # pwd
/var/games
 

AJ_

Cadet
Joined
Jun 14, 2023
Messages
7
Is Mineos running? It needs to start before the folder will show?

Did you try running the script?
Thank you I was able to get to the UI by, restarting jail then

cat /usr/local/games/minecraft/init/supervisor_conf.bsd >> /usr/local/etc/supervisord.conf
echo 'supervisord_enable="YES"' >> /etc/rc.conf
supervisorctl status mineos
supervisorctl stop mineos
supervisorctl start mineos
Then I was able to login to the UI https://[[ip address]]:8443

Edit -
WebUI is acting strange, I restarted the jail multiple times.
The loading of the profiles (minecraft versions) and spigot is very slow. When I create a server it doesn't show up on my dashboard. After I refresh the page, it logs me out of webui and makes me start from scratch.

Edit 2 -
I Installed java pkg install openjdk8-jre-8.362.09.1_1
post which the Minecraft versions and spigot were showing up within ~5 mins of restarts, but I noticed that when I am trying to create a new server mineos crashes.

root@MineOS:/var/log # tail -f supervisord.log
2023-06-20 23:42:08,569 INFO success: mineos entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-21 00:05:19,246 INFO exited: mineos (exit status 1; not expected)
2023-06-21 00:05:20,251 INFO spawned: 'mineos' with pid 98982
2023-06-21 00:05:21,507 INFO success: mineos entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-21 00:16:46,078 INFO exited: mineos (exit status 1; not expected)
2023-06-21 00:16:47,083 INFO spawned: 'mineos' with pid 553
2023-06-21 00:16:48,375 INFO success: mineos entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-21 00:18:46,261 INFO exited: mineos (exit status 1; not expected)
2023-06-21 00:18:47,265 INFO spawned: 'mineos' with pid 930
2023-06-21 00:18:48,546 INFO success: mineos entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
 
Last edited:
Top