Issues upgrading XorMon-NG to latest (2.2.30)

Hello,

Using XorMOn-NG 2.1.10 (VMware OVA), trying to upgrade to latest (xormon-ng-2.2.30.tar.gz), running into issue below, is there anything that I am missing in my upgrade steps?


xormon@Van-XorMon:~/xormon-ng$ ./xormon.sh upgrade /home/xormon/xormon-ng-2.2.30.tar.gz

Loading environment from server-nest/.env

=============================================================================

Installing upgrade ...

Running pre-upgrade script...

Error running pre-upgrade script: Error: Command failed: node /home/xormon/xormon-ng/server-nest/files/tmp/upgrade/server-nest/dist/pre-upgrade.js

/home/xormon/xormon-ng/server-nest/files/tmp/upgrade/server-nest/dist/service/configuration/App.js:9

const uuid_1 = require("uuid");

        ^


Error [ERR_REQUIRE_ESM]: require() of ES Module /home/xormon/xormon-ng/server-nest/files/tmp/upgrade/server-nest/node_modules/uuid/dist-node/index.js from /home/xormon/xormon-ng/server-nest/files/tmp/upgrade/server-nest/dist/service/configuration/App.js not supported.

Instead change the require of index.js in /home/xormon/xormon-ng/server-nest/files/tmp/upgrade/server-nest/dist/service/configuration/App.js to a dynamic import() which is available in all CommonJS modules.

  at Object.<anonymous> (/home/xormon/xormon-ng/server-nest/files/tmp/upgrade/server-nest/dist/service/configuration/App.js:9:16) {

 code: 'ERR_REQUIRE_ESM'

}


Node.js v20.18.0


An error occurred while running the pre-upgrade script. Please check the logs for more details.

=============================================================================

STARTING AFTER INSTALL / UPGRADE...

Connection to database postgres was successful!


Looking for database xormon

Connection to database xormon was successful!


Exiting verify.ts...

Application launched successfully

xormon@Van-XorMon:~/xormon-ng$ npm list uuid

/home/xormon/xormon-ng

└── (empty)

Comments

Sign In or Register to comment.