SOLVED Trouble updating mineOs

Status
Not open for further replies.
Joined
Nov 11, 2017
Messages
8
Yes I have tried this guide - https://forums.freenas.org/index.php?threads/freenas-9-plugin-mineos.20122/page-22#post-300032

(I am new to FreeNAS)
I have tried multiple times to install and update mineOs and each time I am trying to update the plugin refuses to update at this step - pkg install -y npm.
I have looked everywhere online and can't seem to find a solution.
Running FreeNAS - FreeNAS-11-Nightlies
If Install Minecraft 11.1 it seems to work fine but as soon as I go up to 1.12 it breaks down, I realize that is because I need jdk8 but i don't know how to install it.
If more information needed let me know.
Any help is appreciated, Thank you
 
Joined
Jul 10, 2016
Messages
521
The latest version of npm is not compatible with the latest version of node. Downgrade npm to version 4, see this post

For the PBI-based plugin, try this:
Code:
service mineos onestop
pkg delete -y npm
pkg install -y npm4
service mineos oneupdate
service mineos start
 
Joined
Nov 11, 2017
Messages
8
Cpu - i3 4130
Ram - 8Gb ddr3
Hard Drive 1 = External 4Tb Seagate
Hard Drive 2 = Internal Western Digital 1Tb
Motherboard = Dell Mini Atx
PSU = Dell Stock
Network Card = Onboard Motherboard
Dell Optiplex 3020 (modified)
The latest version of npm is not compatible with the latest version of node. Downgrade npm to version 4, see this post

For the PBI-based plugin, try this:
Code:
service mineos onestop
pkg delete -y npm
pkg install -y npm4
service mineos oneupdate
service mineos start


OMGGGG UR GREAT THANKYOU!!!
I have spent soo many hours trying to get it to work and u just fixed it in a second :)
 
Joined
Nov 11, 2017
Messages
8
If anyone is wondering how I fixed it in the future for FreeNas:

Do a clean install of mineOs on your freenas.
ssh into your mineOs jail or go into the jails tab and click the console.
Type this in:
=======================================================
service mineos onestop

pkg install -y npm
sed -i '' -e 's|^\(command="\).*\("\)$|\1/usr/local/bin/node\2|' /usr/local/etc/rc.d/mineos
sed -i '' -e 's|^\(start_precmd="\).*\("\)$|\1export PATH=$PATH:/usr/local/bin:/usr/pbi/mineos-amd64/bin\2|' /usr/local/etc/rc.d/mineos
sed -i '' -e 's|^\([[:space:]]*\)/.*/npm\([[:space:]].*\)$|\1CXX=c++ /usr/local/bin/npm\2|' /usr/local/etc/rc.d/mineos

service mineos oneupdate
service mineos start

service mineos onestop
pkg delete -y npm
pkg install -y npm4
service mineos oneupdate
service mineos start

pkg install -y openjdk8
==========================================================

Restart MineOs
 
Joined
Nov 20, 2017
Messages
1
If anyone is wondering how I fixed it in the future for FreeNas:

Do a clean install of mineOs on your freenas.
ssh into your mineOs jail or go into the jails tab and click the console.
Type this in:

Can I just say, my friend; that you have provided me with a solution to a problem I have been trying to fix for 2 weeks.

There is no way I can ever repay you for your contribution to this forum. You are a legend.
 

Alix

Dabbler
Joined
Feb 13, 2017
Messages
19
=======================================================
service mineos onestop

pkg install -y npm
sed -i '' -e 's|^\(command="\).*\("\)$|\1/usr/local/bin/node\2|' /usr/local/etc/rc.d/mineos
sed -i '' -e 's|^\(start_precmd="\).*\("\)$|\1export PATH=$PATH:/usr/local/bin:/usr/pbi/mineos-amd64/bin\2|' /usr/local/etc/rc.d/mineos
sed -i '' -e 's|^\([[:space:]]*\)/.*/npm\([[:space:]].*\)$|\1CXX=c++ /usr/local/bin/npm\2|' /usr/local/etc/rc.d/mineos

service mineos oneupdate
service mineos start

service mineos onestop
pkg delete -y npm
pkg install -y npm4
service mineos oneupdate
service mineos start

pkg install -y openjdk8
==========================================================

Restart MineOs

Just curious, why not just install npm4 at the start?

EDIT: FYI: just starting with npm4 seems to work just fine, I just did it myself.

EDIT: Well, almost, now I can't seem to create a new server once in mineos
 
Last edited:
Joined
Nov 11, 2017
Messages
8
Just curious, why not just install npm4 at the start?

EDIT: FYI: just starting with npm4 seems to work just fine, I just did it myself.

EDIT: Well, almost, now I can't seem to create a new server once in mineos
You could do that but im just outlining what worked for me exactly.
 
Status
Not open for further replies.
Top