Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MineOS refuses to install #7265

Open
mikedebian opened this issue Oct 31, 2024 · 8 comments
Open

MineOS refuses to install #7265

mikedebian opened this issue Oct 31, 2024 · 8 comments
Labels
Bookworm External bug 🐞 For bugs which are not caused by DietPi. Workaround available 🆗 Workaround is available/has been implemented, but a definite solution should be found when possible.
Milestone

Comments

@mikedebian
Copy link

mikedebian commented Oct 31, 2024

Creating a bug report/issue

  • [✓] I have searched the existing open and closed issues

Required Information

  • DietPi version | G_DIETPI_VERSION_CORE=9
    G_DIETPI_VERSION_SUB=8
    G_DIETPI_VERSION_RC=0
    G_GITBRANCH='master'
    G_GITOWNER='MichaIng'

  • Distro version | Bookworm

  • Kernel version | Linux BLACKPI 6.1.0-26-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.112-1 (2024-09-30) x86_64 GNU/Linux

  • SBC model | Native, x64 UEFI

  • SSD install

Additional Information (if applicable)

  • Software title | MineOS
  • Was the software title installed freshly or updated/migrated? Installed freshly
  • Can this issue be replicated on a fresh installation of DietPi? Dietpi fresh install
  • Bug report ID | 78d8132e-38f7-4e5a-9b2b-c3d10478f177

Steps to reproduce

  1. dietpi-software install 53

Expected behaviour

  • MineOS should be installed

Actual behaviour

  • NPM errors out. Whiptail gives pages with errors about deprecated/removed functions.

Extra details

Works on my raspberry pi.

@mikedebian
Copy link
Author

Here is the pastebin

@MichaIng
Copy link
Owner

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

@MichaIng
Copy link
Owner

MichaIng commented Oct 31, 2024

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 [email protected], 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
Copy link
Author

Linux shenanigans 🥲 Hope you are able to figure it out...

@mikedebian
Copy link
Author

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 [email protected], 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 MichaIng added Workaround available 🆗 Workaround is available/has been implemented, but a definite solution should be found when possible. External bug 🐞 For bugs which are not caused by DietPi. Bookworm and removed Investigating 🤔 labels Nov 9, 2024
@MichaIng MichaIng added this to the v9.9 milestone Nov 9, 2024
@MichaIng
Copy link
Owner

MichaIng commented Nov 9, 2024

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
Copy link
Owner

MichaIng commented Nov 9, 2024

Fix sent upstream: hexparrot/mineos-node#558

@mikedebian
Copy link
Author

sudo systemctl restart mineos

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bookworm External bug 🐞 For bugs which are not caused by DietPi. Workaround available 🆗 Workaround is available/has been implemented, but a definite solution should be found when possible.
Projects
None yet
Development

No branches or pull requests

2 participants