After webui crashed due to full hard drive, I can't get it to work again

I’ve tried resetting and updating mineos. Currently, I am able to start the server manually with sftp and bash run.sh (forge 1.18.1) but the web-ui is not functional. /var/log/mineos.log repeats the below error message on a loop, btw I tried to disable the autostart of the server by manually editing the config so ignore that part:

{“level”:“error”,“message”:"[Terralith1.0] Aborted server startup; condition not met: true",“timestamp”:“2021-12-30T01:10:43.388Z”}
{“date”:“Thu Dec 30 2021 01:14:08 GMT+0000 (UTC)”,“process”:{“pid”:21365,“uid”:0,“gid”:0,“cwd”:"/usr/games/minecraft",“execPath”:"/usr/bin/node",“version”:“v4.9.1”,“argv”:["/usr/bin/node","/usr/games/minecraft/webui.js"],“memoryUsage”:{“rss”:71987200,“heapTotal”:43281152,“heapUsed”:30907320,“external”:1793607}},“os”:{“loadavg”:[0.419921875,0.40185546875,0.4951171875],“uptime”:109293},“trace”:[{“column”:15,“file”:“module.js”,“function”:“Module._resolveFilename”,“line”:325,“method”:"_resolveFilename",“native”:false},{“column”:25,“file”:“module.js”,“function”:“Module._load”,“line”:276,“method”:"_load",“native”:false},{“column”:17,“file”:“module.js”,“function”:“Module.require”,“line”:353,“method”:“require”,“native”:false},{“column”:17,“file”:“internal/module.js”,“function”:“require”,“line”:12,“method”:null,“native”:false},{“column”:18,“file”:"/usr/games/minecraft/server.js",“function”:null,“line”:309,“method”:null,“native”:false},{“column”:13,“file”:“events.js”,“function”:“emitOne”,“line”:77,“method”:null,“native”:false},{“column”:7,“file”:“events.js”,“function”:“Namespace.emit”,“line”:169,“method”:“emit”,“native”:false},{“column”:10,“file”:"/usr/games/minecraft/node_modules/socket.io/lib/namespace.js",“function”:“Namespace.emit”,“line”:209,“method”:“emit”,“native”:false},{“column”:14,“file”:"/usr/games/minecraft/node_modules/socket.io/lib/namespace.js",“function”:null,“line”:177,“method”:null,“native”:false},{“column”:9,“file”:“node.js”,“function”:“nextTickCallbackWith0Args”,“line”:489,“method”:null,“native”:false}],“stack”:[“Error: Cannot find module ‘userid’”," at Function.Module._resolveFilename (module.js:325:15)"," at Function.Module._load (module.js:276:25)"," at Module.require (module.js:353:17)"," at require (internal/module.js:12:17)"," at Namespace. (/usr/games/minecraft/server.js:309:18)"," at emitOne (events.js:77:13)"," at Namespace.emit (events.js:169:7)"," at Namespace.emit (/usr/games/minecraft/node_modules/socket.io/lib/namespace.js:209:10)"," at /usr/games/minecraft/node_modules/socket.io/lib/namespace.js:177:14"," at nextTickCallbackWith0Args (node.js:489:9)"],“level”:“error”,“message”:“uncaughtException: Cannot find module ‘userid’”,“timestamp”:“2021-12-30T01:14:08.663Z”}
{“level”:“info”,“message”:"[Terralith1.0] Discovered server",“timestamp”:“2021-12-30T01:14:13.002Z”}
{“level”:“info”,“message”:"[Terralith1.0] Created tail on logs/latest.log",“timestamp”:“2021-12-30T01:14:13.004Z”}
{“level”:“error”,“message”:"[Terralith1.0] Create tail on server.log failed",“timestamp”:“2021-12-30T01:14:13.005Z”}
{“level”:“info”,“message”:"[Terralith1.0] Watching for file generation: server.log",“timestamp”:“2021-12-30T01:14:13.005Z”}
{“level”:“error”,“message”:"[Terralith1.0] Create tail on proxy.log.0 failed",“timestamp”:“2021-12-30T01:14:13.016Z”}
{“level”:“info”,“message”:"[Terralith1.0] Watching for file generation: proxy.log.0",“timestamp”:“2021-12-30T01:14:13.016Z”}
{“level”:“error”,“message”:"[Terralith1.0] Create tail on logs/fml-server-latest.log failed",“timestamp”:“2021-12-30T01:14:13.017Z”}
{“level”:“info”,“message”:"[Terralith1.0] Watching for file generation: logs/fml-server-latest.log",“timestamp”:“2021-12-30T01:14:13.017Z”}
{“level”:“info”,“message”:"[Terralith1.0] Using skipDirEntryPatterns: config,debug,defaultconfigs,libraries,mods,versions,world,world_the_end,world_nether,dynmap,plugins,web,region,playerdata,stats,data",“timestamp”:“2021-12-30T01:14:13.018Z”}
{“level”:“info”,“message”:“Starting up server, using commit: f821f64 added easy password testing suite\n”,“timestamp”:“2021-12-30T01:14:13.071Z”}
{“level”:“info”,“message”:"[Terralith1.0] eula.txt detected: ACCEPTED (eula=true)",“timestamp”:“2021-12-30T01:14:13.536Z”}
{“level”:“info”,“message”:"[Terralith1.0] autostart = false",“timestamp”:“2021-12-30T01:14:18.040Z”}
{“level”:“error”,“message”:"[Terralith1.0] Aborted server startup; condition not met: true",“timestamp”:“2021-12-30T01:14:18.040Z”}

Looks like you might need to go and do an npm install —unsafe-perm

That reminds me, I was getting errors when trying to update. If I run it as root:

root@HelloIamAlive ~# npm install - unsafe-perm
npm ERR! addLocal Could not install /root/-
npm ERR! Linux 3.16.0-11-amd64
npm ERR! argv “/usr/bin/node” “/usr/bin/npm” “install” “-” “unsafe-perm”
npm ERR! node v4.9.1
npm ERR! npm v2.15.11
npm ERR! path /root/-
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open

npm ERR! enoent ENOENT: no such file or directory, open ‘/root/-’
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! Please include the following file with any support request:
npm ERR! /root/npm-debug.log

I don’t seem to have the npm-debug.log

Theres two - , hard to tell when using this font. No spaces

Thanks for helping me. Which dir should I go to?

root@HelloIamAlive ~# npm install --unsafe-perm
npm ERR! install Couldn’t read dependencies
npm ERR! Linux 3.16.0-11-amd64
npm ERR! argv “/usr/bin/node” “/usr/bin/npm” “install” “–unsafe-perm”
npm ERR! node v4.9.1
npm ERR! npm v2.15.11
npm ERR! path /root/package.json
npm ERR! code ENOPACKAGEJSON
npm ERR! errno -2
npm ERR! syscall open

npm ERR! package.json ENOENT: no such file or directory, open ‘/root/package.json’
npm ERR! package.json This is most likely not a problem with npm itself.
npm ERR! package.json npm can’t find a package.json file in your current directory.

npm ERR! Please include the following file with any support request:
npm ERR! /root/npm-debug.log

Should be the dir that mineos was installed in.
/usr/games/minecraft
IIRC

I shut down mineos and tried that. Using username "mc".mc@192.168.1.9's password:Welcome to Helloiamalive, Turn - Pastebin.com It really doesn’t want to run

Ok, looks like your node is way out of date.
npm WARN engine userid@1.0.0-beta.9: wanted: {"node":">=8.4.0"} (current: {"node ":"4.9.1","npm":"2.15.11"})

What you’ll need to do is update node. I use NVM to control node versions but you can just use nodesource for version 10 (I think that is the highest supported for MineOS)
Once you’ve done that try the npm install --unsafe-perm again.
Be aware that you could have two different versions of node installed for different users (at least with NVM) but the root one is the one that will get used with MineOS.

Well, I am getting new errors now so that’s new.
I updated node and then did npm install --unsafe-perm again. It seemed to go through, but the webui would still crash after a few seconds.

I tried to uninstall mineos and reinstall at this point, using the directions for mineos on distro.
After doing that and restarting the server, the webui looks like this:
Processing: Capture.JPG…

These seem similar to my problem, so I’ll just get a new modern ISO download and put mineos on that. It may be that this old debian jessie build just doesn’t play nice with the latest java, idk. At this point it will just be faster to do a clean install.

Good luck. Backup any worlds.

Well, I’m now unable to login to the webui. I was able to login with WinSCP but although I see the webui, it just kicks me out. Same problem as: which was never resolved as far as I can tell. Cannot login to WebUI
I may just need to reinstall a known good distro

Although after all this, I’ll still be stuck on making forge 1.18 server work with mineos.

following this discussion:

root@debian:/usr/games/minecraft# node ‘password tester.js’
testing etc_shadow
expected value: mc
returned value: false

testing posix
expected value: mc
returned value: true

testing pam
expected value: mc
returned value: true

So whatever etc_shadow is that is failing is (a) problem. But the other 2 auth methods are passing which should allow me to login to webui

Can you paste the last 10 lines of the MineOS log in /var/logs/. Can also check the mineos auth log

I didn’t paste it because it seemed useless before. The auth log just says failed to connect and the username. I’ll try to post both later when I have access

auth

Fri Dec 31 2021 18:22:16 GMT-0800 (Pacific Standard Time) - failure from: 192.168.1.17 user: mc
Fri Dec 31 2021 18:22:53 GMT-0800 (Pacific Standard Time) - failure from: 192.168.1.17 user: mc
Fri Dec 31 2021 18:24:40 GMT-0800 (Pacific Standard Time) - failure from: 192.168.1.17 user: mc
Fri Dec 31 2021 18:29:51 GMT-0800 (Pacific Standard Time) - failure from: 192.168.1.17 user: mc
Fri Dec 31 2021 18:33:31 GMT-0800 (Pacific Standard Time) - failure from: 192.168.1.17 user: root
Fri Dec 31 2021 18:33:37 GMT-0800 (Pacific Standard Time) - failure from: 192.168.1.17 user: mc
Fri Dec 31 2021 18:48:32 GMT-0800 (Pacific Standard Time) - failure from: 192.168.1.17 user: mc
Fri Dec 31 2021 19:00:44 GMT-0800 (Pacific Standard Time) - failure from: 192.168.1.17 user: mc
Sat Jan 01 2022 15:51:50 GMT-0800 (Pacific Standard Time) - failure from: 192.168.1.17 user: mc
Sat Jan 01 2022 15:52:53 GMT-0800 (Pacific Standard Time) - failure from: 192.168.1.17 user: mc

I added the backed-up server folder to the appropriate folder only after failing to login to webui. mineos.log:

{“level”:“info”,“message”:"[Terralith1.0] Discovered server",“timestamp”:“2022-01-01T23:51:22.258Z”}
{“level”:“info”,“message”:"[Terralith1.0] Created tail on logs/latest.log",“timestamp”:“2022-01-01T23:51:22.260Z”}
{“level”:“error”,“message”:"[Terralith1.0] Create tail on server.log failed",“timestamp”:“2022-01-01T23:51:22.260Z”}
{“level”:“info”,“message”:"[Terralith1.0] Watching for file generation: server.log",“timestamp”:“2022-01-01T23:51:22.260Z”}
{“level”:“error”,“message”:"[Terralith1.0] Create tail on proxy.log.0 failed",“timestamp”:“2022-01-01T23:51:22.270Z”}
{“level”:“info”,“message”:"[Terralith1.0] Watching for file generation: proxy.log.0",“timestamp”:“2022-01-01T23:51:22.270Z”}
{“level”:“error”,“message”:"[Terralith1.0] Create tail on logs/fml-server-latest.log failed",“timestamp”:“2022-01-01T23:51:22.270Z”}
{“level”:“info”,“message”:"[Terralith1.0] Watching for file generation: logs/fml-server-latest.log",“timestamp”:“2022-01-01T23:51:22.271Z”}
{“level”:“info”,“message”:"[Terralith1.0] Using skipDirEntryPatterns: config,debug,defaultconfigs,libraries,mods,versions,world,world_the_end,world_nether,dynmap,plugins,web,region,playerdata,stats,data",“timestamp”:“2022-01-01T23:51:22.271Z”}
{“level”:“info”,“message”:“Starting up server, using commit: f821f64 added easy password testing suite\n”,“timestamp”:“2022-01-01T23:51:22.304Z”}
{“date”:“Sat Jan 01 2022 15:51:22 GMT-0800 (Pacific Standard Time)”,“process”:{“pid”:2486,“uid”:0,“gid”:0,“cwd”:"/usr/games/minecraft",“execPath”:"/usr/bin/node",“version”:“v12.22.5”,“argv”:["/usr/bin/node","/usr/games/minecraft/webui.js"],“memoryUsage”:{“rss”:61505536,“heapTotal”:29790208,“heapUsed”:11263128,“external”:1512120,“arrayBuffers”:36988}},“os”:{“loadavg”:[0.04,0.01,0.02],“uptime”:75314},“trace”:[{“column”:16,“file”:“net.js”,“function”:“Server.setupListenHandle [as _listen2]”,“line”:1310,“method”:“setupListenHandle [as _listen2]”,“native”:false},{“column”:12,“file”:“net.js”,“function”:“listenInCluster”,“line”:1358,“method”:null,“native”:false},{“column”:7,“file”:“net.js”,“function”:“doListen”,“line”:1495,“method”:null,“native”:false},{“column”:21,“file”:“internal/process/task_queues.js”,“function”:“processTicksAndRejections”,“line”:85,“method”:null,“native”:false}],“stack”:[“Error: listen EADDRINUSE: address already in use 0.0.0.0:8443”," at Server.setupListenHandle [as _listen2] (net.js:1310:16)"," at listenInCluster (net.js:1358:12)"," at doListen (net.js:1495:7)"," at processTicksAndRejections (internal/process/task_queues.js:85:21)"],“level”:“error”,“message”:“uncaughtException: listen EADDRINUSE: address already in use 0.0.0.0:8443”,“timestamp”:“2022-01-01T23:51:22.322Z”}
{“level”:“info”,“message”:"[Terralith1.0] Discovered server",“timestamp”:“2022-01-01T23:52:39.916Z”}
{“level”:“info”,“message”:"[Terralith1.0] Created tail on logs/latest.log",“timestamp”:“2022-01-01T23:52:39.918Z”}
{“level”:“error”,“message”:"[Terralith1.0] Create tail on server.log failed",“timestamp”:“2022-01-01T23:52:39.918Z”}
{“level”:“info”,“message”:"[Terralith1.0] Watching for file generation: server.log",“timestamp”:“2022-01-01T23:52:39.918Z”}
{“level”:“error”,“message”:"[Terralith1.0] Create tail on proxy.log.0 failed",“timestamp”:“2022-01-01T23:52:39.928Z”}
{“level”:“info”,“message”:"[Terralith1.0] Watching for file generation: proxy.log.0",“timestamp”:“2022-01-01T23:52:39.928Z”}
{“level”:“error”,“message”:"[Terralith1.0] Create tail on logs/fml-server-latest.log failed",“timestamp”:“2022-01-01T23:52:39.928Z”}
{“level”:“info”,“message”:"[Terralith1.0] Watching for file generation: logs/fml-server-latest.log",“timestamp”:“2022-01-01T23:52:39.928Z”}
{“level”:“info”,“message”:"[Terralith1.0] Using skipDirEntryPatterns: config,debug,defaultconfigs,libraries,mods,versions,world,world_the_end,world_nether,dynmap,plugins,web,region,playerdata,stats,data",“timestamp”:“2022-01-01T23:52:39.929Z”}
{“level”:“info”,“message”:“Starting up server, using commit: f821f64 added easy password testing suite\n”,“timestamp”:“2022-01-01T23:52:39.979Z”}
{“level”:“info”,“message”:"[Terralith1.0] eula.txt detected: ACCEPTED (eula=true)",“timestamp”:“2022-01-01T23:52:40.465Z”}
{“level”:“info”,“message”:"[Terralith1.0] autostart = true",“timestamp”:“2022-01-01T23:52:44.965Z”}
{“level”:“info”,“message”:"[Terralith1.0] Server started. Waiting 10000 ms…",“timestamp”:“2022-01-01T23:52:45.109Z”}
{“level”:“info”,“message”:"[Terralith1.0] committing world to disk every 30 minutes.",“timestamp”:“2022-01-01T23:53:39.939Z”}

did you change your password? is the password blank? (it might not work with blank passwords)

I see this in the mineos log -

[“Error: listen EADDRINUSE: address already in use 0.0.0.0:8443”," at Server.setupListenHandle [as _listen2] (net.js:1310:16)"," at listenInCluster (net.js:1358:12)"," at doListen (net.js:1495:7)"," at processTicksAndRejections (internal/process/task_queues.js:85:21)"],“level”:“error”,“message”:“uncaughtException: listen EADDRINUSE: address already in use 0.0.0.0:8443”,“timestamp”:“2022-01-01T23:51:22.322Z”}

Looks like the webui address is in use, after following all the steps for setting up mineos you should have it start automatically on restart. Have you installed any other services?

thanks for your help. I had the password correct (I was able to sftp in with it) but I ultimately just gave up and did a clean Turnkey iso install. That is working fine. I’m now setting up the forge 1.18 server with java args.