MichaIng / DietPi

Lightweight justice for your single-board computer!
https://dietpi.com/
GNU General Public License v2.0
4.9k stars 499 forks source link

MineOS refuses to install #7265

Open mikedebian opened 3 weeks ago

mikedebian commented 3 weeks ago

Creating a bug report/issue

Required Information

Additional Information (if applicable)

Steps to reproduce

  1. dietpi-software install 53

Expected behaviour

Actual behaviour

Extra details

Works on my raspberry pi.

mikedebian commented 3 weeks ago

Here is the pastebin

MichaIng commented 3 weeks ago

Thanks for reporting. I started a quick test across all platforms and versions: https://github.com/MichaIng/DietPi/actions/runs/11619447508

MichaIng commented 3 weeks ago

Weird, like a syntax error in the userid node module, installed as dependency, but weirdly it fails on Bookworm only, while the Node version is the same and module version should be the same. For userid a beta version is installed userid@1.0.0-beta.9, maybe it will solve itself once that one became stable.

.... nope weird: https://www.npmjs.com/package/userid?activeTab=versions There is a stable version 1.0.0, but the beta 9 was uploaded 9 seconds later, hence npm grabs that one as "latest" 1.0.0 instead 🤣. However, that is 4 years old, so somehow I do not think that the beta is the problem. But updating that dependency might solve things regardless. But still not sure why it can fail on Bookworm only, with identical Node versions.

mikedebian commented 3 weeks ago

Linux shenanigans :smiling_face_with_tear: Hope you are able to figure it out...

mikedebian commented 2 weeks ago

Weird, like a syntax error in the userid node module, installed as dependency, but weirdly it fails on Bookworm only, while the Node version is the same and module version should be the same. For userid a beta version is installed userid@1.0.0-beta.9, maybe it will solve itself once that one became stable.

.... nope weird: https://www.npmjs.com/package/userid?activeTab=versions There is a stable version 1.0.0, but the beta 9 was uploaded 9 seconds later, hence npm grabs that one as "latest" 1.0.0 instead 🤣. However, that is 4 years old, so somehow I do not think that the beta is the problem. But updating that dependency might solve things regardless. But still not sure why it can fail on Bookworm only, with identical Node versions.

Any update on this?

MichaIng commented 1 week ago

PR up to fix/workaround this, and additionally fixing/working around the login issue #5759 which required #4551 to be addressed: #7276

Indeed, when just updating the userid module, all works well. What you could do, when facing the error, is select "Open shell" from the error handler, and run this command:

G_CONFIG_INJECT '"userid"' '    "userid": "1.2.5",' package.json
exit

Then "Retry".

To fix the login issue, create an new non-root user:

sudo useradd -rMU -d /mnt/dietpi_userdata/mineos/serverdata -s /usr/sbin/nologin mineos
sudo chpasswd --crypt-method SHA512 <<< 'mineos:dietpi'
sudo chown -R mineos /mnt/dietpi_userdata/mineos/serverdata
sudo systemctl restart mineos

Change "dietpi" to a different password. Then use user "mineos" with this password to login the MineOS web UI.

MichaIng commented 1 week ago

Fix sent upstream: https://github.com/hexparrot/mineos-node/pull/558

mikedebian commented 1 week ago
sudo systemctl restart mineos

You have been busy! This worked great, thank you :)