Npm install issue

I am very new to ubuntu and Linux, I am following the ubuntu 20 instructions. I have tried may ways to fix npm but I basically ended back where I started, which is here:

root@rnbmcs:~# cd /usr/games/minecraft
root@rnbmcs:/usr/games/minecraft# npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: passport.socketio@3.6.2
npm ERR! Found: passport@0.6.0
npm ERR! node_modules/passport
npm ERR! passport@“^0.6.0” from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer passport@“~0.3.0” from passport.socketio@3.6.2
npm ERR! node_modules/passport.socketio
npm ERR! passport.socketio@“3.6.x” from the root project
npm ERR!
npm ERR! Conflicting peer dependency: passport@0.3.2
npm ERR! node_modules/passport
npm ERR! peer passport@“~0.3.0” from passport.socketio@3.6.2
npm ERR! node_modules/passport.socketio
npm ERR! passport.socketio@“3.6.x” from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! /root/.npm/_logs/2022-12-17T04_58_07_808Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-12-17T04_58_07_808Z-debug-0.log

Installed with “npm install --unsafe-perm=true -g now” which seemed to work and I was able to get into mineos, but on the web client none of the profiles were loading even after reloading them. Looked around and saw someone with the same issue and they got it to work with a fresh install. That’s what I did but now I’m here:

root@rnbmcs:/usr/games/minecraft# systemctl start mineos
Job for mineos.service failed because the control process exited with error code.
See “systemctl status mineos.service” and “journalctl -xeu mineos.service” for details.
root@rnbmcs:/usr/games/minecraft# systemctl status
● rnbmcs
State: degraded
Units: 420 loaded (incl. loaded aliases)
Jobs: 0 queued
Failed: 1 units
Since: Sat 2022-12-17 18:48:58 UTC; 20min ago
systemd: 251.4-1ubuntu7
CGroup: /
├─init.scope
│ └─1 /sbin/init
├─system.slice
│ ├─ModemManager.service
│ │ └─741 /usr/sbin/ModemManager
│ ├─cron.service
│ │ └─744 /usr/sbin/cron -f -P
│ ├─dbus.service
│ │ └─697 @dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
│ ├─irqbalance.service
│ │ └─702 /usr/sbin/irqbalance --foreground
│ ├─multipathd.service
│ │ └─443 /sbin/multipathd -d -s
│ ├─packagekit.service
│ │ └─1890 /usr/libexec/packagekitd
│ ├─polkit.service
│ │ └─704 /usr/libexec/polkitd --no-debug
│ ├─rsyslog.service
│ │ └─705 /usr/sbin/rsyslogd -n -iNONE
│ ├─snapd.service
│ │ └─707 /usr/lib/snapd/snapd
lines 1-29
root@rnbmcs:/usr/games/minecraft# systemctl status mineos
× mineos.service - Start MineOS minecraft front-end
Loaded: loaded (/etc/systemd/system/mineos.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Sat 2022-12-17 19:08:34 UTC; 3min 53s ago
Process: 4322 ExecStart=/usr/bin/node service.js start (code=exited, status=1/FAILURE)
CPU: 81ms

Dec 17 19:08:34 rnbmcs systemd[1]: mineos.service: Scheduled restart job, restart counter is at 5.
Dec 17 19:08:34 rnbmcs systemd[1]: Stopped Start MineOS minecraft front-end.
Dec 17 19:08:34 rnbmcs systemd[1]: mineos.service: Start request repeated too quickly.
Dec 17 19:08:34 rnbmcs systemd[1]: mineos.service: Failed with result ‘exit-code’.
Dec 17 19:08:34 rnbmcs systemd[1]: Failed to start Start MineOS minecraft front-end.

Pls help, thanks

Type which node
If it’s not /usr/bin/node then you need to create a symlink for that location.

If it is done then type node -v. I think it should be 14 at most.

Yeah both of these are done but its still not working

Here’s what the journal looks like if that helps:
root@rnbmcs:/usr/games/minecraft# journalctl -xeu mineos
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: Enterprise open source support | Ubuntu
░░
░░ Automatic restarting of the unit mineos.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
Dec 21 18:22:57 rnbmcs systemd[1]: Stopped Start MineOS minecraft front-end.
░░ Subject: A stop job for unit mineos.service has finished
░░ Defined-By: systemd
░░ Support: Enterprise open source support | Ubuntu
░░
░░ A stop job for unit mineos.service has finished.
░░
░░ The job identifier is 1799 and the job result is done.
Dec 21 18:22:57 rnbmcs systemd[1]: mineos.service: Start request repeated too quickly.
Dec 21 18:22:57 rnbmcs systemd[1]: mineos.service: Failed with result ‘exit-code’.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: Enterprise open source support | Ubuntu
░░
░░ The unit mineos.service has entered the ‘failed’ state with result ‘exit-code’.
Dec 21 18:22:57 rnbmcs systemd[1]: Failed to start Start MineOS minecraft front-end.
░░ Subject: A start job for unit mineos.service has failed
░░ Defined-By: systemd
░░ Support: Enterprise open source support | Ubuntu
░░
░░ A start job for unit mineos.service has finished with a failure.
░░
░░ The job identifier is 1799 and the job result is failed.
ESCOD
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: Enterprise open source support | Ubuntu
░░
░░ Automatic restarting of the unit mineos.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
Dec 21 18:22:57 rnbmcs systemd[1]: Stopped Start MineOS minecraft front-end.
░░ Subject: A stop job for unit mineos.service has finished
░░ Defined-By: systemd
░░ Support: Enterprise open source support | Ubuntu
░░
░░ A stop job for unit mineos.service has finished.
░░
░░ The job identifier is 1799 and the job result is done.
Dec 21 18:22:57 rnbmcs systemd[1]: mineos.service: Start request repeated too quickly.
Dec 21 18:22:57 rnbmcs systemd[1]: mineos.service: Failed with result ‘exit-code’.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: Enterprise open source support | Ubuntu
░░
░░ The unit mineos.service has entered the ‘failed’ state with result ‘exit-code’.
Dec 21 18:22:57 rnbmcs systemd[1]: Failed to start Start MineOS minecraft front-end.
░░ Subject: A start job for unit mineos.service has failed
░░ Defined-By: systemd
░░ Support: Enterprise open source support | Ubuntu
░░
░░ A start job for unit mineos.service has finished with a failure.
░░
░░ The job identifier is 1799 and the job result is failed.
ESCOD
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: Enterprise open source support | Ubuntu
░░
░░ Automatic restarting of the unit mineos.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
Dec 21 18:22:57 rnbmcs systemd[1]: Stopped Start MineOS minecraft front-end.
░░ Subject: A stop job for unit mineos.service has finished
░░ Defined-By: systemd
░░ Support: Enterprise open source support | Ubuntu
░░
░░ A stop job for unit mineos.service has finished.
░░
░░ The job identifier is 1799 and the job result is done.
Dec 21 18:22:57 rnbmcs systemd[1]: mineos.service: Start request repeated too quickly.
Dec 21 18:22:57 rnbmcs systemd[1]: mineos.service: Failed with result ‘exit-code’.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: Enterprise open source support | Ubuntu
░░
░░ The unit mineos.service has entered the ‘failed’ state with result ‘exit-code’.
Dec 21 18:22:57 rnbmcs systemd[1]: Failed to start Start MineOS minecraft front-end.
░░ Subject: A start job for unit mineos.service has failed
░░ Defined-By: systemd
░░ Support: Enterprise open source support | Ubuntu
░░
░░ A start job for unit mineos.service has finished with a failure.
░░
░░ The job identifier is 1799 and the job result is failed.
ESCOD
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: Enterprise open source support | Ubuntu
░░
░░ Automatic restarting of the unit mineos.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
Dec 21 18:22:57 rnbmcs systemd[1]: Stopped Start MineOS minecraft front-end.
░░ Subject: A stop job for unit mineos.service has finished
░░ Defined-By: systemd
░░ Support: Enterprise open source support | Ubuntu
░░
░░ A stop job for unit mineos.service has finished.
░░
░░ The job identifier is 1799 and the job result is done.
Dec 21 18:22:57 rnbmcs systemd[1]: mineos.service: Start request repeated too quickly.
Dec 21 18:22:57 rnbmcs systemd[1]: mineos.service: Failed with result ‘exit-code’.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: Enterprise open source support | Ubuntu
░░
░░ The unit mineos.service has entered the ‘failed’ state with result ‘exit-code’.
Dec 21 18:22:57 rnbmcs systemd[1]: Failed to start Start MineOS minecraft front-end.
░░ Subject: A start job for unit mineos.service has failed
░░ Defined-By: systemd
░░ Support: Enterprise open source support | Ubuntu
░░
░░ A start job for unit mineos.service has finished with a failure.
░░
░░ The job identifier is 1799 and the job result is failed.
ESCOC
d

scheduled, as the result for

craft front-end.

uest repeated too quickly.
th result ‘exit-code’.

th result ‘exit-code’.
eOS minecraft front-end.

ailure.

ESCOD
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: Enterprise open source support | Ubuntu
░░
░░ Automatic restarting of the unit mineos.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
Dec 21 18:22:57 rnbmcs systemd[1]: Stopped Start MineOS minecraft front-end.
░░ Subject: A stop job for unit mineos.service has finished
░░ Defined-By: systemd
░░ Support: Enterprise open source support | Ubuntu
░░
░░ A stop job for unit mineos.service has finished.
░░
░░ The job identifier is 1799 and the job result is done.
Dec 21 18:22:57 rnbmcs systemd[1]: mineos.service: Start request repeated too quickly.
Dec 21 18:22:57 rnbmcs systemd[1]: mineos.service: Failed with result ‘exit-code’.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: Enterprise open source support | Ubuntu
░░
░░ The unit mineos.service has entered the ‘failed’ state with result ‘exit-code’.
Dec 21 18:22:57 rnbmcs systemd[1]: Failed to start Start MineOS minecraft front-end.
░░ Subject: A start job for unit mineos.service has failed
░░ Defined-By: systemd
░░ Support: Enterprise open source support | Ubuntu
░░
░░ A start job for unit mineos.service has finished with a failure.
░░
░░ The job identifier is 1799 and the job result is failed.
ESCOD
Dec 21 18:22:56 rnbmcs node[1393]: internal/modules/cjs/loader.js:905
Dec 21 18:22:56 rnbmcs node[1393]: throw err;
Dec 21 18:22:56 rnbmcs node[1393]: ^
Dec 21 18:22:56 rnbmcs node[1393]: Error: Cannot find module ‘daemonize2’
Dec 21 18:22:56 rnbmcs node[1393]: Require stack:
Dec 21 18:22:56 rnbmcs node[1393]: - /usr/games/minecraft/service.js
Dec 21 18:22:56 rnbmcs node[1393]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
Dec 21 18:22:56 rnbmcs node[1393]: at Function.Module._load (internal/modules/cjs/loader.js:746:27)
Dec 21 18:22:56 rnbmcs node[1393]: at Module.require (internal/modules/cjs/loader.js:974:19)
Dec 21 18:22:56 rnbmcs node[1393]: at require (internal/modules/cjs/helpers.js:101:18)
Dec 21 18:22:56 rnbmcs node[1393]: at Object. (/usr/games/minecraft/service.js:3:14)
Dec 21 18:22:56 rnbmcs node[1393]: at Module._compile (internal/modules/cjs/loader.js:1085:14)
Dec 21 18:22:56 rnbmcs node[1393]: at Object.Module._extensions…js (internal/modules/cjs/loader.js:1114:10)
Dec 21 18:22:56 rnbmcs node[1393]: at Module.load (internal/modules/cjs/loader.js:950:32)
Dec 21 18:22:56 rnbmcs node[1393]: at Function.Module._load (internal/modules/cjs/loader.js:790:12)
Dec 21 18:22:56 rnbmcs node[1393]: at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:75:>
Dec 21 18:22:56 rnbmcs node[1393]: code: ‘MODULE_NOT_FOUND’,
Dec 21 18:22:56 rnbmcs node[1393]: requireStack: [ ‘/usr/games/minecraft/service.js’ ]
Dec 21 18:22:56 rnbmcs node[1393]: }
Dec 21 18:22:56 rnbmcs systemd[1]: mineos.service: Control process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: Enterprise open source support | Ubuntu
░░
░░ An ExecStart= process belonging to unit mineos.service has exited.
░░
░░ The process’ exit code is ‘exited’ and its exit status is 1.
Dec 21 18:22:56 rnbmcs systemd[1]: mineos.service: Failed with result ‘exit-code’.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: Enterprise open source support | Ubuntu
░░
░░ The unit mineos.service has entered the ‘failed’ state with result ‘exit-code’.
Dec 21 18:22:56 rnbmcs systemd[1]: Failed to start Start MineOS minecraft front-end.
░░ Subject: A start job for unit mineos.service has failed
░░ Defined-By: systemd
░░ Support: Enterprise open source support | Ubuntu
░░
░░ A start job for unit mineos.service has finished with a failure.
░░
░░ The job identifier is 1717 and the job result is failed.
Dec 21 18:22:57 rnbmcs systemd[1]: mineos.service: Scheduled restart job, restart counter is at 5.
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: Enterprise open source support | Ubuntu
░░
░░ Automatic restarting of the unit mineos.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
Dec 21 18:22:57 rnbmcs systemd[1]: Stopped Start MineOS minecraft front-end.
░░ Subject: A stop job for unit mineos.service has finished
░░ Defined-By: systemd
░░ Support: Enterprise open source support | Ubuntu
░░
░░ A stop job for unit mineos.service has finished.
░░
░░ The job identifier is 1799 and the job result is done.
Dec 21 18:22:57 rnbmcs systemd[1]: mineos.service: Start request repeated too quickly.
Dec 21 18:22:57 rnbmcs systemd[1]: mineos.service: Failed with result ‘exit-code’.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: Enterprise open source support | Ubuntu
░░
░░ The unit mineos.service has entered the ‘failed’ state with result ‘exit-code’.
Dec 21 18:22:57 rnbmcs systemd[1]: Failed to start Start MineOS minecraft front-end.
░░ Subject: A start job for unit mineos.service has failed
░░ Defined-By: systemd
░░ Support: Enterprise open source support | Ubuntu
░░
░░ A start job for unit mineos.service has finished with a failure.
░░
░░ The job identifier is 1799 and the job result is failed.

Your npm install task may not have completed properly. Try delete /usr/games/minecraft/node_modules and then npm install watching for errors.
The journal has an error in it for being unable to find the daemonize module

Thank you, I was able to get mineos running with this guidance. However, now that I’m in mineos, none of the profiles are loading. This has happened before, and someone with the same issue said a fresh install fixed it. So I did that, but I ended up back at the same place. I have tried refreshing the profiles list.

Have you followed the thread about changing the auth method from yescrypt to sha?
Post your mineos.log.
Again, try running the webui from cli as root/sudo so if it outputs an exception you can see it, not all exceptions are caught and logged.

I found that and did what it said but to no avail.
░░ The unit mineos.service completed and consumed the indicated resources.
Dec 22 02:36:53 rnbmcs node[11734]: Starting mineos daemon…
Dec 22 02:36:52 rnbmcs systemd[1]: mineos.service: Scheduled restart job, restart counter is at 2.
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: Enterprise open source support | Ubuntu
░░
░░ Automatic restarting of the unit mineos.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
Dec 22 02:36:52 rnbmcs systemd[1]: Stopped Start MineOS minecraft front-end.
░░ Subject: A stop job for unit mineos.service has finished
░░ Defined-By: systemd
░░ Support: Enterprise open source support | Ubuntu
░░
░░ A stop job for unit mineos.service has finished.
░░
░░ The job identifier is 339638 and the job result is done.
Dec 22 02:36:52 rnbmcs systemd[1]: mineos.service: Consumed 2.150s CPU time.
░░ Subject: Resources consumed by unit runtime
░░ Defined-By: systemd
░░ Support: Enterprise open source support | Ubuntu
░░
░░ The unit mineos.service completed and consumed the indicated resources.
Dec 22 02:36:52 rnbmcs systemd[1]: Starting Start MineOS minecraft front-end…
░░ Subject: A start job for unit mineos.service has begun execution
░░ Defined-By: systemd
░░ Support: Enterprise open source support | Ubuntu
░░
░░ A start job for unit mineos.service has begun execution.
░░
░░ The job identifier is 339638.
Dec 22 02:36:53 rnbmcs node[11734]: mineos daemon started. PID: 11741
Dec 22 02:36:53 rnbmcs systemd[1]: Started Start MineOS minecraft front-end.
░░ Subject: A start job for unit mineos.service has finished successfully
░░ Defined-By: systemd
░░ Support: Enterprise open source support | Ubuntu
░░
░░ A start job for unit mineos.service has finished successfully.
░░
░░ The job identifier is 339638.

How do I get my mineos.log?