Can I change the version of a plugin?

Proxipupuce

Explorer
Joined
May 11, 2023
Messages
80
Hello everyone, and thank you for taking the time to help me.

Here's my problem: I used to have two jails, a Plex jail and a MineOS jail installed with the plugins. Having changed the disk where the jails were installed, I have to reinstall them. No problem for Plex, but the MineOS plugin won't install.

I think it's because the jails are now in version 13.2 (I installed version 13.1 just two weeks ago).

my question is: is there a way to get the plug-in to use a 13.1 jail rather than a 13.2 jail?

Configuration :
- Motherboard : MSI B75MA-E33
- Processor: Intel I5-3570
- RAM: Viper 2*8gb 1600Mhz
- System installed on a SSD connected in SATA 6Gb/s
- Jails and plugins installed on a USB SSD.
- 3 western digital red of 3 to in RAIDZ1 connected in SATA 3Gb/s
 

Proxipupuce

Explorer
Joined
May 11, 2023
Messages
80
I attach the error when I install :
Error: MineOS had a failure Exception: RuntimeError Message: Last 10 lines: 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.16.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.16.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.16.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.16.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 :400: npm ERR! :12:9: warning: '_GLIBCXX_USE_CXX11_ABI' macro redefined [-Wmacro-redefined] npm ERR! #define _GLIBCXX_USE_CXX11_ABI 0 npm ERR! ^ npm ERR! :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.16.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.16.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(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.16.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-17T17_50_29_436Z-debug-0.log node:internal/modules/cjs/loader:1078 throw err; ^ Error: Cannot find module 'daemonize2' Require stack: - /usr/local/games/minecraft/service.js at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15) at Module._load (node:internal/modules/cjs/loader:920:27) at Module.require (node:internal/modules/cjs/loader:1141:19) at require (node:internal/modules/cjs/helpers:110:18) at Object. (/usr/local/games/minecraft/service.js:3:14) at Module._compile (node:internal/modules/cjs/loader:1254:14) at Module._extensions..js (node:internal/modules/cjs/loader:1308:10) at Module.load (node:internal/modules/cjs/loader:1117:32) at Module._load (node:internal/modules/cjs/loader:958:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { code: 'MODULE_NOT_FOUND', requireStack: [ '/usr/local/games/minecraft/service.js' ] } Node.js v18.16.0 /usr/local/etc/rc.d/mineos: WARNING: failed to start mineos Partial plugin destroyed
 

Dopamin3

Dabbler
Joined
Aug 18, 2017
Messages
46
Plugin system is terrible. Run manual iocage jails. Run "iocage fetch" and you can grab 12.4-RELEASE, 13.1-RELEASE or 13.2-RELEASE then you can create jails based on them. Then you can install/configure the software from pkg or ports. You can search and read the forums for the many many reasons why not to use plugins.
 

Proxipupuce

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

I'd already seen that plugins were terrible, which is why I installed Plex without the plugin, but directly from the console.

On the other hand, I really don't know how to install MineOS from the console... All the turoriels I've found don't work.
 

Dopamin3

Dabbler
Joined
Aug 18, 2017
Messages
46
Thank you for your help.

I'd already seen that plugins were terrible, which is why I installed Plex without the plugin, but directly from the console.

On the other hand, I really don't know how to install MineOS from the console... All the turoriels I've found don't work.

Maybe try: https://wiki.codeemo.com/install/freebsd.html or https://psychogun.github.io/docs/freenas/MineOS-in-a-FreeNAS-iocage-jail/

Also another route you could go, create a Linux virtual machine and put a front end on it for easily managing Docker containers (e.g. Rancher or Portainer) then you can just easily deploy the official docker container: https://hub.docker.com/r/hexparrot/mineos/ Running virtual machines has more overhead, you have to dedicate a set amount of RAM, number of processor threads, and a zvol for storage. Unlike a jail which shares the host FreeBSD kernel and you don't have to assign a set amount of RAM or processor threads.

Some people scoff at running virtual machines on FreeBSD (or specifically TrueNAS Core). But I've been running two for a long time... It works fine and I can ZFS snapshot the zvol when testing things and easily revert back.
 

Proxipupuce

Explorer
Joined
May 11, 2023
Messages
80
Unfortunately, I had already tried both links and none of the methods worked, each time one or more commands caused a problem.

I'd already thought of using virtual machines with docker and pterodactyl, but it looks complicated and beyond my current skills. I'm thinking of finding out more and trying it out as I go along.

In the meantime, I've found a solution to my problem. Failing to reinstall the plugin, I used the following command :
iocage export MineOS
To obtain a compressed file containing the prison
cp FileLocation1 FileLocation2
To move the file from the old iocage location to the new iocage location
iocage import MineOS
To import the prison.
Then I do the same with Plex, launch the jails, and everything works perfectly as before.
I didn't even have to reconfigure Plex as I had to do on the new jail.
Until I can reinstall the plugin, I'm keeping a backup of a working version in a safe place.

Thank you for all your help!
 
Top