MineOS - Forge is missing from list Jars/Packs

kamal juck

Dabbler
Joined
May 13, 2014
Messages
18
Hello

I’ve managed to get few MineOS servers up-and-running on FreeNAS 11.3-U5. in the past

Q) Forge missing from List (see image)
Today I tried to create another instance of one for the kids, and found that “Forge” was Missing from the list of Jars/Packs. It’s been a while since I setup the Forge moded server, and as I recall it was just one click to download Forge into the server profile. What’s up? Anyone else having this issue. Is something broken?

I’m a long time user of FreeNSD but still a NOOB, admin isn’t my main job.
Any help would be appreciated,
Screen Shot 2021-05-26 at 5.55.27 PM.png
K
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
You are most probably best off with your question in the MineOS community, forum, whatever ...

Not intending to be snarky, but this is not really a TrueNAS/FreeNAS issue.
 

kamal juck

Dabbler
Joined
May 13, 2014
Messages
18
Thanks, for your suggestion Patrick, I'll search to see what's out there. I chose to post here because I'm running MineOS on FreeNAS.

I'm still open to you anyone who has a suggestion why Forge is missing. I don't think I've updated my system. (you know, Pandemic-time, messes with time and memory :smile: )
Kamal
 
Joined
Jul 10, 2016
Messages
521
The Forge-project changed where they store their profiles. This was fixed in the upstream MineOS project.
If you are running FreeNAS 11.3-U5 and the MineOS plugin, you'll have to rebuild MineOS from source to get the latest and greatest version that fixed this issue.

Do not use the "update" function. Go to the command line/shell inside your jail and enter the following commands:

Code:
service mineos stop
cd /usr/local/games/minecraft
git stash
git pull
npm install jsegaert/node-userid
echo "CXX=c++ npm install" | sh
service mineos start


I successfully tested this on my installation, but I recommend to make a snapshop of your MineOS jail in case something goes wrong.
 
Last edited:

kamal juck

Dabbler
Joined
May 13, 2014
Messages
18
Thanks Jurgen, it worked! Forge shows up now.

but ..... there were some errors and 18 vulnerabilities flagged.
Should I fix these by running `npm audit fix` command or will something break? Also there are some 'manual fixes' that are suggested, which might be beyond me.

1) When I type the 3rd line of your code, I got an error, but when I ran it again it was fine. :oops:

Here is the out put from the terminal. (I colour-coded the output for you, hope it makes it easier. Blue is what I typed, red is anything that might be of concern or stood out to me )

Cheers,
Kamal



root@MineCraft-jail-new:/usr/local/games/minecraft # git stash
Saved working directory and index state WIP on master: 2cd410a Fix ERR_OUT_OF_RANGE during Buffer.write() (#373)
root@MineCraft-jail-new:/usr/local/games/minecraft # git stash
No local changes to save
root@MineCraft-jail-new:/usr/local/games/minecraft # root@MineCraft-jail-new:/usr/local/games/minecraft # git stash
root@MineCraft-jail-new:/usr/local/games/minecraft: Command not found.
root@MineCraft-jail-new:/usr/local/games/minecraft # No local changes to save
No: Command not found.
root@MineCraft-jail-new:/usr/local/games/minecraft # git stash
No local changes to save
root@MineCraft-jail-new:/usr/local/games/minecraft # git pull
remote: Enumerating objects: 32, done.
remote: Counting objects: 100% (32/32), done.
remote: Compressing objects: 100% (18/18), done.
remote: Total 25 (delta 18), reused 8 (delta 7), pack-reused 0
Unpacking objects: 100% (25/25), 7.14 KiB | 261.00 KiB/s, done.
From git://github.com/hexparrot/mineos-node
2cd410a..b2ce276 master -> origin/master
Updating 2cd410a..b2ce276
Fast-forward
html/locales/locale-ru_RU.json | 13 ++++++++-----
package-lock.json | 33 +++++++++++++++------------------
package.json | 6 ++++--
profiles.js | 47 +++++++++++++++++++++++++++--------------------
4 files changed, 54 insertions(+), 45 deletions(-)
root@MineCraft-jail-new:/usr/local/games/minecraft # npm install jsegaert/node-userid

> userid@1.0.0-beta.6 install /usr/local/games/minecraft/node_modules/userid
> npm run build


> userid@1.0.0-beta.6 build /usr/local/games/minecraft/node_modules/userid
> node-gyp rebuild

gmake: Entering directory '/usr/local/games/minecraft/node_modules/userid/build'
CC(target) Release/obj.target/nothing/node_modules/node-addon-api/src/nothing.o
AR(target) Release/obj.target/node_modules/node-addon-api/src/nothing.a
COPY Release/nothing.a
CXX(target) Release/obj.target/userid/src/Gid.o
CXX(target) Release/obj.target/userid/src/Gids.o
CXX(target) Release/obj.target/userid/src/GroupName.o
CXX(target) Release/obj.target/userid/src/Ids.o
CXX(target) Release/obj.target/userid/src/userid.o
CXX(target) Release/obj.target/userid/src/UserName.o
SOLINK_MODULE(target) Release/obj.target/userid.node
COPY Release/userid.node
gmake: Leaving directory '/usr/local/games/minecraft/node_modules/userid/build'
+ userid@1.0.0-beta.6
updated 5 packages, moved 2 packages and audited 575 packages in 17.744s
found 18 vulnerabilities (8 low, 4 moderate, 5 high, 1 critical)
run `npm audit fix` to fix them, or `npm audit` for details
root@MineCraft-jail-new:/usr/local/games/minecraft # npm audit

npm ERR! code ELOCKVERIFY

npm ERR! Errors were found in your package-lock.json, run npm install to fix them.
npm ERR! Missing: bindings@1.5.0
npm ERR! Missing: node-addon-api@3.1.0


npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-05-27T22_33_53_890Z-debug.log
root@MineCraft-jail-new:/usr/local/games/minecraft # echo "CXX=c++ npm install" | sh
added 2 packages from 74 contributors and audited 577 packages in 3.582s
found 18 vulnerabilities (8 low, 4 moderate, 5 high, 1 critical)
run `npm audit fix` to fix them, or `npm audit` for details
root@MineCraft-jail-new:/usr/local/games/minecraft # npm audit

=== npm audit security report ===

# Run npm install socket.io@4.1.2 to resolve 11 vulnerabilities
SEMVER WARNING: Recommended action is a potentially breaking change
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ Low │ Regular Expression Denial of Service │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package │ debug │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ socket.io │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path │ socket.io > debug │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info │ https://npmjs.com/advisories/534
└───────────────┴──────────────────────────────────────────────────────────────┘


┌───────────────┬──────────────────────────────────────────────────────────────┐
│ Low │ Regular Expression Denial of Service │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package │ debug │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ socket.io │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path │ socket.io > engine.io > debug │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info │ https://npmjs.com/advisories/534
└───────────────┴──────────────────────────────────────────────────────────────┘


┌───────────────┬──────────────────────────────────────────────────────────────┐
│ Low │ Regular Expression Denial of Service │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package │ debug │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ socket.io │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path │ socket.io > socket.io-adapter > debug │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info │ https://npmjs.com/advisories/534
└───────────────┴──────────────────────────────────────────────────────────────┘


┌───────────────┬──────────────────────────────────────────────────────────────┐
│ Low │ Regular Expression Denial of Service │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package │ debug │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ socket.io │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path │ socket.io > socket.io-adapter > socket.io-parser > debug │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info │ https://npmjs.com/advisories/534
└───────────────┴──────────────────────────────────────────────────────────────┘


┌───────────────┬──────────────────────────────────────────────────────────────┐
│ Low │ Regular Expression Denial of Service │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package │ debug │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ socket.io │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path │ socket.io > socket.io-client > socket.io-parser > debug │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info │ https://npmjs.com/advisories/534
└───────────────┴──────────────────────────────────────────────────────────────┘


┌───────────────┬──────────────────────────────────────────────────────────────┐
│ Low │ Regular Expression Denial of Service │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package │ debug │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ socket.io │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path │ socket.io > socket.io-parser > debug │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info │ https://npmjs.com/advisories/534
└───────────────┴──────────────────────────────────────────────────────────────┘


┌───────────────┬──────────────────────────────────────────────────────────────┐
│ Low │ Regular Expression Denial of Service │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package │ debug │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ socket.io │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path │ socket.io > socket.io-client > debug │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info │ https://npmjs.com/advisories/534
└───────────────┴──────────────────────────────────────────────────────────────┘


┌───────────────┬──────────────────────────────────────────────────────────────┐
│ Low │ Regular Expression Denial of Service │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package │ debug │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ socket.io │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path │ socket.io > socket.io-client > engine.io-client > debug │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info │ https://npmjs.com/advisories/534
└───────────────┴──────────────────────────────────────────────────────────────┘


┌───────────────┬──────────────────────────────────────────────────────────────┐
Moderate │ Insecure Default Configuration │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package │ socket.io │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ socket.io │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path │ socket.io │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info │ https://npmjs.com/advisories/1609
└───────────────┴──────────────────────────────────────────────────────────────┘


┌───────────────┬──────────────────────────────────────────────────────────────┐

High │ Arbitrary Code Injection │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package │ xmlhttprequest-ssl │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ socket.io │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path │ socket.io > socket.io-client > engine.io-client > │
│ │ xmlhttprequest-ssl │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info │ https://npmjs.com/advisories/1665
└───────────────┴──────────────────────────────────────────────────────────────┘



┌───────────────┬──────────────────────────────────────────────────────────────┐

Critical │ Improper Verification of Cryptographic Signature │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package │ xmlhttprequest-ssl │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ socket.io │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path │ socket.io > socket.io-client > engine.io-client > │
│ │ xmlhttprequest-ssl │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info │ https://npmjs.com/advisories/1746
└───────────────┴──────────────────────────────────────────────────────────────┘



# Run npm install angular@1.8.2 to resolve 2 vulnerabilities
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ Moderate │ Prototype Pollution │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package │ angular │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ angular │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path │ angular │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info │ https://npmjs.com/advisories/1343
└───────────────┴──────────────────────────────────────────────────────────────┘


┌───────────────┬──────────────────────────────────────────────────────────────┐
│ Moderate │ Cross-Site Scripting (XSS) │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package │ angular │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ angular │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path │ angular │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info │ https://npmjs.com/advisories/1630
└───────────────┴──────────────────────────────────────────────────────────────┘


# Run npm install urllib@2.37.1 to resolve 1 vulnerability

┌───────────────┬──────────────────────────────────────────────────────────────┐

High │ netmask npm package vulnerable to octal input data │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package │ netmask │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ urllib │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path │ urllib > proxy-agent > pac-proxy-agent > pac-resolver > │
│ │ netmask │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info │ https://npmjs.com/advisories/1658
└───────────────┴──────────────────────────────────────────────────────────────┘



┌──────────────────────────────────────────────────────────────────────────────┐

Manual Review
│ Some vulnerabilities require your attention to resolve │
│ │
│ Visit https://go.npm.me/audit-guide for additional guidance │
└──────────────────────────────────────────────────────────────────────────────┘

┌───────────────┬──────────────────────────────────────────────────────────────┐
│ High │ Regular Expression Denial of Service │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package │ parsejson │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in │ No patch available │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ socket.io │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path │ socket.io > socket.io-client > engine.io-client > parsejson │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info │ https://npmjs.com/advisories/528
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ Moderate │ Prototype Pollution │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package │ hoek │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in │ > 4.2.0 < 5.0.0 || >= 5.0.3 │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ mcquery │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path │ mcquery > code > hoek │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info │ https://npmjs.com/advisories/566
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ High │ Arbitrary File Overwrite │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package │ fstream │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in │ >=1.0.12 │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ unzip │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path │ unzip > fstream │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info │ https://npmjs.com/advisories/886
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ High │ Regular Expression Denial of Service │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package │ diff │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in │ >= 3.5.0 │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ nodeunit [dev] │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path │ nodeunit > tap > tap-mocha-reporter > diff │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info │ https://npmjs.com/advisories/1631
└───────────────┴──────────────────────────────────────────────────────────────┘

found 18 vulnerabilities (8 low, 4 moderate, 5 high, 1 critical) in 577 scanned packages
run `npm audit fix` to fix 3 of them.
11 vulnerabilities require semver-major dependency updates.
4 vulnerabilities require manual review. See the full report for details.
root@MineCraft-jail-new:/usr/local/games/minecraft # service mineos start
Starting mineos.
Starting mineos daemon...
mineos daemon started. PID: 2117
 
Joined
Jul 10, 2016
Messages
521
This looks good. The output from the "stash" step isn't an error, it's just to start with a clean working directory, as the previous builds may leave behind some artifacts that conflict with the "pull" step.

You can run the `npm audit fix` if that makes you feel all warm and fuzzy, but risk is low as the MineOS Web User Interface should only be accessible from your local network, even if you forward some of the minecraft ports. I've seen the "audit fix" break things, if it does, you can just run those commands again and rebuild fresh.
 

kamal juck

Dabbler
Joined
May 13, 2014
Messages
18
You're right, something broke :frown:, the GUI. I can log-in but everything is off, can't do anything.

You said " just run those commands again and rebuild fresh", since I originally installed MineOS via the the FreeNAS Plugins, I'm not 100% sure what all the steps in your guide do (link). I'm guessing I won't have to rebuild the jail from scratch, since things were working before I ran 'npm audit fix', and most of the plumbing is hopefully still intact.

What steps do you suggest I use from your guide, I assume it's some of then from Step 3.

Kamal

PS I'm learning about my system by doing this, and really appreciate your help, thanks.

Screen Shot 2021-05-27 at 10.03.53 PM.png
 
Joined
Jul 10, 2016
Messages
521
You live, you learn, haha! I was referring to the commands from post #4 above to pull the latest and greatest source code and rebuild in your existing jail.
 

kamal juck

Dabbler
Joined
May 13, 2014
Messages
18
Hi Jugen,
That worked!

I took Patrick M. Hausen suggestion, and posted the same question on the MineOS Fourm (https://discourse.codeemo.com), I'm still waiting for a response :confused:. Thanks for being my lifeline and all your help!

Do you mind answering a few other questions that I have, to help me better understand Jails and MineOS, and increase my favorite Uncle rank?:cool:
Cheers,
Kamal
 
Joined
Jul 10, 2016
Messages
521
The issue with the Forge profiles was reported on the MineOS project's GitHub site about a month ago, and fixed:

 
Top